/* ============================================================
   BEYOND BORDERS CITIZENSHIP — Design System & Styles
   ============================================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- CSS Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* --- Design Tokens --- */
:root {
  --bg: #060d1a;
  --navy: #0a1628;
  --surface: #111d33;
  --surface-alt: #162544;
  --border: rgba(201, 168, 76, .15);
  --gold: #c9a84c;
  --gold-light: #e2c97e;
  --gold-dark: #a88a3a;
  --text: #e8e6e1;
  --text-dim: #9ba4b5;
  --white: #ffffff;
  --success: #34d399;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, .35);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, .12);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --max-width: 1280px;
}

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--navy);
}

.section-surface {
  background: var(--surface);
}

.text-gold {
  color: var(--gold);
}

.text-dim {
  color: var(--text-dim);
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 12px;
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

.section-subtitle {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  margin: 16px auto 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .3px;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, .3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(201, 168, 76, .1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: .85rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(6, 13, 26, .6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(6, 13, 26, .95);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--navy);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #060d1a;
}

/* Carousel background system */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

/* Ken Burns subtle zoom effect on active slide */
.hero-slide.active {
  animation: kenBurns 8s ease-in-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.06);
  }
}

/* Dark overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(165deg, rgba(6, 13, 26, .82) 0%, rgba(10, 22, 40, .65) 40%, rgba(6, 13, 26, .78) 100%),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(201, 168, 76, .06) 0%, transparent 70%);
}

/* Navigation dots */
.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  border: 2px solid rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.hero-dot:hover {
  background: rgba(201, 168, 76, .5);
  border-color: var(--gold);
}

.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201, 168, 76, .4);
  transform: scale(1.2);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
  padding-top: 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(201, 168, 76, .15);
  border: 1px solid rgba(201, 168, 76, .3);
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.hero h1 {
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(201, 168, 76, .2);
}

.hero-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.hero-stat-label {
  font-size: .85rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* --- Program Cards --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, .3);
  box-shadow: var(--shadow-gold);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card-flag {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.program-card h3 {
  font-size: 1.25rem;
}

.program-card-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 24px;
}

.program-card-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-dim);
}

.program-card-meta-item .icon {
  color: var(--gold);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.program-card-meta-item strong {
  color: var(--text);
}

.program-card .btn {
  width: 100%;
  justify-content: center;
}

/* --- Why Cards --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, .3);
}

.why-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(201, 168, 76, .1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: .9rem;
}

/* --- Compare Table --- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.compare-table th {
  background: var(--surface-alt);
  padding: 16px 20px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.compare-table td {
  padding: 16px 20px;
  font-size: .92rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  background: var(--surface);
}

.compare-table tr:hover td {
  background: var(--surface-alt);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.badge-yes {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  background: rgba(52, 211, 153, .12);
  color: var(--success);
}

.badge-no {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  background: rgba(239, 68, 68, .1);
  color: #ef4444;
}

/* --- Firm / Trust Points --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.trust-item:hover {
  border-color: rgba(201, 168, 76, .3);
}

.trust-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, .1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
}

.trust-item h4 {
  margin-bottom: 6px;
}

.trust-item p {
  font-size: .88rem;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: rgba(201, 168, 76, .15);
  line-height: 1;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
  font-size: .9rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}

.testimonial-role {
  font-size: .8rem;
  color: var(--text-dim);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, .06), transparent 70%);
}

.cta-banner>* {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  margin-bottom: 12px;
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto 32px;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: .9rem;
  max-width: 300px;
}

.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  font-size: .9rem;
  color: var(--text-dim);
  transition: var(--transition);
}

.footer ul a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: .82rem;
  color: var(--text-dim);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 180px 0 90px;
  background: #060d1a;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Country background image */
.page-header-bg {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
  background-size: cover;
  background-position: center;
  opacity: .35;
  transition: opacity .5s ease;
}

.page-header:hover .page-header-bg {
  opacity: .42;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 26, .6) 0%, rgba(6, 13, 26, .3) 50%, rgba(6, 13, 26, .85) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, .08), transparent 60%);
  z-index: 1;
}

.page-header>*:not(.page-header-bg) {
  position: relative;
  z-index: 2;
}

.page-header .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.page-header .breadcrumb a {
  color: var(--gold);
}

/* --- Program Page Sections --- */
.program-section {
  padding: 64px 0;
}

.program-section:nth-child(even) {
  background: var(--surface);
}

.program-section h2 {
  margin-bottom: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.info-card.alt {
  background: var(--surface-alt);
}

.info-card h4 {
  color: var(--gold);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.info-card p,
.info-card li {
  font-size: .92rem;
  color: var(--text-dim);
}

.info-card ul {
  margin-top: 8px;
}

.info-card ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.info-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  margin-bottom: 32px;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 2px solid var(--gold);
  z-index: 1;
}

.timeline-step h4 {
  margin-bottom: 6px;
  color: var(--text);
}

.timeline-step p {
  font-size: .9rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question .icon {
  font-size: 1.4rem;
  color: var(--gold);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: .95rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* --- Comparison Page Filters --- */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 600;
}

.filter-group select {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Recommendation Cards */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.rec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.rec-card:hover {
  border-color: rgba(201, 168, 76, .3);
  transform: translateY(-4px);
}

.rec-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.rec-card h4 {
  margin-bottom: 8px;
}

.rec-card .country {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
}

.rec-card p {
  font-size: .85rem;
  margin-top: 8px;
}

/* --- Process Steps --- */
.process-steps {
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 36px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.process-step:hover {
  border-color: rgba(201, 168, 76, .3);
}

.process-step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.process-step h3 {
  margin-bottom: 8px;
}

.process-step p {
  font-size: .92rem;
}

/* --- Legal --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 40px 0 16px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 13, 26, .98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-cta {
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding-top: 80px;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .filters-bar {
    flex-direction: column;
  }

  .process-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .page-header {
    padding: 120px 0 60px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .rec-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   CONSULTATION FORM
   ============================================================ */
.consultation-form-wrapper {
  max-width: 800px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.consultation-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.consultation-form .form-group {
  display: flex;
  flex-direction: column;
}

.consultation-form .form-group.full-width {
  grid-column: 1 / -1;
}

.consultation-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.consultation-form .required {
  color: var(--gold);
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.consultation-form input::placeholder,
.consultation-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.consultation-form input:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

.consultation-form select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C9A84C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.consultation-form select option {
  background: #0F1923;
  color: var(--text);
}

.consultation-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-footer {
  margin-top: 28px;
  text-align: center;
}

.form-footer .btn-lg {
  padding: 16px 48px;
  font-size: 1.05rem;
  min-width: 300px;
}

.form-disclaimer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.7;
}

.form-status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
}

.form-status.success {
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #27ae60;
}

.form-status.error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   WHATSAPP FLOATING WIDGET
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }
}

/* --- Nav Phone --- */
.nav-phone {
  color: var(--gold) !important;
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-phone:hover {
  opacity: 0.85;
}