/* Head Hunters (Headhunters Ballito) — shared styles
   Palette from research/design-language.md. Deep teal / cream / copper.
   Two distinct white-ish roles kept separate:
     --on-brand        text on always-dark brand bands (fixed in both themes)
     --accent-on-dark  copper-light text on always-dark bands (fixed both themes)
     --surface         card fill that legitimately flips dark in dark mode
*/

:root {
  --ground: #FBF6F0;
  --surface: #FFFFFF;
  --surface-2: #F4ECE2;
  --ink: #12262B;
  --muted: #4F6166;
  --brand: #14505C;
  --brand-hover: #0F4550;
  --brand-text: #0F4550;
  --copper: #B8582E;
  --copper-text: #9A4522;
  --on-brand: #FFFFFF;          /* fixed: text on brand/dark bands */
  --accent-on-dark: #F2B48F;    /* fixed: copper-light on dark bands */
  --band: #0E2A31;              /* always-dark band bg */
  --border: #E3D8CA;
  --shadow: 0 6px 24px rgba(18, 38, 43, 0.10);
  --radius: 14px;
  --maxw: 1120px;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
}

html[data-theme="dark"] {
  --ground: #0F1A1D;
  --surface: #1B2B30;
  --surface-2: #16242A;
  --ink: #F2ECE3;
  --muted: #A9BBBF;
  --brand: #14505C;
  --brand-hover: #1A6475;
  --brand-text: #7FD0DC;
  --copper: #B8582E;
  --copper-text: #F0A27D;
  --on-brand: #FFFFFF;          /* stays white on dark bands */
  --accent-on-dark: #F2B48F;    /* stays fixed on dark bands */
  --band: #070F11;
  --border: #2A3A3F;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  font-size: 17px;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { margin: 0 0 1rem; }
a { color: var(--brand-text); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--band);
  color: var(--on-brand);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header a { color: var(--on-brand); }
.nav {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brandmark { display: flex; flex-direction: column; line-height: 1; text-decoration: none; margin-right: auto; }
.brandmark .bm-name { font-family: var(--font-serif); font-size: 1.4rem; color: var(--on-brand); letter-spacing: .5px; }
.brandmark .bm-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-on-dark); margin-top: 3px; }

.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500;
  color: var(--on-brand); opacity: .9;
}
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; background: rgba(255,255,255,.1); }
.nav-links a[aria-current="page"] { opacity: 1; color: var(--accent-on-dark); }

.nav-cta {
  background: var(--copper); color: #fff !important; padding: 9px 16px !important; border-radius: 999px;
  font-weight: 700; opacity: 1 !important;
}
.nav-cta:hover { background: #a24a24; }

.theme-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: var(--on-brand);
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.1rem; flex: 0 0 auto;
}
.theme-toggle:hover { background: rgba(255,255,255,.12); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 2px; }

/* mobile nav toggle */
.nav-burger { display: none; background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: var(--on-brand); border-radius: 8px; width: 42px; height: 40px; cursor: pointer; font-size: 1.2rem; }

@media (max-width: 760px) {
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--band); padding: 10px 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-cta { text-align: center; margin-top: 6px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-copper { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-copper:hover { background: #a24a24; border-color: #a24a24; }
.btn-ghost { background: transparent; color: var(--brand-text); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: var(--on-brand); }
/* ghost button sitting ON a dark band */
.band .btn-ghost { color: var(--on-brand); border-color: rgba(255,255,255,.55); }
.band .btn-ghost:hover { background: var(--on-brand); color: var(--band); border-color: var(--on-brand); }
/* ghost button / chip / copper button sitting on an always-dark surface keep light text in both themes */
.hero .btn-ghost, .pyc-result .btn-ghost { color: var(--on-brand); border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover, .pyc-result .btn-ghost:hover { background: var(--on-brand); color: var(--band); border-color: var(--on-brand); }
.band .btn-copper, .hero .btn-copper, .pyc-result .btn-copper, .site-footer .btn-copper { color: #fff; }
.band .chip-confirm, .hero .chip-confirm, .pyc-result .chip-confirm, .site-footer .chip-confirm { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- Bands (always-dark) ---------- */
.band { background: var(--band); color: var(--on-brand); }
.band h1, .band h2, .band h3 { color: var(--on-brand); }
.band p, .band .lead, .band li { color: rgba(255,255,255,.85); }
.band .accent { color: var(--accent-on-dark); }
.band a { color: var(--accent-on-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--band); color: var(--on-brand); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 72px 0; }
.hero h1 { color: var(--on-brand); }
.hero .eyebrow { color: var(--accent-on-dark); letter-spacing: .2em; text-transform: uppercase;
  font-size: .8rem; font-weight: 700; margin-bottom: 14px; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 46ch; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .hero-media { aspect-ratio: 16/10; }
}

/* ---------- Proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12);
  border-radius: var(--radius); overflow: hidden; }
.proof .cell { background: var(--band); padding: 22px 16px; text-align: center; }
.proof .num { font-family: var(--font-serif); font-size: 1.9rem; color: var(--accent-on-dark); display: block; }
.proof .lbl { font-size: .82rem; color: rgba(255,255,255,.82); }
.proof .src { font-size: .68rem; color: rgba(255,255,255,.5); display: block; margin-top: 4px; }
@media (max-width: 560px) { .proof { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { color: var(--ink); }
.card .ico { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.card .copper-rule { width: 40px; height: 3px; background: var(--copper); border-radius: 2px; margin: 0 0 14px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border);
}
.chip-confirm { background: transparent; border: 1px dashed var(--copper); color: var(--copper-text); }

/* ---------- Location strip ---------- */
.locstrip { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 680px) { .locstrip { grid-template-columns: 1fr; } }

/* ---------- Map ---------- */
.map-embed { width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 16/9; min-height: 300px; }

/* ---------- Image blocks ---------- */
.img-feature { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.img-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* [NEEDS CONTENT] gallery placeholder */
.needs {
  border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-2);
  color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; min-height: 180px; font-size: .9rem;
}
.needs strong { color: var(--copper-text); display: block; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 6px; }

/* ---------- Reviews ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--copper);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 12px; font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); }
.quote cite { font-style: normal; color: var(--muted); font-size: .9rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-family: inherit; font-size: 1rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.form-note { font-size: .86rem; color: var(--muted); }

/* ---------- Signature feature: Plan Your Colour ---------- */
.pyc-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; }
.pyc-step .step-no { font-family: var(--font-serif); color: var(--copper-text); font-size: 1.1rem; }
.pyc-step h3 { margin-top: 4px; }
.pyc-hint { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.toggle-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.toggle {
  font-family: var(--font-sans); font-size: .95rem; font-weight: 600; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--ink); transition: all .15s;
}
.toggle:hover { border-color: var(--brand); }
.toggle[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.toggle:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* colour swatches */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
@media (max-width: 560px) { .swatches { grid-template-columns: 1fr 1fr; } }
.swatch {
  cursor: pointer; border: 2px solid var(--border); border-radius: var(--radius); padding: 0;
  background: var(--surface); overflow: hidden; text-align: left; transition: all .15s;
}
.swatch:hover { border-color: var(--brand); }
.swatch[aria-pressed="true"] { border-color: var(--copper); box-shadow: 0 0 0 2px var(--copper); }
.swatch:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.swatch .sw-colour { height: 70px; display: block; }
.swatch .sw-meta { padding: 10px 12px; }
.swatch .sw-name { font-weight: 700; font-size: .95rem; display: block; color: var(--ink); }
.swatch .sw-desc { font-size: .8rem; color: var(--muted); }

.sw-warm { background: linear-gradient(135deg,#F3D9A6,#D9A44C); }
.sw-ash  { background: linear-gradient(135deg,#D8DCDC,#9BA7A8); }
.sw-copper { background: linear-gradient(135deg,#D98A4E,#A43B1E); }
.sw-brunette { background: linear-gradient(135deg,#8A5A3B,#4A2E1E); }
.sw-dark { background: linear-gradient(135deg,#3A2E2A,#120D0C); }
.sw-notsure { background: repeating-linear-gradient(45deg,var(--surface-2),var(--surface-2) 10px,var(--border) 10px,var(--border) 20px); }

/* result */
.pyc-result { background: var(--band); color: var(--on-brand); border-radius: var(--radius); padding: 26px; }
.pyc-result h3 { color: var(--on-brand); }
.pyc-result .msg {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  padding: 16px; white-space: pre-wrap; font-family: var(--font-sans); color: #fff; min-height: 90px;
  font-size: .98rem; line-height: 1.55;
}
.pyc-result .btn-row { margin-top: 18px; }
.copied-note { color: var(--accent-on-dark); font-size: .88rem; margin-top: 10px; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--on-brand); padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: var(--accent-on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem; margin: 0 0 12px; color: var(--on-brand); }
.site-footer p, .site-footer li { color: rgba(255,255,255,.82); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 20px;
  font-size: .82rem; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-tag { font-size: .8rem; color: var(--accent-on-dark); }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 1rem; }
.pill-nap { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
