/* =====================================================================
   Avant Flux — landing styles
   Vanilla CSS. Design tokens live in :root (see DESIGN.md).
   Change the theme by editing the tokens below — nothing else.
   ===================================================================== */

/* ------------------------------------------------------------------ *
   1. Design tokens
 * ------------------------------------------------------------------ */
:root {
    /* Colors */
    --color-text: #212529;
    --color-text-muted: rgba(0, 0, 0, 0.66);
    --color-bg: #ffffff;
    --color-accent: #F2B33D;
    --surface-dark: #232931;
    --surface-charcoal: #393E46;
    --surface-light: #EEEEEE;
    --on-dark: #EEEEEE;
    --on-dark-muted: rgba(255, 255, 255, 0.66);

    /* Typography */
    --font-body: "Comfortaa", system-ui, sans-serif;
    --font-display: "Lalezar", var(--font-body);

    /* Spacing (from DESIGN.md) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 56px;
    --space-xl: 96px;
    --space-2xl: 160px;

    /* Radius */
    --radius-card: 32px;
    --radius-pill: 160px;

    /* Layout */
    --maxw: 1280px;
    --gutter: clamp(1.25rem, 5vw, 5rem);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------ *
   2. Reset & base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    margin: 0;
    line-height: 1;
}

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

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

::selection { background: rgba(242, 179, 61, 0.35); }

.accent { color: var(--color-accent); }

/* ------------------------------------------------------------------ *
   3. Scroll-reveal (JS toggles .is-visible)
 * ------------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__scroll { animation: none; }
}

/* ------------------------------------------------------------------ *
   4. Buttons
 * ------------------------------------------------------------------ */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 1.25rem 2.6rem 1rem;
    border-radius: var(--radius-pill);
    color: #fff;
    box-shadow: inset 0 0 0 0.2rem #fff;
    transition: box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover, .btn:focus-visible {
    color: var(--surface-dark);
    box-shadow: inset 0 0 0 3.5rem #fff;
    outline: none;
}
.btn--accent {
    color: var(--color-accent);
    background: transparent;
    box-shadow: inset 0 0 0 0.2rem var(--color-accent);
}
.btn--accent:hover, .btn--accent:focus-visible {
    color: var(--surface-dark);
    box-shadow: inset 0 0 0 3.5rem var(--color-accent);
}

/* ------------------------------------------------------------------ *
   5. Nav
 * ------------------------------------------------------------------ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 1.5rem var(--gutter);
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav--scrolled {
    background: var(--surface-dark);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
}
.nav__icon {
    height: 32px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
}
.nav__logo { height: 28px; width: auto; display: block; }
.nav__menu {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 2vw, 1.9rem);
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__menu a {
    color: #fff;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ease);
}
.nav__menu a:hover { border-color: var(--color-accent); }

/* offset anchor jumps so the fixed nav doesn't cover section tops */
#services, #process, #cta, #clients, #contact { scroll-margin-top: 90px; }

/* ------------------------------------------------------------------ *
   6. Hero
 * ------------------------------------------------------------------ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--gutter) var(--space-xl);
    background: var(--surface-dark);
    color: var(--on-dark);
}
.hero__title {
    font-size: clamp(2.75rem, 9vw, 5.75rem);
    line-height: 0.95;
    text-transform: uppercase;
    color: #fff;
}
.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
}
.hero__scroll::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scroll-dot 1.6s var(--ease) infinite;
}
@keyframes scroll-dot {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    80%, 100% { opacity: 0; transform: translateY(14px); }
}

/* ------------------------------------------------------------------ *
   7. Section intro (shared)
 * ------------------------------------------------------------------ */
.section-intro {
    max-width: var(--maxw);
    margin: 0 auto var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-xl);
    align-items: start;
}
.section-intro__title {
    font-size: clamp(2.75rem, 7vw, 5.3rem);
    line-height: 0.85;
    text-transform: uppercase;
    margin: 0;
}
.section-intro__body {
    max-width: 46ch;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    line-height: 1.8;
}
.section-intro__body p { margin: 0 0 1em; }
.section-intro__body p:last-child { margin: 0; }

/* ------------------------------------------------------------------ *
   8. Services
 * ------------------------------------------------------------------ */
.services { padding: var(--space-xl) 0; }
.services .section-intro {
    max-width: none;
    padding: 0 var(--gutter);
    margin: 0 auto var(--space-lg);
}

/* Full-bleed mosaic: 4 colored blocks, each 50% wide, no gaps, sharp corners */
.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.scard {
    padding: clamp(3rem, 6vw, 5.5rem) var(--gutter);
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
}
.scard__title {
    font-size: clamp(2.25rem, 4.2vw, 3.75rem);
    line-height: 0.9;
    text-transform: uppercase;
}
.scard__lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.scard__lists ul { list-style: none; margin: 0; padding: 0; }
.scard__lists li {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.15rem;
    padding: 0.4rem 0;
}

.scard--light { background: var(--surface-light); color: var(--surface-dark); }
.scard--light .scard__lists li { color: var(--color-text-muted); }
.scard--accent { background: var(--color-accent); color: var(--surface-dark); }
.scard--accent .scard__lists li { color: rgba(0, 0, 0, 0.72); }
.scard--dark { background: var(--surface-dark); color: var(--on-dark); }
.scard--dark .scard__lists li { color: var(--on-dark-muted); }
.scard--charcoal { background: var(--surface-charcoal); color: var(--on-dark); }
.scard--charcoal .scard__lists li { color: var(--on-dark-muted); }

/* ------------------------------------------------------------------ *
   9. Process
 * ------------------------------------------------------------------ */
.process {
    padding: var(--space-xl) var(--gutter);
    max-width: var(--maxw);
    margin: 0 auto;
}
.process__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--space-md);
}
.step { border-top: 3px solid var(--color-accent); padding-top: var(--space-sm); }
.step__num {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-accent);
}
.step__title {
    font-size: 2rem;
    text-transform: uppercase;
    margin: 0.4rem 0 0.6rem;
}
.step p { margin: 0; color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.7; }

/* ------------------------------------------------------------------ *
   10. CTA
 * ------------------------------------------------------------------ */
.cta {
    text-align: center;
    padding: var(--space-2xl) var(--gutter);
    background: var(--surface-charcoal);
    color: var(--on-dark);
}
.cta__title {
    font-size: clamp(2.75rem, 7.5vw, 5.3rem);
    line-height: 0.85;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: var(--space-md);
}
.cta__text {
    color: var(--on-dark-muted);
    font-size: 1.25rem;
    line-height: 1.8;
    margin: 0 auto var(--space-lg);
    max-width: 40ch;
}

/* ------------------------------------------------------------------ *
   11. Clients
 * ------------------------------------------------------------------ */
.clients {
    padding: var(--space-xl) var(--gutter);
    max-width: var(--maxw);
    margin: 0 auto;
}
.clients__title {
    font-size: clamp(2.75rem, 7vw, 5.3rem);
    line-height: 0.85;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}
.clients__text {
    max-width: 48ch;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}
.clients__logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    align-items: center;
}
.clients__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
}
.clients__logo img {
    width: auto;
    height: 48px;
    object-fit: contain;
    opacity: 0.55;
    filter: grayscale(1);
    transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.clients__logo:hover img { opacity: 1; filter: grayscale(0); }

/* ------------------------------------------------------------------ *
   12. Footer
 * ------------------------------------------------------------------ */
.footer {
    background: var(--surface-dark);
    color: var(--on-dark);
    padding: var(--space-2xl) var(--gutter) var(--space-lg);
}
.footer__lead { max-width: var(--maxw); margin: 0 auto var(--space-xl); text-align: center; }
.footer__title {
    font-size: clamp(2.75rem, 7vw, 5.3rem);
    line-height: 0.85;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}
.footer__text {
    max-width: 52ch;
    margin: 0 auto;
    color: var(--on-dark-muted);
    font-size: 1.25rem;
    line-height: 1.8;
}
.footer__contact {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-lg);
}
.footer__label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--on-dark-muted);
    margin-bottom: 0.5rem;
}
.footer__value {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    line-height: 1;
    color: #fff;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s var(--ease);
}
a.footer__value:hover { border-color: var(--color-accent); }

/* ------------------------------------------------------------------ *
   13. Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .section-intro { grid-template-columns: 1fr; gap: var(--space-md); }
    .services__grid { grid-template-columns: 1fr; }
    .clients__logos { grid-template-columns: repeat(2, 1fr); }
    .footer__contact { flex-direction: column; align-items: start; gap: var(--space-md); }
}

/* small screens: show the icon only (hide wordmark) so icon + menu fit */
@media (max-width: 600px) {
    .nav__logo { display: none; }
    .nav__menu { gap: 0.9rem; }
    .nav__menu a { font-size: 0.82rem; }
}
