/* Lighthouse Invest — v2, hand-built static site.
   Real copy/photos reused from the live site; layout/design built fresh,
   no page-builder markup, no hydration constraints. */

@import url('https://fonts.googleapis.com/css2?family=Caudex:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #06222B;
  --ink-2: #0a3742;
  --ink-3: #0b3f4c;
  --paper: #F4F1EA;
  --gold: #C6A15B;
  --gold-light: #DEC58F;
  --text: #E7EDEE;
  --text-dim: #B9C6C9;
  --border: rgba(198, 161, 91, 0.28);
  --radius: 6px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* One continuous fixed photo behind the entire page — every section below
   is a transparent/translucent tint over this single image, not a repeated
   background of its own, so the lighthouse photo never "restarts" at a
   section boundary. A fixed pseudo-element (not background-attachment:fixed
   on each section) so it behaves consistently on mobile Safari too. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Single flat veil, same everywhere — no gradient, no per-section
   variation, so there's no seam anywhere the tint would otherwise jump. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(5, 24, 30, 0.68);
}

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

h1, h2, h3, h4 {
  font-family: "Caudex", serif;
  font-weight: 400;
  margin: 0 0 16px;
  color: #fff;
  line-height: 1.25;
}

h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; color: var(--text-dim); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.gold-rule {
  width: 54px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 0 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 34px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(198, 161, 91, 0.6); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; box-shadow: none; }

/* ---------- reading progress ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000;
  background: rgba(6, 34, 43, 0.35);
}
.progress-bar__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 12px rgba(222, 197, 143, 0.6);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(6, 34, 43, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(6, 34, 43, 0.92);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.5);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span { font-family: "Caudex", serif; font-size: 18px; color: #fff; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  position: relative;
  text-decoration: none; color: var(--text-dim);
  font-size: 14px; letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; transition: transform 0.25s ease, opacity 0.25s ease; }

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 84px 0 0 0; height: calc(100vh - 84px);
    background: rgba(4, 24, 30, 0.98); backdrop-filter: blur(10px);
    flex-direction: column; justify-content: flex-start; padding: 40px 32px;
    gap: 28px;
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 18px; }
  .nav-toggle { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
}
.hero--compact { padding: 148px 0 72px; }
.hero__inner { max-width: 760px; }
.hero p { font-size: 17px; max-width: 640px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- sections ---------- */
/* No section sets its own background — the single flat veil on
   body::after is the only tint, so there's no seam anywhere. */
section.block { padding: 96px 0; position: relative; background: transparent; }
section.block--alt { background: transparent; }
section.block--photo { background: transparent; }
.block__head { max-width: 640px; margin-bottom: 48px; }

/* ---------- cards ---------- */
.grid {
  display: grid; gap: 40px 36px;
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid, .grid--2, .grid--4 { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--border);
}
.card__number {
  display: block; font-family: "Caudex", serif; font-size: 30px;
  color: rgba(222, 197, 143, 0.35); line-height: 1; margin-bottom: 6px;
}
.card__icon { color: var(--gold); margin-bottom: 14px; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.card--link { text-decoration: none; display: block; transition: border-color 0.25s ease, transform 0.25s ease; }
.card--link:hover { border-left-color: var(--gold-light); transform: translateX(2px); }
.card__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--gold-light);
}
.card__more svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.card--link:hover .card__more svg { transform: translateX(3px); }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__value {
  font-family: "Caudex", serif; font-size: 32px; color: var(--gold-light);
  margin-bottom: 6px;
}
.stat__label { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; }

/* ---------- team ---------- */
.team {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start;
  max-width: 780px;
}
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }
.team--text-only { display: block; max-width: 640px; }
.team__mark {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.55);
}
.team__mark img {
  width: 100%; height: 100%; object-fit: cover;
}
.team h3 { font-size: 24px; margin-bottom: 4px; }
.team__role { color: var(--gold-light); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }

/* ---------- subnav (Expertise) ---------- */
.subnav {
  position: sticky; top: 100px; z-index: 50;
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 10px; margin-bottom: 56px;
  background: rgba(6, 34, 43, 0.6); border: 1px solid var(--border); border-radius: 10px;
  backdrop-filter: blur(8px);
  width: fit-content;
}
.subnav a { padding: 8px 16px; font-size: 13px; color: var(--text-dim); text-decoration: none; border-radius: 6px; transition: color 0.2s ease, background-color 0.2s ease; }
.subnav a:hover { color: #fff; background: rgba(198, 161, 91, 0.18); }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center; padding: 88px 0;
}
.cta-banner h2 { margin-bottom: 28px; }

/* ---------- contact ---------- */
.contact-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 13px 16px; color: #fff; font-family: inherit; font-size: 15px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.07); }
.field textarea { min-height: 140px; resize: vertical; }

.cf-turnstile { margin: 4px 0 20px; }

.form-status { font-size: 14px; margin-top: 4px; min-height: 20px; }
.form-status.is-error { color: #e39b9b; }
.form-status.is-ok { color: var(--gold-light); }

.info-card { border-top: 1px solid var(--border); padding-top: 24px; }
.info-card p { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #fff; margin-bottom: 16px; }
.info-card svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.info-card a { text-decoration: none; border-bottom: 1px solid var(--border); }
.info-card a:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal ul { padding-left: 20px; color: var(--text-dim); }
.legal li { margin-bottom: 8px; }
.legal p { font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 64px 0 28px; background: #041820; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 1fr; gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h6 {
  text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--gold-light); margin: 0 0 14px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 26px; }
.footer-brand span { font-family: "Caudex", serif; color: #fff; font-size: 15px; }
.site-footer p { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold-light); }

.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-links a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.social-links svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1100;
  max-width: 560px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(6,34,43,0.97), rgba(4,24,30,0.99));
  border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; box-shadow: 0 -16px 40px -16px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  transform: translateY(140%); transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: 13.5px; color: var(--text-dim); margin: 0; flex: 1 1 260px; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner button {
  border-radius: 4px; padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; border: none;
}
.cookie-banner .accept { background: var(--gold); color: var(--ink); }
.cookie-banner .decline { background: transparent; color: var(--text-dim); border: 1px solid rgba(255,255,255,0.25); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  section.block { padding: 64px 0; }
  .hero { padding: 140px 0 64px; }
  .cta-banner { padding: 64px 0; }
}
