@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-dark: #0F4C5C;
  --text-on-dark: #F8FAFB;
  --bg-light: #F8FAFB;
  --text-on-light: #0B1220;
  --bg-accent: #5EEAD4;
  --text-on-accent: #0B1220;
  --font-head: 'IBM Plex Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1200px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(11, 18, 32, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

.surface-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.surface-light { background: var(--bg-light); color: var(--text-on-light); }
.surface-accent { background: var(--bg-accent); color: var(--text-on-accent); }

.surface-dark a, .surface-light a, .surface-accent a {
  color: currentColor;
  text-decoration: underline;
}

.surface-dark *, .surface-light *, .surface-accent * { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.main-nav a:hover { opacity: 1; text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--bg-accent);
  color: var(--text-on-accent);
  border-color: var(--bg-accent);
}

.btn-primary:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-outline {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}

.btn-outline:hover {
  box-shadow: var(--shadow);
  opacity: 0.85;
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero Pattern A — Editorial Spotlight */
.hero-editorial {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-editorial .hero-grid {
  display: grid;
  grid-template-columns: 3fr 1px 2fr;
  gap: 0 2.5rem;
  align-items: center;
}

.hero-divider {
  width: 1px;
  height: 70%;
  min-height: 320px;
  background: rgba(15, 76, 92, 0.15);
  justify-self: center;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
  opacity: 0.75;
}

.hero-serial {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 1rem;
}

.hero-photo-col figure { margin: 0; }

.hero-photo-col img {
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
}

.hero-caption {
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.trust-strip {
  font-size: 0.75rem;
  margin-top: 1.5rem;
  opacity: 0.7;
}

/* Sections */
section { padding: 4rem 0; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.card-module {
  border: 1px solid rgba(15, 76, 92, 0.12);
}

.module-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(94, 234, 212, 0.25);
  margin-bottom: 0.75rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
}

.stat-item span { font-size: 0.875rem; opacity: 0.85; }

.disclaimer-box {
  border-left: 4px solid var(--bg-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  background: rgba(94, 234, 212, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(15, 76, 92, 0.12);
  padding: 1.25rem 0;
}

.faq-item h3 { margin-bottom: 0.5rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(11, 18, 32, 0.2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-light);
  color: var(--text-on-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(11, 18, 32, 0.5);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
}

.form-check input { margin-top: 0.25rem; width: auto; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: 3rem 0 1.5rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li { margin-bottom: 0.4rem; }

.footer-bottom {
  border-top: 1px solid rgba(248, 250, 251, 0.15);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.8125rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(11, 18, 32, 0.15);
}

.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-size: 0.875rem;
}

.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cookie-actions button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
}

.cookie-actions .btn-accept {
  background: var(--bg-accent);
  color: var(--text-on-accent);
  border-color: var(--bg-accent);
}

.cookie-panel {
  display: none;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 250, 251, 0.15);
}

.cookie-panel.is-open { display: block; }

.cookie-panel label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 7rem 0 3rem;
}

.page-hero h1 { margin-bottom: 0.75rem; }

.breadcrumb {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

/* Legal prose */
.legal-content h2 { margin-top: 2rem; }
.legal-content h3 { margin-top: 1.5rem; }

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-page h1 { margin-bottom: 1rem; }

/* Agent status chip */
.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.2);
  margin-bottom: 1rem;
}

.agent-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-accent);
}

/* Reveal animation — JS-enables-hidden pattern */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Nav button hover — opacity only */
.btn-nav-tint {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.08), rgba(94, 234, 212, 0.04));
}

/* Responsive */
@media (max-width: 900px) {
  .hero-editorial .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-divider { display: none; }
  .hero-editorial { min-height: 70vh; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.75rem; }
  .site-header .container { position: relative; flex-wrap: wrap; }
}
