/* =====================================================================
   Fortis Strategic Partners — style.css
   Brand system per Official Fortis Style Guide (Oct 2025)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --black: #000000;
  --near-black: #0B0A09;      /* large dark fills */
  --grey: #D8D4D7;            /* muted text on dark / subtle borders */
  --white: #FFFFFF;
  --gold-dark: #DB8A14;
  --gold: #F2A900;            /* primary accent, buttons */
  --gold-light: #FFC762;
  --gold-gradient: linear-gradient(90deg, #FFC762, #F2A900, #DB8A14);

  --body-on-white: #444444;
  --body-on-dark: #C9C5C2;

  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --container: 1360px;
  --section-pad: 112px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-on-white);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* All photography: consistent grayscale treatment (matches Capital Advisors) */
img.photo,
.media img { filter: grayscale(1) contrast(1.06) brightness(.97); }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 .6em;
  color: var(--black);
  letter-spacing: -0.005em;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* Italic accent phrase pattern used on every major heading */
.accent { font-style: italic; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: var(--section-pad) 0; }
.section--tight { padding: 84px 0; }

.section--dark {
  background: var(--near-black);
  color: var(--body-on-dark);
}
.section--black {
  background: var(--black);
  color: var(--body-on-dark);
}
.section--light { background: var(--white); }
.section--offwhite { background: #F6F5F3; }

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--black h1, .section--black h2, .section--black h3, .section--black h4 {
  color: var(--white);
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--gold-dark);
  margin: 0 0 22px;
  display: block;
}
.section--dark .eyebrow,
.section--black .eyebrow,
.hero .eyebrow { color: var(--gold); }

/* ---------- Headline sizing ---------- */
.h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: .5em; }
.h3 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); }

.lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--body-on-white);
  max-width: 620px;
}
.section--dark .lead,
.section--black .lead,
.hero .lead { color: var(--body-on-dark); }

.measure { max-width: 640px; }
.measure-wide { max-width: 760px; }

/* ---------- Thin gold rule (the "line style", replaces icons) ---------- */
.rule {
  width: 40px;
  height: 2px;
  background: var(--gold-gradient);
  border: 0;
  margin: 0 0 22px;
  border-radius: 2px;
}
.rule--center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  background: var(--gold);
  color: #000;
  padding: 15px 34px;
  border-radius: 3px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #000; }

.btn--ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0,0,0,.35);
}
.btn--ghost:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.section--dark .btn--ghost,
.section--black .btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.section--dark .btn--ghost:hover,
.section--black .btn--ghost:hover {
  background: var(--gold); border-color: var(--gold); color: #000;
}

.btn--lg { padding: 18px 44px; font-size: 14px; }

/* Text link with arrow */
.text-link {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  color: var(--gold-dark);
  margin-top: 4px;
  transition: color .2s ease;
}
.text-link:hover { color: var(--gold); }
.section--dark .text-link,
.section--black .text-link { color: var(--gold); }
.section--dark .text-link:hover,
.section--black .text-link:hover { color: var(--gold-light); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__flame { height: 34px; width: auto; }
.brand__lockup { height: 52px; width: auto; display: block; }
.brand__lockup--footer { height: 60px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__word {
  font-family: var(--serif);
  color: var(--white);
  font-size: 20px;
  letter-spacing: .16em;
  line-height: 1;
}
.brand__sub {
  font-family: var(--sans);
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .35em;
  margin-top: 5px;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.78);
  transition: color .2s ease;
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--white); }
.main-nav a.is-active { color: var(--gold); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--gold-gradient);
}
.main-nav .btn {
  color: #000;
  padding: 11px 24px;
  font-size: 12px;
}
.main-nav .btn.is-active::after { display: none; }
.main-nav a.btn.is-active { color: #000; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span { margin: 0 auto; position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background: var(--near-black);
  color: var(--white);
  overflow: hidden;
}
.hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.78) 45%, rgba(0,0,0,.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 148px 0 130px;
}
.hero__content { max-width: 720px; }
.hero .h1 { color: var(--white); margin-bottom: .55em; }
.hero .hero__actions { margin-top: 40px; }

.hero--center .hero__inner { padding: 130px 0; }
.hero--center .hero__content { max-width: 720px; margin: 0 auto; text-align: center; }
.hero--center .rule { margin-left: auto; margin-right: auto; }

/* =====================================================================
   GENERIC SPLIT / MEDIA SECTIONS
   ===================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--text-first .media { order: 2; }
.media img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

/* =====================================================================
   STATS BAND
   ===================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}
.stat__label {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--body-on-dark);
}
.stat .rule { margin: 0 auto 20px; }

/* =====================================================================
   LINE-STYLE CARDS (no icons)
   ===================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 44px;
  margin-top: 60px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 .5em;
}
.card p { color: var(--body-on-white); font-size: 16px; margin: 0; }
.section--dark .card p,
.section--black .card p { color: var(--body-on-dark); }

/* Columns (audience / philosophy) */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  margin-top: 60px;
}
.col__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 .55em;
}
.col p { font-size: 16px; margin: 0; }
.section--dark .col p { color: var(--body-on-dark); }

/* =====================================================================
   CTA BANDS
   ===================================================================== */
.cta { text-align: center; }
.cta .container { max-width: 820px; }
.cta .rule { margin-left: auto; margin-right: auto; }
.cta .lead { margin: 0 auto 36px; }
.cta .btn { margin-top: 4px; }

/* =====================================================================
   WHAT WE DO — numbered service sections
   ===================================================================== */
.service {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.service__num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}
.service__eyebrow { margin-top: 18px; }
.service__body { color: var(--body-on-white); margin-bottom: 28px; }

/* Text list with thin gold tick (no bullet glyphs) */
.line-list { list-style: none; margin: 0; padding: 0; }
.line-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 16px;
  color: #333;
}
.line-list li:last-child { border-bottom: 0; }
.line-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 20px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* compact inline line-list for resources "what's inside" */
.line-list--compact li { padding: 9px 0 9px 30px; border-bottom: 0; }
.line-list--compact li::before { top: 18px; width: 16px; }

/* =====================================================================
   TEAM GRID
   ===================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px 28px;
  margin-top: 64px;
}
.team-member { text-align: center; }
.team-member img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  filter: grayscale(1) contrast(1.06) brightness(.97);
}
.team-member .rule { margin: 0 auto 18px; }
.team-member__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--black);
  margin: 0 0 6px;
}
.team-member__title {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: #6a6a6a;
  letter-spacing: .01em;
}

/* =====================================================================
   FORMS
   ===================================================================== */
.form-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 5px;
  padding: 44px 40px 40px;
  position: relative;
  box-shadow: 0 18px 50px rgba(0,0,0,.06);
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 3px 3px 0 0;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #555;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: #222;
  padding: 13px 15px;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 3px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242,169,0,.15);
}
.field select { appearance: none; -webkit-appearance: none; background-image: none; }

.form-card .btn { width: 100%; margin-top: 6px; }
.form-note {
  font-size: 13px;
  color: #888;
  margin: 14px 0 0;
  text-align: center;
}

/* Contact details block */
.contact-block { max-width: 460px; }
.contact-block h3 { margin-bottom: .4em; }
.contact-detail { margin: 0 0 26px; }
.contact-detail__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold-dark);
  margin: 0 0 6px;
}
.contact-detail a { color: #222; }
.contact-detail a:hover { color: var(--gold-dark); }
.contact-fine {
  font-size: 14px;
  color: #777;
  border-top: 1px solid rgba(0,0,0,.1);
  padding-top: 22px;
  margin-top: 30px;
}
.contact-fine a { color: var(--gold-dark); }
.contact-fine a:hover { color: var(--gold); }

/* Advisor login page */
.login-panel { max-width: 620px; margin: 0 auto; text-align: center; }
.login-panel .rule { margin: 0 auto 26px; }
.login-panel .btn { margin: 34px 0 10px; }
.login-secondary {
  font-size: 15px;
  color: var(--body-on-dark);
  margin-top: 10px;
}
.login-secondary a { color: var(--gold); }
.login-secondary a:hover { color: var(--gold-light); }

/* Resources bottom band */
.mini-band { text-align: center; }
.mini-band h3 { color: var(--white); margin-bottom: 8px; }
.mini-band p { color: var(--body-on-dark); margin-bottom: 26px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--black);
  color: var(--body-on-dark);
  padding: 76px 0 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px;
  color: #8f8b88;
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom p { margin: 0; font-size: 13px; color: #7d7a77; }
.footer-legal a { color: #7d7a77; }
.footer-legal a:hover { color: var(--gold); }
.footer-disclosure {
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.6;
  color: #6b6866;
  max-width: 780px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  :root { --section-pad: 84px; }

  .main-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 0 20px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 15px 32px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .main-nav a.is-active::after { display: none; }
  .main-nav .btn {
    margin: 16px 32px 0;
    text-align: center;
    padding: 14px 24px;
  }
  .nav-toggle { display: block; }

  .split { grid-template-columns: 1fr; gap: 44px; }
  .split--text-first .media { order: 0; }

  .card-grid,
  .card-grid--2,
  .cols { grid-template-columns: repeat(2, 1fr); gap: 44px 36px; }

  .team-grid { grid-template-columns: repeat(3, 1fr); }

  .service { grid-template-columns: 1fr; gap: 24px; }
  .service__num { font-size: 2.4rem; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --section-pad: 68px; }

  .container { padding: 0 22px; }
  .hero__inner { padding: 104px 0 92px; }

  .stats,
  .card-grid,
  .card-grid--2,
  .cols { grid-template-columns: 1fr; gap: 40px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .team-member img { width: 150px; height: 150px; }

  .form-card { padding: 34px 24px 30px; }
  .form-card::before { left: 24px; right: 24px; }

  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Team LinkedIn links ---- */
.team-member__li {
  display: inline-flex;
  margin-top: 10px;
  color: #9b9793;
  transition: color .25s ease, transform .25s ease;
}
.team-member__li:hover { color: var(--gold-dark); transform: translateY(-2px); }

/* ---- Motion & flavor (Capital Advisors-style) ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Image hover zoom (containers clip) */
.media { overflow: hidden; }
.media img {
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1), filter .4s ease;
}
.media:hover img { transform: scale(1.045); }

/* Hero content rises softly on load */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.hero__content { animation: heroRise 1.1s cubic-bezier(.22,.61,.36,1) .15s both; }

/* Team photos: still images, no hover motion */

/* Card / column lift */
.card, .col {
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.card:hover, .col:hover { transform: translateY(-5px); }

/* Gold rule grows in when revealed */
.reveal .rule, .rule.reveal-rule {
  transform-origin: left center;
}
.reveal:not(.is-visible) .rule { transform: scaleX(0); }
.reveal.is-visible .rule { transform: scaleX(1); transition: transform .9s cubic-bezier(.22,.61,.36,1) .25s; }

/* Buttons: subtle press + arrow nudge feel */
.btn { transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(242,169,0,.28); }
.btn:active { transform: translateY(0); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__content { animation: none; }
  .media img, .team-member img, .card, .col, .btn { transition: none; }
}

/* Honeypot field: visually hidden, invisible to humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Legal pages */
.legal-hero { padding: 84px 0 64px; }
.legal-body { max-width: 780px; }
.legal-body h2 { margin-top: 2.2em; }
.legal-body a { color: var(--gold-dark); }
.legal-updated {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8a8683;
  margin-bottom: 2em;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--black);
  color: var(--body-on-dark);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 13.5px; max-width: 640px; }
.cookie-banner a { color: var(--gold); }
.cookie-banner__actions { display: flex; gap: 12px; }
.cookie-btn {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  padding: 10px 26px;
  border-radius: 3px;
  cursor: pointer;
}
.cookie-btn--accept { background: var(--gold); border: 1px solid var(--gold); color: #000; }
.cookie-btn--accept:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.cookie-btn--deny { background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--white); }
.cookie-btn--deny:hover { border-color: var(--white); }
