/* AI Money Vault — Vaulted Sapphire */

:root {
  --midnight: #0C1524;
  --navy: #16243B;
  --gold: #C9A24B;
  --ivory: #F4F0E6;
  --fog: #8892A0;
  --gold-muted: rgba(201, 162, 75, 0.15);
  --hairline: rgba(201, 162, 75, 0.35);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --space-section: clamp(96px, 10vw, 140px);
  --space-inner: clamp(24px, 4vw, 48px);
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

@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);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ivory);
  background-color: var(--midnight);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus-visible {
  color: var(--ivory);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }

p + p { margin-top: 1.25em; }

ul, ol {
  padding-left: 1.5em;
  margin: 1em 0;
}

li + li { margin-top: 0.5em; }

/* Surfaces */
.surface-midnight {
  background-color: var(--midnight);
  color: var(--ivory);
}

.surface-navy {
  background-color: var(--navy);
  color: var(--ivory);
}

.surface-ivory {
  background-color: var(--ivory);
  color: var(--midnight);
}

.surface-gold {
  background-color: var(--gold);
  color: var(--midnight);
}

.surface-ivory a { color: var(--navy); }
.surface-ivory a:hover { color: var(--gold); }

/* Hairline rules */
.hairline {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 2.5rem 0;
}

.surface-ivory .hairline {
  border-top-color: rgba(12, 21, 36, 0.15);
}

/* Layout */
.container {
  width: min(var(--max-width), 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.section--compact {
  padding-block: calc(var(--space-section) * 0.6);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(12, 21, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-sticky {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ivory);
  white-space: nowrap;
}

.logo span { color: var(--gold); }

.logo:hover { color: var(--gold); }

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

.main-nav {
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav li {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.main-nav li + li {
  margin-top: 0;
}

.main-nav a {
  display: inline-block;
  color: var(--fog);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold);
  outline: none;
}

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

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--midnight);
    border-bottom: 1px solid var(--hairline);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .main-nav.is-open { max-height: 400px; }

  .main-nav ul {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
}

/* STRONGROOM Hero */
.hero-strongroom {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-strongroom__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-strongroom__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-strongroom__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 21, 36, 0.75) 0%,
    rgba(12, 21, 36, 0.55) 50%,
    rgba(12, 21, 36, 0.85) 100%
  );
}

.hero-strongroom__frame {
  position: relative;
  z-index: 1;
  width: min(900px, 92%);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid var(--gold);
  background: rgba(12, 21, 36, 0.65);
  backdrop-filter: blur(4px);
  text-align: center;
}

.hero-strongroom__frame::before,
.hero-strongroom__frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
}

.hero-strongroom__frame::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.hero-strongroom__frame::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.hero-strongroom h1 {
  margin-bottom: 1rem;
  color: var(--ivory);
}

.hero-strongroom .slogan {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-strongroom p {
  color: var(--fog);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn--primary {
  background: var(--gold);
  color: var(--midnight);
}

.btn--primary:hover {
  background: var(--ivory);
  color: var(--midnight);
  outline: none;
}

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

.btn--outline:hover {
  background: var(--gold);
  color: var(--midnight);
  outline: none;
}

/* Deposit-box grid */
.deposit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.deposit-box {
  padding: var(--space-inner);
  border: 1px solid var(--hairline);
  background: rgba(22, 36, 59, 0.5);
  transition: border-color var(--transition), transform var(--transition);
}

.surface-ivory .deposit-box {
  background: #fff;
  border-color: rgba(12, 21, 36, 0.12);
}

.deposit-box:hover {
  border-color: var(--gold);
}

.deposit-box h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.surface-ivory .deposit-box h3 {
  color: var(--navy);
}

.deposit-box .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fog);
  margin-bottom: 0.5rem;
}

/* Two-column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

.split__image {
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.split__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Page hero (inner pages) */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-section) * 0.5);
  padding-bottom: calc(var(--space-section) * 0.4);
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 { margin-bottom: 1rem; }

.page-hero .lead {
  font-size: 1.1875rem;
  color: var(--fog);
  max-width: 720px;
}

.surface-ivory .page-hero .lead {
  color: var(--fog);
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--fog);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breadcrumb a { color: var(--fog); }
.breadcrumb a:hover { color: var(--gold); }

/* Programme cards */
.programme-card {
  padding: var(--space-inner);
  border: 1px solid var(--hairline);
  margin-bottom: 2rem;
}

.programme-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold-muted);
  color: rgba(201, 162, 75, 0.4);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.programme-card h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding-block: 1.5rem;
}

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.surface-ivory .faq-item h3 {
  color: var(--navy);
}

/* Forms — light surface only */
.form-section {
  background: var(--ivory);
  color: var(--midnight);
  padding: var(--space-section) 0;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(12, 21, 36, 0.2);
  background: #fff;
  color: var(--midnight);
  transition: border-color var(--transition);
}

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

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

.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-group--checkbox input {
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.form-group--checkbox label {
  font-weight: 400;
  margin-bottom: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-note {
  font-size: 0.875rem;
  color: var(--fog);
  margin-top: 1rem;
}

/* Legal content */
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.legal-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.legal-content p,
.legal-content li {
  color: var(--midnight);
}

.legal-content a {
  color: var(--navy);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: var(--space-section) 0 calc(var(--space-section) * 0.5);
  border-top: 1px solid var(--hairline);
}

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

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-grid p,
.footer-grid li {
  font-size: 0.9375rem;
  color: var(--fog);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

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

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--fog);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy);
  border-top: 1px solid var(--gold);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform var(--transition);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  width: min(var(--max-width), 100%);
  margin-inline: auto;
}

.cookie-banner p {
  font-size: 0.9375rem;
  color: var(--fog);
  margin-bottom: 1rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner .btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

.cookie-customise {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  display: none;
}

.cookie-customise.is-open { display: block; }

.cookie-customise label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--ivory);
}

/* Reveal animations */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Utility */
.text-gold { color: var(--gold); }
.text-fog { color: var(--fog); }
.text-center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
.mb-lg { margin-bottom: 2.5rem; }

main {
  padding-top: 0;
}

.content-block {
  max-width: 780px;
}

.content-block--wide {
  max-width: 900px;
}

.tagline {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.cta-band {
  text-align: center;
  padding: var(--space-section) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--fog);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
}

.error-page h1 {
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--fog);
  margin-bottom: 2rem;
}
