/* ==========================================================================
   Marigold Braiding Co. — site styles
   Palette : indigo ground, saffron accent, bone menu card
   Type    : Prata (display) / Karla (text)
   ========================================================================== */

:root {
  --ink:        #17152C;
  --ink-deep:   #100E20;
  --ink-raised: #221F3D;
  --bone:       #F6F1E7;
  --bone-dim:   #CFC8BC;
  --saffron:    #F0A830;
  --saffron-dk: #C9841A;
  --rose:       #C76B8E;
  --line:       rgba(246, 241, 231, 0.16);
  --line-dark:  rgba(23, 21, 44, 0.18);

  --display: "Prata", Georgia, "Times New Roman", serif;
  --text:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 64ch;
  --gutter:  clamp(1.25rem, 5vw, 3.5rem);
  --shell:   1180px;

  color-scheme: dark;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.42vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 0.95vw, 2.15rem);
  --step-3:  clamp(2.1rem, 1.7rem + 1.9vw, 3.2rem);
  --step-4:  clamp(2.7rem, 1.9rem + 3.6vw, 4.9rem);
}

*, *::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: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: var(--text); font-weight: 700; letter-spacing: 0.01em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--saffron); color: var(--ink-deep);
  padding: 0.75rem 1.25rem; font-weight: 700; z-index: 100;
}
.skip:focus { left: 0; }

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--raised { background: var(--ink-raised); }

/* ---------- Braid rule: the recurring motif ------------------------------ */

.braid-rule {
  display: block;
  width: 100%;
  height: 16px;
  color: var(--saffron);
  opacity: 0.75;
}

/* ---------- Header ------------------------------------------------------- */

.topbar {
  background: var(--ink-deep);
  font-size: var(--step--1);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-block: 0.6rem;
}
.topbar p { margin: 0; color: var(--bone-dim); }
.topbar a { color: var(--saffron); text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(23, 21, 44, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}

.wordmark {
  font-family: var(--display);
  font-size: var(--step-1);
  text-decoration: none;
  line-height: 1.05;
  display: flex; flex-direction: column;
}
.wordmark span {
  font-family: var(--text);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--saffron);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a {
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { border-color: var(--saffron); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: inherit;
  font: inherit; font-size: var(--step--1);
  padding: 0.45rem 0.85rem; border-radius: 2px; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
  .masthead__inner { position: relative; }
}

/* ---------- Buttons ------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--primary { background: var(--saffron); color: var(--ink-deep); }
.btn--primary:hover { background: var(--bone); }
.btn--ghost { border-color: var(--line); color: var(--bone); }
.btn--ghost:hover { border-color: var(--saffron); color: var(--saffron); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: var(--ink-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* ---------- Hero --------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink-deep);
  overflow: hidden;
  padding-block: clamp(3.5rem, 10vw, 8rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__lede { font-size: var(--step-1); color: var(--bone-dim); max-width: 46ch; }
.hero h1 { margin-bottom: 0.4em; }
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--saffron);
}

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 0 2.25rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--bone-dim);
}
.hero__facts div { padding-block: 0.35rem; }
.hero__facts strong {
  display: block; color: var(--bone);
  font-family: var(--display); font-weight: 400;
  font-size: var(--step-1);
}

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Image slots (drop client photos in here) --------------------- */

.shot {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--wide { aspect-ratio: 3 / 2; }
.shot__placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 0.4rem;
  text-align: center; padding: 1.5rem;
  color: var(--bone-dim); font-size: var(--step--1);
}
.shot__placeholder strong { color: var(--saffron); font-weight: 700; }

/* ---------- Generic blocks ----------------------------------------------- */

.lede { font-size: var(--step-1); color: var(--bone-dim); max-width: 54ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.pillars > div { background: var(--ink); padding: clamp(1.5rem, 3vw, 2.25rem); }
.pillars h3 { margin-bottom: 0.5rem; }
.pillars p { color: var(--bone-dim); font-size: var(--step--1); margin: 0; }

/* ---------- Style catalogue ---------------------------------------------- */

.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0; list-style: none;
}
.filters button {
  font: inherit; font-size: var(--step--1); font-weight: 700;
  background: transparent; color: var(--bone-dim);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0.55rem 1.05rem; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filters button:hover { color: var(--bone); border-color: var(--bone-dim); }
.filters button[aria-pressed="true"] {
  background: var(--saffron); color: var(--ink-deep); border-color: var(--saffron);
}

.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.5rem;
  padding: 0; list-style: none;
}
.catalogue li { margin: 0; }
.style-card { display: flex; flex-direction: column; height: 100%; }
.style-card h3 { margin: 1rem 0 0.35rem; }
.style-card p { font-size: var(--step--1); color: var(--bone-dim); margin: 0 0 0.9rem; }
.style-card .from {
  margin-top: auto; font-size: var(--step--1);
  color: var(--saffron); font-weight: 700; letter-spacing: 0.02em;
}

/* ---------- Price menu (the bone card) ----------------------------------- */

.menu-card {
  background: var(--bone);
  color: var(--ink);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 2px;
}
.menu-card h2 { color: var(--ink); }
.menu-card .lede { color: #4A4560; }

.menu-group { margin-top: 2.75rem; }
.menu-group:first-of-type { margin-top: 2rem; }
.menu-group > h3 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--step-2);
  color: var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 2px solid var(--ink);
}
.menu-group__note {
  font-size: var(--step--1); color: #5C5674;
  margin: 0.75rem 0 1.25rem; max-width: 60ch;
}

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.price-list .item { font-weight: 700; }
.price-list .dur {
  display: block;
  font-size: var(--step--1);
  font-weight: 400;
  color: #5C5674;
}
.price-list .cost {
  font-family: var(--display);
  font-size: var(--step-1);
  white-space: nowrap;
}

.menu-foot {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
  font-size: var(--step--1); color: #4A4560;
}
.menu-foot strong { color: var(--ink); }

/* ---------- Steps (a real sequence, so numbered) ------------------------- */

.steps { list-style: none; margin: 3rem 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--saffron);
  line-height: 1;
}
.steps h3 { margin: 0 0 0.35rem; }
.steps p { margin: 0; color: var(--bone-dim); font-size: var(--step--1); }
@media (max-width: 560px) {
  .steps li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- FAQ ---------------------------------------------------------- */

.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 1rem;
  font-family: var(--display); font-size: var(--step-2);
  color: var(--saffron); line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p {
  margin: 0 0 1.4rem; color: var(--bone-dim); font-size: var(--step--1);
  max-width: 68ch;
}

/* ---------- Contact ------------------------------------------------------ */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.info-grid h3 { margin-bottom: 0.4rem; }
.info-grid p, .info-grid ul { color: var(--bone-dim); font-size: var(--step--1); margin: 0; }
.info-grid a { color: var(--saffron); }
.info-grid ul { list-style: none; padding: 0; }
.info-grid li { padding-block: 0.15rem; }

.hours { list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line);
  color: var(--bone-dim);
}
.hours li span:last-child { color: var(--bone); white-space: nowrap; }

.area-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.area-cols h3 { font-size: var(--step-0); color: var(--saffron); margin-bottom: 0.6rem; }
.area-cols ul { list-style: none; padding: 0; margin: 0; font-size: var(--step--1); color: var(--bone-dim); }
.area-cols li { padding-block: 0.15rem; }

/* ---------- Call band ---------------------------------------------------- */

.call-band {
  background: var(--saffron);
  color: var(--ink-deep);
  text-align: center;
}
.call-band h2 { color: var(--ink-deep); margin-bottom: 0.3em; }
.call-band p { color: #3A2B10; margin-inline: auto; }
.call-band .btn-row { justify-content: center; }
.call-band .btn--ghost { border-color: rgba(23,21,44,0.35); color: var(--ink-deep); }
.call-band .btn--ghost:hover { border-color: var(--ink-deep); color: var(--ink-deep); }

/* ---------- Footer ------------------------------------------------------- */

.footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  font-size: var(--step--1);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer h3 { font-size: var(--step-0); margin-bottom: 0.65rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding-block: 0.2rem; }
.footer a { color: var(--bone-dim); text-decoration: none; }
.footer a:hover { color: var(--saffron); }
.footer__base {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--bone-dim);
}

/* ---------- Utilities ---------------------------------------------------- */

.u-center { text-align: center; }
.u-center p, .u-center .lede { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
