/* ============================================
   GSCOP Training — Main Stylesheet
   Fonts loaded via Google Fonts in <head>
   ============================================ */

/* ── Variables ── */
:root {
  --navy:       #0f1f3d;
  --navy-light: #1a3060;
  --navy-deep:  #08152a;
  --gold:       #b8973a;
  --gold-light: #d4b05a;
  --gold-pale:  #f5eddb;
  --slate:      #4a5568;
  --slate-light:#718096;
  --white:      #ffffff;
  --off-white:  #f8f7f5;
  --radius:     0.75rem;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --transition: 0.22s ease;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
.font-display, h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--slate); line-height: 1.75; }

/* ── Utility ── */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--lg { padding: 7rem 0; }

.gold-bar {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.25rem;
}

.gold-bar--center { margin-left: auto; margin-right: auto; }

.text-gold   { color: var(--gold); }
.text-white  { color: var(--white); }
.text-navy   { color: var(--navy); }
.text-slate  { color: var(--slate); }
.text-center { text-align: center; }

.bg-navy     { background-color: var(--navy); }
.bg-navy-deep{ background-color: var(--navy-deep); }
.bg-pale     { background-color: var(--off-white); }
.bg-gold     { background-color: var(--gold); }
.bg-gold-pale{ background-color: var(--gold-pale); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 20px rgba(184,151,58,.3);
  transform: translateY(-1px);
}

.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.06);
}

.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,31,61,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav-logo-text span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 0.375rem;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--gold-light); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 0.5rem 1.5rem 1rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--gold); }
.nav-mobile .nav-mobile-cta {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 0.375rem;
  text-align: center;
  border-bottom: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,21,42,.92) 0%,
    rgba(15,31,61,.85) 50%,
    rgba(15,31,61,.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-badge svg { color: var(--gold); flex-shrink: 0; }

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--gold); }

.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.55);
  margin-top: 0.25rem;
}

/* Hero diagonal clip on desktop */
@media (min-width: 768px) {
  .hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 0%, 100% 100%);
  }
}

/* ── Credibility strip ── */
.cred-strip {
  background: var(--gold-pale);
  border-top: 1px solid rgba(184,151,58,.2);
  border-bottom: 1px solid rgba(184,151,58,.2);
  padding: 1.25rem 0;
}

.cred-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--slate);
}
.cred-item strong { color: var(--navy); font-weight: 600; }
.cred-item svg { color: var(--gold); flex-shrink: 0; }

.cred-divider {
  width: 1px;
  height: 1rem;
  background: rgba(15,31,61,.15);
}

@media (max-width: 768px) {
  .cred-divider { display: none; }
}

/* ── Section intros ── */
.section-intro { margin-bottom: 3.5rem; }
.section-intro h2 { margin-top: 0.5rem; }
.section-intro p {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.05rem;
}
.section-intro.center { text-align: center; }
.section-intro.center p { margin-left: auto; margin-right: auto; }

/* ── Grid layouts ── */
.grid-2 { display: grid; gap: 2rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.25rem; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-halves {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .grid-halves { grid-template-columns: 1fr 1fr; }
  .grid-halves.flip > *:first-child { order: 2; }
  .grid-halves.flip > *:last-child  { order: 1; }
}

.grid-35 {
  display: grid;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 768px) {
  .grid-35 { grid-template-columns: 2fr 3fr; }
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid rgba(15,31,61,.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(184,151,58,.3);
}

.card--testimonial {
  border-left: 3px solid var(--gold);
  border-top: none;
  border-right: none;
  border-bottom: none;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.card--testimonial:hover { box-shadow: var(--shadow-md); }

.card-quote {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.card-quote::before { content: '\201C'; }
.card-quote::after  { content: '\201D'; }

.card-role {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-org {
  font-size: 0.7rem;
  color: var(--slate-light);
  margin-top: 0.2rem;
}

/* ── Retailer list ── */
.retailer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.5rem;
}

.retailer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.8);
}
.retailer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── FAQ / Accordion ── */
.faq-list { border-top: 1px solid rgba(15,31,61,.08); }

.faq-item { border-bottom: 1px solid rgba(15,31,61,.08); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--transition);
  gap: 1rem;
  text-align: left;
}
.faq-question:hover { color: var(--gold); }

.faq-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.8;
}

/* ── About / bio section ── */
.bio-image-wrap {
  position: relative;
}
.bio-image-wrap::before {
  content: '';
  position: absolute;
  inset: -0.75rem;
  border: 1.5px solid rgba(184,151,58,.35);
  border-radius: calc(var(--radius) + 0.75rem);
  pointer-events: none;
}
.bio-image-wrap img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  max-height: 480px;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(184,151,58,.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.65); margin-top: 1rem; max-width: 36rem; }

/* ── CTA band ── */
.cta-band {
  background: var(--gold);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--navy); margin-bottom: 1rem; }
.cta-band p  { color: rgba(15,31,61,.65); max-width: 32rem; margin: 0 auto 2rem; }

/* ── Footer ── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.45);
  font-size: 0.8rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand-name span { color: var(--gold); }

.footer-col-heading {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  font-size: 0.8rem;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.7rem;
}

.footer-utp-note {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,.4);
}
.footer-utp-note a {
  color: var(--gold);
  transition: color var(--transition);
}
.footer-utp-note a:hover { color: var(--gold-light); }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  flex: 1;
  min-width: 220px;
}
.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(184,151,58,.4);
}
.cookie-text a:hover { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.cookie-accept {
  padding: 0.45rem 1.1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 0.375rem;
  transition: background var(--transition);
}
.cookie-accept:hover { background: var(--gold-light); }

.cookie-decline {
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  font-size: 0.8rem;
  border-radius: 0.375rem;
  transition: border-color var(--transition), color var(--transition);
}
.cookie-decline:hover {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}

/* ── Advice callout (quick advice service) ── */
.advice-panel {
  background: var(--gold-pale);
  border: 1px solid rgba(184,151,58,.25);
  border-radius: var(--radius);
  padding: 2.5rem;
}

/* ── Form ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(15,31,61,.15);
  border-radius: 0.375rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,151,58,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* Honeypot */
.hp-field { display: none !important; }

/* ── Page-specific: Training page ── */
.course-module {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(15,31,61,.07);
}
.course-module:last-child { border-bottom: none; }
.course-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
  width: 2rem;
  line-height: 1.2;
}
.course-module h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.25rem; }
.course-module p  { font-size: 0.85rem; line-height: 1.65; }

/* ── Page-specific: About page ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.3rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.timeline-item h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.timeline-item p  { font-size: 0.85rem; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up            { animation: fadeUp 0.7s ease both; }
.fade-up.delay-1    { animation-delay: 0.15s; }
.fade-up.delay-2    { animation-delay: 0.3s; }
.fade-up.delay-3    { animation-delay: 0.45s; }
.fade-up.delay-4    { animation-delay: 0.6s; }
.fade-up.delay-5    { animation-delay: 0.75s; }

/* ── Grain texture overlay ── */
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.25;
  z-index: 1;
}

/* ── Responsive helpers ── */
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .section--lg { padding: 4rem 0; }
  .hero-stats { gap: 2rem; }
  .cta-band { padding: 3rem 0; }
}
