/* ===========================
   Base / tokens
   =========================== */
:root {
    --bg: #eae5dc;
    --primary: #2f3c2b;
    --secondary: #acb5a0;
    --accent: #eae5dc;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    --primary-20: color-mix(in srgb, var(--primary) 20%, transparent);
    --border-weak: #efe6d7;
    --hero-bg: #323c2a;
    --sep-offset: -14px;
    --approach-art-w: 62vw;

    --radius: 8px;
    --radius-lg: 12px;

    --fs-900: clamp(2rem, 2rem + 1.2vw, 3.25rem);
    --fs-800: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    --fs-700: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    --fs-600: 1.125rem;
    --fs-500: 1rem;
    --fs-400: 0.95rem;

    --container: min(1150px, 92vw);
    --gap: 1.25rem;
}

@media (min-width: 48rem) {
    :root { --gap: 1.5rem; }
}

/* ===========================
   Reset / base
   =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    scroll-behavior: smooth; /* will be disabled by JS for reduced motion */
}

body {
    margin: 0;
    font: 400 1rem/1.6 "Montserrat", system-ui, -apple-system, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans",
        "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--primary);
    background: var(--bg);
    text-rendering: optimizeLegibility;
}


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

/* Headings */
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--primary); }
h1 { font-size: var(--fs-900); font-weight: 700; }
h2 { font-size: var(--fs-800); font-weight: 600; }
h3 { font-size: var(--fs-700); font-weight: 500; }

p { margin: 0 0 1rem; }
.lead { font-size: var(--fs-600); color: var(--secondary); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(0.5rem, 3vw, 1.5rem);
}

.section { padding-block: clamp(2rem, 4vw, 3.5rem); }

/* ===========================
   Visually hidden helper
   =========================== */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 1px, 1px);
    white-space: nowrap;
    border: 0;
}

/* ===========================
   Skip link
   =========================== */
.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -100%;
    background: var(--primary);
    color: var(--accent);
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    z-index: 1000;
}
.skip-link:focus { top: 0.5rem; }

/* ===========================
   Buttons
   =========================== */
.btn {
    appearance: none;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--bg);
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
    outline: 3px solid var(--accent);
    box-shadow: 0 0 0 4px var(--primary);
}

/* Emphasized/primary variant */
.btn--primary {
    background-color: var(--primary);
    color: var(--accent);
}

/* ===========================
   Hero
   =========================== */
.hero {
    display: grid;
    background: var(--hero-bg);
    padding-block: clamp(2rem, 4vw, 3rem);
    min-height: 100dvh;
}

.hero__card {
    position: relative;
    display: grid;
    gap: var(--gap);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    height: 100%;
}

.hero__card::before,
.hero__card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background-repeat: no-repeat;
    pointer-events: none;
}
.hero__card::after {
    background-image: url("/assets/images/pattern-tr-desktop.png");
    background-position: top right;
    background-size: clamp(130px, 40vw, 520px) auto;
}
.hero__card::before {
    background-image: url("/assets/images/pattern-bl-desktop.png");
    background-position: bottom left;
    background-size: clamp(130px, 40vw, 220px) auto;
}

.hero__logo {
    width: auto;
    height: clamp(70px, 5vw, 48px);
    position: absolute;
    top: 1rem;
    left: 0;
    object-fit: contain;
}

.hero__copy { display: flex; flex-direction: column; justify-content: center; }
.hero__copy h1 { color: var(--accent); font-weight: 500; z-index: 2; }
.hero__copy .lead { color: var(--accent); z-index: 2; }
.hero__copy .hero__cta { align-self: flex-end; }

.hero__art { display: none; }

@media (min-width: 53rem) {
    .hero__card {
        grid-template-columns: 1.1fr 1fr;
        align-items: center;
        padding: 2rem;
    }
    .hero__card::before,
    .hero__card::after,
    .hero__logo { display: none; }

    .hero__copy .hero__cta { align-self: flex-start; }
    .hero__art {
        display: block;
        position: absolute;
        background-image: url("/assets/images/brand.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: right;
        top: 0; right: 0;
        width: 48%;
        height: 100%;
    }
}

/* ===========================
   Pitfalls
   =========================== */
.pitfalls {
    background: var(--accent);
    padding-bottom: 0;
    min-height: 80dvh;
    display: grid;
    place-content: center;
}
.pitfalls .container { max-width: min(1180px, 94vw); }
.pitfalls h2 { text-align: center; margin-bottom: 3.5rem; }
.pitfalls h3 { font-size: var(--fs-600); }

.pitfalls__list {
    display: grid;
    gap: 1rem;
    list-style: none;
}
.pitfalls__item { position: relative; padding-top: 1rem; }
.pitfalls__item::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: var(--sep-offset);
    height: 1px;
    background: var(--primary-20);
}
.pitfalls__item:first-child::before { content: none; }
.pitfalls__item:first-child { padding-top: 0; }
.pitfalls__item h3 { margin-bottom: 0.25rem; }

@media (min-width: 56rem) {
    .pitfalls__list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        align-items: stretch;
    }
    .pitfalls__item {
        padding-top: 0;
        padding-left: 1rem;
        align-self: stretch;
    }
    .pitfalls__item::before {
        top: 0; bottom: 0; left: 0; right: auto;
        width: 1px; height: auto;
        background: var(--primary-20);
    }
    .pitfalls__item:first-child::before { content: none; }
    .pitfalls__item:first-child { padding-left: 0; }
}

/* ===========================
   One-liner
   =========================== */
.one-liner__text {
    text-align: center;
    font-size: var(--fs-700);
    font-weight: 500;
    margin: 2rem auto;
    max-width: 500px;
}
@media (min-width: 56rem) {
    .one-liner__text { background: var(--bg); padding: 1rem; max-width: 700px; }
}

/* ===========================
   Approach
   =========================== */
.approach { background: var(--accent); padding: 0; }
.approach__grid { display: grid; min-height: 100dvh; }
.approach__art {
    position: relative;
    align-self: flex-start;
    min-height: 150px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.approach__art {
        max-width: 1250px;

}
.approach__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    display: block;
    max-width: 1250px;

}
.approach__content h2 {
    margin-top: 2rem; margin-bottom: 1rem;
    text-align: center;
}
.approach__content h3 { font-size: var(--fs-600); margin-top: 0.6rem; }
.approach__list { display: grid; gap: 1rem; }
.approach__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1rem;
    align-items: flex-start;
    padding-top: 1rem;
}
.approach__item:last-of-type { padding-bottom: 1.5rem; }
.approach .icon {
    width: 44px; height: 44px;
    display: inline-grid; place-items: center;
    background: var(--accent);
    border-radius: var(--radius-lg);
    color: var(--primary);
}

@media (min-width: 62rem) {
    .approach__content h2 { padding-left: 2.5rem; }
    .approach__grid {
        grid-template-columns: 1fr 1.5fr;
        align-items: center;
        gap: 1.5rem;
    }
    .approach__art { min-height: 360px; height: 100%; width: var(--approach-art-w); }
}

/* ===========================
   Benefits / cards
   =========================== */
.benefits {
    background: var(--secondary);
    padding-bottom: clamp(2rem, 5vw, 4rem);
    min-height: 100dvh;
    display: grid;
    place-content: center;
}
.benefits h2 { text-align: center; }
.benefits h3 { font-size: var(--fs-600); font-weight: 600; }
.section-lead { text-align: center; color: var(--primary); margin-bottom: 2rem; }

.cards {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    list-style: none;
    align-items: stretch;
}
.card {
    background: var(--accent);
    border-radius: 2px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}
.card h3 { margin-bottom: 0.25rem; }

@media (min-width: 56rem) {
    .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    .card {
        min-height: 250px;
        padding: 2rem;
    }
    .card p { margin-right: 1rem; }
}

/* ===========================
   Quote
   =========================== */
.quote { background: var(--primary); color: var(--accent); }
.quote__block {
    text-align: center;
    max-width: 900px;
    margin-inline: auto;
    padding: 1rem;
}
.quote__block p {line-height: 1.4; }
.quote__by { margin-top: 1rem; opacity: 0.9; }

@media (min-width: 56rem) {
.quote__block p { font-size: clamp(1rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.4; }

}
/* ===========================
   Contact
   =========================== */
.contact { background: var(--accent); }
.contact__panel {
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: var(--accent);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}
.contact__lead { margin-bottom: 1rem; color: var(--primary); }

/* ===========================
   Footer
   =========================== */
.site-footer { background: var(--accent); }
.footer-inner { text-align: center; padding-block: 1.25rem; }
.footer-inner a { color: var(--primary); }
.brand--small { width: 70px; height: auto; margin: 0 auto; }

/* ===========================
   Focus styles (AA visible)
   =========================== */
a, button, .btn { outline-offset: 2px; }
:focus-visible { outline: 3px solid #21a08e; }

/* ===========================
   Motion preferences
   =========================== */
@media (prefers-reduced-motion: reduce) {
    html:focus-within { scroll-behavior: auto; }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
