/* =====================================================================
   Alphonic AI — Stylesheet
   Design tokens
   Colors    — Navy #0B1220 / #121B2E ground the brand as serious and
               technical; teal #2DD4BF is the primary signal color;
               amber #F5A623 is a single warm accent, used sparingly
               to mark the one thing on a page that most deserves it.
   Type      — Arial / Helvetica Neue system sans across display and body
               copy, with Courier New for code and data snippets — plain,
               widely rendered fonts rather than a trend-led web-font pairing.
   ===================================================================== */

:root {
    /* Color */
    --navy-950: #0B1220;
    --navy-900: #121B2E;
    --navy-800: #1B2740;
    --slate-600: #475569;
    --slate-500: #64748B;
    --ink-900: #0F172A;
    --paper-0: #FFFFFF;
    --paper-50: #F6F8FA;
    --line-200: #E3E7EE;
    --line-100: #EDF0F4;
    --teal-400: #2DD4BF;
    --teal-300: #5EEAD4;
    --blue-400: #60A5FA;
    --amber-400: #F5A623;

    /* Type */
    --font-display: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    --font-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    /* Layout */
    --container-w: 1200px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-pop: 0 20px 60px rgba(11, 18, 32, .35);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------
   Reset
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--slate-600);
    background: var(--paper-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); line-height: 1.15; font-weight: 600; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--teal-400); color: var(--navy-950); padding: .75rem 1.25rem;
    font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--teal-400);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.container {
    max-width: var(--container-w);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ---------------------------------------------------------------
   Type scale
   --------------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em;
    text-transform: uppercase; color: var(--teal-400); font-weight: 500;
}
.eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal-400);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
.lede { font-size: 1.125rem; color: var(--slate-600); }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: .85rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
    background: var(--teal-400); color: var(--navy-950);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(45, 212, 191, .35); }
.btn-ghost {
    background: transparent; color: var(--paper-0); border: 1px solid rgba(255,255,255,.25);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.btn-outline {
    background: transparent; color: var(--ink-900); border: 1px solid var(--line-200);
}
.btn-outline:hover { border-color: var(--slate-500); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------
   Header / Nav
   --------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--paper-0);
    border-bottom: 1px solid var(--line-200);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.logo { display: flex; align-items: center; color: var(--ink-900); }
.logo__badge {
    display: flex; align-items: center;
    background: var(--paper-0); border-radius: var(--radius-md);
    padding: 8px 16px; box-shadow: var(--shadow-card);
}
.logo img { display: block; height: 42px; width: auto; }
.logo--footer .logo__badge { padding: 7px 14px; }
.logo--footer img { height: 38px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li > a {
    display: flex; align-items: center; gap: 6px;
    padding: .6rem .9rem; border-radius: var(--radius-sm);
    color: var(--slate-600); font-weight: 500; font-size: .93rem;
    transition: color .15s, background .15s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.is-active { color: var(--ink-900); background: var(--paper-50); }
.nav-menu .chev { transition: transform .2s var(--ease); }
.nav-menu .cta-btn {
    background: var(--navy-900); color: var(--paper-0) !important;
    padding: .6rem 1.15rem; font-weight: 600;
}
.nav-menu .cta-btn:hover { background: var(--navy-800); }

.nav__toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px;
}
.nav__toggle span { width: 20px; height: 2px; background: var(--ink-900); margin-inline: auto; transition: transform .2s, opacity .2s; }

/* Mega menu */
.has-mega-menu { position: static; }
.mega-menu {
    position: absolute; left: 50%; top: calc(100% - 6px); transform: translateX(-50%);
    width: min(1180px, 94vw);
    background: var(--paper-0);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
    padding: 28px 8px;
    max-height: calc(100vh - 96px); overflow-y: auto;
}
.has-mega-menu:hover .mega-menu,
.has-mega-menu:focus-within .mega-menu,
.has-mega-menu.is-open .mega-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.has-mega-menu:hover .chev,
.has-mega-menu.is-open .chev { transform: rotate(180deg); }
.mega-menu .container { max-width: none; padding-inline: 20px; }
.mega-menu-content {
    display: grid; grid-template-columns: repeat(var(--menu-cols, 4), 1fr); gap: 6px 22px;
}
.mega-menu-column--wide {
    grid-column: 1 / -1; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-200);
}
.mega-menu-column--wide .mega-menu-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 22px; }
.mega-menu-column h4 {
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--slate-500); font-weight: 600; margin-bottom: 10px; padding-inline: 10px;
}
.mega-menu-link {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 10px; border-radius: 10px; color: var(--slate-600);
    transition: background .15s;
}
.mega-menu-link:hover { background: var(--paper-50); }
.mega-menu-icon {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
    background: rgba(18, 27, 46, .08); color: var(--navy-900);
    display: flex; align-items: center; justify-content: center;
}
.mega-menu-icon svg { width: 16px; height: 16px; }
.mega-menu-text { display: flex; flex-direction: column; }
.mega-menu-text span { font-size: .87rem; font-weight: 500; color: var(--ink-900); }
.mega-menu-text small { font-size: .74rem; color: var(--slate-500); }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
    background: radial-gradient(ellipse 900px 500px at 15% -10%, rgba(45,212,191,.16), transparent 60%),
                linear-gradient(180deg, var(--navy-950), var(--navy-900));
    color: var(--paper-0);
    padding: 88px 0 96px;
    position: relative;
    overflow: hidden;
}
.hero__grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero__copy h1 { color: var(--paper-0); margin: 18px 0 20px; }
.hero__copy h1 .highlight { color: var(--teal-400); }
.hero__copy .lede { color: rgba(255,255,255,.72); max-width: 46ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__proof { display: flex; gap: 34px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; }
.hero__proof-item strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--paper-0); }
.hero__proof-item span { font-size: .82rem; color: rgba(255,255,255,.55); }

/* Signature element: a live-typing terminal panel */
.terminal {
    background: var(--navy-800);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
    overflow: hidden;
}
.terminal__bar {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 16px; background: rgba(0,0,0,.2); border-bottom: 1px solid rgba(255,255,255,.08);
}
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal__dot:nth-child(1) { background: #FF5F57; }
.terminal__dot:nth-child(2) { background: #FEBC2E; }
.terminal__dot:nth-child(3) { background: #28C840; }
.terminal__label { margin-left: 10px; font-family: var(--font-mono); font-size: .74rem; color: rgba(255,255,255,.4); }
.terminal__body {
    font-family: var(--font-mono); font-size: .84rem; line-height: 1.75;
    padding: 22px 22px 26px; min-height: 300px; color: #C9D6E5;
}
.terminal__body .c-key   { color: #7DD3FC; }
.terminal__body .c-str   { color: var(--teal-300); }
.terminal__body .c-fn    { color: #F0ABFC; }
.terminal__body .c-cmt   { color: #6B7A94; }
.terminal__cursor {
    display: inline-block; width: 7px; height: 1em; background: var(--teal-400);
    vertical-align: text-bottom; animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------------- */
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--paper-50); }
.section--dark { background: var(--navy-950); color: rgba(255,255,255,.75); }
.section--dark h2, .section--dark h3 { color: var(--paper-0); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 14px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------------------------------------------------------------
   Services grid (home + services index)
   --------------------------------------------------------------- */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
    background: var(--paper-0); border: 1px solid var(--line-200); border-radius: var(--radius-md);
    padding: 26px 24px; box-shadow: var(--shadow-card);
    transition: transform .2s var(--ease), border-color .2s;
    display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--teal-400); }
.service-card__icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(45,212,191,.14), rgba(96,165,250,.14));
    color: var(--teal-400);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.service-card p { font-size: .92rem; color: var(--slate-500); flex-grow: 1; margin-bottom: 16px; }
.service-card__link {
    font-size: .87rem; font-weight: 600; color: var(--ink-900);
    display: inline-flex; align-items: center; gap: 6px;
}
.service-card__link svg { width: 14px; height: 14px; transition: transform .15s; }
.service-card:hover .service-card__link svg { transform: translateX(3px); }

/* ---------------------------------------------------------------
   Blog
   --------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.blog-card {
    background: var(--paper-0); border: 1px solid var(--line-200); border-radius: var(--radius-md);
    padding: 26px 24px; box-shadow: var(--shadow-card);
}
.blog-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.blog-card h2 a { color: var(--ink-900); }
.blog-card h2 a:hover { color: var(--navy-900); text-decoration: underline; }
.blog-card__meta { font-size: .8rem; color: var(--slate-500); margin-bottom: 10px; }
.blog-card p { font-size: .92rem; color: var(--slate-500); margin-bottom: 14px; }
.blog-content { max-width: 760px; }
.blog-content h2 { font-size: 1.5rem; margin: 36px 0 14px; }
.blog-content h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.blog-content h4 { font-size: 1.05rem; margin: 22px 0 8px; }
.blog-content ul, .blog-content ol { margin: 0 0 20px 22px; color: var(--slate-600); line-height: 1.75; }
.blog-content ul { list-style: disc; } .blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: 6px; }
.blog-content blockquote { border-left: 3px solid var(--teal-400); padding: 4px 0 4px 18px; margin: 0 0 20px; color: var(--slate-600); font-style: italic; }
.blog-content a { color: var(--navy-900); text-decoration: underline; }
.blog-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 8px 0 20px; }
.blog-content pre, .blog-content code { font-family: var(--font-mono); font-size: .9em; background: var(--paper-50); border-radius: 6px; }
.blog-content code { padding: 2px 6px; } .blog-content pre { padding: 14px 16px; overflow-x: auto; margin-bottom: 20px; }
.blog-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .95rem; }
.blog-content th, .blog-content td { border: 1px solid var(--line-200); padding: 8px 12px; text-align: left; }
.blog-faqs { margin-top: 48px; }
.blog-content p { margin-bottom: 20px; font-size: 1.02rem; line-height: 1.75; color: var(--slate-600); }

/* FAQ block (service pages; mirrors the FAQPage JSON-LD exactly) */
.faq-item { border-top: 1px solid var(--line-200); padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line-200); }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.faq-item p { color: var(--slate-600); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------
   Process steps
   --------------------------------------------------------------- */
.process-list { display: grid; grid-template-columns: repeat(var(--proc-cols, 4), 1fr); gap: 20px; counter-reset: step; }
.process-step { position: relative; padding-top: 8px; }
.process-step::before {
    counter-increment: step; content: counter(step);
    font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--navy-900); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
    box-shadow: 0 0 0 5px rgba(45, 212, 191, .18);
}
.section--dark .process-step::before { background: var(--teal-400); color: var(--navy-950); box-shadow: 0 0 0 5px rgba(45, 212, 191, .16); }
.process-step h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 8px; color: var(--ink-900); }
.process-step p { font-size: .9rem; color: var(--slate-500); }
.section--dark .process-step h4 { color: var(--paper-0); }

/* ---------------------------------------------------------------
   Benefits list
   --------------------------------------------------------------- */
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .96rem; color: var(--slate-600); }
.check-list svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--teal-400); margin-top: 3px; }

/* ---------------------------------------------------------------
   Case studies / portfolio teaser
   --------------------------------------------------------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
    border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-200);
    display: flex; flex-direction: column; background: var(--paper-0);
}
.case-card__cover {
    height: 168px; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.9); position: relative;
}
.case-card__cover--1 { background: linear-gradient(135deg, #0B1220, #1B2740); }
.case-card__cover--2 { background: linear-gradient(135deg, #123A38, #0B1220); }
.case-card__cover--3 { background: linear-gradient(135deg, #1B2A4A, #0B1220); }
.case-card__tag {
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
    color: var(--teal-300); background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 100px;
}
.case-card__body { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.case-card__body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case-card__body p { font-size: .9rem; color: var(--slate-500); flex-grow: 1; margin-bottom: 16px; }
.case-card__stat { font-family: var(--font-mono); font-size: .85rem; color: var(--teal-400) is; }
.case-card__stat { color: #0F9C8D; font-weight: 600; }

/* ---------------------------------------------------------------
   Logos / trust strip
   --------------------------------------------------------------- */
.trust-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; opacity: .7; }
.trust-strip span { font-family: var(--font-display); font-weight: 600; color: var(--slate-500); font-size: 1.1rem; letter-spacing: -.01em; }

/* ---------------------------------------------------------------
   Testimonial
   --------------------------------------------------------------- */
.testimonial {
    background: var(--navy-950); color: var(--paper-0);
    border-radius: var(--radius-lg); padding: 48px; display: grid;
    grid-template-columns: auto 1fr; gap: 32px; align-items: center;
}
.testimonial__mark { font-family: var(--font-display); font-size: 3.5rem; color: var(--teal-400); line-height: 1; }
.testimonial blockquote { font-size: 1.2rem; line-height: 1.6; margin-bottom: 18px; color: rgba(255,255,255,.92); }
.testimonial cite { font-style: normal; font-size: .88rem; color: rgba(255,255,255,.55); }

/* ---------------------------------------------------------------
   CTA band
   --------------------------------------------------------------- */
.cta-band {
    background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
    border-radius: var(--radius-lg); padding: 56px; color: var(--paper-0);
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--paper-0); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.65); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   Contact form + page
   --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .87rem; font-weight: 600; color: var(--ink-900); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: .8rem 1rem; border: 1px solid var(--line-200); border-radius: var(--radius-sm);
    font-size: .95rem; color: var(--ink-900); background: var(--paper-0); transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--teal-400); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--slate-500); margin-top: 10px; }
.field-invalid { border-color: #DC2626 !important; }
.form-success, .form-error {
    padding: 14px 18px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 22px;
}
.form-success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.form-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

.contact-info-card {
    background: var(--navy-950); color: var(--paper-0); border-radius: var(--radius-lg); padding: 36px;
}
.contact-info-card h3 { color: var(--paper-0); margin-bottom: 6px; }
.contact-info-card p { color: rgba(255,255,255,.6); margin-bottom: 26px; }
.contact-info-list { display: grid; gap: 18px; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .93rem; }
.contact-info-list svg { color: var(--teal-400); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.contact-info-list a { color: var(--paper-0); }

/* ---------------------------------------------------------------
   About page
   --------------------------------------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { padding: 24px; border: 1px solid var(--line-200); border-radius: var(--radius-md); }
.value-card svg { color: var(--teal-400); width: 26px; height: 26px; margin-bottom: 14px; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: .9rem; color: var(--slate-500); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-row strong { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--ink-900); }
.stat-row span { font-size: .85rem; color: var(--slate-500); }

/* ---------------------------------------------------------------
   Service detail page
   --------------------------------------------------------------- */
.detail-hero {
    background:
        linear-gradient(90deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.78) 42%, rgba(11,18,32,.3) 100%),
        var(--hero-img, none) center / cover no-repeat,
        var(--navy-950);
    color: var(--paper-0); padding: 64px 0 72px; position: relative;
}
.blog-featured { max-width: 760px; margin: 0 0 32px; }
.blog-featured img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line-200); }
.breadcrumbs { font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: rgba(255,255,255,.75); }
.breadcrumbs a:hover { color: var(--teal-400); }
.detail-hero h1 { color: var(--paper-0); margin: 14px 0 12px; max-width: 20ch; }
.detail-hero .lede { color: rgba(255,255,255,.7); max-width: 58ch; }
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
.detail-layout .lede { margin-bottom: 20px; }
.sidebar-card {
    background: var(--paper-50); border: 1px solid var(--line-200); border-radius: var(--radius-md);
    padding: 26px; position: sticky; top: 100px;
}
.sidebar-card h4 { font-size: .95rem; margin-bottom: 14px; }
.sidebar-card ul { display: grid; gap: 10px; margin-bottom: 20px; }
.sidebar-card a.related-link {
    font-size: .9rem; color: var(--slate-600); display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid var(--line-200);
}
.sidebar-card a.related-link:hover { color: var(--teal-400); }

/* ---------------------------------------------------------------
   404
   --------------------------------------------------------------- */
.error-page { padding: 120px 0; text-align: center; }
.error-page .error-code { font-family: var(--font-mono); font-size: .95rem; color: var(--teal-400); }
.error-page h1 { margin: 16px 0 14px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { background: var(--paper-50); border-top: 1px solid var(--line-200); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: repeat(var(--footer-cols, 5), 1fr); gap: 32px 28px; padding-bottom: 44px; }
.footer__brand {
    grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px 56px; align-items: start; padding-bottom: 8px;
    order: 2; border-top: 1px solid var(--line-200); padding-top: 32px; margin-top: 4px;
}
.footer__brand .footer__desc { max-width: 52ch; }
.footer__brand .footer__contact {
    background: var(--paper-0); border: 1px solid var(--line-200); border-radius: var(--radius-lg);
    padding: 22px 24px; gap: 16px; justify-self: end; width: min(100%, 520px);
}
.footer__contact address { font-style: normal; line-height: 1.55; }
@media (max-width: 760px) { .footer__brand { grid-template-columns: 1fr; } .footer__brand .footer__contact { justify-self: stretch; width: auto; } }
.footer__desc { font-size: .88rem; margin: 14px 0 20px; max-width: 32ch; }
.footer__contact { display: grid; gap: 12px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--slate-600); }
.footer__contact svg { width: 16px; height: 16px; color: var(--teal-400); flex-shrink: 0; margin-top: 2px; }
.footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-900); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: .87rem; color: var(--slate-600); }
.footer__col a:hover { color: var(--teal-400); }
.footer__bottom {
    border-top: 1px solid var(--line-200); padding: 22px 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer__bottom p { font-size: .82rem; color: var(--slate-500); }
.footer__bottom-links { display: flex; gap: 18px; }
.footer__bottom-links a:hover { color: var(--teal-400); }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; }
    .services-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
    .process-list { grid-template-columns: repeat(2, 1fr); }
    .value-grid, .stat-row { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
    .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
    .mega-menu-content { grid-template-columns: repeat(3, 1fr); }
    .mega-menu-column--wide .mega-menu-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .nav__toggle { display: flex; }
    .nav {
        position: fixed; inset: 76px 0 0 0; background: var(--paper-0);
        transform: translateX(100%); transition: transform .25s var(--ease);
        overflow-y: auto; padding: 20px 0 40px; border-top: 1px solid var(--line-200);
    }
    .nav.is-open { transform: translateX(0); }
    .nav-menu { flex-direction: column; align-items: stretch; padding-inline: 24px; gap: 6px; }
    .nav-menu > li > a { padding: 14px 6px; font-size: 1rem; }
    .mega-menu {
        position: static; transform: none; width: auto; opacity: 1; visibility: visible; pointer-events: auto;
        display: none; box-shadow: none; border: none; background: var(--paper-50);
        margin-top: 6px; padding: 16px 8px; border-radius: var(--radius-md); max-height: none; overflow: visible;
    }
    .has-mega-menu.is-open .mega-menu,
    .has-mega-menu:hover .mega-menu,
    .has-mega-menu:focus-within .mega-menu { transform: none; }
    .has-mega-menu.is-open .mega-menu { display: block; }
    .mega-menu-content { grid-template-columns: 1fr; gap: 18px; }
    .mega-menu-column--wide .mega-menu-list { grid-template-columns: 1fr; }
    .testimonial { grid-template-columns: 1fr; padding: 32px; }
    .cta-band { padding: 36px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .services-grid, .case-grid, .value-grid, .stat-row, .process-list, .blog-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 64px; }
    .section { padding: 56px 0; }
}

/* Related services (below the service content) */
.sidebar-card__text { font-size: .9rem; color: var(--slate-600); margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 8px; }
.related-card {
    display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--paper-0);
    border: 1px solid var(--line-200); border-radius: var(--radius-lg); color: inherit;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--teal-400); }
.related-card__pic {
    width: 56px; height: 56px; border-radius: 14px; margin-bottom: 10px;
    background: linear-gradient(135deg, var(--navy-900), #26385F); color: #5EEAD4;
    display: flex; align-items: center; justify-content: center;
}
.related-card__pic svg { width: 28px; height: 28px; }
.related-card__cat { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); }
.related-card h3 { font-size: 1.05rem; color: var(--ink-900); }
.related-card p { font-size: .88rem; color: var(--slate-600); margin: 0 0 8px; flex: 1; }
.related-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--navy-900); }
.related-card__more svg { width: 14px; height: 14px; }

/* Quote popup */
.quote-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.quote-modal[hidden] { display: none; }
.quote-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 16, 30, .62); backdrop-filter: blur(2px); }
.quote-modal__dialog {
    position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--paper-0); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
    animation: quote-in .22s var(--ease);
}
@keyframes quote-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.quote-modal__close { position: absolute; top: 10px; right: 14px; font-size: 1.8rem; line-height: 1; width: 40px; height: 40px; color: var(--slate-500); border-radius: 50%; }
.quote-modal__close:hover { background: var(--paper-50); color: var(--ink-900); }
.quote-modal h2 { font-size: 1.5rem; margin: 6px 0 8px; }
.quote-modal__lede { color: var(--slate-600); font-size: .95rem; margin-bottom: 20px; }
.quote-modal .form-group { margin-bottom: 14px; }
.quote-modal .form-row { gap: 14px; margin-bottom: 0; }
.quote-phone { grid-template-columns: 1fr 1.2fr; }
.quote-modal__error { color: #B42318; font-size: .88rem; margin-bottom: 12px; }
.quote-modal__note { text-align: center; font-size: .78rem; color: var(--slate-500); margin: 12px 0 0; }
.quote-modal__done { text-align: center; padding: 20px 0 6px; }
.quote-modal__done p { color: var(--slate-600); margin: 8px 0 22px; }
.quote-modal__tick { width: 56px; height: 56px; border-radius: 50%; background: rgba(45,212,191,.18); color: #0F766E; display: inline-flex; align-items: center; justify-content: center; }
.quote-modal__tick svg { width: 28px; height: 28px; }
body.quote-open { overflow: hidden; }
.footer__quote { color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .quote-modal__dialog { padding: 24px 18px; } .quote-phone { grid-template-columns: 1fr; } }

.rich-intro { max-width: none; margin-bottom: 20px; }
.rich-intro p { font-size: 1.1rem; line-height: 1.7; }

.contact-phone { grid-template-columns: 1fr 1.2fr; }
@media (max-width: 640px) { .contact-phone { grid-template-columns: 1fr; } }

/* Floating WhatsApp button - fixed bottom-right on every page */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #128c7e; }
@media (max-width: 760px) { .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* Category landing page (/development) */
.landing-card__tagline { font-weight: 600; color: var(--navy-900, var(--slate-700)); flex-grow: 0 !important; margin-bottom: 8px !important; }
.landing-card__summary { margin-bottom: 14px !important; flex-grow: 0 !important; }
.landing-card__points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; flex-grow: 1; }
.landing-card__points li { display: flex; gap: 8px; font-size: .86rem; color: var(--slate-600); line-height: 1.45; }
.landing-card__points svg { width: 15px; height: 15px; color: var(--teal-400); flex-shrink: 0; margin-top: 2px; }
.mega-menu-column h4 a, .footer__col h4 a { color: inherit; }
.mega-menu-column h4 a:hover, .footer__col h4 a:hover { color: var(--teal-400); }
@media (max-width: 980px) { .landing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .landing-grid { grid-template-columns: 1fr; } }
.btn-outline-light { border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Real-life examples / case studies on service pages */
.a-note { font-size: .86rem; color: var(--slate-500); }
.case-list { display: grid; gap: 16px; }
.case-card { background: var(--paper-0); border: 1px solid var(--line-200); border-left: 4px solid var(--teal-400); border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-card); }
.case-card__tag { display: inline-block; padding: 0; margin-left: 0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-500, var(--teal-400)); font-weight: 700; margin-bottom: 6px; }
.case-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.case-card dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: .92rem; }
.case-card dt { font-weight: 700; color: var(--navy-900, var(--slate-700)); }
.case-card dd { margin: 0; color: var(--slate-600); }
@media (max-width: 640px) { .case-card dl { grid-template-columns: 1fr; gap: 2px; } .case-card dd { margin-bottom: 8px; } }

/* Blog post heading runs the full width of the hero */
.detail-hero--wide h1 { max-width: none; }
