/* --------------------------------------------------------------------------
   HOW TO RESTYLE THIS SITE
   --------------------------------------------------------------------------
   Every colour, size, gap and shape used anywhere on the page comes from the
   :root block just below. Change a value there and it changes everywhere.

   Change these six colours to restyle the whole site:

     --color-bg          the page background (warm cream)
     --color-surface     the background of cards, panels and white bands
     --color-ink         headings and body text (deep plum)
     --color-ink-soft    secondary text: captions, notes, small print
     --color-accent      buttons, links, highlights (deep rose)
     --color-accent-soft blush washes: hero gradient, hovers, step numbers

   --color-line is the hairline colour for borders and rules.

   The fonts are system fonts on purpose: nothing is downloaded, so the page
   paints instantly and never asks another server for a file. To use a
   self-hosted webfont later, drop the .woff2 file into this project, add an
   @font-face block that names a local path to that file, then put that family
   first in --font-display and --font-body below.
   -------------------------------------------------------------------------- */

:root {
  /* ---- Colours ---- */
  --color-bg: #FDF8F5;
  --color-surface: #FFFFFF;
  --color-ink: #2E1F26;
  --color-ink-soft: #6B5A61;
  --color-accent: #B4546A;
  --color-accent-soft: #F2D9DE;
  --color-line: #EADFD9;

  /* ---- Type ---- */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  /* Type scale. Each step is about a fifth larger than the one before it:
     --step--1 (0.875rem) is a notch below body text for captions and labels,
     --step-0 (1rem) is plain body text, then 1.25, 1.5, 1.875, 2.25rem, and
     --step-5 is the hero headline, which also grows with the screen. */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 1.875rem;
  --step-4: 2.25rem;
  --step-5: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);

  /* Spacing scale, from the smallest gap to the biggest section padding.
     Everything in the file is one of these, so a single value changes every
     gap of that size at once. */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  /* ---- Shape and depth ---- */
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --shadow-soft: 0 8px 24px rgba(46,31,38,.08);

  /* ---- Layout ---- */
  --container-max: 72rem;
  --measure: 65ch;
}

/* --- Base --- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
}

p {
  margin: 0 0 var(--space-md);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-lg);
}

img,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
}

/* Focus is never removed anywhere on the page: every focusable thing gets an
   accent ring, so keyboard users can always see where they are. */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Utilities --- */

/* Standard clip-based screen-reader-only text: laid out for sighted users,
   clipped out of view for everyone, still read aloud. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* First tab stop on the page. Parked just above the viewport until focused,
   then it drops into the top-left corner on a solid accent block. */
.skip-link {
  position: fixed;
  top: 0;
  left: var(--space-md);
  z-index: 100;
  transform: translateY(-150%);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* The accent ring would disappear against the accent background, so the skip
   link outlines itself in ink instead. */
.skip-link:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
}

/* --- Layout --- */

/* Narrow screens get tighter side padding; wider ones breathe. */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 30rem) {
  .container {
    padding-inline: var(--space-lg);
  }
}

/* Generous vertical rhythm: tall bands on small screens, taller on wide. */
.section {
  padding-block: var(--space-2xl);
}

@media (min-width: 48rem) {
  .section {
    padding-block: var(--space-3xl);
  }
}

.section__title {
  max-width: 20ch;
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.1;
  color: var(--color-ink);
}

.section__lead {
  max-width: var(--measure);
  margin: 0 0 var(--space-xl);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--color-ink-soft);
}

/* --- Section bands --- */
/* Alternating washes give the page soft horizontal bands without any extra
   markup: these four sit on the page cream, .services and .faq sit on white. */
.about,
.electrolysis,
.expect,
.contact {
  background: var(--color-bg);
}

.services,
.faq {
  background: var(--color-surface);
}

/* --- Header and navigation --- */

/* Sticky so the CTA is always one tap away. The z-index keeps the bar above
   the hero canvas and the hero text as the page scrolls under it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

/* The header has no .container element, so the nav carries the same max-width
   and side padding itself. */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-block: var(--space-sm);
  padding-inline: var(--space-md);
}

@media (min-width: 30rem) {
  .nav {
    padding-inline: var(--space-lg);
  }
}

/* A text wordmark rather than a logo image: it stays crisp at any size, needs
   no extra file, and inherits the display font. */
.nav__brand {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Hidden on narrow screens on purpose: there is no hamburger, because the
   one thing a phone visitor needs — the booking CTA — is always visible. */
.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.nav__links a {
  color: var(--color-ink);
  font-size: var(--step-0);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

@media (min-width: 48rem) {
  .nav__links {
    display: flex;
    align-items: center;
    margin-inline: auto;
  }
}

/* Pinned to the right on phones, where the link list is hidden. These rules
   come before the button styles so that a nav CTA that also carries the
   .button classes still wins on colour. */
.nav__cta {
  margin-left: auto;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav__cta:hover {
  filter: brightness(0.93);
}

@media (min-width: 48rem) {
  .nav__cta {
    margin-left: var(--space-lg);
  }
}

/* --- Buttons --- */
/* Base: everything button-shaped shares this shape and rhythm. The variants
   below only change colour, so a new variant is three lines of work. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

/* Lifted primary: deep rose on cream text, floating on the soft shadow. */
.button--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

.button--primary:hover {
  /* Darkened with a filter rather than a second hex value, so the accent
     token stays the single source of truth for the colour. */
  filter: brightness(0.93);
}

.button--primary:active {
  filter: brightness(0.88);
  transform: translateY(1px);
}

.button--ghost {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.button--ghost:hover {
  background: var(--color-accent-soft);
}

.button--ghost:active {
  transform: translateY(1px);
}

/* Keyboard users always see the accent ring, on either variant. */
.button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Hero --- */
/* #hero and .hero are the same element; both names are listed so either can
   be targeted without editing this block again. */
.hero,
#hero {
  position: relative;
  display: flex;
  align-items: center;
  /* A stacking context of its own, so the canvas/content layering below is
     contained here and can never fight the sticky header. */
  isolation: isolate;
  /* Strands that drift off the edge must never create a sideways scrollbar. */
  overflow: hidden;
  padding-block: var(--space-3xl);
  /* Gradient fallback: the canvas paints over this, but if JavaScript is off,
     blocked or broken the hero still looks like a designed banner rather than
     an empty box — the animation is a layer on top, not the foundation. */
  background: linear-gradient(160deg, var(--color-accent-soft), var(--color-bg) 70%);
  min-height: 34rem;
  min-height: 100dvh;
}

/* The canvas fills the hero and sits at the bottom of its stacking context.
   pointer-events: none so taps and clicks pass straight through to the copy,
   and z-index: 0 so the strands wash behind the words instead of over them. */
.hero__canvas,
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The hero has no .container, so the content block carries the same max-width
   and side padding, and sits above the canvas layer. */
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 30rem) {
  .hero__content {
    padding-inline: var(--space-lg);
  }
}

.hero__title {
  max-width: 18ch;
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 1.05;
  color: var(--color-ink);
  text-wrap: balance;
}

.hero__tagline {
  max-width: var(--measure);
  margin: 0 0 var(--space-xl);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--color-ink);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero__note {
  max-width: var(--measure);
  margin: 0;
  font-size: var(--step--1);
  color: var(--color-ink-soft);
}

/* --- About --- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 48rem) {
  .about__grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: var(--space-2xl);
  }
}

.about__media {
  margin: 0;
}

.about__portrait {
  width: 100%;
  height: auto;
  /* Matches the 4:5 portrait crop, so the photo fills the frame without
     being cut off at the sides. */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  /* Blush block behind the image, visible while the photo is still loading. */
  background: var(--color-accent-soft);
}

.about__body {
  max-width: var(--measure);
}

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

/* The facts read as a full-width band beneath the two columns. */
.about__facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  list-style: none;
  margin: 0;
  padding: var(--space-lg) 0 0;
  border-top: 1px solid var(--color-line);
}

.about__facts li {
  position: relative;
  padding-left: var(--space-md);
  font-size: var(--step--1);
  color: var(--color-ink-soft);
}

.about__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent);
}

/* --- Electrolysis --- */

/* Three across on wide screens, a single stack on phones. */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card__title {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.2;
}

.card__text {
  margin: 0;
  color: var(--color-ink-soft);
}

/* --- Services --- */

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

/* Narrow screens first: name, then the price directly beneath it, then the
   detail — the price stays next to the thing it prices. */
.price-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xs);
  padding-block: var(--space-md);
  border-bottom: 1px dotted var(--color-line);
}

.price-item__name {
  order: 1;
  font-size: var(--step-1);
  font-weight: 600;
}

.price-item__price {
  order: 2;
  font-weight: 700;
  color: var(--color-accent);
}

.price-item__detail {
  order: 3;
  font-size: var(--step--1);
  color: var(--color-ink-soft);
}

/* Wider screens: name and detail sit together on the left, the price is
   right-aligned on the same row, separated by the dotted rule above it. */
@media (min-width: 40rem) {
  .price-item {
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    column-gap: var(--space-lg);
    row-gap: var(--space-2xs);
  }

  .price-item__name,
  .price-item__detail,
  .price-item__price {
    order: 0;
  }

  .price-item__price {
    text-align: right;
    white-space: nowrap;
  }
}

.services__note {
  max-width: var(--measure);
  margin: var(--space-lg) 0 0;
  font-size: var(--step--1);
  color: var(--color-ink-soft);
}

/* --- What to expect --- */

.expect__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 48rem) {
  .expect__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  /* Two content columns share the three tracks: the longer numbered list
     runs across two of them, the aftercare list takes the last third. */
  .expect__col:first-child {
    grid-column: 1 / 3;
  }
}

.expect__subtitle {
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-line);
  font-size: var(--step-2);
  line-height: 1.2;
}

/* Numbered circles replace the browser's own list markers, so the numbers
   read as steps rather than as decoration. */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  counter-increment: step;
  position: relative;
  padding-left: var(--space-2xl);
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-ink);
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1;
}

.aftercare {
  display: grid;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.aftercare li {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.aftercare li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-0.15rem);
}

/* --- FAQ --- */

/* Narrower than the container: an accordion that runs the full 72rem would
   put question and answer a long way apart. */
.faq__list {
  display: grid;
  gap: var(--space-md);
  max-width: 52rem;
}

.faq__item {
  padding-inline: var(--space-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

/* The summary is the whole clickable header: say so with the cursor, lay it
   out as a row, and give it a marker that is visible without relying on the
   browser's default triangle. */
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
  transition: color 160ms ease;
}

/* Hides the operating system's own disclosure marker; the plus below replaces
   it on every browser, in the accent colour. */
.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1;
  color: var(--color-accent);
}

/* En dash instead of a plus while the panel is open. */
.faq__item[open] .faq__question::after {
  content: "\2013";
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__answer {
  max-width: var(--measure);
  margin: 0;
  padding-bottom: var(--space-lg);
  color: var(--color-ink-soft);
}

/* --- Contact --- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 48rem) {
  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

.contact__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* An <address> renders italic by default; as a set of details it reads better
   upright and slightly looser. */
.contact__details {
  margin: 0 0 var(--space-md);
  font-style: normal;
  line-height: 1.7;
}

.contact__link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.contact__link:hover {
  text-decoration: underline;
}

.contact__link:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.contact__hours {
  max-width: var(--measure);
  margin: 0;
  font-size: var(--step--1);
  color: var(--color-ink-soft);
}

.contact__pitch {
  max-width: var(--measure);
  margin: 0 0 var(--space-lg);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* Keeps the button at its natural width inside the stretched column. */
.contact__cta {
  align-self: flex-start;
}

/* --- Footer --- */

/* The deep plum band anchors the bottom of the page, using the same ink the
   headings use — no new colour is introduced for it. */
.site-footer {
  padding-block: var(--space-2xl);
  background: var(--color-ink);
  color: var(--color-accent-soft);
  text-align: center;
  font-size: var(--step--1);
}

.site-footer__name {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--color-bg);
}

.site-footer__note {
  max-width: var(--measure);
  margin: 0 auto var(--space-lg);
  color: var(--color-accent-soft);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--color-bg);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent-soft);
  text-decoration: underline;
}

/* The accent ring is too close to the plum background to see clearly, so
   footer links ring themselves in blush instead. */
.site-footer a:focus-visible {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: 2px;
}

/* --- Reduced motion --- */
/* Visitors who ask their device for less motion get a still page: every
   transition and animation is collapsed to an instant. The hero canvas script
   honours the same preference on its side. */
@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;
  }

  html {
    scroll-behavior: auto;
  }
}
