/* ==========================================================================
   Hound & Heath — dog grooming, Dereham
   Demo / cold outreach mockup.

   The one bold idea: the customer's actual worry, set enormous, as a question,
   in a serif. Everything else is deliberately quiet so it lands.

   Why a serif: every grooming site in the county is a geometric sans with a
   paw-print icon. A large Georgia question reads as a person asking, not a
   business announcing — which is the whole point for a nervous-dog owner.
   ========================================================================== */

:root {
  color-scheme: light dark;

  --paper:      #f7f7f5;   /* neutral chalk — deliberately not cream */
  --paper-alt:  #ecedea;
  /* Ratios measured with ../../assets/contrast-check.js — all AA for body text. */
  --ink:        #11272b;   /* deep petrol-black — 14.5:1 on --paper */
  --ink-muted:  #4a5f63;   /* 6.3:1 on --paper, 5.8:1 on --paper-alt */
  --line:       #cfd3d0;   /* decorative rules only — too faint for UI borders */
  --line-ui:    #4a5f63;   /* input + button borders. WCAG 1.4.11 wants 3:1; this is 6.3:1 */
  --petrol:     #0f4c53;   /* structural accent — 9.0:1 on --paper */
  --signal:     #a81840;   /* deep rose — actions only. 6.8:1 on --paper */
  --signal-ink: #ffffff;   /* 7.3:1 on --signal */
  --focus:      #b45309;
  --banner-bg:  var(--ink);
  --banner-ink: var(--paper);

  --font-display: Georgia, "Times New Roman", "Noto Serif", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;

  --step--1: clamp(0.88rem, 0.85rem + 0.14vw, 0.95rem);
  --step-0:  clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
  --step-hero: clamp(2.75rem, 1.25rem + 7vw, 8rem);  /* much bigger on desktop */

  --section-y: clamp(3rem, 8vw, 6rem);
  --wrap: 66rem;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Re-picked for dark, not inverted. */
    --paper:      #0d1f22;
    --paper-alt:  #142a2e;
    --ink:        #e9edec;   /* 14.4:1 on --paper */
    --ink-muted:  #9bb0b3;   /* 7.5:1 on --paper, 6.6:1 on --paper-alt */
    --line:       #2b4348;
    --line-ui:    #9bb0b3;   /* 7.5:1 on --paper */
    --petrol:     #7cc7c4;   /* 8.8:1 on --paper */
    --signal:     #ff8fa3;   /* 7.9:1 on --paper */
    --signal-ink: #1a0712;   /* dark ink on the light rose */
    --focus:      #fbbf24;
    /* A lifted petrol, not the inverted light strip — that read as a browser
       warning. 10.1:1 for the text. */
    --banner-bg:  #1d3b40;
    --banner-ink: #e9edec;
  }
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

svg { display: block; }
input, button, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* --- Layout --------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--paper-alt); }

.section h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  margin-bottom: 1.25rem;
  max-width: 20ch;
}

.section p { max-width: 60ch; }
.muted { color: var(--ink-muted); font-size: var(--step--1); }
.mt { margin-top: 2.5rem; }

/* Intro on the left, the actual content on the right. Without this every
   section was one narrow column with half a desktop screen empty beside it. */
.split { display: grid; gap: 0; }

@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 4rem;
    align-items: start;
  }
  .split .prices,
  .split .places-intro { margin-top: 0.6rem; }
}

a { color: var(--petrol); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* --- Demo banner ---------------------------------------------------------- */

.demo-banner {
  background: var(--banner-bg);
  color: var(--banner-ink);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: var(--step--1);
  font-weight: 600;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding-block: 0.7rem;
}

/* Kept small on mobile so the logo and the call button stay on one line — a
   wrapped sticky header eats a third of a phone screen. */
.logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

@media (min-width: 30rem) {
  .logo { font-size: var(--step-1); }
}

/* The ampersand is the only ornament on the site. */
.amp {
  font-style: italic;
  color: var(--petrol);
}

.nav-list { display: none; }

@media (min-width: 52rem) {
  .nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
  }
  .nav-list a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: var(--step--1);
  }
  .nav-list a:hover { color: var(--ink); text-decoration: underline; }
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
}
.call-btn:hover { filter: brightness(1.12); }

/* --- Hero: the bold idea -------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 9vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-hero);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 13ch;   /* three short lines on a phone */
}

@media (min-width: 52rem) {
  .hero h1 { max-width: 14ch; }   /* two long lines, "hate" ending the first */
}

/* The single emphasised word carries the whole design. */
.hero h1 em {
  font-style: italic;
  color: var(--signal);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-muted);
  margin-top: 1.75rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { filter: brightness(1.12); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-ui);
}
.btn-secondary:hover { border-color: var(--ink); }

/* --- Steps ---------------------------------------------------------------- */
/* A numbered sequence, not a grid of identical icon cards. */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  gap: 2.25rem;
}

.steps li {
  counter-increment: step;
  padding-left: 3.25rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--petrol);
}

.steps h3 { font-size: var(--step-1); font-weight: 700; }
.steps p { color: var(--ink-muted); margin-top: 0.4rem; }

@media (min-width: 52rem) {
  .steps { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; row-gap: 2.75rem; }
}

/* --- Prices --------------------------------------------------------------- */

.prices {
  margin: 2rem 0 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 44rem;
}

.prices > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.prices dt { font-weight: 600; }

.prices dt span {
  display: block;
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-top: 0.1rem;
}

.prices dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--petrol);
  white-space: nowrap;
}

/* --- Area ----------------------------------------------------------------- */

/* Small and quiet on purpose: the headline is the bold idea, not this. */
.room-photo {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  margin-top: 1.5rem;
  border-radius: var(--radius);
}

.places-intro { margin-top: 1.75rem; }

/* A plain list in columns. Pills read as a tag cloud; this reads as a list of
   places, which is what it is. */
.places {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  columns: 2;
  column-gap: 2rem;
  max-width: 34rem;
}

.places li {
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

@media (min-width: 52rem) {
  .places { columns: 3; }
}

/* --- Reviews -------------------------------------------------------------- */

.placeholder-note {
  padding: 0.75rem 1rem;
  border: 1px dashed var(--ink-muted);
  border-radius: var(--radius);
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.reviews { display: grid; gap: 2rem; }

.review {
  margin: 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--petrol);
}

.review blockquote p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
}

.review figcaption {
  margin-top: 0.55rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

@media (min-width: 52rem) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
}

/* --- Contact -------------------------------------------------------------- */

.contact-grid { display: grid; gap: 3rem; }

@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
}

.book-form { margin-top: 1.5rem; max-width: 32rem; }

.field { margin-bottom: 1.05rem; }

.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-ui);
  border-radius: var(--radius);
}

.field textarea { min-height: 6.5rem; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); opacity: 1; }

.field input:hover,
.field textarea:hover { border-color: var(--ink-muted); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 0.8rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* --- Hours ---------------------------------------------------------------- */

.hours { margin-top: 1.25rem; border-top: 1px solid var(--line); }

.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.hours dt { color: var(--ink-muted); }
.hours dd { margin: 0; font-weight: 600; }

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer .wrap { display: grid; gap: 0.5rem; }

.footer-mark {
  font-family: var(--font-display);
  font-size: var(--step-1);
}

.footer-demo { font-style: italic; margin-top: 0.5rem; }

/* --- Demo form notice ----------------------------------------------------- */

.form-sent {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--signal);
  background: var(--paper-alt);
  font-size: var(--step--1);
}
.form-sent[hidden] { display: none; }

/* --- Motion --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
