/* =========================================================================
   Caribbean Front Real Estate — Stylesheet
   Dark, premium real-estate aesthetic. Warm gold accents on near-black.
   Big confident type. Editorial structure underneath.
   ========================================================================= */

:root {
  /* Palette — navy blue luxury */
  --bg:           #001F5C;
  --bg-soft:      #062561;        /* slightly raised sections */
  --surface:      #0D2D6B;        /* cards, form */
  --surface-2:    #143376;        /* hover, inset */
  --border:       #2A4380;        /* subtle borders */
  --border-strong:#3B558F;
  --text:         #F4F4F6;        /* primary text */
  --text-soft:    #A0A0AC;        /* secondary text */
  --text-mute:    #6E6E78;        /* tertiary text */
  --gold:         #D4A85B;        /* champagne accent */
  --gold-hover:   #E0B770;
  --gold-soft:    rgba(212, 168, 91, 0.12);
  --coral:        #E27B47;        /* Caribbean sunset — warm highlight */
  --coral-hover:  #EB8D5C;
  --turquoise:    #4EBFB0;        /* Caribbean sea — cool highlight */
  --turquoise-soft: rgba(78, 191, 176, 0.15);
  --palm:         #4A9B6E;        /* Caribbean palm — tropical green */
  --palm-hover:   #5AB07E;
  --sand:         #E8D5A6;        /* Caribbean beach — warm sand */
  --hibiscus:     #D9506B;        /* Caribbean hibiscus — deep pink accent */

  /* Legacy aliases so /admin/ styles keep working */
  --bg-color:     var(--bg);
  --birch:        var(--bg);
  --stone:        var(--bg-soft);
  --hairline:     var(--border);
  --boulder:      var(--border-strong);
  --ink:          var(--text);
  --ink-soft:     var(--text-soft);
  --sea:          var(--gold);
  --sea-hover:    var(--gold-hover);
  --cornflower:   var(--gold);

  /* Typography */
  --font:         "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  16px;
  --s-4:  24px;
  --s-5:  40px;
  --s-6:  64px;
  --s-7:  96px;
  --s-8:  128px;
  --s-9:  192px;

  --container: 1240px;
  --prose:     720px;
  --radius:    16px;
  --radius-pill: 999px;
}

/* =========================================================================
   Base
   ========================================================================= */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold);
  color: var(--bg);
  padding: var(--s-3) var(--s-4);
  z-index: 200;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text);
  margin: 0 0 var(--s-4);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-3); color: var(--text-soft); }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover { color: var(--gold-hover); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: var(--s-4);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 56ch;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--s-6) 0;
}

/* =========================================================================
   Layout
   ========================================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--s-5); }
}

.section { padding: var(--s-7) 0; }
.section--quiet {
  background: var(--sand);
  color: var(--bg);
}
.section--quiet h1,
.section--quiet h2,
.section--quiet h3,
.section--quiet h4 { color: var(--bg); }
.section--quiet p,
.section--quiet .lede { color: rgba(0, 31, 92, 0.78); }
.section--quiet .eyebrow { color: var(--coral); }
.section--quiet .serve-row { color: var(--bg); }
.section--quiet .serve-row li:not(:last-child)::after { background: var(--coral); }
.section--quiet .note { background: rgba(0, 31, 92, 0.05); border-left-color: var(--coral); color: var(--bg); }

/* Deep tropical CTA section — Caribbean night palm */
.section--tropical {
  background: linear-gradient(180deg, #0F3D28 0%, #073423 100%);
  color: #F4F4F6;
  position: relative;
}
.section--tropical::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--turquoise) 0%,
    var(--palm) 33%,
    var(--gold) 66%,
    var(--coral) 100%);
}
.section--tropical h1,
.section--tropical h2,
.section--tropical h3,
.section--tropical h4 { color: #FFFFFF; }
.section--tropical .eyebrow { color: var(--sand); }
.section--tropical p,
.section--tropical .lede { color: rgba(255, 255, 255, 0.85); }
.section--tropical .note {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--coral);
  color: rgba(255, 255, 255, 0.92);
}

/* Two branches section — Caribbean sunset twilight tint */
.section--twilight {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(226, 123, 71, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(78, 191, 176, 0.10) 0%, transparent 50%),
    var(--bg);
  position: relative;
}
.section--twilight::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--turquoise) 0%,
    var(--palm) 33%,
    var(--gold) 66%,
    var(--coral) 100%);
}

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  background: rgba(0, 31, 92, 0.85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-3) var(--s-4);
}
@media (min-width: 768px) {
  .nav-bar { padding: var(--s-4) var(--s-5); }
}

/* Logo as IR-style monogram (gold square + wordmark) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}
.logo:hover { color: var(--text); }

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border-radius: 10px;
  color: var(--bg);
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 15px; display: block; }

/* Full-image logo (replaces the mark + text combo on the public site) */
.logo-img {
  display: block;
  height: 84px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 767px) {
  .logo-img { height: 56px; }
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 3px;
}
.logo-wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1;
}
.logo-tagline {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .logo-tagline { display: none; }
}

.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--s-5);
}
.nav-links a {
  color: var(--coral);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: var(--s-1) 0;
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--coral-hover); }
.nav-links a[aria-current="page"] {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.menu-toggle {
  display: none;
  background: none; border: 0;
  padding: var(--s-2);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    flex-direction: column;
    gap: 0;
    padding: var(--s-4) var(--s-4) var(--s-5);
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: var(--s-3) 0;
    font-size: 1.05rem;
  }
  .nav-links a[aria-current="page"] { font-weight: 600; }
}

/* =========================================================================
   Hero — two column with image card
   ========================================================================= */

.hero {
  position: relative;
  padding: var(--s-7) 0 var(--s-7);
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(212, 168, 91, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: var(--s-8) 0; } }

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
  z-index: 1;
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 768px) { .hero-inner { padding: 0 var(--s-5); } }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; gap: var(--s-7); }
}

.hero-h1 { margin: var(--s-3) 0 var(--s-4); max-width: 14ch; }
.hero-h1 .accent { color: var(--coral); }
.hero-lede { margin-bottom: var(--s-5); }

.hero-image, .hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0;
}
.hero-image img, .hero-card img,
.hero-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-info {
  position: absolute;
  bottom: var(--s-4); left: var(--s-4); right: var(--s-4);
  background: rgba(0, 31, 92, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--s-3) var(--s-4);
}
.hero-info .eyebrow { color: var(--gold); margin-bottom: var(--s-1); font-size: 0.7rem; }
.hero-info p { margin: 0; color: var(--text); font-weight: 500; font-size: 0.95rem; }

@media (max-width: 899px) {
  .hero-image, .hero-card { aspect-ratio: 16 / 10; }
}

/* =========================================================================
   Hero — video full-width background variant
   ========================================================================= */

.hero--video {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: var(--s-7) 0;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) {
  .hero--video { padding: var(--s-8) 0; min-height: 88vh; }
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(0, 20, 60, 0.35) 0%,
      rgba(0, 20, 60, 0.65) 60%,
      rgba(0, 15, 45, 0.85) 100%),
    linear-gradient(90deg,
      rgba(0, 15, 45, 0.55) 0%,
      rgba(0, 15, 45, 0.15) 60%,
      rgba(0, 15, 45, 0) 100%);
  pointer-events: none;
}

.hero--video .hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
}

.hero--video .hero-content {
  max-width: 720px;
}

.hero--video .hero-h1 {
  max-width: 20ch;
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.hero--video .hero-h1 .accent { color: var(--coral); }
.hero--video .hero-h1 .accent-palm { color: var(--palm); }
.hero--video .hero-h1 .accent-turquoise { color: var(--turquoise); }
.hero--video .hero-lede {
  color: rgba(255, 255, 255, 0.9);
}
.hero--video .eyebrow {
  color: var(--turquoise);
}
.hero--video .btn--ghost {
  color: var(--turquoise);
  border-color: var(--turquoise);
}
.hero--video .btn--ghost:hover {
  background: var(--turquoise);
  color: var(--bg);
  border-color: var(--turquoise);
}

/* =========================================================================
   Buttons — pill, gold primary
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--bg);
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, border-color 150ms ease;
  line-height: 1.2;
}
.btn:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--text-soft);
  color: var(--text);
}

.btn--link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  font-weight: 600;
}
.btn--link:hover { color: var(--gold-hover); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* =========================================================================
   Branch grid
   ========================================================================= */

.branch-grid {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (min-width: 768px) {
  .branch-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

.branch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease, transform 200ms ease;
}
.branch-card:hover {
  transform: translateY(-2px);
}
/* Caribbean color themes for the two branches */
.branch-grid > .branch-card:nth-child(1) {
  border-top-color: var(--palm);
  background: linear-gradient(155deg, var(--surface) 0%, rgba(74, 155, 110, 0.20) 100%);
}
.branch-grid > .branch-card:nth-child(1):hover { border-color: var(--palm); border-top-color: var(--palm); }
.branch-grid > .branch-card:nth-child(1) .eyebrow { color: var(--palm); }

.branch-grid > .branch-card:nth-child(2) {
  border-top-color: var(--coral);
  background: linear-gradient(155deg, var(--surface) 0%, rgba(226, 123, 71, 0.20) 100%);
}
.branch-grid > .branch-card:nth-child(2):hover { border-color: var(--coral); border-top-color: var(--coral); }
.branch-grid > .branch-card:nth-child(2) .eyebrow { color: var(--coral); }
@media (min-width: 768px) { .branch-card { padding: var(--s-6); } }

.branch-card h3 { margin: 0 0 var(--s-3); color: var(--text); }
.branch-card p { color: var(--text-soft); }
.branch-card .branch-for { font-weight: 500; color: var(--text); margin-top: var(--s-3); }
.branch-card .branch-cta { margin-top: auto; padding-top: var(--s-4); }

/* =========================================================================
   Editorial split
   ========================================================================= */

.split { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 7fr 5fr; gap: var(--s-7); }
}

/* =========================================================================
   Steps — numbered with gold counters
   ========================================================================= */

.steps {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
}
.step-num {
  display: inline-block;
  font-feature-settings: "tnum";
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: var(--s-2);
}
/* Caribbean palette rotation across the 4 workflow steps */
.step:nth-child(1) .step-num { color: var(--turquoise); }
.step:nth-child(2) .step-num { color: var(--coral); }
.step:nth-child(3) .step-num { color: var(--palm); }
.step:nth-child(4) .step-num { color: var(--gold); }
.step h4 { margin: 0 0 var(--s-2); color: var(--text); }
.step p { color: var(--text-soft); margin: 0; }

/* =========================================================================
   Who-we-serve row
   ========================================================================= */

.serve-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
  color: var(--text-soft);
}
.serve-row li {
  position: relative;
  padding-right: var(--s-4);
}
.serve-row li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* =========================================================================
   Note (callout) — gold accent left border
   ========================================================================= */

.note {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
  color: var(--text-soft);
  margin: var(--s-5) 0;
}

/* =========================================================================
   Tables
   ========================================================================= */

table.simple {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-4) 0;
}
table.simple th,
table.simple td {
  padding: var(--s-3) var(--s-3) var(--s-3) 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
  color: var(--text);
}
table.simple th {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--gold);
}

/* =========================================================================
   Form
   ========================================================================= */

.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  max-width: 680px;
  margin: var(--s-5) auto 0;
}
@media (min-width: 768px) { .form-wrap { padding: var(--s-6); } }

.field {
  display: flex; flex-direction: column;
  margin-bottom: var(--s-4);
}
.field label {
  font-size: 0.88rem; font-weight: 500;
  margin-bottom: var(--s-2);
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 150ms ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-mute); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field textarea { min-height: 120px; resize: vertical; }

.required { color: var(--gold); }
.opt {
  color: var(--text-mute);
  font-weight: 400;
  font-size: 0.82rem;
  margin-left: var(--s-2);
}

.form-msg {
  display: none;
  margin-top: var(--s-3);
  padding: var(--s-3);
  font-size: 0.95rem;
  border-radius: 10px;
}
.form-msg.success {
  display: block;
  background: rgba(212, 168, 91, 0.12);
  color: var(--text);
  border-left: 3px solid var(--gold);
}
.form-msg.error {
  display: block;
  background: rgba(192, 76, 76, 0.12);
  color: var(--text);
  border-left: 3px solid #E07A7A;
}

/* =========================================================================
   Page header (non-home)
   ========================================================================= */

.page-head {
  padding: var(--s-7) 0 var(--s-5);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(700px 250px at 70% 0%, rgba(212, 168, 91, 0.05), transparent 60%);
}
.page-head h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.page-head .lede { margin-top: var(--s-3); }

/* =========================================================================
   Page hero image (non-home pages) — one photo per page
   ========================================================================= */
.page-image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 20, 60, 0) 0%,
    rgba(0, 20, 60, 0) 60%,
    rgba(0, 15, 45, 0.4) 100%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .page-image { aspect-ratio: 16 / 10; }
}

/* =========================================================================
   Prose
   ========================================================================= */

.prose { max-width: var(--prose); }
.prose h2 { margin-top: var(--s-6); color: var(--text); }
.prose h3 { margin-top: var(--s-5); color: var(--text); }
.prose p { color: var(--text-soft); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose ul li, .prose ol li {
  position: relative;
  padding-left: var(--s-4);
  margin-bottom: var(--s-2);
  color: var(--text-soft);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 1px;
  background: var(--gold);
}
.prose ol { counter-reset: list; }
.prose ol li { counter-increment: list; padding-left: var(--s-5); }
.prose ol li::before {
  content: counter(list, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-feature-settings: "tnum";
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--s-6) 0;
  margin-top: var(--s-7);
  font-size: 0.92rem;
  color: var(--text-soft);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #0A2340 100%);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--coral) 0%,
    var(--gold) 33%,
    var(--palm) 66%,
    var(--turquoise) 100%);
}
.site-footer .footer-grid {
  display: grid;
  gap: var(--s-5);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
@media (min-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr; padding: 0 var(--s-5); }
}
.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  font-size: 1rem;
}
.site-footer .footer-brand .logo-mark { color: var(--bg); }
.site-footer .footer-disclaimer { margin-top: var(--s-3); max-width: 50ch; line-height: 1.55; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-meta {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-4) 0;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .site-footer .footer-meta { padding: var(--s-4) var(--s-5) 0; }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
