@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy: #1B2E4B;
  --navy-deep: #0F1E33;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-pale: #F5EDD4;
  --cream: #FAF8F4;
  --cream-dark: #EAE6D8;
  --mid: #6B6B8A;
  --text: #1A1A2E;
  --rule: #DDD8CC;
  --white: #FFFFFF;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── LANG SYSTEM ── */
[data-lang] { display: none; }
[data-lang-inline] { display: none; }
body.lang-en [data-lang="en"] { display: block; }
body.lang-es [data-lang="es"] { display: block; }
body.lang-en [data-lang-inline="en"] { display: inline; }
body.lang-es [data-lang-inline="es"] { display: inline; }

/* ── LANG TOGGLE ── */
.lang-toggle {
  display: flex;
  gap: 3px;
  background: rgba(27,46,75,0.92);
  padding: 4px;
  border-radius: 3px;
  backdrop-filter: blur(8px);
}
.lang-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: rgba(255,255,255,0.4);
}
.lang-btn.active { background: var(--gold); color: var(--navy); }

/* ── TOPBAR ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,30,51,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
}
.topbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.topbar-brand span { color: var(--gold); }
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.topbar-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 2px;
  transition: all 0.2s;
}
.topbar-nav a:hover { color: var(--gold); }
.topbar-nav a.active { color: var(--gold); }
.topbar-right { display: flex; align-items: center; gap: 16px; }

/* mobile hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.7); margin: 4px 0; transition: all 0.3s; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  z-index: 999;
  padding: 16px 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 12px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }

/* ── PAGE OFFSET ── */
.page-body { padding-top: 60px; }

/* ── GOLD BAR ── */
.gold-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 60%, transparent 100%);
}

/* ── HERO / PAGE HEADER ── */
.page-hero {
  background: var(--navy);
  padding: 72px 80px 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: attr(data-ghost);
  position: absolute;
  right: -10px; top: -20px;
  font-family: 'Playfair Display', serif;
  font-size: 220px;
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.page-hero-inner { max-width: 960px; margin: 0 auto; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero p {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  max-width: 560px;
}

/* ── SECTION TITLE ── */
.section-label {
  font-family: 'Playfair Display', serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── CONTAINER ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 80px; }
.section-block { padding: 60px 0; border-bottom: 1px solid var(--rule); }
.section-block:last-child { border-bottom: none; }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(27,46,75,0.1); transform: translateY(-2px); }
.card-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.card p { font-size: 14px; color: #555; line-height: 1.75; }
.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.card-link:hover { color: var(--gold); }

/* ── PILL ── */
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(27,46,75,0.07);
  padding: 3px 10px;
  border-radius: 2px;
  margin: 3px 3px 3px 0;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.4);
  padding: 40px 80px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .topbar { padding: 0 24px; }
  .topbar-nav { display: none; }
  .hamburger { display: block; }
  .page-hero { padding: 48px 28px 40px; }
  .page-hero h1 { font-size: 34px; }
  .container { padding: 0 28px; }
  footer { padding: 32px 28px; flex-direction: column; gap: 12px; }
}
