/* ============================================================
   KGS Consulting & Engineering — styles.css
   BEM methodology, custom properties, no framework
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #102a43;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Custom Properties ------------------------------------- */
:root {
    --navy-950: #0a1929;
    --navy-900: #102a43;
    --navy-800: #162d46;
    --navy-700: #1e3a5f;
    --navy-600: #243b53;
    --navy-500: #334e68;
    --navy-400: #627d98;
    --navy-300: #829ab1;
    --navy-200: #bcccdc;
    --navy-100: #d9e2ec;
    --navy-50:  #f0f4f8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --teal-600: #0d9488;
    --teal-400: #2dd4bf;
    --red-600:  #dc2626;
    --green-600: #16a34a;
    --amber-600: #d97706;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 32px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* --- Layout ------------------------------------------------ */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-16 { margin-top: 16px; }

/* --- Skip Link --------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--blue-600);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    z-index: 200;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 12px;
}

/* --- Navigation -------------------------------------------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #d9e2ec;
    transition: box-shadow 0.3s;
}

.nav--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.10); }

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

.nav__logo img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy-600);
    transition: color 0.2s;
}

.nav__links a:hover { color: var(--navy-950); }

.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__cta {
    background: var(--blue-600);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.nav__cta:hover { background: var(--blue-500); transform: translateY(-1px); }

.nav__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy-600);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav__hamburger:hover { color: var(--navy-950); background: rgba(0,0,0,0.05); }

/* Mobile menu */
.nav__mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid transparent;
    background: rgba(255, 255, 255, 0.99);
}

.nav__mobile--open {
    max-height: 400px;
    border-top-color: #d9e2ec;
}

.nav__mobile-inner {
    display: flex;
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 4px;
}

.nav__mobile-inner a {
    font-size: 15px;
    font-weight: 500;
    color: var(--navy-600);
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    transition: color 0.2s;
}

.nav__mobile-inner a:last-child { border-bottom: none; }
.nav__mobile-inner a:hover { color: var(--navy-950); }

.nav__mobile-inner .nav__cta {
    margin-top: 8px;
    text-align: center;
    border-bottom: none;
    padding: 10px 20px;
}

/* --- Hero -------------------------------------------------- */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--navy-950);
    border-bottom: 1px solid var(--navy-700);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy-200);
    margin-bottom: 24px;
}

.hero__badge-sep {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.2);
}

.hero__title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 20px;
}

.hero__title-accent {
    color: var(--blue-400);
}

.hero__subtitle {
    font-size: 17px;
    color: var(--navy-200);
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 520px;
}

.hero__tagline {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 32px;
}

.hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero__trust-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-300);
    margin-bottom: 12px;
}

.hero__logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.partner-logo {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy-300);
    letter-spacing: 0.03em;
}

/* Hero logo showcase card */
.hero__logo-showcase {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.30);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}

.hero__logo-img {
    width: 100%;
    max-width: 310px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Hero widget (right side) */
.hero__widget {
    background: var(--navy-800);
    border: 1px solid var(--navy-700);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.hero__widget-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-300);
    margin-bottom: 20px;
}

.hero__markets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.hero__market-item {
    background: var(--navy-900);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.hero__market-flag { font-size: 24px; margin-bottom: 6px; }

.hero__market-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-200);
}

.hero__market-role {
    font-size: 11px;
    color: var(--navy-400);
    margin-top: 2px;
}

.hero__stats {
    display: flex;
    gap: 10px;
}

.hero__stat {
    flex: 1;
    background: var(--navy-900);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

.hero__stat-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-400);
    line-height: 1;
}

.hero__stat--teal .hero__stat-number { color: var(--teal-400); }

.hero__stat-label {
    font-size: 11px;
    color: var(--navy-300);
    margin-top: 4px;
}

/* --- Metrics Bar ------------------------------------------- */
.metrics {
    background: var(--navy-950);
    border-bottom: 1px solid var(--navy-700);
}

.metrics__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 32px 0;
}

.metrics__item {
    text-align: center;
    padding: 16px 24px;
    border-right: 1px solid var(--navy-700);
}

.metrics__item:last-child { border-right: none; }

.metrics__number {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.metrics__number--accent { color: var(--teal-400); }

.metrics__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--navy-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Sections ---------------------------------------------- */
.section {
    padding-block: 96px;
    background: var(--white);
}

.section--brand {
    background: var(--navy-50);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 16px;
    color: var(--navy-400);
    line-height: 1.7;
}

/* --- Grids ------------------------------------------------- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid--5-3 {
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 40px;
    align-items: start;
}

/* --- Cards ------------------------------------------------- */
.card {
    background: var(--white);
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--navy-200);
    transform: translateY(-2px);
}

.card--center { text-align: center; }

.card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #dbeafe;
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card__icon--teal {
    background: #ccfbf1;
    color: var(--teal-600);
}

.card__partner-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.card__text {
    font-size: 14px;
    color: var(--navy-500);
    line-height: 1.65;
}

/* --- Bridge ------------------------------------------------ */
.bridge {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.bridge__col {
    background: var(--white);
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.bridge__flag { font-size: 40px; margin-bottom: 12px; }

.bridge__name {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.bridge__role {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}

.bridge__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bridge__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--navy-600);
    line-height: 1.5;
}

.bridge__list-icon { color: var(--teal-600); flex-shrink: 0; margin-top: 2px; }

.bridge__equation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.bridge__eq-item {
    background: var(--white);
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-800);
}

.bridge__eq-symbol {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy-300);
}

.bridge__eq-result {
    background: var(--blue-600);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
}

/* --- Process ----------------------------------------------- */
.process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 0;
}

.process__step { text-align: center; }

.process__number {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--blue-600);
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.process__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.process__text {
    font-size: 14px;
    color: var(--navy-500);
    line-height: 1.65;
}

/* --- Badges ------------------------------------------------ */
.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--navy-100);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-700);
}

.badge__icon { color: var(--blue-600); flex-shrink: 0; }
.badge__icon--teal { color: var(--teal-600); }

/* --- Tags -------------------------------------------------- */
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 999px;
}

.tag--blue   { background: #dbeafe; color: #1d4ed8; }
.tag--teal   { background: #ccfbf1; color: #0f766e; }
.tag--green  { background: #dcfce7; color: #15803d; }
.tag--amber  { background: #fef3c7; color: #92400e; }
.tag--gray   { background: var(--navy-100); color: var(--navy-600); }

/* --- Filters ---------------------------------------------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--navy-200);
    border-radius: 999px;
    padding: 8px 18px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-500);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--navy-400); color: var(--navy-900); }

.filter-btn.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
}

/* --- Project Cards ----------------------------------------- */
.project-card {
    background: var(--white);
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.project-card__bar { height: 4px; }
.project-card__bar--teal  { background: var(--teal-600); }
.project-card__bar--blue  { background: var(--blue-600); }
.project-card__bar--navy  { background: var(--navy-600); }

.project-card__body { padding: 24px; }

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.project-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-card__text {
    font-size: 13px;
    color: var(--navy-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-sm);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy-600);
}

/* --- CTA Banner -------------------------------------------- */
.cta-banner {
    background: var(--navy-900);
    padding-block: 64px;
}

.cta-banner__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-banner__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.cta-banner__text {
    font-size: 15px;
    color: var(--navy-300);
    max-width: 520px;
}

.cta-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* --- Buttons ----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
    background: var(--blue-600);
    color: var(--white);
    border-color: var(--blue-600);
}
.btn--primary:hover { background: var(--blue-500); border-color: var(--blue-500); }

.btn--secondary {
    background: transparent;
    color: var(--navy-700);
    border-color: var(--navy-200);
}
.btn--secondary:hover { border-color: var(--navy-400); background: var(--navy-50); }

.btn--white {
    background: var(--white);
    color: var(--navy-900);
    border-color: var(--white);
}
.btn--white:hover { background: var(--navy-100); }

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--lg { padding: 13px 28px; font-size: 15px; }

.btn--block { width: 100%; justify-content: center; }

/* --- Form -------------------------------------------------- */
.form {
    background: var(--white);
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form__group { margin-bottom: 20px; }

.form__row .form__group { margin-bottom: 0; }

.form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-700);
    margin-bottom: 6px;
}

.form__required { color: var(--red-600); }

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--navy-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--navy-900);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.form__input::placeholder,
.form__textarea::placeholder { color: var(--navy-300); }

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form__select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23627d98' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
    cursor: pointer;
}

.form__textarea { resize: vertical; min-height: 110px; }

.form__note {
    font-size: 12px;
    color: var(--navy-500);
    text-align: center;
    margin-top: 14px;
}

/* --- Contact Sidebar --------------------------------------- */
.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
    background: var(--white);
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.contact-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-card__icon {
    width: 40px;
    height: 40px;
    background: #dbeafe;
    color: var(--blue-600);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card__icon--teal { background: #ccfbf1; color: var(--teal-600); }

.contact-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-900);
}

.contact-card__email {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-600);
    word-break: break-all;
}

.contact-card__email:hover { text-decoration: underline; }

.contact-card__office {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.contact-card__office:last-of-type { margin-bottom: 0; }

.contact-card__flag { font-size: 18px; margin-top: 2px; flex-shrink: 0; }

.contact-card__office-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 3px;
}

.contact-card__office-detail {
    font-size: 12px;
    color: var(--navy-500);
    line-height: 1.55;
}

.contact-card__text {
    font-size: 13px;
    color: var(--navy-600);
    line-height: 1.6;
}

/* --- Footer ------------------------------------------------ */
.footer {
    background: var(--navy-950);
    padding-top: 64px;
    padding-bottom: 32px;
    border-top: 1px solid var(--navy-700);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand-img {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 16px;
    opacity: 0.95;
}

.footer__tagline {
    font-size: 13px;
    color: var(--navy-400);
    line-height: 1.6;
    margin-bottom: 6px;
}

.footer__heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-200);
    margin-bottom: 18px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__links a {
    font-size: 13px;
    color: var(--navy-400);
    transition: color 0.2s;
}

.footer__links a:hover { color: var(--white); }

.footer__office { margin-bottom: 12px; }

.footer__office-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.footer__office-detail {
    font-size: 12px;
    color: var(--navy-400);
}

.footer__email {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-400);
    margin-top: 8px;
    transition: color 0.2s;
}

.footer__email:hover { color: var(--white); text-decoration: underline; }

.footer__bottom {
    border-top: 1px solid var(--navy-700);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__copyright,
.footer__markets {
    font-size: 12px;
    color: var(--navy-500);
}

/* --- Toast ------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--navy-900);
    border: 1px solid var(--navy-700);
    border-left: 4px solid var(--green-600);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    box-shadow: var(--shadow-lg);
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    z-index: 999;
}

.toast--show { transform: translateY(0); opacity: 1; pointer-events: auto; }

.toast__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

/* --- Form Trust Line --------------------------------------- */
.form__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--teal-600);
    font-weight: 500;
    margin-top: 10px;
}

/* --- WhatsApp FAB ------------------------------------------ */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ============================================================
   System Development page overrides
   ============================================================ */
.sysdev-hero {
    padding-top: 120px;
    padding-bottom: 72px;
    background: var(--navy-950);
    border-bottom: 1px solid var(--navy-700);
}

.sysdev-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--navy-300);
    margin-bottom: 24px;
    transition: color 0.2s;
}

.sysdev-hero__back:hover { color: var(--white); }

.sysdev-hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-400);
    margin-bottom: 14px;
}

.sysdev-hero__title {
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.sysdev-hero__subtitle {
    font-size: 16px;
    color: var(--navy-300);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.service-block {
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--white);
}

.service-block__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--navy-100);
    background: var(--navy-50);
}

.service-block__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #dbeafe;
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-block__icon--teal { background: #ccfbf1; color: var(--teal-600); }

.service-block__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-900);
}

.service-block__body { padding: 32px; }

.service-block__desc {
    font-size: 14px;
    color: var(--navy-500);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-block__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.service-block__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--navy-700);
}

.service-block__list-icon { color: var(--teal-600); flex-shrink: 0; margin-top: 2px; }

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sysdev-proprietary {
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.sysdev-proprietary::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
}

.sysdev-proprietary__label {
    display: inline-block;
    background: rgba(45, 212, 191, 0.15);
    color: var(--teal-400);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.25);
    margin-bottom: 16px;
}

.sysdev-proprietary__title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.sysdev-proprietary__desc {
    font-size: 14px;
    color: var(--navy-300);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 520px;
}

.sysdev-proprietary__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sysdev-proprietary__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--navy-200);
}

/* --- Hero secondary link ----------------------------------- */
.hero__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--navy-300);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    padding: 13px 0;
}

.hero__link:hover { color: var(--white); }

/* --- CTA Banner urgency ------------------------------------ */
.cta-banner__urgency {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-400);
    margin-top: 10px;
}

/* --- Project card metrics ---------------------------------- */
.project-card__metric {
    font-size: 12px;
    font-weight: 600;
    color: var(--teal-600);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* --- FAQ --------------------------------------------------- */
.faq {
    max-width: 720px;
    margin-inline: auto;
}

.faq__item {
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    background: var(--white);
    overflow: hidden;
}

.faq__question {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-900);
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--navy-400);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.2s;
}

.faq__item[open] .faq__question::after {
    content: '−';
}

.faq__answer {
    font-size: 14px;
    color: var(--navy-500);
    line-height: 1.7;
    padding: 0 24px 18px;
}

/* --- Legal content ----------------------------------------- */
.legal-content h2 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin: 32px 0 12px; }
.legal-content p, .legal-content li { font-size: 15px; color: var(--navy-600); line-height: 1.75; }
.legal-content ul { padding-left: 24px; margin: 8px 0 16px; }
.legal-content a { color: var(--teal-600); text-decoration: underline; }

/* --- Focus visible ----------------------------------------- */
*:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

/* --- Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero__grid { gap: 40px; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__cta { display: none; }
    .nav__hamburger { display: flex; }

    .hero {
        padding-top: 96px;
        padding-bottom: 56px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__widget { display: none; }
    .hero__logo-showcase { display: none; }

    .metrics__grid { grid-template-columns: repeat(2, 1fr); }
    .metrics__item { border-right: none; border-bottom: 1px solid var(--navy-700); }
    .metrics__item:nth-child(2n) { }
    .metrics__item:last-child { border-bottom: none; }

    .section { padding-block: 64px; }

    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid--5-3 { grid-template-columns: 1fr; }
    .bridge { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr; gap: 24px; }

    .cta-banner__grid { flex-direction: column; text-align: center; }

    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom { flex-direction: column; text-align: center; }

    .form { padding: 24px; }
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .form__row .form__group { margin-bottom: 20px; }

    .service-block__list { grid-template-columns: 1fr; }
    .sysdev-proprietary__features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding-inline: 16px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .hero__ctas { flex-direction: column; }
    .cta-banner__actions { flex-direction: column; width: 100%; }
    .cta-banner__actions .btn { justify-content: center; }
    .toast { left: 16px; right: 16px; bottom: 16px; }
}
