/* Bees Knees Grooming — bksgrooms.com
   Mobile-first. No framework. Brand tokens from brand-notes.md.
   Display face is Pacifico as a marked stand-in pending the real Canva font. */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Bees Display";
  src: url("../fonts/pacifico-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bees Sans";
  src: url("../fonts/worksans-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --magenta:  #C2185B;
  --magenta-d:#9E1149;   /* hover, darker so white text keeps AA */
  --rose:     #DF669B;
  --coral:    #ED8C5C;
  --marigold: #F0BA40;
  --sand:     #EED9B1;
  --cream:    #FFFCFA;
  --cocoa:    #3A2A2E;
  --muted:    #6E5B60;   /* 7.0:1 on cream, safe for small print */
  --line:     #EFE2D6;
  --white:    #FFFFFF;

  --sans: "Bees Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bees Display", "Brush Script MT", cursive;

  --wrap: 1120px;
  --read: 68ch;
  --r: 14px;
  --pad: 20px;
  --bar: 0px;            /* mobile action bar height, set in media query */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  padding-bottom: var(--bar);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cocoa);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-underline-offset: 3px; }
a:hover { color: var(--magenta-d); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 6vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 4.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.8vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
p, li { max-width: var(--read); }
ul, ol { padding-left: 1.15em; }
li { margin-bottom: .45em; }
small { font-size: .875rem; }

.script { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--magenta);
  margin: 0 0 .6rem; display: block;
}
.eyebrow--light { color: var(--sand); }
.lede { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--magenta);
  color: #fff; padding: .8rem 1.2rem; z-index: 200; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(2.6rem, 7vw, 4.6rem); }
.section--tint { background: var(--white); border-block: 1px solid var(--line); }
.section--dark { background: var(--magenta); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: #FBE6EE; }
/* :not(.btn) matters. Without it this rule outranks .btn--light on specificity
   and paints the primary CTA marigold-on-cream at 1.74:1. */
.section--dark a:not(.btn) { color: var(--marigold); }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
}

/* ---------- header ---------- */
.hdr { background: var(--cream); border-bottom: 1px solid var(--line); position: relative; z-index: 60; }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.hdr__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-height: 44px; }
.hdr__mark { width: 56px; height: 56px; flex: none; }
.hdr__words { display: block; }
.hdr__name {
  display: block; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
  color: var(--cocoa); line-height: 1.15;
}
.hdr__inside {
  font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); display: block; margin-top: 2px;
}
.hdr__toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem .9rem;
  background: none; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--cocoa); cursor: pointer;
}
.nav { display: none; }
.nav[data-open="true"] { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0 0 1rem; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: .8rem .2rem; min-height: 44px; font-weight: 600;
  color: var(--cocoa); text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--magenta); }
@media (min-width: 900px) {
  .hdr__toggle { display: none; }
  .nav { display: block !important; }
  .nav ul { display: flex; gap: 1.4rem; align-items: center; padding: 0; }
  .nav a { border: 0; padding: .4rem 0; font-size: .95rem; }
  .nav .nav__cta {
    background: var(--magenta); color: #fff; padding: .7rem 1.15rem;
    border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  }
  .nav .nav__cta:hover { background: var(--magenta-d); color: #fff; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .9rem 1.6rem;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--magenta); color: #fff; }
.btn--primary:hover { background: var(--magenta-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--magenta); border-color: var(--magenta); }
.btn--ghost:hover { background: var(--magenta); color: #fff; }
.btn--light { background: var(--cream); color: var(--magenta); }
.btn--light:hover { background: #fff; color: var(--magenta-d); }
.btn--wide { width: 100%; }
@media (min-width: 560px) { .btn--wide { width: auto; } }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 3.6rem) clamp(2.4rem, 7vw, 4rem); }
.hero__img { border-radius: var(--r); overflow: hidden; box-shadow: 0 14px 40px rgba(58,42,46,.13); }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.2rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.badges li {
  margin: 0; font-size: .82rem; font-weight: 600; color: var(--cocoa);
  background: var(--white); border: 1px solid var(--line);
  padding: .45rem .85rem; border-radius: 999px;
}
.badges li::before { content: "🐝"; margin-right: .4rem; }

/* ---------- ribbon divider (brand device from the business card) ---------- */
.ribbon { height: 10px; display: flex; }
.ribbon i { flex: 1; }
.ribbon i:nth-child(1) { background: var(--magenta); }
.ribbon i:nth-child(2) { background: var(--rose); }
.ribbon i:nth-child(3) { background: var(--coral); }
.ribbon i:nth-child(4) { background: var(--marigold); }
.ribbon i:nth-child(5) { background: var(--sand); }

/* ---------- cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card__price { font-weight: 700; color: var(--magenta); font-size: 1.05rem; }
.card__link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card__link::after { content: " →"; }
.card--flat { background: transparent; border: 0; padding: 0; }
.num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; margin-bottom: .9rem; flex: none;
}
.num--1 { background: var(--magenta); } .num--2 { background: var(--rose); }
.num--3 { background: var(--coral); }   .num--4 { background: #C98A1E; }

/* ---------- callout ---------- */
.note {
  background: #FFF6E4; border: 1px solid var(--marigold); border-radius: var(--r);
  padding: 1.25rem 1.4rem; margin: 1.6rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: #7A5410; }
.note--magenta { background: #FDF0F5; border-color: var(--rose); }
.note--magenta strong { color: var(--magenta-d); }

/* ---------- hours / find us ---------- */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt, .facts b { min-width: 7.5rem; font-weight: 700; flex: none; }

/* ---------- pricing table ---------- */
.ptable { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .97rem; }
.ptable caption { text-align: left; font-weight: 700; font-size: 1.15rem; padding-bottom: .5rem; }
.ptable th, .ptable td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); }
.ptable thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ptable td:last-child, .ptable th:last-child { text-align: right; font-weight: 700; color: var(--magenta); white-space: nowrap; }
.ptable td:nth-child(2) { color: var(--muted); font-size: .9rem; }
.ptable tbody tr:nth-child(odd) { background: rgba(238,217,177,.16); }
.tscroll { overflow-x: auto; }
@media (max-width: 560px) {
  .ptable td:nth-child(2), .ptable th:nth-child(2) { display: none; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.05rem .2rem; font-weight: 700; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--magenta); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 .2rem 1.1rem; color: var(--muted); }
.faq details > div > p:last-child { margin-bottom: 0; }

/* ---------- booking embed ---------- */
.cal-shell {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
  /* Calendly writes height="100%" on its own iframe, and a percentage height only
     resolves against a parent with a DEFINITE height. `height: auto` here gave it
     nothing to resolve against, so the widget collapsed to a header and blank
     space. A fixed height is what Calendly's own embed snippet uses. */
  height: 1080px;              /* mobile: date picker and time slots stack */
  overflow: hidden;            /* safe now: the iframe fills the box exactly */
}
.cal-shell iframe {
  display: block; width: 100%; height: 100%; border: 0;
}
.cal-skel { display: grid; place-items: center; height: 100%; text-align: center; padding: 2rem; }
.cal-skel p { color: var(--muted); }
@media (min-width: 700px)  { .cal-shell { height: 900px; } }
@media (min-width: 1000px) { .cal-shell { height: 760px; } }

/* a button that has to read as a link, for the click-to-call reveal */
.linkbtn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--magenta);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.linkbtn:hover { color: var(--magenta-d); }
.ftr .linkbtn { color: var(--marigold); }

/* ---------- footer ---------- */
.ftr { background: var(--cocoa); color: #E8DDDF; padding-block: 2.8rem 2rem; }
.ftr a { color: var(--marigold); }
.ftr h2 { color: var(--cream); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6rem; }
.ftr__logo { width: 128px; height: 128px; margin-bottom: 1rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: .5rem; }
.ftr__legal { border-top: 1px solid #554246; margin-top: 2rem; padding-top: 1.4rem; font-size: .85rem; color: #B9A8AC; }
.ftr__legal p { max-width: none; }

/* ---------- misc ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1.1rem; }
.crumbs a { color: var(--muted); }
.figure figcaption { font-size: .85rem; color: var(--muted); padding-top: .6rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
