/* ==========================================================================
   GEMINI PREMIUM THEME — prototype
   Replaces the visual language of the PPL site (Fraunces/Inter, four brand
   colours) with the Gemini prototype direction: Playfair Display + Nunito on
   navy / amber / cream. Layout and structure come from styles.css; this layer
   restyles it. Loaded last so it wins the cascade.
   ========================================================================== */

:root {
  /* --- Gemini palette, mapped onto the site's existing token names --- */
  --navy-blue: #1D234A;
  --navy-light: #2A3166;
  --amber: #F5A623;
  --amber-hover: #E0951D;
  --cream-bg: #FDFBF7;
  --text-dark: #333333;
  --text-grey: #5A657A;
  --border-light: #E2E8F0;

  --navy: var(--navy-blue);
  --offwhite: var(--cream-bg);
  --white: #FFFFFF;
  --gold: var(--amber);
  --orange: var(--amber);
  --muted: var(--text-grey);
  --line: var(--border-light);

  --font-body: 'Nunito', sans-serif;
  --font-display: 'Playfair Display', serif;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-btn: 30px;

  --shadow-sm: 0 12px 35px rgba(29, 35, 74, 0.08);
  --shadow-md: 0 12px 35px rgba(29, 35, 74, 0.08);
  --shadow-lg: 0 20px 45px rgba(29, 35, 74, 0.12);

  --section-y: clamp(4rem, 7vw, 6rem);
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  background-color: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy-blue);
  line-height: 1.2;
  letter-spacing: 0;
}

p, li, dd {
  color: var(--text-grey);
}

.section-lede, .lead-para, .studio-body {
  color: var(--text-grey);
}

/* --- Eyebrows / kickers: amber, uppercase, no rule marker --- */
.eyebrow, .kicker, .il-eyebrow, .why-eyebrow, .grade-kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--amber);
}

.eyebrow::before,
.kicker::before,
.il-eyebrow::before,
.on-dark .kicker::before,
.eyebrow.on-dark::before,
.eyebrow.gold::before {
  display: none !important;
}

/* --- Buttons: pills --- */
.btn, .btn-sm {
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary,
.btn-gold,
.hero .cta-row .btn-primary {
  background: var(--amber);
  background-image: none;
  color: var(--navy-blue);
  border: none;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover,
.btn-gold:hover,
.hero .cta-row .btn-primary:hover {
  background: var(--amber-hover);
  color: var(--navy-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-blue);
  border: 2px solid var(--navy-blue);
}

.btn-ghost:hover {
  background: var(--navy-blue);
  color: var(--white);
}

.on-dark .btn-ghost,
.band-navy .btn-ghost {
  color: var(--white);
  border-color: var(--border-light);
}

.on-dark .btn-ghost:hover,
.band-navy .btn-ghost:hover {
  background: var(--white);
  color: var(--navy-blue);
}

.text-link, .grade-cta, .sample-link {
  color: var(--navy-blue);
  font-weight: 700;
}

.text-link:hover, .grade-cta:hover, .sample-link:hover {
  color: var(--amber);
}

.band-navy .text-link,
.on-dark .text-link {
  color: var(--amber);
}

/* --- Header --- */
.site-header {
  background-color: var(--cream-bg);
  border-bottom: 1px solid var(--border-light);
  box-shadow: none;
}

.site-header.scrolled {
  background-color: var(--cream-bg);
  box-shadow: 0 2px 12px rgba(29, 35, 74, 0.06);
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-blue);
  letter-spacing: 0;
}

.nav-menu a {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy-blue);
}

.nav-menu a:hover {
  color: var(--amber);
}

.nav-menu a[data-nav]::after {
  background: var(--amber);
}

/* --- Section bands --- */
.band-soft, .band-white {
  background: var(--cream-bg);
}

.band-navy, .on-dark {
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-light) 100%);
}

.band-navy h1, .band-navy h2, .band-navy h3, .band-navy h4,
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 {
  color: var(--white);
}

.band-navy p, .band-navy li, .band-navy dd, .band-navy .section-lede,
.on-dark p, .on-dark li, .on-dark dd, .on-dark .section-lede {
  color: #D1D5DB;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, rgba(29, 35, 74, 0) 70%);
  top: -100px;
  left: -100px;
  z-index: 0;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }
.hero-content h1 { color: var(--white); }
.hero-sub, .hero-rhythm { color: #D1D5DB; }
.hero-rhythm i { background: var(--amber); }
.hero-badge {
  background: rgba(245, 166, 35, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: var(--radius-btn);
}
.hero-img, .hero-media {
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Cards: grade, serve, notes --- */
.grade-card, .serve-card, .field-notes li, .inside-lab-list li, .lab-row, .pill, .contact-form {
  border-radius: var(--radius);
}

.grade-card, .serve-card {
  background: var(--white);
  border: none;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grade-card:hover, .serve-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.grade-card h3, .serve-body h3 { color: var(--navy-blue); }
.grade-focus, .serve-dl dd { color: var(--text-grey); }
.serve-dl dt { color: var(--amber); }

/* Status badges */
.grade-status {
  background-color: var(--cream-bg);
  color: var(--navy-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--border-light);
  text-transform: uppercase;
}

.grade-status.available {
  background-color: var(--amber);
  color: var(--navy-blue);
  border: none;
}

.grade-status.soon {
  background-color: var(--cream-bg);
  color: var(--navy-light);
  border: 1px solid var(--border-light);
}

/* --- Framed media --- */
.framed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.framed::after { display: none; }

/* --- Numbered markers --- */
.lab-no, .il-no, .note-no {
  font-family: var(--font-display);
  color: var(--amber);
}

/* --- Lists --- */
.why-points li::before,
.engine-why .why-points li::before {
  background: var(--amber);
  border-color: var(--amber);
}

.why-quote {
  font-family: var(--font-display);
  color: var(--navy-blue);
}

.band-navy .why-quote, .on-dark .why-quote { color: var(--white); }

/* --- Pills / tags --- */
.pill, .lab-tag {
  background: var(--cream-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  color: var(--navy-light);
  font-weight: 700;
}

.lab-tag--free {
  background: var(--amber);
  color: var(--navy-blue);
  border: none;
}

/* --- Contact / forms --- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.field input, .field textarea, .field select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: var(--font-body);
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--amber);
  outline: none;
}

/* --- Footer --- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  color: var(--text-grey);
}

.site-footer h3, .site-footer h4, .site-footer strong {
  font-family: var(--font-display);
  color: var(--navy-blue);
}

.site-footer a { color: var(--text-grey); }
.site-footer a:hover { color: var(--navy-blue); }

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: .35rem;
}

html body .site-footer .footer-social-link {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--navy-blue);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(29, 35, 74, .08);
}

html body .site-footer .footer-social-link:hover,
html body .site-footer .footer-social-link:focus-visible {
  color: var(--navy-blue);
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-1px);
}

.footer-social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

/* --- Focus --- */
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ==========================================================================
   Hero — restored to the Gemini treatment: dark navy ground, white type,
   amber accents. Beats the July premium-pass rules in overrides.css, which
   wash the hero light and set navy type.
   ========================================================================== */

html body .hero .hero-overlay {
  background:
    linear-gradient(180deg, rgba(29,35,74,0.62) 0%, rgba(29,35,74,0.42) 35%, rgba(29,35,74,0.86) 100%),
    linear-gradient(90deg, rgba(29,35,74,0.90) 0%, rgba(29,35,74,0.34) 58%, rgba(29,35,74,0.10) 100%) !important;
}

html body .hero h1,
html body .hero .hero-sub,
html body .hero .hero-rhythm span,
html body .hero-content h1 {
  color: #FFFFFF !important;
  text-shadow: 0 14px 36px rgba(0,0,0,0.28) !important;
}

html body .hero .hero-sub { color: #D1D5DB !important; text-shadow: none !important; }
html body .hero .hero-rhythm span { color: #D1D5DB !important; text-shadow: none !important; }
html body .hero .hero-rhythm i { background: var(--amber) !important; opacity: 1 !important; }

html body .hero .hero-badge {
  color: var(--amber) !important;
  background: rgba(245,166,35,0.15) !important;
  border: 1px solid rgba(245,166,35,0.40) !important;
  border-radius: var(--radius-btn) !important;
  box-shadow: none !important;
}

html body .hero .cta-row .btn-primary,
html body .hero .btn-primary {
  background: var(--amber) !important;
  color: var(--navy-blue) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(245,166,35,0.30) !important;
}

html body .hero .cta-row .btn-primary:hover,
html body .hero .btn-primary:hover {
  background: var(--amber-hover) !important;
  box-shadow: 0 6px 20px rgba(245,166,35,0.40) !important;
}

html body .hero .btn-ghost {
  color: #FFFFFF !important;
  border: 2px solid var(--border-light) !important;
  background: transparent !important;
}

html body .hero .btn-ghost:hover {
  background: #FFFFFF !important;
  color: var(--navy-blue) !important;
}

/* Landing-page heroes get the same treatment */
html body .landing-hero .btn-primary {
  background: var(--amber) !important;
  color: var(--navy-blue) !important;
  border: none !important;
}

/* ==========================================================================
   Card and badge shapes, applied over the !important layers in overrides.css
   ========================================================================== */

html body .grade-card,
html body .serve-card,
html body .contact-form,
html body .grade-card.is-tailor {
  border-radius: var(--radius) !important;
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
}

html body .grade-card:hover,
html body .serve-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--shadow-lg) !important;
}

html body .grade-card.is-available {
  border: none !important;
  box-shadow: 0 12px 35px rgba(245,166,35,0.22) !important;
}

html body .grade-card:hover .grade-cta { color: var(--amber) !important; }

html body .btn { border-radius: var(--radius-btn) !important; }

/* Contrast patches in overrides.css pinned the old navy; keep them on-palette */
html body #engine .eyebrow { color: var(--amber) !important; }
html body #contact .contact-intro .eyebrow { color: var(--amber) !important; }
html body #engine h2,
html body #contact .contact-intro h2 { color: var(--navy-blue) !important; }
html body #contact .contact-details a:hover { color: var(--amber) !important; }

/* Delivery strip sits on the cream band: keep its ghost button navy-on-cream */
html body .delivery-strip .btn-ghost {
  color: var(--navy-blue) !important;
  border: 2px solid var(--navy-blue) !important;
  background: transparent !important;
}
html body .delivery-strip .btn-ghost:hover {
  background: var(--navy-blue) !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   Website fixes — 19 August 2026 (Werner's brief)
   ========================================================================== */

/* 1. Hero sits lighter, because the Studio band directly below it is dark.
      The scrim is thinned so the build photograph reads through; the type
      keeps a shadow so white stays legible on the lighter ground. */
html body .hero .hero-overlay {
  background:
    linear-gradient(180deg, rgba(29,35,74,0.34) 0%, rgba(29,35,74,0.20) 38%, rgba(29,35,74,0.52) 100%),
    linear-gradient(90deg, rgba(29,35,74,0.62) 0%, rgba(29,35,74,0.20) 58%, rgba(29,35,74,0.04) 100%) !important;
}

html body .hero h1,
html body .hero-content h1 {
  text-shadow: 0 2px 18px rgba(29,35,74,0.55), 0 14px 36px rgba(0,0,0,0.32) !important;
}

html body .hero .hero-sub,
html body .hero .hero-rhythm span {
  color: #F2F4F8 !important;
  text-shadow: 0 2px 12px rgba(29,35,74,0.60) !important;
}

/* 3. Portal + learner experience — two matched columns, dashboard below.
      No gold top rule here: the old .delivery-strip yellow line is gone. */
html body .portal-lab-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* Both columns share one type scale, so the two headings and both bodies
   match rather than one reading as a lede and the other as body. */
html body .portal-lab-col h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  margin-bottom: 0.55rem;
}

html body .portal-lab-col p:not(.eyebrow) {
  color: var(--text-grey);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 62ch;
}

html body .portal-lab-col p:not(.eyebrow) + p:not(.eyebrow) { margin-top: 1rem; }

html body .portal-lab .portal-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

@media (max-width: 860px) {
  html body .portal-lab-cols { grid-template-columns: 1fr; }
  html body .portal-lab .portal-cta { flex-direction: column; align-items: flex-start; }
}

/* 4. Grade 4–7 descriptions were inheriting .band-navy p (#D1D5DB) on top of a
      white card. Match the Custom Designed Projects description colour. */
html body #projects .grade-card .grade-focus,
html body #projects .grade-card .grade-body p {
  color: #1D234A !important;
}

/* 5. Who-we-serve cards gained a white card surface in this theme but kept the
      old edge-to-edge body padding. Match the grade cards. */
html body .serve-body { padding: 1.35rem 1.35rem 1.55rem; }

/* 6. PPL Engine Fuel cards — same washed-out inheritance as the grade cards. */
html body #insights .field-notes .note-body p { color: #1D234A !important; }
