/* ============================================================
   GLOBAL.CSS — AntarcticaRank
   Base reset, typography, layout, header, footer, utilities
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --navy-950: #080F1A;
  --navy-900: #0C1827;
  --navy-800: #132236;
  --navy-700: #1D3350;
  --navy-600: #284A6E;
  --gold-500: #C49A3C;
  --gold-400: #D4AE6A;
  --gold-300: #E8CA8A;
  --gold-100: #FAF3E0;
  --white: #FFFFFF;
  --grey-50: #F4F6F9;
  --grey-100: #E8ECF2;
  --grey-200: #CDD4DF;
  --grey-300: #A8B5C4;
  --text: #1A2535;
  --text-muted: #546070;
  --text-light: #7D8EA0;
  --color-primary: var(--navy-900);
  --color-accent: var(--gold-500);
  --color-text: var(--text);
  --max-width: 1160px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(8,15,26,.08), 0 1px 2px rgba(8,15,26,.06);
  --shadow-md: 0 4px 16px rgba(8,15,26,.10), 0 2px 6px rgba(8,15,26,.07);
  --shadow-lg: 0 10px 36px rgba(8,15,26,.14), 0 4px 12px rgba(8,15,26,.09);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h5 { font-size: 1.1rem; }
p { color: var(--text); }
strong { font-weight: 700; }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: 0 2px 8px rgba(196,154,60,.35);
}
.btn-primary:hover {
  background: var(--gold-400);
  box-shadow: 0 4px 16px rgba(196,154,60,.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--grey-200);
}
.btn-outline:hover {
  background: var(--grey-50);
  border-color: var(--grey-300);
}
.btn-sm { padding: .5rem 1rem; font-size: .8rem; }

/* ── Tags / Pills ── */
.tag {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--grey-100);
  color: var(--text-muted);
}
.tag--gold { background: var(--gold-100); color: #8B6A1A; }
.tag--navy { background: var(--navy-800); color: var(--white); }
.tag--green { background: #E6F4EC; color: #1E6B3A; }

/* ── Section spacing ── */
.section { padding: 4rem 0; }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--light { background: var(--grey-50); }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }

.section-label {
  display: inline-block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: .75rem;
}
.section-title { margin-bottom: 1.25rem; }
.section-title + p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; }

/* ── Callout / Alert boxes ── */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold-500);
  background: var(--gold-100);
}
.callout p { font-size: .95rem; color: var(--text); }
.callout strong { color: var(--navy-800); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__img { height: 52px; width: auto; display: block; }
.site-logo__wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1;
}
.site-logo__wordmark span { color: var(--gold-400); }

/* Desktop nav */
.site-nav {
  display: none;
  align-items: center;
  gap: .25rem;
}
.site-nav a {
  font-family: 'Nunito Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  padding: .45rem .85rem;
  border-radius: 6px;
  transition: var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.site-nav a.active { color: var(--gold-400); }

/* Nav toggle button (mobile) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,.14); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.site-nav--mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 1rem 0 1.25rem;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.site-nav--mobile.is-open { display: block; }
.site-nav--mobile a {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  padding: .7rem 1.5rem;
  transition: var(--transition);
}
.site-nav--mobile a:hover,
.site-nav--mobile a.active { color: var(--gold-400); background: rgba(255,255,255,.05); }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.6);
  padding: 3rem 0 2rem;
  font-size: .875rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer__brand .site-logo__wordmark { font-size: 1.35rem; }
.site-footer__tagline {
  margin-top: .6rem;
  font-size: .8rem;
  line-height: 1.5;
  color: rgba(255,255,255,.45);
}
.site-footer__nav h4 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .75rem;
}
.site-footer__nav ul { display: flex; flex-direction: column; gap: .35rem; }
.site-footer__nav a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: var(--transition);
}
.site-footer__nav a:hover { color: var(--gold-400); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.site-footer__disclosure {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}
.site-footer__copy {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-gold { color: var(--gold-500); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
