/* ============================================================
   The Pearl Compass, Landing Page Styles
   Palette: near-white base with a dark navy accent/dark-section
   colour. Variable names below (--gold*, --ivory, --ink-dark-bg)
   are historical from an earlier warm-toned palette; only the
   values changed, to keep this a contained, low-risk edit.
   ============================================================ */

:root {
  --ivory: #FAFBFD;
  --paper: #FFFFFF;
  --cream-dark: #EEF2F7;
  --ink: #17233B;
  --ink-soft: #47536B;
  --ink-faint: #8996AB;

  --gold-light: #7C93B8;
  --gold: #1B2C4C;
  --gold-dark: #0F1D36;
  --line: #DCE3ED;

  --sea: #48697A;
  --sea-soft: #7C9CAA;

  --ink-dark-bg: #0A1526;
  --header-h: 124px;

  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --radius: 2px;
  --shadow-soft: 0 18px 50px -25px rgba(15, 25, 45, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}


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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); font-weight: 400; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.18; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 1em;
}
.eyebrow-light { color: var(--gold-light); }

.accent { color: var(--gold-dark); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--paper);
  color: var(--gold);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold); color: var(--paper); border-color: var(--gold); transform: translateY(-1px); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-small { padding: 11px 18px; font-size: 0.68rem; letter-spacing: 0.1em; }
.btn-full { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
/* Transparent by default so it sits cleanly over the hero photo; picks up a
   solid, blurred background only once scrolled past the hero, where the
   page underneath is no longer a photo and needs a legible surface. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(251, 252, 254, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(15,25,45,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.brand-mark {
  height: 96px; width: auto; flex-shrink: 0;
  /* The mark's rose-gold gradient is soft by design and reads poorly at
     header scale; brighten/lift it over the dark hero photo, then darken
     and add contrast once the header's own background goes light. */
  filter: brightness(1.4) contrast(1.15) drop-shadow(0 1px 8px rgba(20,16,12,0.45));
  transition: filter 0.3s ease;
}
.site-header.scrolled .brand-mark { filter: brightness(0.6) contrast(1.35); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.site-header.scrolled .lang-switch { border-color: var(--line); }
.lang-btn {
  background: transparent;
  border: none;
  padding: 7px 11px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  /* Near-white while the header sits transparently over the dark hero
     photo — dark navy here would be nearly invisible against it. Once
     scrolled onto the near-white header bar, it switches to navy. */
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { color: #fff; }
.site-header.scrolled .lang-btn { color: var(--gold); }
.site-header.scrolled .lang-btn:hover { color: var(--gold-dark); }
.lang-btn.active { background: var(--gold); color: #fff; }
.site-header.scrolled .lang-btn.active,
.site-header.scrolled .lang-btn.active:hover {
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,16,30,0.55) 0%, rgba(8,16,30,0.35) 35%, rgba(8,16,30,0.72) 100%);
}
.hero-compass {
  position: absolute;
  right: -14%;
  bottom: -22%;
  z-index: 1;
  width: min(60vw, 900px);
  min-width: 480px;
  height: auto;
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: hero-compass-spin 120s linear infinite;
}
@keyframes hero-compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-content {
  /* No max-width override here on purpose: .hero-content shares the
     .container class, so leaving container's max-width in place keeps
     its left edge aligned with the header/logo above it. Individual
     children (hero-sub) constrain their own line length instead.
     width:100% matters here because .hero-content is a flex item (child
     of .hero) — flex items shrink-to-fit by default instead of filling
     the row the way a plain block-level .container does, which without
     this would center the shrunk content instead of aligning it left. */
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 160px;
  padding-bottom: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
}
.hero-text { flex: 1; min-width: 0; max-width: 640px; }
.hero-content h1 { color: #fff; text-shadow: 0 4px 24px rgba(20,16,12,0.45); }
.hero-content h1 .accent { color: #A9C4EA; }
.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 2em; }
.hero-trust {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* Video card: placeholder poster + play button for now (data-vimeo-id is
   empty until a real Vimeo video is wired up — see the click handler in
   main.js, which swaps this for an actual embed once an id is set). */
.hero-video {
  position: relative;
  flex-shrink: 0;
  width: min(38vw, 460px);
  aspect-ratio: 16/10;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 30px 70px -25px rgba(5,10,20,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  margin-top: 2.2rem;
}
.hero-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-video:hover .hero-video-poster { transform: scale(1.04); }
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8,16,30,0.28);
  transition: background 0.25s ease;
}
.hero-video:hover::after { background: rgba(8,16,30,0.4); }
.hero-video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(5,10,20,0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}
.hero-video-play svg { width: 26px; height: 26px; margin-left: 3px; }
.hero-video:hover .hero-video-play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   GENERIC SECTIONS
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--cream-dark); }
.section-dark {
  background: var(--ink-dark-bg);
  color: rgba(255,255,255,0.85);
}
.on-dark { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-intro {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
}
.section-dark .section-intro { color: rgba(255,255,255,0.72); }

/* Reveal animation, progressive enhancement only: content is visible by
   default so it never depends on JS/IntersectionObserver to be seen. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   RISK GRID
   ============================================================ */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.risk-item {
  background: var(--paper);
  padding: 40px 34px;
}
.risk-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.risk-item h3 { margin-bottom: 0.4em; }
.risk-item p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

.risk-closing {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ============================================================
   PROCESS
   ============================================================ */
/* Zigzag timeline: a centred rail with steps alternating left/right of it.
   Three grid columns — left content, a narrow centre gutter for the rail,
   right content — with each .process-item explicitly placed in column 1
   or 3 (see process-item-left/-right) and its row number pinned via an
   inline style so items stack in order regardless of which side they're on. */
.process-list {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  column-gap: 28px;
}
.process-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 40px 0;
  opacity: 0.4;
  transition: opacity 0.35s ease;
}
.process-item-left {
  grid-column: 1;
  flex-direction: row-reverse;
  text-align: right;
}
.process-item-right {
  grid-column: 3;
  text-align: left;
}
.process-num {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  color: var(--gold-light);
  flex-shrink: 0;
  display: inline-block;
  transition: color 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
}
.process-item h3 { margin-bottom: 0.35em; color: var(--ink-soft); transition: color 0.35s ease, font-weight 0.35s ease; }
.process-item p { color: var(--ink-faint); margin: 0; transition: color 0.35s ease; }

/* Highlights whichever step the sticky rail icon currently sits level
   with (toggled from JS). Inactive steps fade out almost entirely via
   opacity on the whole item — a strong, unmistakable signal — on top of
   the active step's own number/title getting richer color and weight. */
.process-item.is-active {
  opacity: 1;
}
.process-item.is-active .process-num {
  color: var(--gold);
  transform: scale(1.25);
  text-shadow: 0 0 18px rgba(169,128,92,0.35);
}
.process-item.is-active h3 { color: var(--ink); font-weight: 600; }
.process-item.is-active p { color: var(--ink-soft); }

/* Scroll-driven progress rail: runs centred between the two columns.
   Grey track is always visible; gold fill grows as the section scrolls
   past. Position/height of .process-line itself are set from JS so it
   lines up exactly with the first/last number regardless of font metrics.
   The brand-mark icon uses position:sticky (pinned at the viewport's
   vertical centre) so it reads as holding still while the page scrolls
   and the fill grows up to meet it, rather than the icon travelling. */
.process-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--line);
  z-index: 0;
}
.process-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: var(--gold);
}
.process-line-icon-wrap {
  position: sticky;
  top: 50vh;
  height: 0;
}
.process-line-icon {
  position: absolute;
  left: 50%;
  top: 0;
  /* .process-line-icon's containing block is .process-line-icon-wrap,
     which is only 2px wide — without this, the global img{max-width:100%}
     rule resolves against that and squashes the icon to a sliver instead
     of a circle. */
  max-width: none;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(15,25,45,0.28);
  padding: 9px;
  object-fit: contain;
  animation: process-icon-spin 15s linear infinite;
}
@keyframes process-icon-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.about-copy p { color: var(--ink-soft); }
.about-copy blockquote {
  margin: 2em 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.about-copy blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.3em;
}
.about-copy cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ============================================================
   REGIONS
   ============================================================ */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.region-card:first-child { grid-column: span 2; }
.region-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
}
.region-card:first-child { aspect-ratio: 16/10; }
.region-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.region-card:hover img { transform: scale(1.06); }
.region-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 26px;
  background: linear-gradient(180deg, rgba(8,16,30,0) 0%, rgba(8,16,30,0.85) 75%);
  color: #fff;
}
.region-copy h3 { color: #fff; margin-bottom: 0.3em; font-size: 1.3rem; }
.region-copy p { font-size: 0.92rem; color: rgba(255,255,255,0.85); margin: 0; max-width: 34em; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.testimonial-card {
  margin: 0;
  padding: 44px 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
}
.testimonial-card blockquote {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: #fff;
}
.testimonial-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.t-name { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--gold-light); text-transform: uppercase; }
.t-loc { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.contact-section { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: start;
}
.contact-copy { position: sticky; top: 120px; }
.slogan { font-style: italic; }
.contact-alt { margin-top: 1.6em; font-size: 0.95rem; }
.contact-alt a { color: var(--gold-dark); border-bottom: 1px solid var(--gold-light); }

.contact-form {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 44px;
  border-radius: var(--radius);
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 4px 0 26px;
  cursor: pointer;
}
.consent input { margin-top: 3px; }

.form-success { text-align: center; padding: 30px 10px; }
.form-success h3 { color: var(--gold-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-dark-bg);
  color: rgba(255,255,255,0.65);
  padding: 70px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-mark { height: 46px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1) opacity(0.9); }
.footer-brand p { font-size: 0.9rem; max-width: 26em; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 10px; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: var(--gold-light); }
.social-icons { display: flex; gap: 14px; }
.social-icons a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.social-icons svg { width: 16px; height: 16px; }
.social-icons a:hover { border-color: var(--gold-light); color: var(--gold-light); }

.footer-bottom { padding: 22px 0; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251,252,254,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  /* Hero text + video side by side needs real width; below this, stack
     the video under the text instead. */
  .hero-content { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero-text { max-width: none; }
  .hero-video { width: 100%; aspect-ratio: 16/9; margin-top: 0; }

  /* Zigzag timeline needs real width either side of the rail; below this,
     collapse back to a single column with the rail running down the left. */
  .process-list {
    grid-template-columns: 1fr;
    padding-left: 56px;
  }
  .process-item-left, .process-item-right {
    grid-column: 1;
    flex-direction: row;
    text-align: left;
  }
  .process-line { left: 20px; transform: none; }

  .risk-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .region-card:first-child { grid-column: span 2; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-copy { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; }

  .sticky-cta { display: block; }
  .section { padding: 80px 0; }
  body { padding-bottom: 78px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  :root { --header-h: 100px; }
  .brand-mark { height: 72px; }
  .header-actions .btn-small { display: none; } /* sticky-cta below covers this CTA on small screens */
  .hero-content { padding-top: 130px; padding-bottom: 130px; }
  .field-row { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
  .region-card:first-child { grid-column: span 1; }
  .contact-form { padding: 30px 24px; }
  .risk-item { padding: 32px 24px; }
}
