/* ViewViziax — Vista Overlook Design System */
:root {
  --sapphire: #1a4a6e;
  --sapphire-deep: #123552;
  --sapphire-light: #2a6a96;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --silver-300: #cbd5e1;
  --silver-200: #e2e8f0;
  --silver-100: #f1f5f9;
  --silver-50: #f8fafc;
  --white: #ffffff;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --transition: 0.3s ease;
  --radius: 6px;
  --max-width: 1200px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--silver-50);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Horizon atmosphere */
.horizon-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--silver-100) 0%, var(--silver-200) 45%, var(--slate-400) 75%, var(--sapphire) 100%);
  pointer-events: none;
}

.horizon-bg::before {
  content: "";
  position: absolute;
  bottom: 28%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--silver-300) 20%, var(--silver-300) 80%, transparent);
  opacity: 0.6;
}

.horizon-bg::after {
  content: "";
  position: absolute;
  bottom: 22%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--sapphire-light) 50%, transparent 90%);
  opacity: 0.4;
}

/* Geometric horizon lines */
.horizon-lines {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.horizon-lines span {
  position: absolute;
  left: -5%;
  right: -5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15) 30%, rgba(255,255,255,0.15) 70%, transparent);
}

.horizon-lines span:nth-child(1) { bottom: 18%; }
.horizon-lines span:nth-child(2) { bottom: 14%; opacity: 0.7; }
.horizon-lines span:nth-child(3) { bottom: 10%; opacity: 0.5; }
.horizon-lines span:nth-child(4) { bottom: 6%; opacity: 0.35; }
.horizon-lines span:nth-child(5) { bottom: 2%; opacity: 0.2; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--slate-900);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
a { color: var(--sapphire); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sapphire-light); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--silver-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sapphire);
  letter-spacing: 0.02em;
}

.logo span { color: var(--slate-600); font-size: 0.85em; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--silver-300);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--slate-700);
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-600);
  letter-spacing: 0.01em;
}

.main-nav a:hover,
.main-nav a.active { color: var(--sapphire); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.98);
    border-bottom: 1px solid var(--silver-200);
    padding: 1rem 1.5rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.75rem; }
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--sapphire);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--slate-600);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  max-width: 700px;
  margin: 0 auto 1rem;
}

.hero-support {
  font-size: 1.05rem;
  color: var(--slate-500);
  max-width: 580px;
  margin: 0 auto 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--sapphire);
  color: var(--white);
  border-color: var(--sapphire);
}

.btn-primary:hover {
  background: var(--sapphire-deep);
  border-color: var(--sapphire-deep);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--sapphire);
  border-color: var(--sapphire);
}

.btn-outline:hover {
  background: var(--sapphire);
  color: var(--white);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* Key facts strip */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--silver-200);
  border-bottom: 1px solid var(--silver-200);
  margin-bottom: 4rem;
}

.fact-item {
  text-align: center;
}

.fact-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--sapphire);
  display: block;
}

.fact-label {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header p {
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto;
}

/* Experience chapters grid */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.chapter-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.chapter-card:hover {
  border-color: var(--sapphire-light);
  box-shadow: 0 4px 24px rgba(26, 74, 110, 0.08);
}

.chapter-card h3 { color: var(--sapphire); }

.chapter-card p {
  font-size: 0.95rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

.chapter-link {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--silver-200);
  margin-bottom: 2.5rem;
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero .lead {
  font-size: 1.1rem;
  color: var(--slate-500);
  max-width: 680px;
}

/* Content cards */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.content-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  padding: 2rem;
}

.content-card .meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sapphire-light);
  margin-bottom: 0.5rem;
}

.content-card ul {
  list-style: none;
  margin-top: 1rem;
}

.content-card li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--slate-600);
  border-bottom: 1px solid var(--silver-100);
}

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

/* Prose (legal, FAQ) */
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
}

.prose ul, .prose ol {
  margin: 0 0 1rem 1.5rem;
}

.prose li { margin-bottom: 0.4rem; }

/* FAQ accordion */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--silver-200);
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-800);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item h3::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--sapphire);
  transition: transform var(--transition);
}

.faq-item.open h3::after { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding-top: 0.75rem;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { display: block; }

/* Contact form */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--silver-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate-700);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sapphire);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 1rem;
}

/* Contact info sidebar */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-details h3 { margin-top: 1.5rem; }
.contact-details h3:first-child { margin-top: 0; }

.contact-details p {
  font-size: 0.95rem;
  color: var(--slate-600);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--slate-900);
  color: var(--silver-300);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver-200);
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }

.footer-grid a {
  color: var(--silver-400);
  font-size: 0.9rem;
}

.footer-grid a:hover { color: var(--white); }

.footer-strip {
  border-top: 1px solid var(--slate-700);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--slate-500);
  letter-spacing: 0.04em;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* Age gate overlay */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-gate.hidden { display: none; }

.age-gate-panel {
  background: var(--silver-50);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 480px;
  text-align: center;
  border: 1px solid var(--silver-200);
}

.age-gate-panel h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--sapphire);
}

.age-gate-panel p {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

.age-gate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.age-gate-deny {
  display: none;
  text-align: center;
  color: var(--silver-200);
}

.age-gate-deny.visible { display: block; }
.age-gate-deny.visible + .age-gate-panel { display: none; }

/* 404 page */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--sapphire);
  line-height: 1;
  margin-bottom: 1rem;
}

/* Utility */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

.highlight-box {
  background: rgba(26, 74, 110, 0.06);
  border-left: 3px solid var(--sapphire);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.highlight-box p:last-child { margin-bottom: 0; }
