/* =========================================================
   Alignment CFO LLC — shared stylesheet
   Used by every page. Edit colors/fonts here once and the
   whole site updates.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&family=Pinyon+Script&display=swap');

:root {
  /* ===== Alignment CFO brand palette (from brand board) =====
     BRICK   #7B0206   AEGEAN #2D4B70   JET GREY #7E7F83
     CHILI   #B8301A   SKY    #93B6D4                       */
  --brick:       #7B0206;   /* primary brand red */
  --brick-dark:  #5E0204;   /* darker brick for hover/links */
  --chili:       #B8301A;   /* warm accent red */
  --aegean:      #2D4B70;   /* brand navy */
  --aegean-2:    #1F3A5C;   /* deeper navy for gradients */
  --sky:         #93B6D4;   /* light blue accent */
  --jet:         #7E7F83;   /* brand grey */

  /* Semantic aliases used throughout the stylesheet */
  --navy:        var(--aegean);
  --navy-2:      var(--aegean-2);
  --teal:        var(--brick);      /* primary accent / CTA = brick red */
  --teal-dark:   var(--brick-dark);
  --gold:        var(--chili);

  --ink:         #1c2530;   /* body text */
  --muted:       #5d6670;   /* secondary text */
  --line:        #e6e8ec;   /* hairline borders */
  --bg:          #ffffff;
  --bg-soft:     #f6f7f9;   /* soft section background */
  --bg-tint:     #eef2f7;   /* tinted band (from sky/aegean family) */
  --white:       #ffffff;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(45, 75, 112, .14);
  --shadow-sm: 0 6px 20px rgba(45, 75, 112, .10);

  /* Hero New (brand sans) is a licensed font — Inter is the closest free web match.
     Charlotte Southern (brand script) lives in the logo artwork; Pinyon Script
     is a free stand-in used for occasional script accents. */
  --font-head: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Pinyon Script", "Segoe Script", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.16; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }

/* Script accent (echoes the Charlotte Southern logo font) */
.script { font-family: var(--font-script); font-weight: 400; }
.tagline { font-family: var(--font-script); color: var(--sky); font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.04; margin: .08em 0 .45em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 .6em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0 0 .5em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color:#fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-img { height: 56px; width: auto; display: block; }
@media (max-width: 520px) { .brand-img { height: 46px; } }
.brand-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .5px;
}
.brand-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 19px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-dark); text-decoration: none; }
.nav-cta { margin-left: 8px; }
.nav-links .nav-cta a, .nav-links .nav-cta a:hover { color: #fff; text-decoration: none; }

/* dropdown nav */
.has-drop { position: relative; }
.has-drop > a::after { content: " \25BE"; font-size: .7em; opacity: .75; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 8px 0; margin: 10px 0 0; list-style: none; display: none; z-index: 60; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { display: block; }
.dropdown li { width: auto; padding: 0; border: 0; }
.dropdown a { display: block; padding: 9px 18px; white-space: nowrap; font-size: .95rem; color: var(--ink); }
.dropdown a:hover, .dropdown a.active { background: var(--bg-tint); color: var(--teal-dark); text-decoration: none; }
@media (max-width: 900px) {
  .dropdown { position: static; display: block; box-shadow: none; border: 0; border-radius: 0; padding: 2px 0 6px 16px; margin: 0; }
  .has-drop > a::after { content: ""; }
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px; box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-cta { margin: 10px 0 0; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; font-weight: 700; color: var(--teal-dark);
  margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 560px at 82% -10%, rgba(184,48,26,.40), transparent 60%),
    radial-gradient(900px 500px at 10% 120%, rgba(147,182,212,.25), transparent 60%),
    linear-gradient(160deg, var(--aegean) 0%, var(--aegean-2) 100%);
  color: #eaf1f5; padding: 96px 0 104px;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #cfdde6; font-size: 1.25rem; max-width: 56ch; }
.hero .btn-row { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brick), var(--aegean)); color: #fff; margin-bottom: 18px;
  font-size: 1.5rem; box-shadow: 0 8px 18px rgba(123,2,6,.22);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }

/* photo in a split slot (replaces the gradient media-card) */
.media-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; background: var(--aegean); }
.media-photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }

/* full-width rounded photo banner */
.photo-band .banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-band img { width: 100%; height: 360px; object-fit: cover; display: block; }
@media (max-width: 700px) { .photo-band img { height: 240px; } .media-photo, .media-photo img { min-height: 240px; } }

/* split layout */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.media-card {
  border-radius: var(--radius); min-height: 320px;
  background: linear-gradient(150deg, var(--teal) 0%, var(--navy) 100%);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff; padding: 36px;
}
.media-card .stat { text-align: center; }
.media-card .stat b { font-family: var(--font-head); font-size: clamp(2.4rem,6vw,3.6rem); display: block; line-height: 1; }
.media-card .stat span { opacity: .85; letter-spacing: .04em; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 38px; border-bottom: 1px solid var(--line); color: var(--ink); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
}
.checklist.x li::before { content: "×"; background: #c25a5a; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.step .num {
  counter-increment: step; width: 56px; height: 56px; border-radius: 14px;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--navy), var(--teal-dark));
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e4ea; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; background: #e9f6f1; border: 1px solid #b9e3d4; color: #1f6f57; padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c8d6df; padding: 56px 0 30px; }
.site-footer a { color: #cfe0e8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; font-family: var(--font-head); margin: 0 0 14px; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #9fb3bf; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   Richer visual layer
   ========================================================= */

/* Gradient highlight text (use on light backgrounds) */
.gradient-text {
  background: linear-gradient(100deg, var(--brick), var(--chili));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Eyebrow with leading tick */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; opacity: .8; }

/* Card top accent */
.card { position: relative; border-top: 3px solid var(--sky); }
.card:hover { border-top-color: var(--brick); }

/* ---- Hero: two-column with brand art ---- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 420px; margin: 0 auto; } }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }

/* ---- Decorative brand circles (section corner accents) ---- */
.has-accent { position: relative; overflow: hidden; }
.brand-blobs { position: absolute; pointer-events: none; opacity: .9; }
.blob { position: absolute; border-radius: 50%; }

/* ---- Stats band ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat-box { text-align: center; padding: 14px; }
.stat-box b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; color: var(--brick); }
.stat-box span { color: var(--muted); font-size: .95rem; }
.cta-band .stat-box b { color: #fff; }
.cta-band .stat-box span { color: #d6e4ea; }

/* ---- Section heading line accent under centered headings ---- */
.center h2::after { content: ""; display: block; width: 64px; height: 3px; margin: 18px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--brick), var(--chili)); }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.team-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .team-grid.two { grid-template-columns: 1fr; } }
.member { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member .photo { height: 230px; display:grid; place-items:center; background: linear-gradient(150deg, var(--aegean), var(--brick)); color:#fff; font-family: var(--font-head); font-weight:800; font-size: 3.2rem; letter-spacing: 1px; position: relative; }
.member .photo img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.member .body { padding: 22px 24px 26px; }
.member .body h3 { margin: 0 0 2px; }
.member .role { color: var(--brick); font-weight: 600; font-size: .95rem; margin: 0 0 12px; }
.member .body p { color: var(--muted); margin: 0; font-size: .96rem; }
.bio-list { list-style: none; margin: 14px 0 0; padding: 0; }
.bio-list li { position: relative; padding: 6px 0 6px 18px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.bio-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--brick); }

/* ---- Scroll reveal ---- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---- Cash Flow Health Check ---- */
.q { padding: 18px 0; border-bottom: 1px solid var(--line); }
.q:last-of-type { border-bottom: 0; }
.qtext { font-weight: 600; color: var(--navy); margin: 0 0 10px; }
.q label { display: block; padding: 8px 12px; margin: 4px 0; cursor: pointer; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, background .15s; }
.q label:hover { border-color: var(--sky); background: var(--bg-tint); }
.q input { margin-right: 10px; accent-color: var(--brick); }
.tier { display: inline-block; padding: 10px 22px; border-radius: 999px; font-weight: 700; color: #fff; font-size: 1.1rem; }
.tier.stable { background: #1f7a5c; }
.tier.strained { background: var(--chili); }
.tier.atrisk { background: var(--brick); }
.flag-list { list-style: none; margin: 18px 0 0; padding: 0; max-width: 560px; }
.flag-list li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); }
.flag-list li::before { content: "!"; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--chili); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }

/* small utils */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.pill { display:inline-block; background: var(--bg-tint); color: var(--teal-dark); font-weight:600; font-size:.8rem; padding:6px 14px; border-radius:999px; }
.divider { height:1px; background: var(--line); border:0; margin: 0; }
