/* =============================================================================
   ANZU — style.css — Version 2
   =============================================================================
   Table of contents:
   1.  Import variables
   2.  Spacing variables (content-site specific)
   3.  Reset & base
   4.  Typography
   5.  Layout (container, grid)
   6.  Bands (stripe)
   7.  Components — Box
   8.  Components — Label / Tag
   9.  Components — Button / CTA
   10. Components — Accordion
   11. Components — Blob (organic shapes)
   12. Components — Image overlay wrapper
   13. Components — Form
   14. Header
   15. Footer
   16. Responsive — mobile (max-width: 767px)
   17. Responsive — tablet and up (min-width: 768px)
   18. Responsive — desktop (min-width: 1024px)
   ============================================================================= */


/* =============================================================================
   1. IMPORT VARIABLES
   ============================================================================= */
@import url('variables.css');


/* =============================================================================
   2. SPACING VARIABLES (content-site specific)
   ============================================================================= */
:root {
    --container-max:       2200px;
    --band-padding:        115px 0;
    --band-padding-mobile: 60px 0;
    --gap-grid:            60px;
    --gap-grid-mobile:     30px;
}


/* =============================================================================
   3. RESET & BASE
   ============================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-base);
    background-color: var(--color-neutral-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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


/* =============================================================================
   4. TYPOGRAPHY
   Headings use serif font. All other elements inherit from body.
   Explicit font-size is only set on body, headings, and the exceptions below.
   ============================================================================= */

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 600;
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
}

h1 {
    font-size: clamp(3rem, 7.2vw, 5.25rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2.16rem, 4.8vw, 3.9rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.68rem, 3.6vw, 2.925rem);
    letter-spacing: 0;
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.32rem, 2.4vw, 2.175rem);
    letter-spacing: 0;
    line-height: 1.4;
}

h5 {
    font-size: clamp(1.1rem, 1.96vw, 1.96rem);
    letter-spacing: 0;
    line-height: 1.5;
}

p {
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Lists */
ul, ol {
    margin: 0 0 1.5rem 1rem;
    padding-left: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

li:last-child {
    margin-bottom: 0;
}

/* Lead: larger intro paragraph — exception to body inheritance */
.lead {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
}

/* Eyebrow: small label above heading — exception to body inheritance */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-contrast);
    display: block;
    margin-bottom: 0.75rem;
}

/* Small text — exception to body inheritance */
.small-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* Highlight: brand accent behind text */
.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 0;
    height: 100%;
    background-color: var(--color-brand);
    z-index: -1;
    transform: rotate(-1deg);
}


/* =============================================================================
   5. LAYOUT
   ============================================================================= */

/* Container */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Grid base — single column, expands via modifier classes */
.grid {
    display: grid;
    gap: var(--gap-grid);
    grid-template-columns: 1fr;
}


/* =============================================================================
   6. BANDS
   Full-width horizontal sections with background color.
   Font colors are defined per band context.
   ============================================================================= */
.band {
    width: 100%;
    padding: var(--band-padding);
}

/* Light bands */
.band--white         { background-color: var(--color-white); }
.band--neutral-light { background-color: var(--color-neutral-light); }
.band--base-light    { background-color: var(--color-base-light); }

/* Dark bands */
.band--base          { background-color: var(--color-base); }
.band--base-dark     { background-color: var(--color-base-dark); }

/* Font colors on light bands */
.band--white,
.band--neutral-light,
.band--base-light {
    color: var(--color-base);
}

.band--white h1, .band--white h2, .band--white h3, .band--white h4,
.band--neutral-light h1, .band--neutral-light h2, .band--neutral-light h3, .band--neutral-light h4,
.band--base-light h1, .band--base-light h2, .band--base-light h3, .band--base-light h4 {
    color: var(--color-base);
}

/* Font colors on dark bands */
.band--base,
.band--base-dark {
    color: var(--color-base-light);
}

.band--base h1, .band--base h2, .band--base h3, .band--base h4,
.band--base-dark h1, .band--base-dark h2, .band--base-dark h3, .band--base-dark h4 {
    color: var(--color-neutral-light);
}

/* Links inherit color from context by default */
.band a {
    color: inherit;
}


/* =============================================================================
   7. COMPONENTS — BOX
   Single generic box component.
   Background and border vary by band context.
   ============================================================================= */
.box {
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid transparent;
}

/* Box on light bands */
.band--neutral-light .box,
.band--base-light .box {
    background-color: var(--color-white);
    border-color: transparent;
}

/* Box on white band — base background with white text */
.band--white .box {
    background-color: var(--color-base);
    border-color: transparent;
    color: var(--color-white);
}

.band--white .box h1,
.band--white .box h2,
.band--white .box h3,
.band--white .box h4,
.band--white .box h5 {
    color: var(--color-white);
}

.band--white .box .eyebrow {
    color: var(--color-contrast);
}

/* Tinted box variant on light bands */
.band--white .box--tinted,
.band--neutral-light .box--tinted,
.band--base-light .box--tinted {
    background-color: var(--color-base-light);
    border-color: var(--color-neutral-light);
}

/* Box on base band */
.band--base .box {
    background-color: var(--color-base-dark);
    border-color: var(--color-base-light);
}

/* Box on base-dark band */
.band--base-dark .box {
    background-color: var(--color-base-light);
    border-color: var(--color-neutral-light);
    color: var(--color-base);
}

.band--base-dark .box h1,
.band--base-dark .box h2,
.band--base-dark .box h3,
.band--base-dark .box h4 {
    color: var(--color-base);
}


/* =============================================================================
   8. COMPONENTS — LABEL / TAG
   ============================================================================= */
.label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: var(--radius);
    line-height: 1.6;
}

/* Label group — wrapping container for multiple labels */
.label-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

/* Label on light bands */
.band--white .label,
.band--neutral-light .label,
.band--base-light .label {
    background-color: var(--color-base);
    color: var(--color-neutral-light);
}

/* Label on dark bands */
.band--base .label,
.band--base-dark .label {
    background-color: var(--color-neutral-light);
    color: var(--color-base);
}

/* Remove top margin on headings inside boxes */
.box h1, .box h2, .box h3, .box h4, .box h5 {
    margin-top: 0;
}


/* =============================================================================
   9. COMPONENTS — BUTTON / CTA
   ============================================================================= */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
    text-decoration: none;
}

/* Primary button — works on both <a> and other elements */
.btn--primary,
a.btn--primary {
    background-color: var(--color-base);
    color: var(--color-white);
}

.btn--primary:hover,
a.btn--primary:hover {
    background-color: var(--color-brand);
    color: var(--color-base);
}

/* Secondary button — works on both <a> and other elements */
.btn--secondary,
a.btn--secondary {
    background-color: var(--color-brand);
    color: var(--color-base);
}

.btn--secondary:hover,
a.btn--secondary:hover {
    background-color: var(--color-base);
    color: var(--color-brand);
}


/* =============================================================================
   10. COMPONENTS — ACCORDION
   Uses HTML details/summary elements.
   SVG chevron rotates on open state via details[open].
   Colors follow band context.
   ============================================================================= */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.accordion-item {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0;
}

.accordion-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: opacity 0.2s ease;
    gap: 16px;
}

.accordion-summary::-webkit-details-marker {
    display: none;
}

.accordion-summary:hover {
    opacity: 0.8;
}

/* Chevron SVG icon */
.accordion-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

details[open] .accordion-chevron {
    transform: rotate(180deg);
}

details[open] .accordion-summary {
    border-bottom: none;
}

.accordion-content {
    padding: 0 24px 24px 24px;
}

.accordion-case {
    padding-left: 20px;
    margin-bottom: 24px;
}

.accordion-case:last-child {
    margin-bottom: 0;
}

.accordion-company {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    color: var(--color-contrast);
}

/* Accordion on light bands */
.band--white .accordion-item,
.band--neutral-light .accordion-item {
    background-color: var(--color-base-light);
}

.band--white .accordion-summary,
.band--neutral-light .accordion-summary {
    color: var(--color-base);
    border-bottom: 1px solid var(--color-base-light);
}

.band--white .accordion-chevron,
.band--neutral-light .accordion-chevron {
    stroke: var(--color-base);
}

/* Accordion on base-light band */
.band--base-light .accordion-item {
    background-color: var(--color-base-dark);
}

.band--base-light .accordion-summary {
    color: var(--color-white);
    border-bottom: 1px solid var(--color-base-light);
}

.band--base-light .accordion-chevron {
    stroke: var(--color-white);
}

.band--base-light .accordion-content {
    color: var(--color-white);
}

/* Accordion on dark bands */
.band--base .accordion-item {
    background-color: var(--color-base-dark);
}

.band--base .accordion-summary {
    color: var(--color-neutral-light);
    border-bottom: 1px solid var(--color-base-light);
}

.band--base .accordion-chevron {
    stroke: var(--color-neutral-light);
}

/* Accordion on base-dark band */
.band--base-dark .accordion-item {
    background-color: var(--color-base);
}

.band--base-dark .accordion-summary {
    color: var(--color-white);
    border-bottom: 1px solid var(--color-base-dark);
}

.band--base-dark .accordion-chevron {
    stroke: var(--color-white);
}

.band--base-dark .accordion-content {
    color: var(--color-white);
}

/* Two-column accordion grid */
.accordion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}


/* =============================================================================
   11. COMPONENTS — BLOB (organic shapes)
   ============================================================================= */
.blob {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blob--profile {
    width: clamp(260px, 18.9vw, 416px);
    height: clamp(260px, 18.9vw, 416px);
    border-radius: 45% 55% 60% 40% / 62% 38% 62% 38%;
}

.blob--variant-1 {
    width: clamp(260px, 18.9vw, 416px);
    height: clamp(260px, 18.9vw, 416px);
    border-radius: 62% 38% 45% 55% / 40% 60% 40% 60%;
}

.blob--variant-2 {
    width: clamp(260px, 18.9vw, 416px);
    height: clamp(260px, 18.9vw, 416px);
    border-radius: 38% 62% 55% 45% / 55% 45% 55% 45%;
}


/* =============================================================================
   12. COMPONENTS — IMAGE OVERLAY WRAPPER
   Replicates v1 image treatment: grayscale + luminosity blend + opacity on img,
   with --color-base as wrapper background to create a color-toned effect.
   ============================================================================= */
.img-overlay-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--color-base);
    height: 300px;
}

.img-overlay-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
    mix-blend-mode: luminosity;
    opacity: 0.35;
}


/* =============================================================================
   12b. COMPONENTS — IMAGE ILLUSTRATION WRAPPER
   Container for illustration images without color treatment.
   Sized at 80% width, fixed height of 300px, border-radius applied.
   ============================================================================= */
.img-illustration-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    height: 480;
    width: 80%;
}

.img-illustration-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =============================================================================
   12. COMPONENTS — FORM
   ============================================================================= */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-base);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    border: 1px solid var(--color-base-light);
    border-radius: var(--radius);
    background-color: var(--color-neutral-light);
    color: var(--color-base);
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-brand);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}


/* =============================================================================
   13. HEADER
   ============================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-neutral-light);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
}

/* Logo */
.logo {
    font-family: var(--font-logo);
    font-size: 3.3rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-base);
    text-decoration: none;
    line-height: 1;
}

.logo-dot {
    color: var(--color-brand);
}

.logo:hover {
    opacity: 1;
}

/* Navigation */
.site-nav {
    display: none;
    gap: 40px;
    align-items: center;
}

.site-nav a {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-base);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: var(--color-base);
    transition: width 0.25s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

/* Hamburger toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--color-base);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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


/* =============================================================================
   14. FOOTER
   ============================================================================= */
.site-footer {
    background-color: var(--color-base);
    color: var(--color-base-light);
    padding: 110px 0 70px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-white);
    display: inline-block;
    margin-bottom: 12px;
    text-decoration: none;
    line-height: 1;
}

.footer-logo .logo-dot {
    color: var(--color-brand);
}

.footer-tagline {
    opacity: 0.6;
    max-width: 220px;
    margin: 0;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-contrast);
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
    margin-left: 0;
}

.footer-list li {
    margin-bottom: 0.1rem !important;
    line-height: 1.4;
}

.footer-list a {
    color: var(--color-base-light);
    text-decoration: none;
    opacity: 0.6;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-list a:hover {
    color: var(--color-white);
    opacity: 1;
}

.footer-contact {
    font-weight: 600;
    opacity: 0.6;
    color: var(--color-base-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.4;
    flex-wrap: wrap;
    gap: 8px;
}


/* =============================================================================
   15. RESPONSIVE — MOBILE (max-width: 767px)
   ============================================================================= */
@media (max-width: 767px) {

    .band {
        padding: var(--band-padding-mobile);
    }

    .header-inner {
        padding: 28px 0;
    }

    .logo {
        font-size: 2.2rem;
    }

    /* Mobile navigation: full-screen overlay */
    .site-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--color-neutral-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 150;
        opacity: 0;
        transform: translateY(-16px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .site-nav.nav-active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .site-nav a {
        font-size: 1.6rem;
        font-weight: 700;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 200;
    }

    .grid {
        gap: var(--gap-grid-mobile);
    }

    /* Force all grid variants to single column on mobile */
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    /* Prevent long words from causing horizontal scroll */
    .box,
    .accordion-content,
    .container {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .accordion-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.1rem; }
}


/* =============================================================================
   16. RESPONSIVE — TABLET AND UP (min-width: 768px)
   ============================================================================= */
@media (min-width: 768px) {

    .site-nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }

    .accordion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* =============================================================================
   17. RESPONSIVE — DESKTOP (min-width: 1024px)
   ============================================================================= */
@media (min-width: 1024px) {

    .grid--auto-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}
