/* ===================================================================
   FutureNest Technology — design tokens & base
=================================================================== */
:root {
    --ink: #0F1729;
    --ink-soft: #1B2740;
    --paper: #F7F5F0;
    --paper-dim: #EFEBE2;
    --amber: #E2963C;
    --amber-dark: #C57A26;
    --teal: #2F8F86;
    --teal-dark: #226b64;
    --slate: #4A5568;
    --slate-light: #8892A0;
    --line: #E4E0D8;
    --line-dark: #2A3654;
    --white: #FFFFFF;

    --font-display: 'Sora', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --max-width: 1180px;
    --radius: 10px;
    --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--slate); max-width: 62ch; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--amber);
    color: var(--ink);
    padding: 12px 20px;
    z-index: 1000;
    font-weight: 600;
    border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

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

/* ===================================================================
   Buttons
=================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-soft); }
.btn--accent { background: var(--amber); color: var(--ink); }
.btn--accent:hover { background: var(--amber-dark); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light { background: transparent; border-color: rgba(247,245,240,0.4); color: var(--paper); }
.btn--outline-light:hover { background: rgba(247,245,240,0.1); border-color: var(--paper); }
.btn--block { width: 100%; }
.btn--nav { margin-left: 20px; }

/* ===================================================================
   Header / Nav
=================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
}
.brand__text-accent { color: var(--teal); font-weight: 600; }
.brand__text--footer { font-size: 1.3rem; color: var(--paper); display: inline-block; margin-bottom: 12px; }

.site-nav__list {
    display: flex;
    gap: 30px;
    align-items: center;
}
.site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); border-bottom-color: var(--amber); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.mobile-nav {
    display: none;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }

body.nav-open .mobile-nav { display: block; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .site-nav, .btn--nav { display: none; }
    .nav-toggle { display: flex; }
}

/* ===================================================================
   Hero
=================================================================== */
.hero {
    background: var(--ink);
    color: var(--paper);
    padding: 90px 0 100px;
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}
.hero__eyebrow { color: var(--amber); font-weight: 600; margin-bottom: 14px; font-size: 0.95rem; }
.hero h1 { color: var(--paper); }
.hero p.lead { color: #C7CEDB; font-size: 1.1rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin-top: 54px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--paper); }
.hero__stats span { color: var(--slate-light); font-size: 0.88rem; }

.node-art { width: 100%; height: auto; }

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 70px; }
    .hero__stats { gap: 24px; }
}

/* ===================================================================
   Sections, generic
=================================================================== */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--teal); font-weight: 600; font-size: 0.9rem; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark p { color: #C7CEDB; }
.section--dim { background: var(--paper-dim); }

@media (max-width: 700px) {
    section { padding: 56px 0; }
}

/* ===================================================================
   Service rows (alternating, not identical cards)
=================================================================== */
.service-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 36px 0;
    border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row__icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    background: var(--paper-dim);
    color: var(--teal);
}
.service-row h3 { margin-bottom: 6px; }
.service-row p { margin: 0; }
.service-row__link {
    font-weight: 600;
    white-space: nowrap;
    color: var(--ink);
    border-bottom: 2px solid var(--amber);
    padding-bottom: 2px;
}
@media (max-width: 700px) {
    .service-row { grid-template-columns: 56px 1fr; }
    .service-row__link { grid-column: 2; }
}

/* Service grid (homepage summary cards — intentionally simpler, not the full row layout) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.service-grid__item {
    padding: 30px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.service-grid__item .service-row__icon { margin-bottom: 18px; }

/* ===================================================================
   Process timeline (real sequence — numbering justified here)
=================================================================== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.timeline__item { position: relative; padding-top: 18px; border-top: 3px solid var(--amber); }
.timeline__num { font-family: var(--font-display); font-size: 0.85rem; color: var(--teal); font-weight: 700; }
@media (max-width: 900px) {
    .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .timeline { grid-template-columns: 1fr; }
}

/* ===================================================================
   Values / grid cards
=================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 40px; }
@media (max-width: 700px) { .value-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   Stats bar
=================================================================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid var(--line-dark);
    padding-top: 40px;
    margin-top: 40px;
}
.stats-bar strong { display: block; font-family: var(--font-display); font-size: 2rem; }
.stats-bar span { color: var(--slate-light); font-size: 0.9rem; }
@media (max-width: 700px) { .stats-bar { grid-template-columns: 1fr 1fr; } }

/* ===================================================================
   Testimonials (scroll-snap, no JS library)
=================================================================== */
.testimonial-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}
.testimonial-card {
    scroll-snap-align: start;
    flex: 0 0 min(420px, 85vw);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}
.testimonial-card p { font-size: 1.05rem; color: var(--ink); }
.testimonial-card__name { font-weight: 700; font-family: var(--font-display); font-size: 0.95rem; }
.testimonial-card__role { color: var(--slate-light); font-size: 0.85rem; }

/* ===================================================================
   CTA banner
=================================================================== */
.cta-banner { background: var(--teal); color: var(--white); }
.cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }

/* ===================================================================
   Forms
=================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
input, textarea, select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.98rem;
    background: var(--white);
    color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
textarea { resize: vertical; min-height: 140px; }
.field { margin-bottom: 18px; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status {
    background: #E9F5F3;
    border: 1px solid var(--teal);
    color: var(--teal-dark);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 500;
}
.error-list { background: #FBEAEA; border: 1px solid #D9534F; color: #A02622; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; }
.error-list li { margin-bottom: 4px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   Contact page layout
=================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info__item { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-info__item:first-child { border-top: none; }
.contact-info__item strong { display: block; margin-bottom: 3px; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ===================================================================
   Blog
=================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 34px; }
.post-card { border-top: 1px solid var(--line); padding-top: 22px; }
.post-card__meta { color: var(--slate-light); font-size: 0.85rem; margin-bottom: 10px; }
.post-card__meta .dot { margin: 0 6px; }
.post-card h3 a:hover { color: var(--teal); }
.post-body { max-width: 68ch; }
.post-body p { color: var(--ink); font-size: 1.05rem; }
.post-hero-meta { color: var(--slate-light); margin-bottom: 30px; }

/* ===================================================================
   FAQ
=================================================================== */
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.08rem; }

/* ===================================================================
   Careers
=================================================================== */
.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 26px 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.job-card__meta { color: var(--slate-light); font-size: 0.88rem; margin-top: 4px; }
.job-card__meta span { margin-right: 14px; }

/* ===================================================================
   Footer
=================================================================== */
.site-footer { background: var(--ink); color: var(--paper); padding-top: 64px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 46px;
}
.footer-col h3 { color: var(--paper); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #C7CEDB; font-size: 0.92rem; }
.footer-col a:hover { color: var(--amber); }
.footer-col--brand p { color: #9BA5B8; max-width: 30ch; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700;
}
.footer-social a:hover { border-color: var(--amber); color: var(--amber); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line-dark);
    padding: 22px 0;
    color: #8892A0;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-legal a { margin-left: 20px; color: #8892A0; }
.footer-legal a:hover { color: var(--amber); }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   Legal pages
=================================================================== */
.legal-content { max-width: 74ch; }
.legal-content h2 { margin-top: 2em; font-size: 1.3rem; }

/* ===================================================================
   404
=================================================================== */
.error-page { text-align: left; padding: 120px 0; }
.error-page .code { font-family: var(--font-display); font-size: 5rem; color: var(--amber); font-weight: 800; }
