/* ==========================================================================
   Court of Master Sommeliers — prototype stylesheet
   Brand is preserved from the live site (courtofmastersommeliers.org):
     background  #000000   (black)
     titles      #F5F19C   (pale yellow)
     body text   #FFFFFF   (white)
     accent      #9A8964   (muted gold)
     headings    Nunito Sans (sans)  +  Baskervville (serif display)
   This is NOT a redesign. Same colours, same fonts, same dark/serif feeling.
   Kept deliberately simple so a WordPress provider can reproduce it 1:1.
   ========================================================================== */

:root {
  --black:  #000000;
  --panel:  #0c0c0c;   /* barely-lifted panel on pure black */
  --line:   #2a2a2a;   /* hairline dividers */
  --yellow: #F5F19C;   /* titles / links (from live site) */
  --yellow-bright: #F9F397;
  --white:  #FFFFFF;   /* body text */
  --muted:  #c9c4ad;   /* secondary text */
  --gold:   #9A8964;   /* accent rules, small caps labels */
  --max:    1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--yellow);
  font-family: "Baskervville", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; color: var(--white); }
.muted { color: var(--muted); }

/* small-caps gold label used for section eyebrows + mottos */
.eyebrow {
  font-family: "Nunito Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.motto {
  font-family: "Baskervville", Georgia, serif;
  font-style: italic;
  color: var(--yellow-bright);
  font-size: 1.25rem;
}

/* ---- Layout -------------------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(120%) blur(4px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong {
  font-family: "Baskervville", Georgia, serif;
  color: var(--yellow); font-size: 1.15rem; font-weight: 400;
}
.brand span { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }

nav.main ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
nav.main > ul > li { position: relative; }
nav.main > ul > li > a {
  color: var(--white); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em; padding: 26px 0; display: inline-block;
}
nav.main > ul > li > a:hover { color: var(--yellow); text-decoration: none; }

/* dropdown */
nav.main li ul {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #0a0a0a; border: 1px solid var(--line); padding: 8px 0;
  list-style: none; margin: 0; display: none;
}
nav.main li:hover > ul { display: block; }
nav.main li ul li a {
  display: block; padding: 9px 18px; color: var(--white);
  font-size: .9rem; text-transform: none; letter-spacing: 0;
}
nav.main li ul li a:hover { background: #151515; color: var(--yellow); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--gold); color: var(--yellow); padding: 8px 12px; font-size: 1rem; border-radius: 3px; }

@media (max-width: 980px) {
  nav.main { display: none; width: 100%; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; gap: 0; }
  nav.main > ul > li > a { padding: 12px 0; }
  nav.main li ul { position: static; display: block; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-top: 14px; padding-bottom: 14px; }
  .nav-toggle { display: inline-block; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  text-align: center; padding: 110px 0 90px;
  border-top: 0;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(154,137,100,.18), transparent 60%),
    var(--black);
}
.hero .motto { margin-top: 1.2rem; }

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  padding: 28px; border-radius: 4px; height: 100%;
}
.card h3 { margin-top: 0; }
.card .step { color: var(--gold); font-weight: 700; letter-spacing: .15em; font-size: .72rem; text-transform: uppercase; }

/* numbered pathway */
.ladder { counter-reset: step; }
.ladder .card::before {
  counter-increment: step; content: counter(step);
  display: inline-block; font-family: "Baskervville", serif; color: var(--yellow);
  font-size: 2rem; line-height: 1; margin-bottom: .4rem;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block; border: 1px solid var(--gold); color: var(--yellow);
  padding: 12px 26px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  font-size: .85rem; border-radius: 3px; transition: background .15s ease;
}
.btn:hover { background: var(--gold); color: var(--black); text-decoration: none; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Lists / definition pairs ------------------------------------------- */
.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.linklist li:last-child { border-bottom: 0; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
dl.facts dt { color: var(--gold); font-weight: 700; }
dl.facts dd { margin: 0; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer h4 { font-size: .95rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--yellow); }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }

/* small helper */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.tag { display:inline-block; font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); border:1px solid var(--line); padding:3px 9px; border-radius:99px; }
