/* ————————————————————————————————
   Essence Salon & Spa — design system
   Earthy, Aveda-inspired: deep botanical green,
   warm linen, clay accent. Serif display + clean sans.
   ———————————————————————————————— */

:root {
  --green-deep: #1f3a2d;
  --green-ink: #16291f;
  --green-soft: #46604f;
  --sage: #8a9b86;
  --sage-light: #dde3d5;
  --linen: #f7f4ee;
  --linen-dark: #efe9df;
  --cream: #fdfcf9;
  --clay: #a9613f;
  --clay-dark: #8c4e31;
  --charcoal: #26251f;
  --text-soft: #5a584e;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Avenir Next", "Segoe UI", sans-serif;

  --max-width: 1080px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--linen);
  line-height: 1.65;
  font-size: 1.0625rem;
}

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

a { color: var(--green-deep); }

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

/* ——— Type ——— */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.45rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.2rem; color: var(--text-soft); max-width: 46ch; }

/* ——— Header / nav ——— */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linen-dark);
}

.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0.9rem 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  color: var(--green-deep); text-decoration: none;
  letter-spacing: 0.02em;
}
.brand span { color: var(--clay); }

.site-nav { display: flex; gap: 1.6rem; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--charcoal);
  font-size: 0.92rem; font-weight: 400; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--sage); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--clay); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--green-deep); cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--linen-dark);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.9rem 1.5rem; width: 100%; border-bottom: 1px solid var(--linen-dark); }
}

/* ——— Buttons ——— */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.85rem 1.9rem; border-radius: var(--radius);
  border: 1px solid var(--green-deep);
  transition: background 0.2s, color 0.2s;
}
.btn-solid { background: var(--green-deep); color: var(--cream); }
.btn-solid:hover { background: var(--green-ink); }
.btn-outline { background: transparent; color: var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: var(--cream); }
.btn-clay { background: var(--clay); border-color: var(--clay); color: var(--cream); }
.btn-clay:hover { background: var(--clay-dark); }

/* ——— Hero ——— */

.hero {
  background:
    radial-gradient(ellipse 90% 70% at 85% 10%, rgba(138, 155, 134, 0.35), transparent),
    linear-gradient(160deg, var(--green-deep) 0%, var(--green-ink) 80%);
  color: var(--linen);
  overflow: hidden;
  position: relative;
}
.hero .container {
  padding: clamp(4rem, 10vw, 7.5rem) 1.5rem;
  position: relative; z-index: 1;
}
.hero h1 { color: var(--cream); max-width: 15ch; }
.hero .eyebrow { color: var(--sage-light); }
/* Two deliberate lines instead of an awkward mid-phrase wrap of the single
   run "An Aveda Concept Salon · Fond du Lac, Wisconsin". */
.hero-eyebrow span { display: block; }
.hero-eyebrow span + span { color: var(--sage); }
.hero p { max-width: 52ch; margin: 1.4rem 0 2.2rem; font-size: 1.15rem; color: var(--sage-light); }
.hero .leaf { position: absolute; right: -60px; bottom: -80px; width: 420px; opacity: 0.14; z-index: 0; }

/* ——— Sections ——— */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green-deep); color: var(--linen); }
.section-green h2 { color: var(--cream); }
.section-green .eyebrow { color: var(--sage-light); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.value-card { padding: 2rem 1.6rem; background: var(--cream); border: 1px solid var(--linen-dark); border-radius: var(--radius); }
.section-cream .value-card { background: var(--linen); }
.value-card .icon { width: 44px; height: 44px; margin-bottom: 1.1rem; color: var(--clay); }
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { color: var(--text-soft); font-size: 0.98rem; }

/* ——— Menu (services) ——— */

.menu-nav {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0 0;
}
.menu-nav a {
  text-decoration: none; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5rem 1.1rem; border: 1px solid var(--sage); border-radius: 999px;
  color: var(--green-deep); background: var(--cream);
}
.menu-nav a:hover { background: var(--sage-light); }

.menu-category { padding-top: 3.5rem; }
.menu-category > .cat-intro { color: var(--text-soft); margin: 0.4rem 0 0; max-width: 60ch; }
.menu-category > .cat-note { font-size: 0.9rem; color: var(--clay-dark); font-style: italic; margin-top: 0.4rem; }

.menu-group-label {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); font-weight: 500; margin: 2rem 0 0.4rem;
}

.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 2rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--linen-dark);
}
.menu-item .name { font-weight: 400; font-size: 1.08rem; color: var(--green-ink); }
.menu-item .duration { color: var(--sage); font-size: 0.9rem; margin-left: 0.5rem; }
.menu-item .desc { grid-column: 1; color: var(--text-soft); font-size: 0.95rem; max-width: 58ch; }
.menu-item .prices { text-align: right; white-space: nowrap; color: var(--green-deep); font-weight: 400; }
.menu-item .prices .variant { display: block; }
.menu-item .prices .label { color: var(--text-soft); font-size: 0.85rem; margin-right: 0.4rem; }
.menu-item .prices .starting { color: var(--sage); font-size: 0.8rem; }
@media (max-width: 560px) {
  .menu-item { grid-template-columns: 1fr; }
  .menu-item .prices { text-align: left; }
}

/* ——— Reviews ——— */

/* This section sits on deep green, so the whole block was over-tall on desktop
   and the default section rhythm left big gaps. Tighten the vertical padding
   and pull the pieces closer together. */
#reviews.section { padding-block: clamp(3rem, 5vw, 4.5rem); }

.rating-summary { display: flex; align-items: baseline; gap: 0.7rem; margin-top: 1rem; }
/* On the dark green background the score was green-on-green and vanished; it has
   to be a light tone here. */
.rating-summary .score { font-family: var(--font-display); font-size: 2.8rem; color: var(--cream); line-height: 1; }
.rating-summary .score-max { color: var(--sage-light); font-size: 1rem; }
.rating-summary .count { color: var(--sage-light); font-size: 0.95rem; }

.reviews-strip {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 860px) { .reviews-strip { grid-template-columns: 1fr; } }

.review-card {
  background: var(--cream);
  border: 1px solid var(--linen-dark);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}
/* Decorative opening quote, echoing OFUN's card. */
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--sage);
  opacity: 0.35;
}
.review-card .stars { color: var(--clay); letter-spacing: 0.12em; font-size: 1rem; }

/* Collapsed cards clamp to a shared height so a row stays even; the fold button
   reveals the rest in place. */
.review-card .text {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
.review-card.expanded .text {
  display: block;
  -webkit-line-clamp: none;
  line-clamp: none;
  overflow: visible;
}
.review-card .expand-toggle {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0.15rem 0;
  min-height: 32px;
  color: var(--clay);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.review-card .expand-toggle:hover { text-decoration: underline; }

.review-card .author { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.35rem; }
.review-card .author img { width: 34px; height: 34px; border-radius: 50%; }
.review-card .author a { font-size: 0.92rem; font-weight: 500; }
.review-card .when { color: var(--text-soft); font-size: 0.82rem; }

.reviews-attribution { margin-top: 1.5rem; font-size: 0.85rem; color: var(--sage-light); display: flex; align-items: center; gap: 0.5rem; }
.reviews-attribution strong { color: var(--cream); }
.reviews-attribution a { color: var(--sage-light); }

/* ——— Contact ——— */

.contact-block h3 { margin-bottom: 0.6rem; }
.contact-block + .contact-block { margin-top: 2rem; }
.contact-block a { color: var(--clay-dark); }
.hours-table { width: 100%; border-collapse: collapse; max-width: 380px; }
.hours-table td { padding: 0.45rem 0; border-bottom: 1px solid var(--linen-dark); }
.hours-table td:last-child { text-align: right; color: var(--text-soft); }
/* Owner-written caveat under the hours — quieter than the table it qualifies. */
.hours-note { max-width: 380px; margin-top: 0.75rem; font-size: 0.88rem; line-height: 1.55; color: var(--text-soft); font-style: italic; }
.map-frame { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); filter: sepia(0.15) saturate(0.9); }

/* ——— Aveda page ——— */

.aveda-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--sage); border-radius: 999px;
  padding: 0.45rem 1.2rem; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-deep); background: var(--cream);
}

/* ——— Footer ——— */

.site-footer { background: var(--green-ink); color: var(--sage-light); padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-display); color: var(--cream); font-size: 1.25rem; margin-bottom: 0.8rem; font-weight: 500; }
.site-footer a { color: var(--sage-light); }
.site-footer .fine { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(138,155,134,0.25); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ——— Announcement ——— */
.announcement { background: var(--clay); color: var(--cream); text-align: center; padding: 0.55rem 1rem; font-size: 0.92rem; letter-spacing: 0.04em; }
.announcement:empty { display: none; }

/* ——— Featured offer ——— */
/* Sits between the category nav and the menu. Deep green so it reads as a
   moment apart from the linen menu without shouting. */

.featured {
  position: relative;
  overflow: hidden;
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 120% at 92% 8%, rgba(138, 155, 134, 0.32), transparent),
    linear-gradient(150deg, var(--green-deep) 0%, var(--green-ink) 85%);
  color: var(--sage-light);
  border-left: 3px solid var(--clay);
}

.featured .eyebrow { color: var(--sage-light); margin-bottom: 0.6rem; }
.featured h2 { color: var(--cream); font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.featured-desc { margin-top: 0.7rem; max-width: 56ch; }

.featured-ends {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(253, 252, 249, 0.28);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

/* Outline button sits on dark here, so invert its colours. */
.featured .featured-call {
  border-color: var(--sage-light);
  color: var(--linen);
}
.featured .featured-call:hover {
  background: var(--linen);
  color: var(--green-deep);
}

/* ——— Back to top ——— */
/* Long pages only (the service menu). Stays out of the way until you've
   scrolled past roughly a screenful, then fades in over the content. */

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2.25rem);
  bottom: calc(clamp(1rem, 3vw, 2.25rem) + env(safe-area-inset-bottom, 0px));
  z-index: 40;

  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;

  background: var(--green-deep);
  color: var(--cream);
  border: 1px solid rgba(253, 252, 249, 0.18);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(22, 41, 31, 0.28);
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s,
    background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clay);
  border-color: rgba(253, 252, 249, 0.3);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 1.05rem;
  height: 1.05rem;
  /* Optical centering — the arrow reads low inside a circle otherwise. */
  margin-top: -1px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.28s ease, visibility 0.28s; transform: none; }
  .back-to-top.is-visible { transform: none; }
}

/* ——— Utility ——— */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.muted { color: var(--text-soft); }
.skeleton { opacity: 0.5; font-style: italic; }

/* ——— Skip link ——— */
/* Lets a keyboard user jump the header and nav in a single press. Off-screen
   until focused, so it costs sighted visitors nothing. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  transform: translateY(-120%);
  padding: 0.75rem 1.25rem;
  background: var(--green-deep, #2f4a3c);
  color: var(--linen, #f5f1ea);
  font-weight: 500;
  text-decoration: none;
  border-bottom-right-radius: 0.5rem;
}

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

main:focus {
  outline: none;
}

/* ——— Aveda partnership ——— */
/* The partnership is the salon's strongest differentiator, so it gets two
   placements: a panel that fills the empty half of the hero (first thing a
   visitor sees) and a full-width band further down the home page. */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-grid .hero-copy p { max-width: 46ch; }

.aveda-panel {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 3vw, 2.4rem);
  border: 1px solid rgba(221, 227, 213, 0.35);
  border-radius: var(--radius);
  /* Translucent so the leaf watermark still reads behind it. */
  background: rgba(22, 41, 31, 0.55);
  backdrop-filter: blur(6px);
  text-align: center;
}
.aveda-panel .kicker {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage-light); margin-bottom: 0.6rem;
}
/* Wordmark + "Concept Salon" read as one lockup — tight together and clearly
   apart from the kicker above — rather than three evenly spaced lines. */
.aveda-lockup { margin: 0; }
.aveda-wordmark {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: 0.34em;
  /* The tracking adds space after the final letter; pull it back so the
     wordmark stays optically centred. */
  text-indent: 0.34em;
  line-height: 1;
  color: var(--cream);
}
.aveda-panel .concept {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-top: 0.4rem;
  text-indent: 0.28em;
}
.aveda-rule {
  width: 46px; height: 1px; margin: 1.3rem auto;
  background: var(--clay); border: 0;
}
.aveda-panel .blurb {
  font-size: 0.98rem; color: var(--sage-light); margin: 0 0 1.5rem;
}
.aveda-traits {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.45rem; margin-bottom: 1.6rem;
}
.aveda-traits li {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sage-light);
  border: 1px solid rgba(221, 227, 213, 0.3);
  border-radius: 999px; padding: 0.28rem 0.7rem;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* On one column the panel follows the buttons, so it needs its own breathing
     room rather than the grid gap doing the work. */
  .aveda-panel { margin-top: 2.5rem; }
  .hero-grid .hero-copy p { max-width: none; }
}

/* Full-width advert band — sits where a visitor has just read the philosophy
   and is deciding whether this salon is different from any other. */
.aveda-band { background: var(--green-deep); color: var(--linen); }
.aveda-band .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.aveda-band h2 { color: var(--cream); }
.aveda-band .eyebrow { color: var(--sage-light); }
.aveda-band p { color: var(--sage-light); }
.aveda-band .btn-outline { border-color: var(--sage-light); color: var(--linen); }
.aveda-band .btn-outline:hover { background: var(--sage-light); color: var(--green-deep); }
.aveda-band-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.aveda-pillars { display: grid; gap: 1rem; }
.aveda-pillar {
  border: 1px solid rgba(221, 227, 213, 0.22);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.aveda-pillar h3 { color: var(--cream); font-size: 1.15rem; }
.aveda-pillar p { font-size: 0.93rem; margin-top: 0.2rem; }

@media (max-width: 860px) {
  .aveda-band .container { grid-template-columns: 1fr; }
}

/* ——— Error pages ——— */
/* The hero copy is short here, so the default hero padding leaves the leaf
   watermark stranded below the fold. Tighten it and centre the column. */
.error-hero .container { padding-block: clamp(3.5rem, 8vw, 6rem); text-align: center; }
.error-hero h1 { max-width: none; }
.error-hero p { margin-inline: auto; }
.error-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
