/* ── Reset & Tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080E18;
  --bg2:         #0D1623;
  --bg3:         #111D2E;
  --border:      #1B2D45;
  --border-gold: rgba(201,162,93,0.25);
  --fg:          #EEF1F7;
  --muted:       #8A95A3;
  --dim:         #3d4a56;
  --accent:      #C9A25D;
  --accent-h:    #DDB96E;
  --accent-glow: rgba(201,162,93,0.15);
  --gold:        #C9A25D;
  --gold-h:      #DDB96E;
  --gold-g:      rgba(201,162,93,0.12);
  --gold-line:   rgba(201,162,93,0.4);
  --success:     #10b981;
  --max-w:       1120px;
  --r:           6px;
  --font:        'Plus Jakarta Sans', system-ui, sans-serif;
  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-ui:     'Plus Jakarta Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 24px; }

/* ── HEADER (inner pages — always visible frosted glass) ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,14,24,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}

.nav-logo {
  display: flex; align-items: center;
  flex-shrink: 0;
}

.nav-logo img { height: 56px; width: auto; display: block; }

.nav-links {
  list-style: none; display: flex; gap: 2px; flex-wrap: wrap;
}

.nav-links a {
  display: block; padding: 7px 14px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); font-family: var(--font-ui);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--gold); background: var(--gold-g); }
.nav-links a.active { color: var(--gold); }

/* Sign-in button in nav */
.btn-nav {
  background: linear-gradient(135deg, #A07838 0%, #C9A25D 50%, #E8C87A 100%);
  color: #080E18;
  border: none;
  padding: 9px 22px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--font-ui);
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  position: relative; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.btn-nav::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.26) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-nav:hover::before { transform: translateX(100%); }
.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,162,93,.35), 0 2px 6px rgba(0,0,0,.4);
}
.btn-nav:active { transform: translateY(0); box-shadow: none; }

/* ── FLOATING NAV (index.html hero overlay) ── */
.hero-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding: 0 32px;
}
.hero-nav .nav { max-width: 1140px; margin-inline: auto; }
.hero-nav .nav-logo img { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.hero-nav .nav-links a {
  color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-nav .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.hero-nav .nav-links a.active { color: #fff; }
.hero-nav .btn-nav {
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-nav .btn-nav:hover { color: #080E18; }

/* ── STICKY NAV (index.html — slides in after hero) ── */
.nav-sticky {
  position: fixed; top: -80px; left: 0; right: 0; z-index: 200;
  background: rgba(8,14,24,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  transition: top 0.3s cubic-bezier(.4,0,.2,1);
}
.nav-sticky.visible { top: 0; }
.nav-sticky .nav { max-width: 1140px; margin-inline: auto; padding: 0 32px; }
.nav-sticky .nav-links a { text-shadow: none; color: var(--muted); }
.nav-sticky .nav-links a:hover { color: var(--gold); background: var(--gold-g); }
.nav-sticky .nav-links a.active { color: var(--gold); }
.nav-sticky .btn-nav { text-shadow: none; }

/* ── PAGE HERO (generic) ── */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.page-hero .label {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.0625rem; color: var(--muted); max-width: 560px; line-height: 1.75;
}

/* ── HOME HERO ── */
.home-hero {
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
}

.home-hero .label::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--accent);
}

.home-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.home-hero h1 span { color: var(--accent); }

.home-hero .sub {
  font-size: 1.125rem; color: var(--muted); max-width: 500px;
  line-height: 1.75; margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r);
  font-size: 0.9375rem; font-weight: 600;
  transition: all 0.2s; cursor: pointer; border: none;
}

.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-h); box-shadow: 0 0 24px var(--accent-glow); }

.btn-outline {
  background: transparent; color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.btn-login {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-login:hover { background: var(--accent); color: #0D1B2A; box-shadow: 0 0 20px var(--accent-glow); }

/* ── LOGIN PAGE ── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}

.login-box {
  width: 100%; max-width: 440px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 48px 40px;
}

.login-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 32px;
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 700;
  color: var(--fg);
}

.login-logo .login-icon { font-size: 2rem; }

.login-title {
  font-family: var(--font-head);
  font-size: 1.375rem; font-weight: 700; text-align: center;
  margin-bottom: 8px;
}

.login-sub { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }

.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin-block: 24px;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.login-divider span { font-size: 0.75rem; color: var(--dim); }

.login-footer-text {
  text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: 24px;
}

.login-footer-text a { color: var(--accent); }
.login-footer-text a:hover { text-decoration: underline; }

/* ── STAT STRIP ── */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; margin: 48px 0;
}

.stat {
  background: var(--bg2); padding: 28px 24px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.75rem; font-weight: 400; color: var(--gold);
  letter-spacing: -0.01em; display: block; line-height: 1; margin-bottom: 6px;
}

.stat-label { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }

/* ── SECTION TITLE ── */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 300; letter-spacing: -0.01em;
  margin-bottom: 8px; line-height: 1.2;
}

.section-sub { font-size: 0.9375rem; color: var(--muted); margin-bottom: 32px; font-weight: 300; }

/* ── CARDS GRID ── */
.cards { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  position: relative;
  background: linear-gradient(150deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(201,162,93,.3);
  border-radius: 12px;
  padding: 36px 32px 32px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

/* Gold shimmer wash on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,162,93,.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* Corner accent line */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.card:hover::after { width: 100%; }

.card:hover {
  border-color: rgba(201,162,93,.4);
  border-top-color: var(--gold);
  box-shadow: 0 28px 64px rgba(0,0,0,.55), 0 0 0 1px rgba(201,162,93,.15), 0 0 40px rgba(201,162,93,.05);
  transform: translateY(-5px);
}

/* Faint number watermark */
.card-num {
  position: absolute;
  top: 16px; right: 24px;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201,162,93,.1);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s;
}
.card:hover .card-num { color: rgba(201,162,93,.18); }

/* Icon box */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  background: rgba(201,162,93,.07);
  border: 1px solid rgba(201,162,93,.18);
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.card:hover .card-icon {
  background: rgba(201,162,93,.13);
  border-color: rgba(201,162,93,.38);
  transform: scale(1.08);
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.2;
}

.card p { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }

/* Thin gold rule separator */
.card-line {
  width: 36px; height: 1px;
  background: rgba(201,162,93,.3);
  margin: 22px 0 18px;
  transition: width 0.3s;
}
.card:hover .card-line { width: 56px; }

.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.1em; text-transform: uppercase;
  opacity: .7; transition: gap 0.2s, opacity 0.2s;
}
.card:hover .card-link { gap: 14px; opacity: 1; }

/* ── HOME ABOUT ── */
.home-section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.home-section:last-of-type { border-bottom: none; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.two-col .col-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.two-col .col-text p {
  font-size: 0.9375rem; color: var(--muted);
  line-height: 1.8; margin-bottom: 16px;
}

.timeline { list-style: none; display: flex; flex-direction: column; gap: 0; }

.timeline li {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.timeline li:last-child { border-bottom: none; }

.tl-year {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700; color: var(--accent);
  flex-shrink: 0; width: 60px; padding-top: 2px;
}

.tl-text h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.tl-text p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── AIRLINES PAGE ── */
.country-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}

.filter-btn {
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-glow);
}

.country-block { margin-bottom: 48px; }

.country-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.country-flag { font-size: 1.75rem; }

.country-name {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 700;
}

.country-code {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--accent); background: rgba(37,99,235,0.1);
  padding: 2px 8px; border-radius: 4px;
}

.airline-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}

.airline-table th {
  text-align: left; padding: 10px 14px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  background: var(--bg3); border-bottom: 1px solid var(--border);
}

.airline-table th:first-child { border-radius: var(--r) 0 0 0; }
.airline-table th:last-child  { border-radius: 0 var(--r) 0 0; }

.airline-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.airline-table tr:last-child td { border-bottom: none; }
.airline-table tr:hover td { background: var(--bg3); }

.type-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 2px 7px; border-radius: 4px; letter-spacing: 0.04em;
}

.type-flag     { background: rgba(201,162,93,0.15); color: #d4aa66; }
.type-lcc      { background: rgba(16,185,129,0.12); color: #34d399; }
.type-cargo    { background: rgba(245,158,11,0.12); color: #fbbf24; }
.type-regional { background: rgba(139,92,246,0.12); color: #a78bfa; }

.airports-pill {
  display: inline-block; font-size: 0.75rem; color: var(--muted);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 4px; margin: 1px;
}

/* ── TYPES PAGE ── */
.manufacturer-nav {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
}

.mfr-btn {
  padding: 7px 16px; border-radius: var(--r);
  font-size: 0.8125rem; font-weight: 600;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
  font-family: var(--font-head);
}

.mfr-btn:hover, .mfr-btn.active {
  border-color: var(--accent); color: var(--fg); background: var(--bg2);
}

.mfr-section { margin-bottom: 56px; }

.mfr-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--r) var(--r) 0 0;
}

.mfr-logo-txt {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700; color: var(--fg);
}

.mfr-country { font-size: 0.8125rem; color: var(--muted); }

.aircraft-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--r) var(--r); overflow: hidden;
}

.aircraft-card {
  background: var(--bg); padding: 20px 22px;
  transition: background 0.15s;
}

.aircraft-card:hover { background: var(--bg2); }

.aircraft-model {
  font-family: var(--font);
  font-size: 1rem; font-weight: 600; color: var(--fg);
  margin-bottom: 4px; letter-spacing: .01em;
}

.aircraft-variant { font-size: 0.78rem; color: var(--accent); font-weight: 500; margin-bottom: 12px; letter-spacing: .01em; }

.spec-row {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted); line-height: 1.4;
}

.spec-row:last-child { border-bottom: none; }
.spec-row strong { color: var(--fg); }

/* ── ATC PAGE ── */
.atc-grid { display: grid; gap: 24px; }

.atc-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}

.atc-card-head {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  background: var(--bg3);
  display: flex; align-items: center; gap: 12px;
}

.atc-card-head h3 {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
}

.atc-icon { font-size: 1.25rem; }

.atc-card-body { padding: 24px; }

.phonetic-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.phonetic-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 12px; text-align: center;
}

.phonetic-letter {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700; color: var(--accent);
  display: block;
}

.phonetic-word { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.phonetic-pron { font-size: 0.7rem; color: var(--dim); font-style: italic; }

.squawk-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.squawk-table th {
  text-align: left; padding: 10px 14px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.squawk-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.squawk-table tr:last-child td { border-bottom: none; }

.squawk-code {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.05em;
}

.squawk-status {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
}

.s-emergency { background: rgba(239,68,68,0.15); color: #f87171; }
.s-special   { background: rgba(245,158,11,0.15); color: #fbbf24; }
.s-normal    { background: rgba(16,185,129,0.12); color: #34d399; }

.phraseology-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.phraseology-list li {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 18px;
}

.phrase-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}

.phrase-text {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem; color: var(--fg); line-height: 1.6;
}

/* ── CONTACT PAGE ── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px;
  padding: 56px 0 80px;
}

.contact-info h2 {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.contact-info p { font-size: 0.9375rem; color: var(--muted); line-height: 1.8; }

.contact-info-items { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }

.info-item {
  display: flex; gap: 12px; align-items: flex-start;
}

.info-icon { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

.info-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.info-val { font-size: 0.9375rem; color: var(--fg); }

.contact-form { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 36px; }

.form-group { margin-bottom: 20px; }

.form-label {
  display: block; font-size: 0.8125rem; font-weight: 500;
  color: var(--muted); margin-bottom: 7px;
}

.form-label span { color: #ef4444; margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--fg); font-family: var(--font);
  font-size: 0.9375rem; transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--dim); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b96a8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form-textarea { resize: vertical; min-height: 110px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── FOOTER ── */
.site-footer {
  background: #050A14;
  border-top: 1px solid rgba(201,162,93,.18);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,93,.5) 30%, rgba(201,162,93,.5) 70%, transparent);
}

.footer-top {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w); margin-inline: auto; padding-inline: 32px;
}

.footer-brand {}
.footer-brand img { height: 52px; width: auto; display: block; margin-bottom: 20px; }
.footer-brand p {
  font-size: .84rem; color: var(--muted); line-height: 1.75;
  max-width: 280px; margin-bottom: 20px;
}
.footer-tagline {
  display: inline-block;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border-left: 2px solid var(--gold);
  padding-left: 10px; line-height: 1.5;
}

.footer-col-title {
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .84rem; color: var(--muted);
  transition: color .15s, padding-left .15s;
  display: inline-block;
}
.footer-links a:hover { color: var(--fg); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(201,162,93,.1);
  padding: 20px 32px;
  max-width: var(--max-w); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: .77rem; color: var(--dim); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .77rem; color: var(--dim); transition: color .15s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* legacy single-row footer inner — no longer used but keep for compat */
.footer-inner { display: none; }

/* ── UTILITY ── */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-32 { margin-bottom: 32px; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.fw-700 { font-weight: 700; }

.divider { border: none; border-top: 1px solid var(--border); margin-block: 56px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .home-hero { padding: 64px 0 56px; }
}

/* ── MOBILE NAV ── */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid rgba(201,162,93,.25);
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  gap: 5px;
  flex-direction: column;
  padding: 7px;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(8,14,24,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201,162,93,.15);
    padding: 12px 16px 20px;
    gap: 2px;
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; font-size: 0.8rem; }
}

/* ── PDF Reader (PDF.js) ── */
.pr-container {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--bg2);
}
.pr-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(201,162,93,.05);
}
.pr-info {
  font-size: .82rem; color: var(--muted); white-space: nowrap; min-width: 60px; text-align: center;
}
.pr-sep {
  width: 1px; height: 20px; background: rgba(201,162,93,.2); flex-shrink: 0; margin: 0 4px;
}
.pr-zoom-label {
  font-size: .82rem; color: var(--muted); white-space: nowrap;
  min-width: 46px; text-align: center; font-variant-numeric: tabular-nums;
}
.pr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: .75rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold); background: transparent; text-decoration: none;
  border: 1px solid rgba(201,162,93,.25); border-radius: 14px;
  padding: 5px 13px; cursor: pointer; transition: background .2s, border-color .2s;
  font-family: inherit; white-space: nowrap; flex-shrink: 0;
}
.pr-btn:hover:not(:disabled) { background: rgba(201,162,93,.1); border-color: rgba(201,162,93,.4); }
.pr-btn:disabled { opacity: .32; cursor: default; }
.pr-dl { margin-left: auto; }
.pr-canvas-wrap {
  position: relative;
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  min-height: 520px; background: #2a2a2a; padding: 20px; overflow-x: auto; gap: 0;
}
.pr-side-btn {
  position: sticky; top: 50%; transform: translateY(-50%);
  flex-shrink: 0; align-self: center;
  width: 44px; height: 72px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(201,162,93,.3);
  color: var(--gold); font-size: 1.3rem; cursor: pointer;
  border-radius: 8px; transition: background .18s, border-color .18s;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.pr-side-btn:hover:not(:disabled) { background: rgba(201,162,93,.18); border-color: rgba(201,162,93,.6); }
.pr-side-btn:disabled { opacity: .22; cursor: default; }
.pr-side-prev { margin-right: 12px; }
.pr-side-next { margin-left: 12px; }
.pr-canvas-inner { display: flex; justify-content: center; flex: 1; overflow-x: auto; }
.pr-canvas-wrap canvas { border-radius: 3px; display: none; box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.pr-loading { color: rgba(255,255,255,.4); font-size: .85rem; }

/* Fullscreen mode */
.pr-container.pr-fullscreen {
  position: fixed; inset: 0; z-index: 9999;
  border-radius: 0; border: none;
  display: flex; flex-direction: column;
  background: #111;
}
.pr-container.pr-fullscreen .pr-toolbar {
  flex-shrink: 0;
  background: rgba(8,14,24,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,162,93,.2);
}
.pr-container.pr-fullscreen .pr-canvas-wrap {
  flex: 1; overflow-y: auto; overflow-x: auto;
  justify-content: flex-start; align-items: flex-start; padding: 28px;
}
.pr-container.pr-fullscreen .pr-canvas-inner {
  margin: 0 auto;
}

@media (max-width: 600px) {
  .pr-toolbar { gap: 6px; padding: 8px 10px; }
  .pr-btn { padding: 5px 10px; font-size: .7rem; }
  .pr-sep { display: none; }
}

/* ── BOOK SUMMARY: CHAPTER BREAKDOWN ── */
.chapter-breakdown { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.cb-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: start;
}
@media (max-width: 640px) {
  .cb-row { grid-template-columns: 1fr; gap: 10px; }
}
.cb-chapters {
  font-size: .72rem; font-weight: 700; color: var(--gold);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(201,162,93,.1);
  border: 1px solid rgba(201,162,93,.22);
  border-radius: 20px;
  text-align: center;
  white-space: nowrap;
  align-self: start;
  margin-top: 2px;
}
.cb-body { flex: 1; }
.cb-theme {
  font-size: .88rem; font-weight: 600; color: var(--fg);
  line-height: 1.4; margin-bottom: 6px;
}
.cb-detail {
  font-size: .81rem; color: var(--muted); line-height: 1.7;
}

/* ── BOOK SUMMARY: KEY RULES ── */
.key-rules-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.key-rule-item {
  padding: 15px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(201,162,93,.5);
  border-radius: 0 8px 8px 0;
}
.key-rule-title {
  font-size: .86rem; font-weight: 600; color: var(--gold);
  margin-bottom: 5px;
}
.key-rule-desc {
  font-size: .81rem; color: var(--muted); line-height: 1.7;
}
