/* ============================================================
   His & Hers — Burgundy & White
   Fonts: Fraunces (display) / Domine (body)
   Theme: light/dark auto via prefers-color-scheme + manual toggle
   ============================================================ */

:root {
  /* Brand */
  --burgundy:      #6a1024;
  --burgundy-deep: #4e0b1a;
  --burgundy-soft: #8a2038;
  --gold:          #c8a24a;

  /* Light theme (default) */
  --bg:        #fdfbfa;
  --bg-alt:    #f6efec;
  --surface:   #ffffff;
  --text:      #241417;
  --text-soft: #6b565a;
  --line:      #ecdfdb;
  --accent:    var(--burgundy);
  --accent-ink:#ffffff;
  --shadow:    0 18px 40px -24px rgba(74, 11, 26, .35);

  --header-h: 74px;
  --radius:   4px;
  --maxw:     1180px;
}

/* Dark theme — applied when the OS prefers dark AND user hasn't overridden */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #17090c;
    --bg-alt:    #200d12;
    --surface:   #230d13;
    --text:      #f4e9ea;
    --text-soft: #c4a6ac;
    --line:      #3a1a22;
    --accent:    #b8384f;
    --accent-ink:#ffffff;
    --shadow:    0 18px 44px -22px rgba(0,0,0,.7);
  }
}

/* Manual dark override */
:root[data-theme="dark"] {
  --bg:        #17090c;
  --bg-alt:    #200d12;
  --surface:   #230d13;
  --text:      #f4e9ea;
  --text-soft: #c4a6ac;
  --line:      #3a1a22;
  --accent:    #b8384f;
  --accent-ink:#ffffff;
  --shadow:    0 18px 44px -22px rgba(0,0,0,.7);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Domine', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

.eyebrow {
  font-family: 'Domine', serif;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section { padding: clamp(56px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 12px 0 14px; }
.section-head p { color: var(--text-soft); font-size: 1.02rem; }

/* Gold rule — signature divider */
.rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 18px 0; }

/* ---------- Buttons (Labi Africa pattern) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Domine', serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-ink); }
.btn-wa { background: #25d366; border-color: #25d366; color: #06331b; }
.btn-wa:hover { background: #1fb857; border-color: #1fb857; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 11px 20px; font-size: .74rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.brand span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); transition: color .16s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg-alt); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch;
  min-height: min(80vh, 640px);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px,6vw,88px) clamp(20px,5vw,56px); }
.hero-copy h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 16px 0 18px; }
.hero-copy h1 em { color: var(--accent); font-style: italic; }
.hero-copy p { font-size: 1.1rem; color: var(--text-soft); max-width: 46ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; background: var(--burgundy-deep); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(14px, 3vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-media { aspect-ratio: 4/5; background: var(--bg-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.card-body h3 { font-size: 1.22rem; }
.card-desc { color: var(--text-soft); font-size: .92rem; flex: 1; }
.card-price { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--text); margin-top: 4px; }
.card-foot { margin-top: 14px; }

.course-card .card-media { aspect-ratio: 16/10; }
.course-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--text-soft); }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pill { display:inline-block; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; font-weight:700; padding:4px 10px; border-radius: 40px; }

/* ---------- Gallery ---------- */
/* Two columns, images shown at their natural full length (no cropping) */
.gallery-grid { columns: 2; column-gap: clamp(12px,2.4vw,18px); }
.gallery-grid figure { break-inside: avoid; margin: 0 0 clamp(12px,2.4vw,18px); position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(30,6,12,.82));
  color: #fff; font-size: .84rem; opacity: 0; transition: opacity .25s;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

/* ---------- Page header ---------- */
.page-hero { background: var(--burgundy-deep); color: #fdeef0; padding: clamp(60px,10vw,120px) 0 clamp(44px,7vw,80px); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; margin-top: 12px; }
.page-hero p { color: #e9c9cf; max-width: 56ch; margin-top: 14px; }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.about-split img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.about-split h2 { font-size: clamp(1.8rem,4vw,2.7rem); margin-bottom: 10px; }
.about-split p { color: var(--text-soft); margin-bottom: 14px; }
.values { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 8px; }
.value h3 { font-size: 1.15rem; margin-bottom: 6px; }
.value p { font-size: .9rem; color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); }
.contact-item { margin-bottom: 22px; }
.contact-item .lbl { font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color: var(--accent); font-weight:700; }
.contact-item a, .contact-item p { color: var(--text); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--burgundy-deep); color: #f4dfe3; padding: clamp(48px,7vw,80px) 0 28px; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand { font-family:'Fraunces',serif; font-size:1.5rem; color:#fff; }
.footer-brand span { font-style: italic; color: var(--gold); }
.site-footer h4 { color:#fff; font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; margin-bottom:14px; }
.site-footer a { color:#e9c9cf; font-size:.92rem; display:block; margin-bottom:8px; transition: color .16s; }
.site-footer a:hover { color:#fff; }
.social-row { display:flex; gap:14px; margin-top:14px; }
.social-row a { display:grid; place-items:center; width:40px; height:40px; border:1px solid rgba(255,255,255,.28); border-radius:50%; margin:0; }
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--burgundy-deep); }
.social-row svg { width:18px; height:18px; }
.footer-bottom { padding-top:24px; font-size:.82rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color:#d3a7b0; }

/* ---------- Product detail gallery / carousel ---------- */
/* Full uncropped main image — customer sees exactly what was uploaded */
.pdp { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px,4vw,52px); align-items:start; }
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.pdp-main {
  width:100%; background: var(--bg-alt); border:1px solid var(--line);
  border-radius: var(--radius); overflow:hidden; text-align:center;
}
.pdp-main img { width:100%; height:auto; display:block; }   /* natural ratio, no crop */
.pdp-thumbs { display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.pdp-thumb {
  width:72px; height:72px; border-radius: var(--radius); overflow:hidden;
  border:2px solid transparent; cursor:pointer; background: var(--bg-alt); padding:0;
}
.pdp-thumb img { width:100%; height:100%; object-fit:cover; }
.pdp-thumb.active { border-color: var(--accent); }

/* ---------- WhatsApp style-inspo band ---------- */
.inspo {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #000 8%), var(--burgundy-deep));
  color:#fff; text-align:center;
}
.inspo .wrap { padding: clamp(48px,7vw,84px) 0; }
.inspo .eyebrow { color: var(--gold); }
.inspo h2 { font-size: clamp(1.7rem,3.6vw,2.7rem); color:#fff; margin:12px auto 14px; max-width:18ch; }
.inspo p { color:#f0d3d8; max-width:52ch; margin:0 auto 28px; font-size:1.05rem; }
.inspo .btn-wa { box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }

/* ---------- Empty state ---------- */
.empty { text-align:center; padding: 60px 20px; color: var(--text-soft); border:1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Mobile nav drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim { position:absolute; inset:0; background: rgba(20,5,10,.5); opacity:0; transition: opacity .25s; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position:absolute; top:0; right:0; height:100%; width: min(80vw, 320px);
  background: var(--surface); padding: 26px 24px;
  transform: translateX(100%); transition: transform .28s ease;
  display:flex; flex-direction:column; gap: 6px;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel a { padding: 13px 0; border-bottom:1px solid var(--line); font-size:.95rem; letter-spacing:.06em; text-transform:uppercase; }
.drawer-close { align-self:flex-end; background:none; border:0; color:var(--text); cursor:pointer; margin-bottom: 10px; }
.drawer-close svg { width:26px; height:26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; }
  .about-split, .contact-grid, .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .values { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  /* Product grids stay 2-per-row on phones (as requested) */
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .card-body { padding: 14px 13px 16px; }
  .card-body h3 { font-size: 1.02rem; }
  .card-price { font-size: 1.08rem; }
  .btn-sm { padding: 9px 12px; font-size: .68rem; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
