/* ============================================================
   THE CONSULO — Geopolitics
   Design system & global styles
   Palette: deep navy, gold, cream — editorial / think-tank
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand */
  --navy-900: #081426;
  --navy-800: #0b1f3a;
  --navy-700: #0f2847;
  --navy-600: #163356;
  --navy-500: #1e4270;

  --gold-600: #b8892f;
  --gold-500: #c9a24b;
  --gold-400: #d9bd76;
  --gold-300: #e7d3a1;

  --cream-100: #fbf8f1;
  --cream-200: #f5efe1;
  --cream-300: #ece3cf;

  --ink: #14202e;
  --ink-soft: #40505f;
  --muted: #7d8894;
  --line: rgba(11, 31, 58, 0.12);
  --line-gold: rgba(201, 162, 75, 0.35);

  /* Surfaces */
  --bg: #fbf9f4;
  --surface: #ffffff;
  --surface-alt: #f6f1e6;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(8, 20, 38, 0.06), 0 2px 8px rgba(8, 20, 38, 0.05);
  --shadow-md: 0 8px 24px rgba(8, 20, 38, 0.10);
  --shadow-lg: 0 24px 60px rgba(8, 20, 38, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: 0.2px; color: var(--navy-800); }
.display { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.5px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.lead { font-size: 1.18rem; color: var(--ink-soft); font-weight: 400; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Gold hairline divider with compass dot */
.rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 22px 0;
}
.rule::before, .rule::after {
  content: ""; height: 1px; width: 70px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.rule::after { background: linear-gradient(90deg, var(--gold-500), transparent); }
.rule .diamond { width: 7px; height: 7px; background: var(--gold-500); transform: rotate(45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #2a1e06; box-shadow: 0 6px 18px rgba(184, 137, 47, 0.35);
}
.btn-gold:hover { box-shadow: 0 10px 26px rgba(184, 137, 47, 0.45); transform: translateY(-2px); }
.btn-navy { background: var(--navy-800); color: var(--cream-100); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--line-gold); color: var(--navy-800); background: transparent; }
.btn-outline:hover { border-color: var(--gold-500); background: rgba(201,162,75,0.08); }
.btn-ghost { color: var(--navy-800); padding: 13px 16px; }
.btn-ghost:hover { color: var(--gold-600); }
.btn-lg { padding: 16px 34px; font-size: 0.98rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(251, 249, 244, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(8,20,38,0.07); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .b1 {
  font-family: var(--serif); font-weight: 600; font-size: 1.16rem;
  letter-spacing: 0.32em; color: var(--navy-800); text-transform: uppercase; padding-left: 0.32em;
}
.brand-name .b2 {
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.42em;
  color: var(--gold-600); text-transform: uppercase; margin-top: 4px; padding-left: 0.42em;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold-500); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language switch */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.lang-switch button {
  padding: 6px 12px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--muted); transition: all .2s;
}
.lang-switch button.active { background: var(--navy-800); color: var(--cream-100); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(201,162,75,0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(30,66,112,0.10), transparent 55%),
    linear-gradient(180deg, #fdfbf6, #f4eede);
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--navy-800); }
.hero-stats .stat .l { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

/* Emblem visual */
.hero-emblem { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-emblem .ring {
  position: absolute; inset: 0; margin: auto; width: 108%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid var(--line-gold);
  animation: spin 60s linear infinite;
}
.hero-emblem .ring::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  border: 1px dashed rgba(201,162,75,0.25);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-emblem img { width: min(440px, 90%); filter: drop-shadow(0 30px 60px rgba(8,20,38,0.25)); position: relative; z-index: 2; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .3s ease, border-color .3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Feature/value cards */
.feature { padding: 30px; }
.feature .ic {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(201,162,75,0.18), rgba(201,162,75,0.06));
  color: var(--gold-600); margin-bottom: 18px;
}
.feature h3 { font-size: 1.5rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; }

/* Course cards */
.course-card { display: flex; flex-direction: column; }
.course-thumb {
  aspect-ratio: 16/10; position: relative;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.course-thumb::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(201,162,75,0.35), transparent 60%),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(255,255,255,0.04) 38px, rgba(255,255,255,0.04) 39px);
}
.course-thumb .lvl {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; background: rgba(251,248,241,0.92); color: var(--navy-800);
}
.course-thumb .emb { width: 44%; opacity: 0.9; position: relative; z-index: 2; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }
.course-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.42rem; margin-bottom: 8px; }
.course-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--muted); margin: 4px 0 14px; flex-wrap: wrap; }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-desc { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.price { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--navy-800); }
.price small { font-size: 0.8rem; color: var(--muted); font-family: var(--sans); }
.price .old { font-size: 1rem; color: var(--muted); text-decoration: line-through; margin-right: 8px; }

/* Tag/pill */
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-600); background: rgba(201,162,75,0.1); padding: 5px 11px; border-radius: 100px; }

/* ---------- Section on navy ---------- */
.on-navy { background: var(--navy-800); color: var(--cream-200); position: relative; overflow: hidden; }
.on-navy h1, .on-navy h2, .on-navy h3 { color: #fff; }
.on-navy .eyebrow { color: var(--gold-400); }
.on-navy::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 85% 20%, rgba(201,162,75,0.14), transparent 60%);
  pointer-events: none;
}
.on-navy .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }

/* Testimonials */
.quote { padding: 32px; }
.quote p { font-family: var(--serif); font-size: 1.32rem; font-style: italic; color: var(--ink); line-height: 1.5; }
.on-navy .quote p { color: var(--cream-100); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); display: grid; place-items: center; color: #2a1e06; font-weight: 700; }
.quote .who .nm { font-weight: 600; font-size: 0.9rem; color: var(--navy-800); }
.on-navy .quote .who .nm { color: #fff; }
.quote .who .rl { font-size: 0.78rem; color: var(--muted); }

/* ---------- Newsletter / CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(201,162,75,0.22), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.subscribe { display: flex; gap: 12px; max-width: 480px; margin: 26px auto 0; }
.subscribe input { flex: 1; padding: 14px 18px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; }
.subscribe input::placeholder { color: rgba(255,255,255,0.55); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(245,239,225,0.7); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer a { color: rgba(245,239,225,0.7); font-size: 0.9rem; display: block; padding: 6px 0; transition: color .2s; }
.footer a:hover { color: var(--gold-400); }
.footer .brand-name .b1 { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; font-size: 0.8rem; flex-wrap: wrap; gap: 12px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
[data-i18n] { transition: opacity .15s; }
.badge-live { display:inline-flex; align-items:center; gap:6px; font-size:0.74rem; font-weight:600; color: var(--gold-600); }
.badge-live .dot { width:7px; height:7px; border-radius:50%; background: var(--gold-500); box-shadow: 0 0 0 0 rgba(201,162,75,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(201,162,75,0.5);} 70%{box-shadow:0 0 0 8px rgba(201,162,75,0);} 100%{box-shadow:0 0 0 0 rgba(201,162,75,0);} }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-emblem { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-actions .btn-navy { display: none; }
  .brand-name .b2 { display: none; }

  /* Mobile menu */
  .nav-links.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 12px 24px 20px;
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}
