/*
 Theme Name:   System Sense Thailand
 Description:  Custom theme for System Sense Thailand corporate site
 Author:       Your Name
 Version:      1.0.0
*/

:root {
    /* ===== BRAND COLOR — change this ONE line to recolor the whole site ===== */
    --brand: #FF00DF;          /* primary brand colour */
    --brand-rgb: 255, 0, 223;  /* same colour as R,G,B — used for translucent shades */

    /* ----- palette ----- */
    --color-primary-purple: var(--brand);
    --color-accent-blue: #28A4FF;
    --color-text: #313131;
    --color-text-light-grey: #D1D1D1;
    --color-text-light-grey-2: #8F8F8F;
    --color-white: #ffffff;
    --color-bg: #f5f5f5;
    --color-bg-black: #010618;
    --color-bg-dark-blue: #07172F;
    --color-bg-light-blue: #F9FAFC;
    --color-bg-light-blue-2: #EEF3FE;
    --color-card-bg-purple: #F7F8FF;
    --color-icon-bg-purple: #DBDFFF;
    --color-icon-bg-dark-blue: #022345;
    --color-border: #eeeeee;
    --color-label-purple: color-mix(in srgb, var(--color-primary-purple) 15%, transparent);
    --color-label-blue: #e0f0ff;
    --color-box-shadow-white-card: #DFDFDF;

    /* ----- motion ----- */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* shared easing; aliased as --ease-out on the homepage */

    /* ----- layout ----- */
    --section-padding: 80px 20px;
    --section-max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Stop horizontal overflow letting mobile pinch-zoom past the page edge.
   Every page already clips <body>; the <html> guard is what was missing.
   Uses `clip` (not `hidden`) so it does NOT create a scroll container —
   `hidden` here would break the homepage hero's position:sticky pin. */
html, body {
    overflow-x: clip;
    max-width: 100%;
}

/* Global headings */
h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 8px;
}

h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
}

h2.light, h3.light, h4.light {
    color: var(--color-white);
}

/* Global text */

body {
    font-family: 'Space Grotesk', Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-white);
}

/* Header */
#site-header {
    width: 100%;
    padding: 0 40px;
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Header Logo — inline SVG. The wordmark follows `currentColor` (so each page
   context just sets a colour), while the "S" accent stays brand pink everywhere. */
.header-logo { color: var(--color-text); }   /* default: charcoal wordmark on light bg */
.header-logo-link { display: inline-flex; color: inherit; text-decoration: none; }
.site-logo { height: 44px; width: auto; display: block; }
.site-logo-mark { fill: currentColor; }
.site-logo-accent { fill: var(--brand); }

/* legacy: still size any <img> logo (e.g. custom-logo) if one is ever used */
.header-logo img { height: 50px; width: auto; }

/* Nav */
.primary-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.primary-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 15px;
}

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Header CTA Button */
.btn-consultation {
    background-color: var(--color-primary-purple);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

/* Language switcher — custom, sits next to the consultation button.
   Colour is driven by currentColor, so each page context only needs to set the
   text colour (see home.css / webdesign.css) and the whole pill adapts. */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    color: var(--color-text);
}
.lang-switch-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
    color: currentColor;
    text-decoration: none;
    opacity: .55;
    transition: opacity .25s ease, background-color .25s ease, color .25s ease;
}
.lang-switch-item:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.lang-switch-item.is-active { opacity: 1; color: #fff; background: var(--brand); }

/* Hide Polylang's default in-menu switcher (we render our own above). */
.primary-menu .lang-item { display: none; }

/* Dropdown */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    border-radius: 6px;
}

.primary-menu .menu-item-has-children {
    position: relative;
}

.primary-menu .menu-item-has-children:hover .sub-menu {
    display: block;
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    font-size: 14px;
    white-space: nowrap;
}

.primary-menu .sub-menu li a:hover {
    background: var(--color-bg);
}

.nav-chevron {
    width: 20px;
    height: 20px;
    vertical-align: bottom;
    margin-left: 4px;
}

/* Hero Section */

.hero {
    background-image: url('images/home-hero.webp');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: 100%;
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.hero-title {
    color: var(--color-text);
    font-size: 65px;
    font-weight: 900;
    line-height: 1.05;
}

.hero-title-accent {
    color: var(--color-primary-purple);
}

/* Hero Description */

.hero-description {
    color: var(--color-text);
    font-size: 20px;
    line-height: 1.7;
    max-width: 600px;
    margin-top: 20px;
}

/* Hero CTA Button */

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary-purple);
    color: var(--color-white);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-purple);
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid var(--color-primary-purple);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary img {
    width: 20px;
    height: 20px;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Brands Section */
.brands {
    background: var(--color-bg);
    padding: 30px 20px;
}

.brands-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    text-align: center;
}

.brands-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-text);
    margin-bottom: 24px;
    opacity: 0.6;
}

.brands-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.brand-item {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
    opacity: 0.75;
}

/* Section things */
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-primary-purple);
    background: var(--color-label-purple);
    /*border: 1px solid var(--color-primary-purple);*/
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

/* About section */
.about{
    background: var(--color-white);
    padding: var(--section-padding);
}

.about-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-description {
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--color-text);
}

.about-offices {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
}

.about-office-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.about-office p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
}

.about-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-purple);
    text-decoration: underline;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Services Section */
.services {
    background: var(--color-bg-black);
    padding: 80px 20px;
}

.services-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.services-inner .section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-accent-blue);
    background: transparent;
    border: 1px solid var(--color-accent-blue);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--color-bg-dark-blue);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-icon {
    width: 32px;
    height: 32px;
    background: var(--color-icon-bg-dark-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 22px;
    height: 22px;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-white);
}

.service-card p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-text-light-grey);
    line-height: 1.6;
    flex: 1;
}

.service-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-accent-blue);
    text-decoration: underline;
}

/* CEO Message Section */
.ceo-message {
    background: var(--white);
    padding: var(--section-padding);
}
.ceo-message-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}
.ceo-message-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-purple);
    text-decoration: underline;
}

.ceo-message-image {
    border-radius: 16px;
    overflow: hidden;
}

.ceo-message-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Why Choose Us Section */
.why-choose-us {
    background: var(--color-white);
    padding: var(--section-padding);
}

.why-choose-us-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.why-choose-us-desc{
    margin-bottom: 40px;
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reason-card {
    background: var(--color-card-bg-purple);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reason-icon {
    width: 32px;
    height: 32px;
    background: var(--color-icon-bg-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-icon img {
    width: 22px;
    height: 22px;
}

.reason-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
}

.reason-card p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.6;
    flex: 1;
}

.why-choose-us-image {
    border-radius: 16px;
    overflow: hidden;
}

.why-choose-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA! Contact */
.contact {
    background-image: url('images/bg1.webp');
    padding: var(--section-padding);
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact::after {
    content: '';
    position: absolute;
    inset: 0;
}

.contact-inner {
    position: relative;
    z-index: 1;
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.contact-description {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-text-light-grey);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact .btn-primary {
    font-size: 1rem;
    padding: 14px 28px;
    background: var(--color-white);
    color: var(--color-text);
}

/* Footer */
.site-footer {
    background: var(--color-bg);
    color: var(--color-text);
}

.footer-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 60px 0px 60px 0px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--color-text);   /* default: charcoal wordmark on light bg, pink "S" accent stays fixed */
}

.footer-logo .site-logo {
    height: 40px;
    width: auto;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: none;
}

.footer-soon {
    font-size: 1rem;
    opacity: 0.55;
    cursor: default;
}
.footer-soon em {
    font-style: normal;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.footer-bottom {
    border-top: 1px solid var(--color-text-light-grey);
}

.footer-bottom-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 20px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.6;
}

@media (max-width: 700px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 22px;
    }
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
    .footer-bottom-inner { padding: 20px 22px; }
}


/* Page-hero */
.page-hero {
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-hero-inner {
    padding: 60px 20px;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-white);
    opacity: 0.85;
    margin-top: 10px;
}


/* About Page */
.about-who,
.about-story,
.about-profile {
    padding: var(--section-padding);
}

.about-who-inner,
.about-story-inner,
.about-profile-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.about-who p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    max-width: 900px;
}

/* Story */
.about-story {
    background: var(--color-bg-light-blue-2);
}

.about-story-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.story-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 60px;
}

.story-timeline {
    border-left: 2px solid var(--color-accent-blue);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-year {
    display: inline-block;
    background: var(--color-accent-blue);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.timeline-event {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Company Profile */
.profile-table {
    margin-top: 32px;
    border-top: 1px solid var(--color-border);
}

.profile-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.profile-row dt {
    font-size: 1rem;
    color: var(--color-primary-purple);
    font-weight: 500;
    min-width: 200px;
}

.profile-row dd {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Services Page */
.svc-intro {
    padding: var(--section-padding);
}

.svc-intro-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.svc-intro p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    max-width: 900px;
}

/* Services Cards */
.svcs {
    background: var(--color-white);
    padding: var(--section-padding);
}

.svc-cards-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 32px;
}

.svc-description{
    margin-bottom: 19px;
    max-width: 800px;
}

.svc-cards {
    max-width: var(--section-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.svc-card {
    background: var(--color-card-bg-purple);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-tag {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary-purple);
    background: #e8ebff;
    padding: 4px 10px;
    border-radius: 999px;
    align-self: flex-start;
}

.svc-icon {
    width: 32px;
    height: 32px;
    background: var(--color-icon-bg-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.svc-icon img {
    width: 22px;
    height: 22px;
}

.svc-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0;
}

.svc-card > p {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.7;
    opacity: 0.7;
}

.svc-what-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary-purple);
    opacity: 0.6;
    margin-top: 8px;
}

.svc-list {
    list-style: disc;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.svc-list li {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.5;
}

.svc-list li::marker {
    color: var(--color-primary-purple);
}

/* Contact Page */
.contact-section {
    background: var(--color-white);
    padding: var(--section-padding);
}

.contact-section-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
}

.contact-form-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px var(--color-box-shadow-white-card);
}

.contact-form-subtitle {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 28px;
    margin-top: 6px;
}

.contact-details-col {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 16px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--color-icon-bg-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon img {
    width: 22px;
    height: 22px;
}

.contact-detail-label {
    font-size: 0.8rem;
    color: var(--color-text);
    opacity: 0.5;
    margin-bottom: 2px;
}

.contact-detail-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.contact-hours {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-hours-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary-purple);
    opacity: 0.6;
    margin-bottom: 8px;
}

.contact-hours p {
    font-size: 0.875rem;
    color: var(--color-text);
}

/* Process steps — shared by the System Development page
   (the old Web Design page styles now live in assets/css/webdesign.css) */
.work-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.work-step {
/*    background: var(--color-white);
    border: 1px solid var(--color-border);*/
    border-radius: 12px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.work-step-num {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary-purple);
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-purple);
    font-weight: 800;
    opacity: 1.0;
}

.work-step p {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.65;
    line-height: 1.7;
}

/* Line OA page */
.lineoa-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
}


.lineoa-hero-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.lineoa-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
}

.lineoa-subtitle {
    font-size: 1.7rem;
    color: var(--color-white);
    line-height: 1.2;
    font-weight: 100;
}

.lineoa-hero-icon {
    width: 96px;
    height: 96px;
}

/* LINE OA Ask Us Section */

.lineoa-ask-us {
    padding: var(--section-padding);
}

.lineoa-ask-us-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
}

.lineoa-ask-us-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lineoa-ask-us-left-text h2 {
    margin-bottom: 10px;
}

.lineoa-ask-us-left-text p {
    opacity: 0.9;
}

.lineoa-ask-us-left-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lineoa-ask-us-left-cta .btn-primary {
    display: block;
    text-align: center;
}

.lineoa-checklist {
    list-style: none;
    padding: 32px;
    margin: 0;
    background: var(--color-white);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 24px var(--color-box-shadow-white-card);
}

.lineoa-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--color-text);
    font-size: 1rem;
}

.lineoa-checklist li img {
    width: 20px;
    height: 20px;
}

/* Why Lineoa Section */
.why-lineoa {
    background: var(--color-bg-light-blue);
    padding: var(--section-padding);
}

.why-lineoa-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.why-lineoa-inner p {
    margin-bottom: 40px;
}

/* What we handle in linoa section */
.what-handle-lineoa {
    padding: var(--section-padding);
}

.what-handle-lineoa-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.what-handle-lineoa-inner > p {
    margin-bottom: 40px;
}

/* Reusable Feature Grids */

.feature-grid {
    display: grid;
    gap: 20px;
}

.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 24px var(--color-box-shadow-white-card);
}

.feature-card h3 {
    margin-bottom: 0;
}

.feature-card img {
    width: 40px;
    height: 40px;
}

.feature-card--soft {
    background: var(--color-bg-light-blue);
    box-shadow: none;
}

/* Lineoa Plans Section */

.lineoa-plans {
    padding: var(--section-padding);
    background: var(--color-bg-light-blue);
}

.lineoa-plans-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.lineoa-plans-desc {
    color: var(--color-text);
    margin-bottom: 40px;
    line-height: 1.7;
}

.lineoa-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lineoa-plan-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.lineoa-plan-card h3 {
    font-size: 1.4rem;
}


.lineoa-plan-card p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light-grey-2)
}


.lineoa-plan-list {
    list-style: disc;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.lineoa-plan-list li {
    color: var(--color-text);
    line-height: 1.5;
}

.lineoa-plan-card .btn-primary {
    display: block;
    text-align: center;
}

.lineoa-faq {
    padding: var(--section-padding);
}

.lineoa-faq-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.lineoa-faq-list {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.lineoa-faq-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
}

.lineoa-faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.lineoa-faq-item h3 {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.lineoa-faq-item p {
    color: var(--color-text);
    opacity: 0.9;
    line-height: 1.8;
}


/* Restaurant Menu Page */
/* (.intro-split is a reusable section) */
.intro-split {
    padding: var(--section-padding);
    background: var(--color-white);
}

.intro-split-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-split-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intro-split-left h2 {
    margin-bottom: 10px;
}

.intro-split-description {
    line-height: 1.4;
    max-width: 900px;
}

.intro-split-description2 {
    line-height: 1.4;
    opacity: 0.6;
}

.intro-split-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.intro-split-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.intro-split-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.intro-split-feature-desc {
    color: var(--color-text);
    line-height: 1.6;
    opacity: 0.6;
}

.intro-split-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--color-label-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-split-feature-icon img {
    width: 26px;
    height: 26px;
}

/* System Development */

/* SD intro section */
.why-ss-development {
    padding: var(--section-padding);
    background: var(--color-bg-light-blue);
}

.why-ss-development-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.why-ss-development-inner p {
    margin-bottom: 40px;
    line-height: 1.5;
}

/* SD What we can build section */

.what-we-build {
    padding: var(--section-padding);
}

.what-we-build-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.what-we-build-inner p {
    margin-bottom: 40px;
}

/* SD work process section */
.dev-process {
    background: var(--color-bg-light-blue);
    padding: var(--section-padding);    
}

.dev-process-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
}

.dev-process-desc {
    margin-bottom: 40px;
    max-width: 70%;
}
/* =================================================================
   Main CTA — rig.ai-style dark block (shared on every page)
   ================================================================= */
.cta-rig {
  position: relative; overflow: hidden;
  background: #ffffff;
  border-top: 1px solid #eaedf2;
  padding: 130px clamp(24px, 6vw, 80px);
  text-align: center;
}
.cta-rig::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1.5px);
  background-size: 4px 4px;
}
.cta-rig-streaks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-rig-streaks span { position: absolute; height: 7px; background: var(--brand); border-radius: 2px; opacity: 0.45; }
.cta-rig-streaks span:nth-child(1) { top: 15%; left: 0;   width: 16%; animation: rig-glitch   3.8s steps(2) infinite .2s; }
.cta-rig-streaks span:nth-child(2) { top: 20%; left: 0;   width: 8%;  animation: rig-glitch   3.5s steps(2) infinite; }
.cta-rig-streaks span:nth-child(3) { top: 25%; left: 0;   width: 26%; animation: rig-glitch-r 4.6s steps(2) infinite .9s; }
.cta-rig-streaks span:nth-child(4) { top: 12%; left: 74%; width: 14%; animation: rig-glitch-r 3.2s steps(2) infinite .4s; }
.cta-rig-streaks span:nth-child(5) { top: 17%; left: 60%; width: 30%; animation: rig-glitch   4.2s steps(2) infinite .6s; }
.cta-rig-streaks span:nth-child(6) { top: 22%; left: 70%; width: 20%; animation: rig-glitch-r 2.8s steps(2) infinite .1s; }
.cta-rig-streaks span:nth-child(7) { top: 47%; left: 12%; width: 12%; animation: rig-glitch   3.4s steps(2) infinite .8s; }
.cta-rig-streaks span:nth-child(8) { top: 51%; left: 16%; width: 9%;  animation: rig-glitch   3s   steps(2) infinite .3s; }
.cta-rig-streaks span:nth-child(9) { top: 49%; left: 84%; width: 8%;  animation: rig-glitch-r 4s   steps(2) infinite 1.1s; }
@keyframes rig-glitch   { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-14px); } }
@keyframes rig-glitch-r { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }

.cta-rig-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-rig-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  border: 1px solid rgba(var(--brand-rgb), 0.5); color: var(--brand);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 1rem; letter-spacing: .25em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 4px;
}
.cta-rig-badge svg { width: 14px; height: 14px; }
.cta-rig-title {
  font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.02em;
  color: #0d0f1a; line-height: 1.02; margin: 0 0 22px;
  position: relative; display: inline-block; z-index: 1;
}
.cta-rig-title::before,
.cta-rig-title::after {
  content: ""; position: absolute; bottom: 9%; height: 10px;
  background: var(--brand); opacity: 0.45; z-index: -1;
}
.cta-rig-title::before { left: -7%; width: 34%; }
.cta-rig-title::after  { right: -5%; width: 28%; }
/* Japanese: Latin-tuned size renders oversized in CJK — trim it down. */
html[lang^="ja"] .cta-rig-title {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); letter-spacing: normal; line-height: 1.3;
}
.cta-rig-sub {
  color: #637085; font-size: 1.1rem; line-height: 1.6;
  max-width: 32rem; margin: 0 auto 40px;
}
.cta-rig-actions { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-rig-btn {
  display: inline-block; text-decoration: none;
  background: var(--brand); color: var(--white); cursor: pointer; border: none;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 1rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 17px 32px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: filter .25s ease;
}
.cta-rig-btn:hover { filter: brightness(1.1); }
.cta-rig-phone {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  color: #41506a;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 1rem; letter-spacing: .04em;
}
.cta-rig-phone img { width: 16px; height: 16px; filter: brightness(0); opacity: .55; }
.cta-rig-phone:hover { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .cta-rig-streaks span { animation: none; }
}

/* =================================================================
   Mobile navigation — hamburger (mobile only; desktop unchanged).
   .header-collapse is display:contents on desktop, so the nav + right
   group flow exactly as before. On mobile it becomes a dropdown panel.
   ================================================================= */
.nav-toggle {
    display: none;                 /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 9px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--color-text);      /* dark contexts override to #fff below */
}
.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-collapse { display: contents; }   /* desktop: no-op wrapper */

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .header-inner { position: relative; }
    /* keep the logo + close (X) button on top of the full-screen panel */
    .header-logo, .nav-toggle { position: relative; z-index: 1001; }

    .header-collapse {
        display: none;
        position: fixed;
        inset: 0;                          /* full screen */
        height: 100vh; height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        padding: 104px 26px 44px;          /* top pad clears the header bar */
        overflow-y: auto;
        background: #0b0d18;               /* always a dark overlay (all pages are dark-themed) */
        box-shadow: none;
        z-index: 1000;
    }
    #site-header.is-open .header-collapse { display: flex; }

    /* language + consultation button sit at the TOP of the panel */
    .header-right {
        order: -1;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        width: 100%;
        margin-bottom: 0px;
        padding-bottom: 26px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }
    .btn-consultation { display: inline-block; font-size: 16px; padding: 14px 26px; }
    .lang-switch { transform: scale(1.1); transform-origin: left center; }

    .header-nav { width: 100%; }
    .primary-menu { flex-direction: column; gap: 4px; width: 100%; }
    /* #site-nav id prefix out-specifies body.home / body.wd-dark .primary-menu a */
    #site-nav .primary-menu a {
        display: block; padding: 14px 0;
        font-size: 1.0rem;                 /* bigger */
        letter-spacing: .02em;
        white-space: normal;               /* let long items wrap */
    }
    /* nested dropdowns: inline them in the panel */
    #site-nav .primary-menu .sub-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: 0;
        padding: 4px 0 10px 16px;
        min-width: 0;
        background: transparent;
    }
    #site-nav .primary-menu .sub-menu li a {
        padding: 11px 0;
        font-size: 1.0rem;                 /* bigger sub-items */
        white-space: normal;               /* wrap long service names */
    }

    /* divider lines so each menu item reads as its own row */
    #site-nav .primary-menu > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
    #site-nav .primary-menu > li:last-child { border-bottom: 0; }
    /* dividers between the Services sub-items too (lighter, since nested) */
    #site-nav .primary-menu .sub-menu li { border-bottom: 1px solid rgba(255, 255, 255, .07); }
    #site-nav .primary-menu .sub-menu li:last-child { border-bottom: 0; }

    /* CLOSED hamburger colour follows the hero it sits on:
       white on the dark heroes, dark on the restaurant page's white hero */
    body.home .nav-toggle,
    body.wd-dark .nav-toggle { color: #fff; }
    body.rm-page #site-header:not(.wd-head-solid) .nav-toggle { color: var(--rm-ink); }

    /* When OPEN, the panel is a dark overlay — force logo / X / links / lang to
       white so a page that themes its header dark (rm-page) stays readable.
       !important avoids a specificity war with the per-page header rules. */
    #site-header.is-open .header-logo,
    #site-header.is-open .nav-toggle,
    #site-header.is-open .lang-switch,
    #site-header.is-open #site-nav .primary-menu a { color: #fff !important; }
    /* CTA: white button on the dark panel (rm-page's dark button is invisible here) */
    #site-header.is-open .btn-consultation { background: #fff !important; color: #000 !important; }
}
