/**
 * Coemans Starter - main stylesheet
 *
 * Tokens below mirror the Design System in /CLAUDE.md.
 * If they drift, CLAUDE.md is the source of truth - re-sync from there.
 */

:root {
    /* Colors - core tokens (mapped from real usage in Claes_Sierbeton.fig) */
    --color-primary:    #343738; /* headings, dark UI (neutral/900) */
    --color-secondary:  #606567; /* secondary / muted text (neutral/700) */
    --color-accent:     #991c1f; /* links, CTAs, buttons, focus (red/500) */
    --color-bg:         #ffffff; /* page background (neutral/100) */
    --color-bg-alt:     #f2f2f3; /* cards, alt sections (neutral/200) */
    --color-text:       #343738; /* body copy */
    --color-text-muted: #606567; /* captions, meta */
    --color-border:     #e2e3e4; /* dividers, input borders (neutral/300) */
    --color-success:    #1f9d55; /* placeholder - not in Figma file */
    --color-warning:    #f0ad4e; /* placeholder - not in Figma file */
    --color-error:      #d9534f; /* placeholder - not in Figma file */

    /* Colors - full ramp (from the file's "Color Ramp" Figma Variables) */
    --color-red-400:     #b52125;
    --color-red-500:     #991c1f;
    --color-red-600:     #6c1416;
    --color-neutral-900: #343738;
    --color-neutral-800: #474b4d;
    --color-neutral-700: #606567;
    --color-neutral-600: #adb1b3;
    --color-neutral-500: #c7cacb;
    --color-neutral-300: #e2e3e4;
    --color-neutral-200: #f2f2f3;
    --color-neutral-100: #ffffff;

    /* Typography - three families with distinct jobs (see CLAUDE.md) */
    --font-heading: "Satoshi", sans-serif; /* headings, Bold 700 (self-hosted) */
    --font-body:    "Inter", sans-serif;   /* paragraph copy (Google Fonts) */
    --font-ui:      "Poppins", sans-serif; /* nav links + button labels (Google Fonts) */

    --fs-display: 7rem;      /* 112px - oversized numerals / stat display only */
    --fs-h1:      3.5rem;    /* 56px */
    --fs-h2:      3rem;      /* 48px */
    --fs-h3:      1.5rem;    /* 24px */
    --fs-h4:      1.3125rem; /* 21px */
    --fs-body:    1.0625rem; /* 17px */
    --fs-small:   0.9375rem; /* 15px - buttons, nav labels, captions */

    --lh-display: 1.0;   /* display */
    --lh-tight:   1.2;   /* h1 */
    --lh-snug:    1.3;   /* h3 / h4 */
    --lh-normal:  1.6;   /* body copy */

    --fw-regular: 400;
    --fw-medium:  500;
    --fw-semibold:600;
    --fw-bold:    700;

    /* Spacing */
    --space-0:  0;
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.5rem;
    --space-6:  2rem;
    --space-7:  2.5rem; /* 40px - appears often in the file */
    --space-8:  3rem;
    --space-10: 4rem;
    --space-12: 6rem;

    /* Layout (measured off the 1920px desktop canvas) */
    --container-max:    1600px; /* inner content container */
    --container-pad:    1.5rem; /* mobile/tablet horizontal padding */
    --container-pad-lg: 10rem;  /* 160px - desktop horizontal padding */

    /* Radius (measured off real components) */
    --radius-sm:   4px;   /* buttons */
    --radius-md:   8px;   /* cards, generic rectangles */
    --radius-lg:   18px;  /* image frames / gallery items */
    --radius-xl:   24px;  /* larger feature frames */
    --radius-pill: 999px; /* pills, circular avatars */

    /* Shadows - the design is intentionally flat; placeholders only */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 120ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 400ms ease;
}

/* ---------------------------------------------------------------------------
   Fonts
   Inter + Poppins are enqueued from Google Fonts in functions.php.
   Satoshi is not on Google Fonts (it's Fontshare) - self-host the woff2
   files in assets/fonts/ and they'll be picked up by the @font-face below.
   Until the files are added, headings fall back to sans-serif.
   --------------------------------------------------------------------------- */
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Box-sizing + base resets live in reset.css. */

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-snug); }

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

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

/* Desktop: wider side padding per the Figma file (--bp-lg = 1024px). */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--container-pad-lg);
    }
}

.container--narrow {
    max-width: 760px;
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 18px 32px; /* large - measured off the Figma file */
    border-radius: var(--radius-sm); /* 4px, per the file - not radius-md */
    font-family: var(--font-ui); /* Poppins */
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
}

.btn--small {
    padding: 14px 24px; /* small - measured off the Figma file */
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
}

.btn--ghost:hover {
    background: var(--color-bg-alt);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-primary);
    text-decoration: none;
}

.btn--outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn--outline:hover {
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Flexible content blocks
   --------------------------------------------------------------------------- */
.block {
    padding: var(--space-10) 0;
}

.block + .block {
    padding-top: 0;
}

.block__heading {
    color: var(--color-accent);
    margin-bottom: var(--space-5);
}

.block__content {
    color: var(--color-secondary);
    line-height: var(--lh-normal);
}

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

/* FAQ ---------------------------------------------------------------------- */
.faq-list {
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    cursor: pointer;
    list-style: none;
    color: var(--color-accent);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-h4);
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: "";
    position: absolute;
    background: var(--color-accent);
    top: 50%;
    left: 50%;
    transition: transform var(--transition-base);
}

.faq-item__icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-item__icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.faq-item[open] .faq-item__icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

.faq-item__answer {
    padding: 0 0 var(--space-5);
    color: var(--color-secondary);
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

/* Image + content ---------------------------------------------------------- */
.image-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: center;
}

@media (min-width: 768px) {
    .image-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }
}

.image-content__media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.image-content__text .block__heading {
    margin-bottom: var(--space-4);
}

.image-content__cta {
    margin-top: var(--space-5);
}

/* Image on the LEFT: media takes column 1, text column 2 (default order).
   Image on the RIGHT: flip via grid-column. */
@media (min-width: 768px) {
    .block--image-right .image-content__media  { grid-column: 2; grid-row: 1; }
    .block--image-right .image-content__text   { grid-column: 1; grid-row: 1; }
}
