/* ==========================================================================
   NISTTECH – Estimation & Vastu
   Hand-written, mobile-first stylesheet. No framework.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    /* Colours */
    --c-navy-900: #0a1d30;
    --c-navy-800: #0f2a44;
    --c-navy-700: #173a5c;
    --c-navy-600: #22507c;
    --c-accent:   #f2a516;   /* construction amber */
    --c-accent-d: #d48c05;
    --c-ink:      #1b2430;
    --c-body:     #4a5565;
    --c-muted:    #6b7685;
    --c-line:     #e3e7ec;
    --c-bg:       #ffffff;
    --c-bg-soft:  #f5f7fa;
    --c-bg-warm:  #fbf8f2;
    --c-success:  #13795b;
    --c-error:    #b42318;
    --c-blueprint-line: rgba(255,255,255,.07);

    /* Type */
    --f-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-h4: 1.125rem;
    --fs-h3: 1.3rem;
    --fs-h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
    --fs-h1: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);

    /* Spacing */
    --sp-1: .25rem;
    --sp-2: .5rem;
    --sp-3: .75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;
    --sp-9: 6rem;
    --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);

    /* Misc */
    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(15,42,68,.06), 0 1px 3px rgba(15,42,68,.08);
    --shadow-md: 0 8px 24px rgba(15,42,68,.10);
    --shadow-lg: 0 18px 50px rgba(15,42,68,.16);
    --container: 1200px;
    --header-h: 72px;
    --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: var(--fs-md);
    line-height: 1.65;
    color: var(--c-body);
    background: var(--c-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-navy-600); text-decoration: none; }
a:hover { color: var(--c-navy-800); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--c-ink); line-height: 1.2; margin: 0 0 var(--sp-4); letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 200;
    background: var(--c-accent); color: var(--c-navy-900); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--c-bg-soft); }
.section--warm { background: var(--c-bg-warm); }
.section--dark { background: var(--c-navy-800); color: #c9d4e0; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.blueprint {
    background-color: var(--c-navy-800);
    background-image:
        linear-gradient(var(--c-blueprint-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-blueprint-line) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

.section-head { max-width: 680px; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--c-navy-600);
    margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--c-accent); }
.section--dark .eyebrow, .blueprint .eyebrow { color: var(--c-accent); }
.lead { font-size: var(--fs-lg); color: var(--c-body); }

.grid { display: grid; gap: var(--sp-5); }

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
    font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .02em;
    line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--c-accent); color: var(--c-navy-900); }
.btn--accent:hover { background: #ffb829; color: var(--c-navy-900); box-shadow: 0 6px 18px rgba(242,165,22,.35); }
.btn--primary { background: var(--c-navy-800); color: #fff; }
.btn--primary:hover { background: var(--c-navy-700); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-navy-800); border-color: #fff; }
.btn--outline { border-color: var(--c-navy-800); color: var(--c-navy-800); }
.btn--outline:hover { background: var(--c-navy-800); color: #fff; }
.btn--sm { padding: .6rem 1.1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-family: var(--f-head); font-size: var(--fs-sm); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--c-line); }
.site-header__inner { display: flex; align-items: center; gap: var(--sp-4); height: var(--header-h); transition: height .25s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 62px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--c-ink); margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; color: var(--c-navy-800); }
.brand__sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: #9fb1c4; }

.nav-toggle, .nav-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; color: var(--c-ink);
}
.header-actions { display: none; }

/* Mobile off-canvas navigation */
.primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: 120;
    background: #fff; box-shadow: var(--shadow-lg);
    display: none; flex-direction: column;
    transform: translateX(100%); transition: transform .3s var(--ease);
    overflow-y: auto;
}
.primary-nav.is-mounted { display: flex; }
.primary-nav.is-open { transform: translateX(0); }
.primary-nav__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.nav-list { padding: 8px 0; }
.nav-list > li { border-bottom: 1px solid var(--c-line); }
.nav-link { display: block; padding: 14px 20px; color: var(--c-ink); font-family: var(--f-head); font-weight: 600; }
.nav-link.is-active { color: var(--c-navy-600); box-shadow: inset 3px 0 0 var(--c-accent); }
.nav-dd-row { display: flex; align-items: center; }
.nav-dd-row .nav-link { flex: 1; }
.dd-toggle { width: 52px; height: 48px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; color: var(--c-ink); }
.dd-toggle .icon { width: 18px; height: 18px; transition: transform .2s; }
.dd-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.dropdown { display: none; background: var(--c-bg-soft); padding: 6px 0; }
.dropdown.is-open { display: block; }
.dropdown a { display: flex; align-items: center; gap: .6rem; padding: 10px 20px 10px 28px; color: var(--c-body); font-size: var(--fs-sm); }
.dropdown a:hover, .dropdown a.is-active { color: var(--c-navy-800); background: #eaeef3; }
.dropdown .icon { color: var(--c-navy-600); }
.primary-nav__foot { margin-top: auto; padding: 20px 16px; display: grid; gap: 12px; }
.nav-phone-mobile { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; color: var(--c-navy-800); }
.nav-backdrop { position: fixed; inset: 0; z-index: 99; background: rgba(10,29,48,.5); }
body.nav-open { overflow: hidden; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; color: #dbe4ee; overflow: hidden; }
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 80% 30%, rgba(242,165,22,.12), transparent 55%),
                linear-gradient(180deg, rgba(10,29,48,0) 60%, rgba(10,29,48,.55));
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--sp-7); padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); align-items: center; }
.hero h1 { color: #fff; margin-bottom: var(--sp-5); }
.hero h1 span { color: var(--c-accent); }
.hero__lead { font-size: var(--fs-lg); max-width: 560px; color: #c3d0dd; margin-bottom: var(--sp-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-6); font-size: var(--fs-sm); color: #a9bacb; }
.hero__badges li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__badges .icon { width: 18px; height: 18px; color: var(--c-accent); }
.hero__art { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.hero__art img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }

/* ---------- 7. Page banner ---------- */
.page-banner { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 5rem); color: #c3d0dd; }
.page-banner { background-color: var(--c-navy-800); background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; }
.page-banner h1 { color: #fff; margin-bottom: var(--sp-3); }
.page-banner__lead { max-width: 640px; margin: 0; font-size: var(--fs-lg); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: var(--sp-4); }
.breadcrumb li { color: var(--c-accent); }
.breadcrumb li + li::before { content: "/"; color: #7e93a8; margin-right: .4rem; }
.breadcrumb a { color: #a9bacb; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 8. Intro / split ---------- */
.split { display: grid; gap: var(--sp-7); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__media::before {
    content: ""; position: absolute; inset: 18px -14px -14px 18px; z-index: -1;
    border: 2px solid var(--c-accent); border-radius: var(--radius-lg);
}
.split__media { isolation: isolate; }
.checklist { display: grid; gap: .65rem; margin-bottom: var(--sp-5); }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; color: var(--c-success); margin-top: 3px; }
.checklist--2 { grid-template-columns: 1fr; }

/* ---------- 9. Counters ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--c-navy-800); padding: var(--sp-6) var(--sp-4); text-align: center; }
.stat__num { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); color: #fff; line-height: 1.1; }
.stat__num em { font-style: normal; color: var(--c-accent); }
.stat__label { font-size: var(--fs-sm); color: #a9bacb; }

/* ---------- 10. Cards ---------- */
.cards { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.card {
    position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
    padding: var(--sp-6); display: flex; flex-direction: column;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: var(--radius); margin-bottom: var(--sp-5);
    background: var(--c-navy-800); color: var(--c-accent);
}
.card__icon .icon { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; margin-bottom: var(--sp-3); }
.card h2, .card h3 { font-size: 1.15rem; margin-bottom: var(--sp-3); }
.card h2 a, .card h3 a { color: inherit; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card:focus-within { box-shadow: 0 0 0 3px var(--c-accent); }
.card p { font-size: var(--fs-sm); flex: 1; }
.card .link-arrow { margin-top: var(--sp-2); }
.card__num { position: absolute; top: 20px; right: 24px; font-family: var(--f-head); font-weight: 800; font-size: 2rem; color: #eef1f5; }

.features { display: grid; gap: var(--sp-6); }
.feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.feature__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(242,165,22,.15); color: var(--c-accent-d); }
.section--dark .feature__icon { background: rgba(242,165,22,.15); color: var(--c-accent); }
.feature h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.feature p { font-size: var(--fs-sm); margin: 0; }

/* ---------- 11. Process ---------- */
.process { display: grid; gap: var(--sp-5); counter-reset: step; }
.process__step { position: relative; padding: var(--sp-5) var(--sp-5) var(--sp-5) 4.5rem; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--c-line); }
.process__step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    position: absolute; left: 1.25rem; top: 1.25rem;
    width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--c-accent); color: var(--c-navy-900); font-family: var(--f-head); font-weight: 800; font-size: .85rem;
}
.process__step h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.process__step p { font-size: var(--fs-sm); margin: 0; }

/* ---------- 12. Testimonials ---------- */
.slider { position: relative; max-width: 820px; margin-inline: auto; }
.slider__track { display: flex; transition: transform .5s var(--ease); }
.slider__viewport { overflow: hidden; }
.slide { flex: 0 0 100%; padding: 0 4px; }
.testimonial { background: #fff; border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); text-align: center; }
.testimonial .icon { margin: 0 auto var(--sp-4); width: 40px; height: 40px; color: var(--c-accent); }
.testimonial blockquote { margin: 0 0 var(--sp-5); font-size: var(--fs-lg); color: var(--c-ink); }
.testimonial cite { font-style: normal; font-weight: 700; font-family: var(--f-head); color: var(--c-ink); display: block; }
.testimonial small { color: var(--c-muted); }
.slider__controls { display: flex; justify-content: center; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.slider__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #c9d1db; transition: width .2s, background .2s; }
.slider__dot[aria-current="true"] { width: 28px; border-radius: 6px; background: var(--c-navy-800); }
.sample-note { text-align: center; font-size: var(--fs-xs); color: var(--c-muted); margin-top: var(--sp-4); }

/* ---------- 13. CTA strip ---------- */
.cta-strip { padding-block: var(--sp-7); }
.cta-strip__inner { display: grid; gap: var(--sp-5); align-items: center; }
.cta-strip h2 { color: #fff; margin: 0 0 var(--sp-2); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
.cta-strip p { margin: 0; color: #c3d0dd; }
.cta-strip__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- 14. About ---------- */
.mv-cards { display: grid; gap: var(--sp-5); }
.mv-card { padding: var(--sp-6); border-radius: var(--radius-lg); background: #fff; border-top: 4px solid var(--c-accent); box-shadow: var(--shadow-sm); }
.mv-card .icon { width: 36px; height: 36px; color: var(--c-navy-600); margin-bottom: var(--sp-4); }
.profile-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.profile-table th, .profile-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--c-line); vertical-align: top; font-size: var(--fs-sm); }
.profile-table th { width: 38%; font-family: var(--f-head); color: var(--c-ink); background: #fafbfc; font-weight: 600; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { padding: .3rem .75rem; border-radius: 999px; background: var(--c-bg-soft); border: 1px solid var(--c-line); font-size: var(--fs-xs); font-weight: 600; color: var(--c-navy-700); }
.team { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.team-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--c-bg-soft); }
.team-card__body { padding: var(--sp-4); }
.team-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.team-card p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
.industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.industry { text-align: center; padding: var(--sp-5) var(--sp-3); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); }
.industry .icon { width: 36px; height: 36px; margin: 0 auto var(--sp-3); color: var(--c-accent); }
.industry h3 { font-size: 1rem; margin: 0; }

/* ---------- 15. Service detail ---------- */
.service-layout { display: grid; gap: var(--sp-7); }
.service-content > section + section { margin-top: var(--sp-7); }
.service-content h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.included { display: grid; gap: .75rem; }
.included li { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; background: var(--c-bg-soft); border-radius: var(--radius); font-size: var(--fs-sm); color: var(--c-ink); }
.included .icon { width: 20px; height: 20px; color: var(--c-success); margin-top: 2px; }
.deliverables { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.deliverables th, .deliverables td { padding: .8rem 1rem; border-bottom: 1px solid var(--c-line); text-align: left; }
.deliverables thead th { background: var(--c-navy-800); color: #fff; font-family: var(--f-head); font-weight: 600; }
.deliverables td:last-child { white-space: nowrap; color: var(--c-navy-600); font-weight: 600; }
.benefits { display: grid; gap: var(--sp-4); }
.benefit { padding: var(--sp-5); border-left: 4px solid var(--c-accent); background: var(--c-bg-warm); border-radius: 0 var(--radius) var(--radius) 0; }
.benefit h3 { font-size: 1.02rem; margin-bottom: var(--sp-2); }
.benefit p { margin: 0; font-size: var(--fs-sm); }

.accordion { border-top: 1px solid var(--c-line); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__item h3 { margin: 0; font-size: 1rem; }
.accordion__btn {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
    padding: 1.1rem 0; background: none; border: 0; text-align: left; font-family: var(--f-head); font-weight: 600; color: var(--c-ink);
}
.accordion__btn .icon { width: 20px; height: 20px; transition: transform .25s; color: var(--c-navy-600); }
.accordion__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion__panel { padding: 0 0 1.1rem; font-size: var(--fs-sm); }
.accordion__panel p { margin: 0; }

.sidebar { display: grid; gap: var(--sp-5); align-content: start; }
.side-box { border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--sp-5); background: #fff; }
.side-box h2 { font-size: 1.1rem; margin-bottom: var(--sp-4); }
.side-services a { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: var(--radius); color: var(--c-ink); font-size: var(--fs-sm); font-weight: 500; }
.side-services a:hover { background: var(--c-bg-soft); }
.side-services a.is-active { background: var(--c-navy-800); color: #fff; }
.side-services a.is-active .icon { color: var(--c-accent); }
.side-services .icon { color: var(--c-navy-600); }
.side-box--dark { background: var(--c-navy-800); border-color: var(--c-navy-800); color: #c9d4e0; }
.side-box--dark h2 { color: #fff; }
.side-box--dark .form-field label { color: #dbe4ee; }

/* ---------- 16. Forms ---------- */
.form-grid { display: grid; gap: var(--sp-4); }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.form-field .req { color: var(--c-error); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: .75rem .9rem; border: 1px solid #cdd4dd; border-radius: var(--radius); background: #fff; color: var(--c-ink);
    transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--c-navy-600); box-shadow: 0 0 0 3px rgba(34,80,124,.18); }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--c-error); }
.field-error { color: var(--c-error); font-size: var(--fs-xs); margin: 0; font-weight: 500; }
.side-box--dark .field-error { color: #ffb4ab; }
.form-hint { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; }
.file-drop { position: relative; border: 2px dashed #cdd4dd; border-radius: var(--radius); padding: 1rem; text-align: center; font-size: var(--fs-sm); color: var(--c-muted); transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--c-navy-600); background: var(--c-bg-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .icon { margin: 0 auto .4rem; color: var(--c-navy-600); }
.file-drop__name { display: block; margin-top: .3rem; font-weight: 600; color: var(--c-ink); word-break: break-all; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: var(--sp-5); font-size: var(--fs-sm); border: 1px solid; }
.alert--success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.alert--error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.alert strong { display: block; margin-bottom: .2rem; }

/* ---------- 17. Contact ---------- */
.contact-layout { display: grid; gap: var(--sp-7); }
.contact-cards { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.contact-card { display: flex; gap: var(--sp-4); padding: var(--sp-5); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.contact-card__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; background: var(--c-navy-800); color: var(--c-accent); }
.contact-card h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); margin-bottom: .25rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--c-ink); font-weight: 600; word-break: break-word; }
.btn--whatsapp { background: #1f8f4e; color: #fff; }
.btn--whatsapp:hover { background: #177a41; color: #fff; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-md); border: 1px solid var(--c-line); }
.social--dark a { background: var(--c-bg-soft); color: var(--c-navy-800); border-color: var(--c-line); }
.map-wrap { line-height: 0; background: var(--c-bg-soft); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.2); }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--c-navy-900); color: #9fb1c4; font-size: var(--fs-sm); padding-top: var(--sp-8); }
.footer-grid { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer-about p { margin: var(--sp-4) 0 var(--sp-5); }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: var(--sp-4); position: relative; padding-bottom: .6rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--c-accent); }
.footer-links { display: grid; gap: .55rem; }
.footer-links a, .footer-contact a { color: #9fb1c4; }
.footer-links a:hover, .footer-contact a:hover { color: var(--c-accent); }
.footer-contact { display: grid; gap: .8rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { color: var(--c-accent); margin-top: 3px; }
.social { display: flex; gap: .5rem; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); color: #dbe4ee; transition: background .2s, color .2s; }
.social a:hover { background: var(--c-accent); color: var(--c-navy-900); border-color: var(--c-accent); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: var(--sp-4); }
.footer-bottom__inner { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: var(--sp-4); }
.footer-bottom a { color: #9fb1c4; }
.footer-bottom a:hover { color: #fff; }

/* Floating buttons */
.fab-whatsapp, .back-to-top {
    position: fixed; right: 16px; z-index: 90; width: 52px; height: 52px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); border: 0;
}
.fab-whatsapp { bottom: 16px; background: #1f8f4e; color: #fff; }
.fab-whatsapp:hover { color: #fff; background: #177a41; }
.fab-whatsapp .icon { width: 28px; height: 28px; }
.back-to-top { bottom: 80px; background: var(--c-navy-800); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 19. Legal / 404 ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: var(--sp-6); }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: .35rem; }
.notfound { text-align: center; padding-block: var(--sp-9); }
.notfound__code { font-family: var(--f-head); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; color: var(--c-navy-800); }
.notfound__code span { color: var(--c-accent); }
.notfound .hero__ctas { justify-content: center; }

/* ---------- 20. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 480px) {
    .container { padding-inline: 20px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .industries { grid-template-columns: repeat(3, 1fr); }
    .checklist--2 { grid-template-columns: 1fr 1fr; }
    .footer-bottom__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 768px) {
    .container { padding-inline: 28px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .mv-cards { grid-template-columns: repeat(3, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .benefits { grid-template-columns: repeat(3, 1fr); }
    .included { grid-template-columns: 1fr 1fr; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-strip__inner { grid-template-columns: 1fr auto; }
    .contact-cards { grid-template-columns: 1fr 1fr; }
    .form-grid--2 { grid-template-columns: 1fr 1fr; }
    .form-grid--2 .span-2 { grid-column: span 2; }
    .testimonial { padding: var(--sp-7); }
}

@media (min-width: 1024px) {
    :root { --header-h: 84px; }
    .nav-toggle, .nav-close, .primary-nav__head, .primary-nav__foot, .nav-backdrop { display: none !important; }
    .brand { margin-right: 0; }
    .primary-nav {
        display: flex;
        position: static; width: auto; transform: none; visibility: visible; box-shadow: none; background: none;
        overflow: visible; flex-direction: row; margin-inline: auto;
    }
    .nav-list { display: flex; padding: 0; gap: .25rem; }
    .nav-list > li { border: 0; position: relative; }
    .nav-link { padding: .5rem .9rem; font-size: var(--fs-sm); border-radius: var(--radius); position: relative; }
    .nav-link.is-active { box-shadow: none; }
    .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 2px; height: 2px; background: var(--c-accent); transform: scaleX(0); transition: transform .2s var(--ease); }
    .nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
    .nav-dd-row .nav-link { padding-right: .2rem; }
    .dd-toggle { width: 28px; height: 36px; }
    .dropdown {
        display: block; position: absolute; top: calc(100% + 10px); left: -10px; min-width: 290px; padding: 8px;
        background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--c-line);
        opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
    }
    .dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
    .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
    .dropdown a { padding: .65rem .8rem; border-radius: var(--radius); }
    .header-actions { display: flex; align-items: center; gap: var(--sp-4); }
    .header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: var(--fs-sm); color: var(--c-ink); white-space: nowrap; }
    .header-phone .icon { color: var(--c-navy-600); }

    .hero__inner { grid-template-columns: 1.1fr .9fr; }
    .split { grid-template-columns: 1fr 1fr; }
    .split--reverse .split__media { order: 2; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .cards--4 { grid-template-columns: repeat(4, 1fr); }
    .process { grid-template-columns: repeat(5, 1fr); }
    .process__step { padding: 4.25rem var(--sp-5) var(--sp-5); }
    .process__step::before { top: 1.25rem; left: var(--sp-5); }
    .process--vertical { grid-template-columns: 1fr; }
    .process--vertical .process__step { padding: var(--sp-5) var(--sp-5) var(--sp-5) 4.5rem; }
    .process--vertical .process__step::before { left: 1.25rem; }
    .features { grid-template-columns: repeat(3, 1fr); }
    .industries { grid-template-columns: repeat(5, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; }
    .service-layout { grid-template-columns: minmax(0, 1fr) 340px; }
    .sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
    .contact-layout { grid-template-columns: 5fr 7fr; align-items: start; }
    .contact-cards { grid-template-columns: 1fr; }
}

@media (min-width: 1280px) {
    .container { padding-inline: 32px; }
    .header-phone span { display: inline; }
}

@media (min-width: 1024px) and (max-width: 1179px) {
    .header-phone span { display: none; }
}
