/* RGAB public website stylesheet. No build step — plain CSS, loaded directly.
   Design tokens sourced from RGAB_BRAND_AND_CONTENT_SPEC.md section 1. */

:root {
  --navy: #0C1B2A;
  --gold: #B89555;
  --sand: #E7D8BC;
  --porcelain: #F7F5F0;
  --graphite: #24282C;
  --sage: #8D988C;
  --soft-white: #FFFDF9;

  --font-headline: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;

  --max-width: 1200px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--porcelain);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1em; }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75em;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 150ms ease, transform 150ms ease;
}
.btn:hover { opacity: 0.88; }
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(1px); }
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-secondary {
  background: transparent;
  color: var(--soft-white);
  border: 1px solid var(--gold);
}
.btn-secondary.on-light {
  color: var(--navy);
  border-color: var(--navy);
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0 0 rgba(12,27,42,0);
  transition: box-shadow 250ms ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(12,27,42,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  transition: min-height 250ms ease;
}
.site-header.scrolled .container {
  min-height: 64px;
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header .container { transition: none; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--soft-white);
}
.brand img { height: 40px; width: auto; }
.brand-wordmark {
  font-family: var(--font-headline);
  line-height: 1.05;
}
.brand-wordmark .line1 { font-size: 1.05rem; letter-spacing: 0.04em; display: block; }
.brand-wordmark .line2 { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--gold); display: block; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--soft-white);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--soft-white);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .main-nav ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    gap: 16px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }
  .main-nav.open ul {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  .nav-toggle { display: inline-block; }
  .site-header.scrolled .main-nav ul { top: 64px; }
  @media (prefers-reduced-motion: reduce) {
    .main-nav ul { transition: none; }
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--soft-white);
  padding: 96px 0 88px;
  text-align: center;
}
.hero h1 { color: var(--soft-white); }
.hero .subhead {
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--sand);
  margin-bottom: 0.75em;
}
.hero .lede {
  max-width: 640px;
  margin: 0 auto 1.5em;
  color: var(--soft-white);
  opacity: 0.9;
}
.hero .markets {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2em;
}
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.gold-rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 24px;
  border: none;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--soft-white); }
.section-navy { background: var(--navy); color: var(--soft-white); }
.section-navy h2, .section-navy h3 { color: var(--soft-white); }
.section-sand { background: var(--sand); }
.section-sand .card { background: var(--soft-white); border-color: rgba(12,27,42,0.06); }
.section-sand .eyebrow { color: var(--navy); opacity: 0.6; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--soft-white);
  border: 1px solid rgba(12,27,42,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card h3 { margin-bottom: 0.4em; }
.card a.card-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(12,27,42,0.08);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  color: var(--gold);
  min-width: 48px;
}

.list-plain { padding-left: 1.1em; }
.list-plain li { margin-bottom: 0.5em; }

.pathway-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  color: var(--gold);
  margin: 32px 0;
}
.pathway-line .arrow { color: var(--sage); }

/* ---------- Country/service page facts ---------- */
.fact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 32px 0;
}
.fact {
  border: 1px solid rgba(12,27,42,0.1);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--soft-white);
}
.fact .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--soft-white);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--soft-white); text-decoration: none; opacity: 0.85; font-size: 0.9rem; }
.footer-grid a:hover { opacity: 1; color: var(--gold); }
.footer-brand p { opacity: 0.75; font-size: 0.9rem; max-width: 340px; }
.footer-bottom {
  border-top: 1px solid rgba(255,253,249,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  opacity: 0.65;
}
.footer-bottom a { text-decoration: underline; }

.disclaimer-note {
  font-size: 0.78rem;
  opacity: 0.6;
  max-width: 900px;
  margin: 24px auto 0;
  text-align: center;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; }
.compliance-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.9rem;
  color: var(--navy);
}

/* ---------- Forms ---------- */
input, select, textarea { font-family: inherit; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(184,149,85,0.18);
}
.form-status {
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.form-status.visible {
  display: block;
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .form-status { transition: none; }
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--sage);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--sage); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Scroll reveal (JS-driven, progressive enhancement) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Card / interactive hover polish ---------- */
.card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(12,27,42,0.10);
  border-color: rgba(184,149,85,0.35);
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 0.92;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}
