@layer reset, tokens, base, layout, components, utilities;

@layer tokens {
  :root {
    color-scheme: light;
    --bg: #FDF6EC;
    --sand: #EFE3D2;
    --ink: #4A3323;
    --brand: #664A32;
    --copper: #A0785A;
    --copper-text: #7F5A40;
    --line: #D0B098;

    --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
    --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

    --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
    --step-0: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
    --step-1: clamp(1.25rem, 1.12rem + .6vw, 1.55rem);
    --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.35rem);
    --step-3: clamp(2.3rem, 1.7rem + 3vw, 3.9rem);
    --step-4: clamp(2.75rem, 1.7rem + 5.2vw, 5.75rem);

    --gutter: clamp(1.25rem, .8rem + 2.4vw, 3rem);
    --section: clamp(4rem, 2.6rem + 6vw, 8.5rem);
    --maxw: 78rem;
    --header-h: 4rem;
    --hair: 1px solid var(--line);
  }
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-var.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg { display: block; max-width: 100%; height: auto; }
  [hidden] { display: none !important; }
  ul, ol { padding: 0; list-style: none; }
  a { color: inherit; }
  summary { list-style: none; }
  summary::-webkit-details-marker { display: none; }
}

@layer base {
  html { background: var(--bg); }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  body {
    min-height: 100dvh;
    background: var(--bg);
    color: var(--ink);
    font: 400 var(--step-0)/1.65 var(--sans);
    font-kerning: normal;
    overflow-x: clip;
  }
  h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; color: var(--brand); text-wrap: balance; }
  h2 { font-size: var(--step-3); letter-spacing: -.01em; }
  h3 { font-size: var(--step-2); font-weight: 500; }
  p, li, dd { text-wrap: pretty; }
  strong { font-weight: 500; color: var(--brand); }
  a { text-decoration-color: var(--line); text-underline-offset: .2em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-color: currentColor; }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
  ::selection { background: var(--sand); color: var(--ink); }
  [id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
}

@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
  .s { padding-block: var(--section); container-type: inline-size; }
  .s:nth-of-type(even) { background: var(--sand); }
  .grid { display: grid; gap: 2rem 0; }
  .s-body > * + * { margin-top: 1.1em; }

  @media (min-width: 48em) {
    .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
    .s-head { grid-column: 1 / span 4; }
    .s-body { grid-column: 6 / -1; max-width: 42rem; }
    .s-list .s-head, .s-prices .s-head { grid-column: 1 / span 8; }
    .s-list .s-body, .s-prices .s-body { grid-column: 3 / -1; max-width: none; }
    .s-faq .s-head { grid-column: 8 / -1; grid-row: 1; }
    .s-faq .s-body { grid-column: 1 / span 7; grid-row: 1; }
    .s-contact .s-body { grid-column: 5 / -1; }
  }
}

@layer components {
  .icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

  .skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: .75rem 1rem; background: var(--brand); color: var(--bg); }
  .skip:focus { top: .5rem; }

  /* Labels echo the logo's spaced capitals */
  .label, .brand-sub, .nav-d a, .item-title, .price-name, dt, .tagline, .callbar a {
    font-family: var(--sans); font-size: var(--step--1); font-weight: 400;
    text-transform: uppercase; letter-spacing: .16em; line-height: 1.4;
  }
  .label { color: var(--copper-text); }

  .site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: var(--hair); }
  .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); min-height: 44px; }
  .brand-mark { display: block; width: auto; height: 24px; flex: none; }
  .brand-name { font: 400 1.625rem/1 var(--serif); letter-spacing: .08em; }
  .brand-sub { display: none; color: var(--copper-text); font-size: .6875rem; letter-spacing: .22em; }
  @media (min-width: 48em) { .brand { gap: 12px; } .brand-mark { height: 30px; } .brand-sub { display: inline; } }

  .nav-m summary {
    display: flex; align-items: center; gap: .5rem; min-height: 44px; min-width: 44px; padding-inline: .25rem;
    cursor: pointer; color: var(--brand);
  }
  .nav-m summary svg { width: 1.5rem; height: 1.5rem; }
  .nav-m .i-close, .nav-m[open] .i-open { display: none; }
  .nav-m[open] .i-close { display: block; }
  .nav-m ul {
    position: absolute; inset: 100% 0 auto; background: var(--bg); border-bottom: var(--hair);
    padding: .5rem var(--gutter) 1.5rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-m li + li { border-top: var(--hair); }
  .nav-m a { display: flex; align-items: center; min-height: 3.25rem; font: 300 var(--step-2)/1.1 var(--serif); color: var(--brand); text-decoration: none; }
  .nav-d { display: none; }
  @media (min-width: 64em) {
    .nav-m { display: none; }
    .nav-d { display: block; }
    .nav-d ul { display: flex; gap: 2.25rem; }
    .nav-d a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); }
    .nav-d a:hover { color: var(--brand); text-decoration: underline; text-decoration-color: var(--line); }
  }

  /* Hero: centered on mobile (logo after the buttons); text left + logo right from 48em */
  .s-hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 7rem); }
  .hero-grid { display: grid; justify-items: center; text-align: center; }
  .hero-text { display: grid; justify-items: center; gap: 1.25rem; width: 100%; }
  .eyebrow { color: var(--copper-text); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; }
  .s-hero h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 4rem); letter-spacing: -.015em; max-width: 20ch; }
  .hero-lead { font-size: max(1rem, var(--step-0)); font-weight: 400; line-height: 1.6; max-width: 36ch; }
  .hero-links { display: grid; gap: .75rem; width: 100%; max-width: 24rem; }
  .btn-secondary { display: contents; }
  .hero-links a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding-inline: 1.75rem; border: 1px solid var(--brand); font-weight: 500; text-decoration: none; text-align: center; }
  .btn-primary { background: var(--brand); color: var(--bg); }
  .btn-secondary a { color: var(--brand); }
  .hero-lockup { margin-block: 34px 20px; }
  .hero-lockup img { width: 200px; height: auto; margin-inline: auto; }
  .tagline { color: var(--copper-text); font-size: var(--step--1); letter-spacing: .28em; text-transform: uppercase; }
  @media (min-width: 48em) {
    .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: center; justify-items: start; text-align: left; }
    .hero-text { grid-column: 1 / span 7; grid-row: 1; justify-items: start; }
    .hero-links { display: flex; flex-wrap: wrap; width: auto; max-width: none; }
    .hero-links a { display: inline-flex; }
    .hero-lockup { grid-column: 8 / -1; grid-row: 1; justify-self: center; width: 100%; margin: 0; }
    .hero-lockup img { width: 100%; max-width: 32rem; }
  }

  .s-head .label { display: block; margin-bottom: 1rem; }
  .s-head .s-intro { margin-top: 1.25rem; max-width: 40rem; }
  .s-intro { font-size: var(--step-1); font-weight: 300; line-height: 1.5; }
  .s-intro > * + * { margin-top: .8em; }
  .prose h3 { margin-top: 2.25rem; }
  .s-text .prose > p:first-child { font: 300 var(--step-2)/1.3 var(--serif); color: var(--brand); }
  .hero-lead a { color: var(--brand); font-weight: 500; }
  .prose ul { padding-left: 1.1rem; list-style: "– "; }
  .prose li + li { margin-top: .35em; }

  /* Services list: hairlines, no cards */
  .items { counter-reset: item; border-bottom: var(--hair); margin-top: 2.5rem; }
  .item { counter-increment: item; display: grid; gap: .75rem; padding-block: 2rem; border-top: var(--hair); }
  .item-title { display: flex; gap: 1rem; align-items: baseline; color: var(--brand); font-weight: 500; }
  .item-title::before { content: counter(item, decimal-leading-zero); font: 300 1.75rem/1 var(--serif); font-variant-numeric: lining-nums; letter-spacing: 0; color: var(--copper); }
  .item-body > * + * { margin-top: .9em; }
  @container (min-width: 44rem) {
    .item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 2.5rem; padding-block: 2.5rem; }
  }

  /* Prices: hairline rows, tabular figures */
  .prices { margin-top: 2.5rem; border-bottom: var(--hair); font-variant-numeric: tabular-nums lining-nums; }
  .price { display: grid; gap: .75rem 1.5rem; padding-block: 1.5rem; border-top: var(--hair); }
  .price-name { color: var(--brand); font-weight: 500; }
  .price dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .75rem 1.5rem; }
  .price dt { color: var(--copper-text); letter-spacing: .12em; }
  .price dd { font: 400 var(--step-1)/1.3 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
  .price-extra { grid-column: 1 / -1; font-size: var(--step--1); line-height: 1.5; }
  @container (min-width: 44rem) {
    .price { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: baseline; }
    .price dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .price-extra { grid-column: 2; }
  }
  .s-outro { margin-top: 2rem; font-size: var(--step--1); line-height: 1.6; max-width: 46rem; }
  .s-outro > * + * { margin-top: .6em; }

  .faq { border-bottom: var(--hair); }
  .faq details { border-top: var(--hair); }
  .faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 44px; padding-block: 1.25rem; cursor: pointer; }
  .faq summary h3 { font-size: var(--step-1); font-weight: 500; line-height: 1.25; color: var(--brand); }
  .faq summary::after { content: "+"; flex: none; font: 300 1.75rem/1 var(--serif); color: var(--brand); }
  .faq details[open] summary::after { content: "–"; }
  .faq-a { padding: 0 0 1.5rem; max-width: 40rem; }
  .faq-a > * + * { margin-top: .8em; }
  @media (min-width: 48em) { .s-faq .s-head { padding-top: .5rem; } }

  /* Contact: 3 columns from 72em, stacked on mobile (phone = button) */
  .contact { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
  .contact-info { display: grid; gap: 2rem; }
  .contact-col { display: grid; gap: .6rem; align-content: start; }
  .contact-col address { font-style: normal; }
  .hours { display: grid; gap: .25rem; font-variant-numeric: tabular-nums; }
  .contact-link, .contact-row a, .contact-map figcaption a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--brand); }
  .contact-link svg, .contact-row svg { width: 1.1rem; height: 1.1rem; flex: none; }
  .contact-col-phone .label { display: none; }
  .contact-phone { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; padding-inline: 1.5rem; background: var(--brand); color: var(--bg); font-weight: 500; letter-spacing: .06em; text-decoration: none; font-variant-numeric: tabular-nums; }
  .contact-row { display: grid; gap: .35rem; padding-top: 1.25rem; border-top: var(--hair); }
  .contact-map { grid-column: 1 / -1; margin: 0; }
  .contact-map img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: var(--hair); }
  @media (min-width: 48em) { .contact-map img { aspect-ratio: 2 / 1; } }
  .contact-map figcaption { font-size: var(--step--1); }
  @container (min-width: 72em) {
    .contact-info { grid-template-columns: max-content minmax(0, 1fr) max-content; column-gap: 2.5rem; }
    .contact-col-phone .label { display: block; }
    .contact-phone { display: inline-flex; min-height: 44px; padding: 0; justify-content: flex-start; background: none; color: var(--brand); font-size: var(--step-1); letter-spacing: 0; }
    .phone-prefix { display: none; }
  }

  .site-footer { border-top: var(--hair); padding-block: 3.5rem 2.5rem; font-size: var(--step--1); line-height: 1.6; }
  .footer-grid { display: grid; gap: 2rem; }
  .footer-brand { display: flex; gap: .9rem; align-items: center; color: var(--brand); }
  .footer-brand picture, .brand picture { flex: none; }
  .footer-brand img { width: auto; height: 2.25rem; }
  .footer-brand strong { display: block; font: 400 1.5rem/1.1 var(--serif); }
  .footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .disclaimer { max-width: 36rem; }
  @media (min-width: 48em) {
    .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
    .footer-brand { grid-column: 1 / span 5; }
    .footer-nav { grid-column: 7 / -1; }
    .disclaimer, .footer-meta { grid-column: 7 / -1; }
  }

  /* Mobile call bar */
  .callbar { position: fixed; inset: auto 0 0; z-index: 20; display: flex; background: var(--bg); border-top: var(--hair); padding-bottom: env(safe-area-inset-bottom); }
  .callbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.5rem; text-decoration: none; color: var(--brand); font-weight: 500; }
  .callbar a + a { border-left: var(--hair); }
  .callbar svg { width: 1.2rem; height: 1.2rem; }
  body:has(.callbar) { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
  @media (min-width: 64em) { .callbar { display: none; } body:has(.callbar) { padding-bottom: 0; } }

  .s-404 { min-height: 60dvh; }
  .s-404 h1 { font-size: var(--step-3); }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  /* Reveal: only after JS marks the page */
  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(1.25rem); transition: opacity .9s ease, transform .9s ease; }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
  }
}
