/* ============================================================
   Black Pearls Society — Design System
   Hand-coded, no framework. Mobile-first, accessible.
   ============================================================ */

:root {
  /* ==== Official Black Pearls Society brand: CHARTREUSE + BLACK (matches live site) ==== */
  --ink:        #0a0a0a;   /* primary — black (brand) */
  --ink-soft:   #232323;   /* soft black for body text */
  --ivory:      #ffffff;   /* page background — clean white */
  --pearl:      #f4f5ef;   /* card / panel tint (faint chartreuse-warm) */
  --gold:       #DCF900;   /* signature CHARTREUSE accent */
  --gold-deep:  #b6cf00;   /* darker chartreuse for hover/contrast */
  --plum:       #0a0a0a;   /* secondary = black */
  --plum-deep:  #000000;   /* pure black */
  --pink:       #F2295B;   /* sparing highlight */
  --purple:     #974CFF;   /* sparing highlight */
  --line:       #e6e6e1;
  --muted:      #6a6a6a;
  --white:      #ffffff;
  --ok:         #2f7d59;
  --err:        #cf2e2e;

  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(28,36,75,.08);
  --shadow-lg: 0 16px 48px rgba(28,36,75,.16);

  /* Official fonts: Playfair Display (headings) + Montserrat (body) */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
a { color: var(--plum); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--plum); margin-bottom: .6rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--gold   { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-deep); color: var(--ink); box-shadow: var(--shadow); }
.btn--plum   { background: var(--plum); color:#fff; }
.btn--plum:hover { background: var(--plum-deep); color:#fff; }
.btn--ghost  { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color:#fff; }
.btn--block  { display:block; width:100%; }

/* ---- Header / Nav ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,242,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.brand { display:flex; align-items:center; gap:12px; font-family: var(--serif); font-size:1.4rem; font-weight:600; color:var(--ink); }
.brand-logo { width: 44px; height: 44px; display: block; }
.dot { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff 0%, #c9d96b 35%, var(--ink) 100%); box-shadow: inset 0 0 6px rgba(0,0,0,.3); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin:0; padding:0; }
.nav-links > li { position: relative; }
.nav-links a { display:block; padding: 10px 14px; color: var(--ink-soft); font-weight: 500; font-size: .96rem; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--pearl); }
.has-sub > .submenu { position:absolute; top:100%; left:0; min-width: 210px; background:#fff; border:1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding:8px; opacity:0; visibility:hidden; transform: translateY(6px); transition: all .18s; list-style:none; margin:0; }
.has-sub:hover > .submenu { opacity:1; visibility:visible; transform: translateY(0); }
.submenu a { padding:9px 12px; font-size:.92rem; }
.nav-cta { display:flex; align-items:center; gap:10px; }
.nav-toggle { display:none; background:none; border:0; font-size:1.6rem; cursor:pointer; color:var(--ink); }

/* ---- Hero ---- */
.hero { position: relative; background: linear-gradient(135deg, var(--plum-deep), var(--ink) 70%); color: var(--ivory); padding: 96px 0; overflow:hidden; }
.hero::after { content:""; position:absolute; right:-120px; top:-120px; width:420px; height:420px; border-radius:50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), transparent 60%); }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.82); }
.hero .eyebrow { color: var(--gold); }

/* ---- Cards / grid ---- */
.grid { display:grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .card-body { padding: 22px 24px 26px; }
.card .meta { font-size:.82rem; color: var(--muted); text-transform:uppercase; letter-spacing:.08em; }

/* ---- Forms ---- */
.field { margin-bottom: 16px; }
.field label { display:block; font-weight:600; font-size:.9rem; margin-bottom:6px; }
.field input, .field textarea, .field select {
  width:100%; padding: 12px 14px; border:1.5px solid var(--line); border-radius: 8px;
  font: inherit; background:#fff; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--gold); }
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 460px; margin: 0 auto; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom:18px; font-size:.95rem; }
.alert--err { background:#fbeaea; color: var(--err); border:1px solid #f0c9c9; }
.alert--ok  { background:#e8f4ee; color: var(--ok); border:1px solid #c4e3d3; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.74); padding: 56px 0 28px; margin-top: 40px; }
.site-footer h4 { color:#fff; font-family: var(--sans); font-size:.85rem; text-transform:uppercase; letter-spacing:.12em; }
.site-footer a { color: rgba(255,255,255,.74); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:36px; padding-top:20px; font-size:.85rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.social a { display:inline-block; margin-right:12px; font-size:1.1rem; }

/* ---- Badge / pill ---- */
.pill { display:inline-block; padding:4px 12px; border-radius:999px; font-size:.78rem; font-weight:600; background: var(--pearl); color: var(--plum); }
.pill--gold { background: rgba(184,146,63,.15); color: var(--gold-deep); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display:block; }
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background:#fff; border-bottom:1px solid var(--line); padding: 12px; gap:2px; box-shadow: var(--shadow); display:none; }
  .nav-links.open { display:flex; }
  .has-sub > .submenu { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; padding-left:14px; }
  .nav-cta .btn--ghost { display:none; }
}
