/* -----------------------------------------------------------
   Steadfast Financial Services — styles
   Inspiration: Black Creek Wealth (layout) · Lighthouse (brand)
   ----------------------------------------------------------- */

:root {
  --green-900: #0b3a2a;
  --green-800: #0d4028;
  --green-700: #124e34;
  --green-600: #1a5e3f;
  --green-500: #2a7a57;
  --green-400: #3f9671;
  --gold: #c39a55;
  --cream: #f5efdc;
  --cream-soft: #faf6e8;
  --cream-darker: #ede4c3;
  --ink: #1a1a1a;
  --muted: #5c6a63;
  --line: #e6dfcc;
  --white: #ffffff;

  --ff-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 18px rgba(11, 58, 42, 0.08);
  --shadow-md: 0 18px 40px rgba(11, 58, 42, 0.14);
  --shadow-lg: 0 30px 70px rgba(11, 58, 42, 0.22);
  --maxw: 1200px;
  --nav-h: 96px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Fixed header compensation: anchor targets land BELOW the sticky header */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

/* Modern browsers: cross-document fade transition on navigation */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root) { animation-name: pt-fade-out; }
::view-transition-new(root) { animation-name: pt-fade-in; }
@keyframes pt-fade-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes pt-fade-in  { from { opacity: 0; transform: translateY(10px); } }

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: pageFadeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
body.is-leaving {
  animation: pageFadeOut 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); }
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.9; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-serif); font-weight: 600; letter-spacing: -0.01em; color: var(--green-900); }
p  { margin: 0 0 1em; color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}

.display {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 18px;
}

.lead { font-size: 1.02rem; color: var(--muted); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(11, 58, 42, 0.24);
}
.btn-outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 15px; }
.link-muted {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 14px;
}
.link-muted:hover { color: var(--green-700); }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, height 0.3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 246, 232, 0.97);
  box-shadow: 0 1px 0 rgba(11, 58, 42, 0.08), 0 10px 30px rgba(11, 58, 42, 0.08);
  backdrop-filter: saturate(150%) blur(8px);
}
.site-header.is-scrolled::before { opacity: 0; }
.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
  position: relative;
}
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 0;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  display: block;
  width: 64px;
  height: 64px;
  background-repeat: no-repeat;
  background-size: auto 109px;
  background-position: center top;
  flex-shrink: 0;
}
.brand-mark-light { background-image: url('assets/logo-white.svg'); }
.brand-mark-dark { background-image: url('assets/logo-dark.svg'); display: none; }
.site-header.is-scrolled .brand-mark-light { display: none; }
.site-header.is-scrolled .brand-mark-dark { display: block; }
.brand-wordmark {
  display: inline-block;
  font-family: var(--ff-serif);
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.brand-wordmark-top {
  display: block;
  width: max-content;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
}
.brand-wordmark-bot {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  margin-top: 3px;
  opacity: 0.92;
  text-align: center;
}
.brand-wordmark-top { display: block; }
.site-header.is-scrolled .brand-wordmark {
  color: var(--green-900);
  text-shadow: none;
}
.primary-nav { flex: 1 1 auto; }
.primary-nav ul { display: flex; justify-content: flex-end; gap: 32px; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.nav-contact-btn { white-space: nowrap; }

/* Home page: nav row on top, brand stacked below it (centered) */
.site-header.is-home { height: auto; }
.site-header.is-home .nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 32px;
  row-gap: 6px;
  height: auto;
  min-height: var(--nav-h);
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-header.is-home .primary-nav { flex: 0 0 auto; order: 1; }
.site-header.is-home .primary-nav ul { justify-content: center; flex-wrap: nowrap; gap: 26px; }
.site-header.is-home .primary-nav a { white-space: nowrap; }
.site-header.is-home .nav-cta { flex: 0 0 auto; order: 2; }
.site-header.is-home .brand {
  order: 3;
  flex: 0 0 100%;
  height: auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  justify-content: center;
  margin-top: 80px;
  margin-bottom: 24px;
}
.site-header.is-home .brand-mark { width: 192px; height: 192px; background-size: auto 327px; }
.site-header.is-home .brand-wordmark-top {
  font-size: 66px;
  letter-spacing: 0.2em;
}
.site-header.is-home .brand-wordmark-bot {
  font-size: 26px;
  letter-spacing: 0.44em;
  margin-top: 6px;
}
/* Push the home hero content below the taller stacked header */
body.is-home .hero { padding-top: 540px; }

/* Dropdown submenu (Resources) */
.primary-nav .has-submenu { position: relative; }
.submenu-caret { font-size: 10px; margin-left: 2px; opacity: 0.75; }
.primary-nav .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 210px;
  background: #fff;
  padding: 8px 0;
  margin: 8px 0 0;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(11, 58, 42, 0.16);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 60;
  display: block;
  flex-direction: column;
}
.primary-nav .has-submenu:hover > .submenu,
.primary-nav .has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}
.primary-nav .submenu li { display: block; }
.primary-nav .submenu a {
  display: block;
  padding: 10px 22px;
  color: var(--ink) !important;
  text-shadow: none !important;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.3;
}
.primary-nav .submenu a:hover,
.primary-nav .submenu a.is-active { background: var(--cream-soft); color: var(--green-700) !important; }
.primary-nav .submenu a::after { display: none; }
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.site-header.is-scrolled .primary-nav a {
  color: var(--ink);
  text-shadow: none;
}
.primary-nav a:hover { color: var(--green-400); }
.primary-nav a.is-active { color: var(--green-400); }
.site-header.is-scrolled .primary-nav a:hover,
.site-header.is-scrolled .primary-nav a.is-active { color: var(--green-700); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green-400);
  transition: width 0.25s ease;
}
.site-header.is-scrolled .primary-nav a::after { background: var(--green-700); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { width: 100%; }
.site-header:not(.is-scrolled) .link-muted {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 58, 42, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  padding: 0;
  color: #fff;
  margin-left: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-toggle:hover { background: rgba(11, 58, 42, 0.78); transform: scale(1.03); }
.site-header.is-scrolled .nav-toggle {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}
.site-header.is-scrolled .nav-toggle:hover { background: var(--green-700); border-color: var(--green-700); }
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 20px;
  height: 14px;
}
.site-header.is-scrolled .nav-toggle { color: var(--ink); }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: currentColor;
  margin: 2.5px 0;
  border-radius: 2px;
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  color: #fff;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #0b3a2a;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11, 58, 42, 0.22) 0%, rgba(11, 58, 42, 0.55) 60%, rgba(11, 58, 42, 0.90) 100%),
    linear-gradient(180deg, rgba(8, 40, 28, 0.55) 0%, rgba(11, 58, 42, 0.50) 50%, rgba(11, 58, 42, 0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 0 20px;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  margin: 6px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.04);
}
.hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  line-height: 1.08;
  font-weight: 600;
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  margin: 0 auto 34px;
  max-width: 740px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 8px;
  background: #fff;
  margin: 6px auto 0;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: 0.3; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------- Page Hero (interior pages) -------------------- */
.page-hero {
  position: relative;
  min-height: 460px;
  padding: calc(var(--nav-h) + 70px) 20px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,58,42,0.65) 0%, rgba(11,58,42,0.82) 100%),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2000&q=75") center/cover no-repeat;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.page-hero .crumb {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-hero .crumb a { color: #fff; }

/* -------------------- Sections -------------------- */
.section {
  padding: 110px 0;
  position: relative;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.team-card,
[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.grid-2.reverse .col-media { order: 1; }
.grid-2.reverse .col-copy  { order: 2; }

.col-copy p { font-size: 1rem; line-height: 1.75; margin-bottom: 1em; }
.col-copy .btn { margin-top: 14px; }

/* WHAT WE DO — photo stack + badge */
.section-what { background: var(--cream); }
.photo-stack {
  position: relative;
  padding: 18px;
}
.photo {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.photo-back {
  position: absolute;
  top: 0;
  right: -8px;
  width: 92%;
  height: 460px;
  background: linear-gradient(135deg, #d7cfae 0%, #e6dfc0 100%);
  z-index: 0;
  transform: translate(18px, 18px);
  opacity: 0.85;
}
.photo-front { position: relative; z-index: 1; }
.badge-check {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 92px;
  height: 92px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.badge-check-inner {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-800);
  line-height: 1.2;
}
.bc-label { color: #1f4477; }
.bc-dot { color: var(--green-700); }
.badge-check-inner small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.15em;
}

/* HOW WE HELP */
.section-help {
  background: var(--cream-soft);
  border-radius: 40px;
  max-width: calc(var(--maxw) + 64px);
  margin: 0 auto;
  padding: 90px 40px;
}
.help-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
}
.help-header .lead { max-width: 640px; margin-top: 16px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: block;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.service-card:hover .service-img { transform: scale(1.08); }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 58, 42, 0) 40%, rgba(11, 58, 42, 0.92) 100%);
}
.service-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
}
.service-caption h3 {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 8px;
}
.service-link {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* STATS BAR */
.section-stats {
  background: var(--green-900);
  padding: 54px 0;
  color: #fff;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--ff-serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  color: #fff;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* WHO WE ARE */
.section-who { background: var(--cream); }
.photo-single {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.photo-single img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* CORE VALUES */
.section-values {
  background: var(--cream-soft);
  position: relative;
  overflow: hidden;
  padding-bottom: 220px; /* extra room so wave stays off content */
}
.section-values::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'><path fill='%23ede4c3' fill-opacity='0.65' d='M0,160L60,170.7C120,181,240,203,360,186.7C480,171,600,117,720,112C840,107,960,149,1080,165.3C1200,181,1320,171,1380,165.3L1440,160L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'/></svg>") bottom center / 100% 100% no-repeat;
  pointer-events: none;
}
.values-container { position: relative; z-index: 1; }
.values-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}
.values-header .lead { margin-top: 18px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.values-grid.four-up { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value { text-align: center; }
.value-photo {
  width: 168px;
  height: 168px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
}
.value-photo img { width: 100%; height: 100%; object-fit: cover; }
.value h3 { font-size: 1.3rem; margin-bottom: 14px; color: var(--green-800); }
.value p {
  font-size: 0.95rem;
  line-height: 1.72;
  max-width: 320px;
  margin: 0 auto;
}

/* CONTACT */
.section-contact { background: var(--cream); }
.contact-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  color: var(--green-900);
}
.contact-list strong { font-weight: 700; color: var(--green-900); }
.contact-list .ci {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.contact-list a strong { color: var(--green-700); }

.contact-form {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.contact-form label { display: block; }
.contact-form label span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  font-size: 15px;
  font-family: var(--ff-sans);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green-600); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .full { margin-bottom: 26px; }
.contact-form button { margin-top: 6px; }
.contact-form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
  color: var(--muted);
}
.contact-form-status.is-success { color: var(--green-600); }
.contact-form-status.is-error { color: #b3261e; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--cream-soft);
  padding: 72px 0 40px;
  position: relative;
  border-top: 1px solid var(--line);
}
.footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400), var(--gold));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-col h4 {
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 10px;
}
.footer-col p { font-size: 14px; margin: 0; color: var(--green-900); }
.footer-col p strong { color: var(--green-900); }
.footer-right { text-align: right; }
.footer-brand { text-align: center; }
.footer-brand img {
  height: 140px;
  width: auto;
  margin: 0 auto 14px;
  /* logo matches footer background — no box around it */
  background: transparent;
  display: block;
}
.footer-brand a { color: var(--green-700); font-size: 14px; font-weight: 500; }
.footer-fine {
  padding-top: 28px;
  text-align: center;
}
.footer-fine p {
  font-size: 12px;
  color: var(--muted);
  max-width: 920px;
  margin: 0 auto 10px;
  line-height: 1.7;
}
.fine-print { font-size: 11px; color: #8a9088; }
.copy { margin-top: 16px; font-size: 12px; }

/* -------------------- Interior page components -------------------- */
.section-lede {
  padding: 90px 0 30px;
  background: var(--cream);
}
.section-lede .container { max-width: 900px; }
.section-lede p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--green-900);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 24px 0 30px;
}
.feature-list li {
  position: relative;
  padding-left: 32px;
  color: var(--green-900);
  font-size: 0.98rem;
  line-height: 1.6;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26, 94, 63, 0.12);
}
.feature-list li::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 12px;
  height: 12px;
  text-align: center;
}

.fee-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 24px;
  background: var(--cream-soft);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.fee-table th, .fee-table td {
  padding: 18px 22px;
  text-align: left;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
}
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table th {
  background: var(--green-900);
  color: #fff;
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.team-card {
  background: var(--cream-soft);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo {
  height: 440px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-darker);
}
@media (max-width: 720px) {
  .team-photo { height: 380px; }
}
.team-info { padding: 32px 30px 34px; }
.team-info .title {
  display: block;
  color: var(--green-600);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.team-info h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--green-900);
}
.team-info .creds {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.team-info p { font-size: 0.96rem; line-height: 1.72; }
.team-info h4 {
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-top: 20px;
  margin-bottom: 8px;
}

/* LINKS PAGE */
.link-group {
  background: var(--cream-soft);
  border-radius: 22px;
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.link-group h3 {
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 18px;
}
.link-group ul { display: grid; gap: 10px; }
.link-group a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--green-900);
  font-weight: 500;
  transition: all 0.2s ease;
}
.link-group a:hover {
  transform: translateX(4px);
  border-color: var(--green-400);
  box-shadow: 0 6px 18px rgba(11, 58, 42, 0.08);
}
.link-group a .arrow { margin-left: auto; color: var(--green-600); }
.link-group a small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.86rem;
  margin-top: 2px;
}

/* RAYMOND JAMES SECTION */
.section-rj { background: var(--cream); }
.rj-logo-card {
  background: transparent;
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
}
.rj-logo-img {
  max-width: 370px;
  width: 100%;
  margin: 0 auto;
}
.rj-badge {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 22px;
  margin-bottom: 24px;
}

/* PROFESSIONAL NETWORK SECTION */
.section-network { background: var(--cream-soft); }

/* 3-COLUMN TEAM GRID */
.team-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) {
  .team-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .team-grid-3 { grid-template-columns: 1fr; }
}

/* INSIGHTS / ARTICLES */
.insights-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--green-400); color: var(--green-700); }
.filter-btn.is-active {
  background: var(--green-600);
  color: #fff;
  border-color: var(--green-600);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.article-card {
  display: block;
  background: var(--cream-soft);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-readmore {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--green-700);
}
.article-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-darker);
}
.article-body { padding: 28px 28px 32px; }
.article-cat {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}
.article-body h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--green-900);
}
.article-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.article-body p { font-size: 0.95rem; line-height: 1.7; }
.article-body .btn { margin-top: 14px; }
.articles-empty {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  padding: 60px 0;
}

/* Single-article detail page */
.article-page {
  padding: calc(var(--nav-h) + 48px) 0 90px;
  background: #fff;
}
.article-container { max-width: 780px; }
.article-header { margin: 28px 0 36px; }
.article-header h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--green-900);
  margin: 12px 0 14px;
}
.article-meta { font-size: 0.9rem; color: var(--muted); }
.article-hero-img {
  height: 380px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  margin-bottom: 40px;
  background-color: var(--cream-darker);
}
.article-content { font-size: 1.05rem; line-height: 1.78; color: var(--ink); }
.article-lede {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--green-800);
  margin-bottom: 26px;
}
.article-content p { margin-bottom: 18px; }
.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article-not-found { padding: 60px 0; text-align: center; }
.article-not-found h2 { margin-bottom: 16px; color: var(--green-900); }
@media (max-width: 720px) {
  .articles-grid { grid-template-columns: 1fr; }
}

/* CONTACT PAGE map */
.map-embed {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/10;
  border: 0;
  width: 100%;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .nav-container { justify-content: space-between; gap: 12px; }
  .site-header.is-home .nav-container { display: flex; grid-template-columns: none; }
  .nav-cta { justify-content: flex-end; }
  .brand-wordmark { display: none; }
  /* Mobile home brand: keep the wordmark and shrink the lockup so it fits */
  .site-header.is-home .brand-wordmark { display: inline-block; }
  .site-header.is-home .brand-mark {
    width: 96px;
    height: 96px;
    background-size: auto 164px;
  }
  .site-header.is-home .brand-wordmark-top { font-size: 30px; letter-spacing: 0.18em; }
  .site-header.is-home .brand-wordmark-bot { font-size: 12px; letter-spacing: 0.04em; }
  .site-header.is-home .brand { margin-top: 24px; margin-bottom: 16px; gap: 10px; }
  body.is-home .hero { padding-top: 300px; }
  .primary-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--cream-soft);
    padding: 24px 28px 32px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    border-top: 1px solid var(--line);
    z-index: 50;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
  }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav a { color: var(--ink) !important; padding: 14px 4px; font-size: 17px; display: block; text-shadow: none !important; }
  .primary-nav a::after { display: none; }
  /* Submenu inline on mobile */
  .primary-nav .submenu {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 2px 0 6px;
    margin: 0;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    display: block;
  }
  .primary-nav .submenu a { padding: 10px 16px; font-size: 15px; }
  .submenu-caret { display: none; }
  .site-header.is-scrolled .primary-nav { background: var(--cream-soft); }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
  .nav-cta .link-muted { display: none; }
  .nav-contact-btn { padding: 11px 18px; font-size: 13px; }
  .grid-2 { grid-template-columns: 1fr; gap: 50px; }
  .grid-2.reverse .col-media { order: 0; }
  .grid-2.reverse .col-copy  { order: 0; }
  .help-header { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .values-grid.four-up { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .value p { max-width: 260px; font-size: 0.9rem; }
  .value-photo { width: 140px; height: 140px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
  .section { padding: 80px 0; }
  .section-help { padding: 70px 24px; border-radius: 28px; }
  .section-values { padding-bottom: 170px; }
  .team-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .service-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 40px; }
  .value p { max-width: 320px; font-size: 0.95rem; }
  .value-photo { width: 168px; height: 168px; }
  .team-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .brand-mark { width: 52px; height: 52px; background-size: auto 88px; }
  :root { --nav-h: 84px; }
  .hero h1 { font-size: 2.4rem; }
  .section { padding: 64px 0; }
  .section-help { padding: 56px 20px; }
  .section-values { padding-bottom: 140px; }
  .container { padding: 0 20px; }
  .nav-container { padding: 0 20px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 28px 22px; }
  .footer-brand img { height: 100px; }
}
