/* ═══════════════════════════════════════════════════════════════
   Koda — DamPhi Template
   Minimalist architecture. Clean sans typography. Architectural palettes.
   Ideal: Architecture studios, interior designers, landscape architects.
   Pipeline-B-wired (Phase 2.6) — :root rewritten by apply_palette/apply_style.
   Note: Variables standardized to Canvas Natural pattern (§2.9).
   `color:#ffffff` on primary-background elements is intentional universal contrast.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Palette: Oat */
  --bg: #F5F0E4;
  --bg-surface: #EEE8D8;
  --bg-card: #E6DDC8;
  --primary: #B8623E;
  --secondary: #8A6648;
  --accent: #8A6648;
  --text: #1F1A14;
  --text-sub: #544A3C;
  --text-muted: #968A74;
  --border: #D4CAB0;
  --border-br: #B8A988;

  /* Typography System */
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --nav-h:       72px;
  --section-pad: 10rem;
  --container:   1200px;
  --radius: 0px;
  --radius-lg: 0px;
  --transition:  .3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Clean Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

/* [mobile_baseline 20260902] MOBILE NAV TOGGLE — the pulse-tech / vita-health pattern.
   minimalist shipped with NO media queries at all, so this row — logo, four links and a
   CTA — rendered at full desktop width on a 390px phone. */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 2rem 1.5rem; gap: 1.2rem;
    border-bottom: 1px solid var(--border, rgba(0,0,0,.12)); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  /* The CTA lives in the drawer on a phone; in the bar it crowds out the hamburger. */
  nav > .cta-btn { display: none; }
  /* [builder_fix 20261017] a long company name made the bar wrap to 3 lines, which pushed the hamburger down
     under the open drawer (it could no longer be tapped to close). Keep the bar one row high. */
  .logo { font-size: 1.2rem; letter-spacing: -.5px; line-height: 1.15; min-width: 0; overflow-wrap: anywhere; }
  .nav-toggle { flex: none; }
  /* [mobile_fixes 20260930] .pricing-grid/.services-grid collapse to one column (see the
     generated baseline block below), but the card itself was sizing to its own content
     rather than stretching to fill that column — measured content at ~361px plus the
     card's own 80px of horizontal padding is exactly the 441px overflow this produced. */
  .price-card, .service-card { width: 100%; }
}

.nav-links a {
    font-family: var(--font-body);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-btn {
    padding: 14px 32px;
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.4s;
}

.cta-btn:hover {
    background: color-mix(in srgb, var(--primary) 80%, #ffffff 20%);
    transform: translateY(-3px);
}

/* Hero - Very spacious & focused */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    /* [hero_fit 20260625] Top/bottom padding clears the fixed nav so the centred headline never
       runs up behind it on a tall/long title (the Hooks overflow). */
    padding: 120px 5% 60px;
}

/* [business_image 20260624] Hero background image + readable scrim. The hero__bg shows the
   generated/approved HERO_IMAGE at full strength (set by inline JS when the token is
   filled); with no image it keeps a tasteful gradient — never a washed-out 0.12 ghost or a
   broken empty box. The scrim is a light-to-stronger gradient of the page background so the
   dark display headline stays legible over any image. */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    /* graceful fallback when HERO_IMAGE is empty (no image ordered/approved) */
    background-image: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* NO image (gradient fallback): tasteful light wash of the page bg — dark headline reads. */
    background: linear-gradient(to bottom,
        color-mix(in srgb, var(--bg) 30%, transparent),
        color-mix(in srgb, var(--bg) 60%, transparent));
}
/* [hero_scrim_fix 20260624] WITH a real photo: darken the image behind the text (top-weighted
   toward the centred headline) so the title is legible over ANY photo, light or dark. A dark
   scrim needs LIGHT text, so the headline + subheadline flip to white in image mode (a dark
   headline over a dark scrim would be self-defeating). The CTA button keeps its own colours. */
.hero--image .hero__scrim {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.42) 45%,
        rgba(0, 0, 0, 0.58) 100%);
}
.hero--image .content h1 {
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);   /* extra separation on busy photos */
}
.hero--image .content .subheadline {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.content {
    max-width: 820px;
    position: relative;
    z-index: 2;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--text);
}

h1 {
    /* [hero_fit 20260625] Clamped smaller so a long headline fits cleanly below the nav and
       doesn't overflow the top (was clamp(3.8rem, 9vw, 7.2rem) — too large on long titles). */
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 1.8rem;
    letter-spacing: -0.03em;
}

.subheadline {
    font-family: var(--font-body);
    font-size: 1.45rem;
    max-width: 580px;
    margin: 0 auto 3.5rem;
    color: var(--text-sub);
    font-weight: 400;
}

.btn {
    padding: 20px 48px;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 60px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
}

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

.btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 80%, #ffffff 20%);
    transform: translateY(-4px);
}

/* Section styling - very focused */
.section {
    padding: 160px 6% 140px;
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-sub);
}

/* Services & Pricing - clean cards */
.services-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    margin-top: 80px;
}

.service-card, .price-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px color-mix(in srgb, var(--text) 5%, transparent);
    transition: all 0.4s;
}

.service-card:hover, .price-card:hover {
    transform: translateY(-12px);
    border-color: var(--border-br);
}

.service-card h3, .price-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text);
}

.service-card p, .price-card p {
    font-family: var(--font-body);
    color: var(--text-sub);
}

/* Footer */
footer {
    text-align: center;
    padding: 100px 20px 60px;
    color: var(--text-sub);
    font-family: var(--font-body);
    font-size: 1rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

/* [showcase_tiles 20260624] Business showcase grid — a repeating image tile per customer
   showcase subject. The grid auto-fits, and slot-prune.js removes empty tiles (and the whole
   section when none are filled), so the layout reads intentional with 1 tile or 8 — never a row
   of skeleton boxes. The slot-token span (hidden) carries the deciding PRODUCT_n_IMAGE token
   for the prune; it must never render. */
.slot-token { display: none !important; }

.showcase {
    padding: 130px 6% 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.showcase h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.showcase > p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-sub);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;            /* 1 tile centres; many tiles wrap into neat rows */
    gap: 28px;
    margin-top: 70px;
}

.showcase-tile {
    position: relative;
    aspect-ratio: 4 / 5;                /* uniform tiles regardless of source image size */
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-surface);      /* graceful base while a bg image loads */
    box-shadow: 0 10px 40px color-mix(in srgb, var(--text) 5%, transparent);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.showcase-tile:hover {
    transform: translateY(-10px);
    border-color: var(--border-br);
}

.showcase-tile__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

/* readable caption over any photo — bottom-weighted scrim, light text */
.showcase-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.12) 45%,
        transparent 70%);
}

.showcase-tile__label {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.01em;
}

/* [contact_image 20260625] Koda closing/contact image — a framed background image near the
   contact section, mirroring the hero/showcase background treatment. slot-prune.js collapses
   the whole .contact-image block when no contact image was bound (deciding on the hidden
   CONTACT_IMAGE token), so it's never an empty box. (.slot-token is already defined above.) */
.contact-image {
    max-width: 900px;
    margin: 10px auto 50px;
    padding: 0 6%;
}

.contact-image__bg {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-surface);            /* graceful base while the image paints */
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 40px color-mix(in srgb, var(--text) 5%, transparent);
}

/* ══ DAMPHI MOBILE BASELINE v1 — GENERATED, DO NOT HAND-EDIT ══
   Source: templates/_shared/mobile/mobile_baseline.css
   Regenerate: python3 Tools/apply_mobile_baseline.py minimalist
   Edit the baseline, never this block. ══ */
@media (max-width: 768px) {
  .pricing-grid, .services-grid { grid-template-columns: minmax(0, 1fr); }
  .section, .hero, .showcase, footer { padding-top: 4rem; padding-bottom: 4rem; }
  h1, h2, h3, .subheadline, .price-card, .service-card { overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
  :is(h1, h2, h3, .subheadline, .price-card, .service-card) > * { overflow-wrap: inherit; hyphens: inherit; max-width: 100%; }
}
@media (hover: none), (pointer: coarse) {
  nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    background: var(--bg) !important; }
}
/* ══ END DAMPHI MOBILE BASELINE ══ */
