/* ==========================================================
   GCCIFC Theme
   Palette drawn from the crest: deep navy field, brushed-gold
   emblem, hairline gold rule-work, ivory text on navy.
   ========================================================== */
:root {
  --navy-900: #0d2b1f;   /* deepest background */
  --navy-800: #123825;   /* panels */
  --navy-700: #1c4a32;   /* borders / hover panels */
  --gold-500: #b8964f;   /* primary gold */
  --gold-400: #d3b573;   /* lighter gold, hover */
  --gold-700: #8a6b32;   /* deep gold, shadows/borders */
  --ivory-100: #f7f3e8;  /* body text on navy */
  --ivory-300: #d7cdb0;  /* muted text on navy */
  --ink-900: #131313;    /* body text on light */
  --panel-light: #fbf9f3;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius: 2px;
  --shadow-gold: 0 0 0 1px rgba(201,162,75,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--panel-light);
  line-height: 1.65;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--navy-900);
  margin: 0 0 0.5em;
}
a { color: var(--navy-700); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--ivory-300);
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { color: var(--ivory-300); }
.topbar .gold { color: var(--gold-400); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy-900);
  border-bottom: 1px solid var(--gold-700);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 60px; width: auto; }
.brand-text .name { font-family: var(--font-display); color: var(--ivory-100); font-size: 18px; line-height: 1.2; }
.brand-text .tag { color: var(--gold-400); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--ivory-100); font-size: 14px; letter-spacing: 0.4px;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-400); border-color: var(--gold-500); }

.nav-cta {
  border: 1px solid var(--gold-500); color: var(--gold-400) !important;
  padding: 9px 18px; border-radius: var(--radius); font-size: 13px; letter-spacing: 0.5px;
}
.nav-cta:hover { background: var(--gold-500); color: var(--navy-900) !important; }

/* Hamburger toggle - hidden on desktop */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display:block; height: 2px; width: 100%; background: var(--gold-400); transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta-mobile { display: none; }

@media (max-width: 900px) {
  .topbar .container {
    flex-direction: column; align-items: flex-start; height: auto; padding: 8px 24px; gap: 2px; font-size: 11.5px;
  }
  .site-header .container { height: auto; padding: 12px 24px; flex-wrap: wrap; }
  .brand img { height: 46px; }
  .brand-text .name { font-size: 15px; }

  .nav-toggle { display: flex; order: 2; margin-left: auto; }
  .nav-cta-desktop { display: none; }

  .main-nav {
    display: none; order: 3; width: 100%;
    background: var(--navy-900); border-top: 1px solid var(--gold-700);
    margin-top: 12px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; padding: 8px 0; }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.06);
    border-left: none;
  }
  .nav-cta-mobile { display: block; margin-top: 8px; }
  .nav-cta-mobile .nav-cta { display: inline-block; width: 100%; text-align: center; box-sizing: border-box; }

  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 80% -10%, var(--navy-700), var(--navy-900) 60%);
  color: var(--ivory-100);
  padding: 96px 0 84px;
  border-bottom: 1px solid var(--gold-700);
  position: relative;
}
.hero .eyebrow { color: var(--gold-400); letter-spacing: 2.5px; text-transform: uppercase; font-size: 12px; margin-bottom: 16px; }
.hero h1 { font-size: 42px; max-width: 760px; color: var(--ivory-100); }
.hero p.lead { max-width: 620px; color: var(--ivory-300); font-size: 17px; margin-top: 18px; }
.hero .actions { margin-top: 32px; display: flex; gap: 16px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-size: 14px; letter-spacing: 0.4px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-outline { border-color: var(--gold-500); color: var(--gold-400); }
.btn-outline:hover { background: rgba(201,162,75,0.12); }

/* hairline flourish divider echoing the crest's corner scrollwork */
.divider-flourish { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 40px; }
.divider-flourish .line { height: 1px; width: 60px; background: var(--gold-500); }
.divider-flourish .mark { color: var(--gold-500); font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.on-navy { background: var(--navy-900); color: var(--ivory-100); }
.section.on-navy h2 { color: var(--ivory-100); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--gold-700); letter-spacing: 2px; text-transform: uppercase; font-size: 12px; }
.on-navy .section-head .eyebrow { color: var(--gold-400); }

/* ---------- Certificate cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid #e7e1d1; border-radius: var(--radius);
  padding: 30px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10,23,48,0.10); }
.card .code { color: var(--gold-700); font-size: 12px; letter-spacing: 1.5px; font-weight: 700; }
.card h3 { font-size: 20px; margin-top: 6px; }
.card p { color: #4a4a4a; font-size: 14.5px; }
.card .card-link { color: var(--navy-700); font-weight: 600; font-size: 14px; }
.card .card-link::after { content: ' \2192'; }

.pill {
  display: inline-block; font-size: 11.5px; padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--gold-500); color: var(--gold-700); margin-right: 6px; margin-bottom: 6px;
}

/* ---------- Pricing table on certificate detail ---------- */
.price-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.price-table th, .price-table td { padding: 14px 16px; border-bottom: 1px solid #e7e1d1; text-align: left; }
.price-table th { background: var(--navy-900); color: var(--ivory-100); font-family: var(--font-display); font-weight: 600; }
.price-table td.price { color: var(--navy-900); font-weight: 700; font-size: 17px; }

/* ---------- Forms ---------- */
.form-panel { background: #fff; border: 1px solid #e7e1d1; padding: 34px; border-radius: var(--radius); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy-900); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d8d2bf; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14.5px; background: #fdfcf8;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: var(--shadow-gold);
}
.alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #eef7ef; border: 1px solid #b9dcc0; color: #1e5c2b; }
.alert-error { background: #fbeaea; border: 1px solid #e6b6b6; color: #7a1f1f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--ivory-300); padding: 60px 0 24px; border-top: 1px solid var(--gold-700); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--gold-400); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: var(--ivory-300); }
.site-footer a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid var(--navy-700); margin-top: 40px; padding-top: 20px; font-size: 12.5px; color: var(--ivory-300); display: flex; justify-content: space-between; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Leadership / CEO section ---------- */
.panel-leadership {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start;
  background: #fff; border: 1px solid #e7e1d1; border-radius: 4px; padding: 40px;
  box-shadow: 0 12px 30px rgba(10,23,48,0.06);
}
.leadership-photo img {
  width: 100%; border-radius: 4px; border: 1px solid var(--gold-500);
  background: linear-gradient(180deg, #f2ecd9, #e7ddc2);
}
.leadership-bio h2 { font-size: 26px; }
@media (max-width: 800px) {
  .panel-leadership { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .leadership-photo img { max-width: 220px; margin: 0 auto; display: block; }
}
.badge-mode { display:inline-block; padding: 3px 10px; border-radius: 3px; font-size: 11.5px; font-weight:700; letter-spacing: .5px; }
.badge-self_study { background:#eef1f7; color:#2c3e63; }
.badge-online_live { background:#eaf4ec; color:#2a5c39; }
.badge-in_person { background:#f7eee0; color:#7a4c14; }
