:root {
  --bg: #f6f2e8;
  --surface: #fffdf8;
  --ink: #182028;
  --muted: #5f6a74;
  --gold: #c89b58;
  --gold-strong: #b2833f;
  --teal: #1e6b78;
  --charcoal: #101419;
  --line: #e5dccd;
  --success: #2c8b62;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(24, 32, 40, 0.12);
  --shadow-soft: 0 14px 30px rgba(24, 32, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -20%, rgba(200, 155, 88, 0.2), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(30, 107, 120, 0.16), transparent 38%),
    var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(246, 242, 232, 0.88);
  border-bottom: 1px solid rgba(24, 32, 40, 0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background:
    linear-gradient(140deg, var(--gold) 0%, #e7c690 45%, #f7e8cf 100%);
  box-shadow: inset 0 0 0 1px rgba(16, 20, 25, 0.18);
}

.brand span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--gold), var(--gold-strong));
  color: #1c1408;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  box-shadow: var(--shadow);
}

.btn-outline {
  border-color: rgba(16, 20, 25, 0.25);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.hero {
  position: relative;
  padding: 90px 0 72px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(200, 155, 88, 0.4), transparent 72%);
  top: -120px;
  right: -90px;
}

.hero::after {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(30, 107, 120, 0.26), transparent 70%);
  bottom: -90px;
  left: -80px;
}

.eyebrow {
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.76rem;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.media-card {
  min-height: 360px;
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  color: #f5f6f7;
  background:
    linear-gradient(145deg, rgba(10, 16, 20, 0.85), rgba(20, 27, 33, 0.86)),
    url("../img/hero-placeholder.svg") center/cover no-repeat;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.media-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(200, 155, 88, 0.25);
  border: 1px solid rgba(200, 155, 88, 0.5);
  font-size: 0.8rem;
  font-weight: 700;
}

.section {
  padding: 78px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.88);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 155, 88, 0.55);
  box-shadow: var(--shadow);
}

.kpi {
  background: var(--charcoal);
  color: #f7f4ec;
  border: 1px solid rgba(247, 244, 236, 0.1);
}

.kpi-number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 6px;
}

.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(30, 107, 120, 0.12);
  color: var(--teal);
}

.table-wrap {
  border-radius: var(--radius-sm);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 800px;
}

th,
td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

th {
  background: #f1ebde;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline {
  border-left: 2px solid rgba(30, 107, 120, 0.25);
  margin-left: 8px;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(16, 20, 25, 0.12);
}

.map {
  min-height: 340px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(16, 20, 25, 0.88), rgba(23, 36, 42, 0.89)),
    url("../img/world-grid.svg") center/cover no-repeat;
  box-shadow: var(--shadow);
  padding: 30px;
  color: #f7f4ec;
}

.quote {
  position: relative;
  padding: 20px 20px 20px 58px;
  border-left: 2px solid var(--gold);
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 2px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.notice {
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(44, 139, 98, 0.1);
  color: #19533a;
  border: 1px solid rgba(44, 139, 98, 0.32);
}

/* Legal pages and content typography */
.card h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.card h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.card h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.card ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.card li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.card li:last-child {
  margin-bottom: 0;
}

.card p + ul {
  margin-top: -0.5rem;
}

.card strong {
  color: var(--ink);
  font-weight: 600;
}

.footer {
  margin-top: 70px;
  background: var(--charcoal);
  color: #f0ece1;
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.small {
  font-size: 0.9rem;
  color: #d8d2c4;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE / MOBILE ADAPTATION
   ============================================ */

/* Tablet and below - 980px */
@media (max-width: 980px) {
  .container {
    width: min(1160px, 94vw);
  }

  .hero {
    padding: 60px 0 50px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    font-size: 0.88rem;
  }

  .media-card {
    min-height: 260px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .table-wrap {
    overflow-x: auto;
  }

  table {
    min-width: 600px;
  }

  .timeline {
    margin-left: 4px;
    padding-left: 16px;
  }

  .quote {
    padding: 16px 16px 16px 48px;
  }

  .quote::before {
    left: 12px;
    font-size: 2.5rem;
  }
}

/* Mobile - 680px */
@media (max-width: 680px) {
  .container {
    width: min(1160px, 90vw);
  }

  .topbar {
    position: relative;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
  }

  .brand img {
    height: 32px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.85rem;
    gap: 10px;
  }

  .nav-links a:not(.btn) {
    padding: 4px 0;
  }

  .btn {
    width: 100%;
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 40px 0 40px;
  }

  .hero::before {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -60px;
  }

  .hero::after {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -50px;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }

  h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .lead {
    font-size: 1rem;
  }

  .section {
    padding: 45px 0;
  }

  .card {
    padding: 20px;
  }

  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .kpi-number {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .footer {
    margin-top: 50px;
    padding: 32px 0;
  }

  .footer-grid {
    gap: 20px;
  }

  .media-card {
    min-height: 220px;
    padding: 20px;
  }

  .map {
    min-height: 280px;
    padding: 24px;
  }

  .timeline {
    margin-left: 2px;
    padding-left: 14px;
  }

  .timeline-item::before {
    left: -23px;
    width: 12px;
    height: 12px;
  }

  .quote {
    padding: 14px 14px 14px 42px;
  }

  .quote::before {
    left: 10px;
    font-size: 2rem;
  }

  /* Hide decorative elements on very small screens */
  .pill {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* Table improvements for mobile */
  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 10px 8px;
  }

  /* Form improvements */
  input,
  select,
  textarea {
    padding: 11px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Extra small devices - 480px */
@media (max-width: 480px) {
  .container {
    width: min(1160px, 88vw);
  }

  h1 {
    font-size: clamp(1.6rem, 9vw, 2.4rem);
    line-height: 1.15;
  }

  h2 {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-links a {
    text-align: center;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .card {
    padding: 18px;
  }

  .btn {
    padding: 11px 16px;
  }

  .hero::before,
  .hero::after {
    opacity: 0.5;
  }
}

/* Landscape mobile fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 30px 0;
  }

  .section {
    padding: 35px 0;
  }

  .nav {
    padding: 10px 0;
  }
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(16, 20, 25, 0.06) 12%, rgba(16, 20, 25, 0.12));
  pointer-events: none;
}

.cookie-consent__inner {
  pointer-events: auto;
  max-width: min(1160px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-consent__text a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-consent__actions .btn {
    width: 100%;
  }
}

