/* ==========================================================================
   Prestige Painting Co. — art direction: "colour first"
   The one site where colour is the subject, so the page lets the visitor
   drive it: a palette tablist recolours the live preview wall and the page
   accent together. High-contrast serif display, bone paper, deep pigment.
   ========================================================================== */

:root {
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-weight: 600;
  --display-tracking: -0.01em;

  --bg: #faf7f2;
  --bg-2: #f0ebe2;
  --deep: #1d2f2c;

  --ink: #1d2320;
  --ink-soft: #55605a;
  --ink-faint: var(--ink-soft);

  /* Swapped live by the palette switcher. */
  --pigment: #1f3b38;
  --accent: var(--pigment);
  --accent-ink: #ffffff;
  --clay: #9c5b3c;

  --hairline: rgba(29, 35, 32, .15);
  --hairline-strong: rgba(29, 35, 32, .28);
  --danger: #b03a2e;
  --focus: var(--clay);

  --masthead-bg: rgba(250, 247, 242, .9);
  --panel-bg: #faf7f2;
  --input-bg: #fff;
  --input-radius: 3px;
  --btn-radius: 2px;
  --sim-bg: rgba(176, 106, 74, .09);

  --flag-bg: rgba(176, 106, 74, .12);
  --flag-ink: #8c4f33;
  --flag-border: rgba(176, 106, 74, .35);
  --demo-bar-bg: #1d2f2c;
  --demo-bar-ink: #c3cfca;

  --measure: 1140px;
}

.on-deep {
  background: var(--deep);
  --ink: #f0efe9;
  --ink-soft: #adbab5;
  --ink-faint: var(--ink-soft);
  --hairline: rgba(240, 239, 233, .16);
  --hairline-strong: rgba(240, 239, 233, .3);
  --input-bg: rgba(255,255,255,.05);
  color: var(--ink);
}

.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}
.on-deep .kicker { color: #c99173; }

/* --- Hero: two-tone split, mirroring a cut-in line ---------------------- */

.hero-cut { position: relative; overflow: hidden; }
.hero-cut__grid { display: grid; }
@media (min-width: 940px) { .hero-cut__grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }

.hero-cut__text {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-cut h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: .98;
  max-width: 13ch;
  margin: 1.2rem 0 1.4rem;
}
.hero-cut__lede { font-size: clamp(1.03rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 44ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-cut__note { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--hairline); font-size: .82rem; color: var(--ink-faint); }

.hero-cut__media { position: relative; min-height: 50vw; }
@media (min-width: 940px) { .hero-cut__media { min-height: 100%; } }
.hero-cut__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Bands -------------------------------------------------------------- */

.band { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); max-width: 56ch; }
.band h2 { font-size: clamp(2rem, 5.4vw, 3.5rem); max-width: 18ch; line-height: 1.04; }
.band__lede { font-size: 1.07rem; color: var(--ink-soft); margin-top: 1.1rem; max-width: 54ch; }

/* --- Palette switcher --------------------------------------------------- */

.palette { --pigment: #1f3b38; }
.palette[data-active-theme="forest"]  { --pigment: #1f3b38; }
.palette[data-active-theme="clay"]    { --pigment: #9c5b3c; }
.palette[data-active-theme="ink"]     { --pigment: #23324a; }
.palette[data-active-theme="bone"]    { --pigment: #b9ac96; }

.palette__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .palette__grid { grid-template-columns: 24rem 1fr; } }

.palette__tabs { display: grid; gap: .6rem; }
.palette__tab {
  appearance: none;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: .85rem;
  background: transparent;
  border: 1.5px solid var(--hairline);
  border-radius: 3px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.palette__tab:hover { border-color: var(--hairline-strong); }
.palette__tab[aria-selected="true"] { border-color: currentColor; background: rgba(0,0,0,.03); }
.on-deep .palette__tab[aria-selected="true"] { background: rgba(255,255,255,.06); }

.palette__chip { width: 2.6rem; height: 2.6rem; border-radius: 2px; border: 1px solid rgba(0,0,0,.15); }
.palette__name { font-weight: 600; font-size: .98rem; }
.palette__meta { display: block; font-size: .8rem; color: var(--ink-faint); }

.palette__preview {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.palette__wall {
  aspect-ratio: 16 / 10;
  background: var(--pigment);
  display: grid;
  place-items: end start;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  transition: background-color .5s cubic-bezier(.22,.61,.36,1);
  position: relative;
}
@media (prefers-reduced-motion: reduce) { .palette__wall { transition: none; } }
.palette__wall::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 18%;
  background: #f7f5f0;
  border-left: 1px solid rgba(0,0,0,.08);
}
.palette__swatchname {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #fff;
  mix-blend-mode: difference;
}
.palette__panel[hidden] { display: none; }
.palette__panel p { color: var(--ink-soft); padding: 1.2rem 1.3rem 0; font-size: .97rem; }
.palette__caption { font-size: .82rem; color: var(--ink-faint); padding: .8rem 1.3rem 1.3rem; }

/* --- Craft list --------------------------------------------------------- */

.craft { border-top: 1px solid var(--hairline-strong); }
.craft__row { display: grid; gap: .6rem 3rem; padding: 1.8rem 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 860px) { .craft__row { grid-template-columns: 24ch 1fr; align-items: baseline; } }
.craft__row h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.craft__row p { color: var(--ink-soft); }

/* --- Prep feature ------------------------------------------------------- */

.prep { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) { .prep { grid-template-columns: 1fr 1fr; } }
.prep__media { aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; background: var(--bg-2); }
.prep__media img { width: 100%; height: 100%; object-fit: cover; }
.prep ol { margin: 1.6rem 0 0; padding-left: 1.3rem; display: grid; gap: .7rem; color: var(--ink-soft); }

/* --- Receptionist / booking --------------------------------------------- */

.receptionist { background: var(--deep); color: #f0efe9; }
.receptionist__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .receptionist__grid { grid-template-columns: 1.5fr 1fr; gap: 4rem; } }
.receptionist h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 18ch; }
.receptionist p { margin-top: 1rem; max-width: 50ch; color: #adbab5; }
.receptionist .btn { background: var(--clay); color: #fff; }
.receptionist__note { margin-top: 1.1rem; font-size: .86rem; color: #8a9994; }

.booking { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 940px) { .booking { grid-template-columns: .85fr 1.15fr; } }
.booking__panel { background: #fff; border: 1px solid var(--hairline); padding: clamp(1.4rem, 4vw, 2.4rem); }
.contact-line { margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid var(--hairline); display: grid; gap: .3rem; }
.contact-line__number { font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 600; }
.contact-line span { font-size: .85rem; color: var(--ink-faint); }
