/* Campbell Wealth Partners — palette pulled directly from the site's own
   custom-embed blocks (cwp-wwd-wrap / cwp-approach-box), not guessed:
   cream #F0E8D9, gold accent #B89765, dark navy sections. */
:root {
  --cream: #F0E8D9;
  --gold: #B89765;
  --navy: #14171f;
  --navy-light: #1d212c;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  background: #fff;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Pins the footer to the bottom of the viewport on short pages (About,
   Contact Us) instead of leaving blank white space below it — confirmed
   live, Aug 21: those pages' content falls well short of typical viewport
   height while Home/FAQ don't, so this only ever mattered on the short
   ones. */
/* main's own background, not just the header/footer box-shadow bleeds below,
   is the real fix for the hairline/gap seam — box-shadow bleed turned out to
   not be reliable enough across real (non-headless) browsers/displays
   (confirmed live in Edge/Brave/Firefox, Aug 21: bumping it to 8px didn't
   close the gap). A solid background-color under the whole of main can't be
   defeated by compositing/rounding quirks the way a paint-time bleed can —
   any gap at either seam now shows this color instead of body's white,
   regardless of how many px wide the real gap turns out to be. navy-light
   matches what's directly under the header/above the footer on every page
   except Market Pulse, which overrides back to white below. */
main { flex: 1 0 auto; display: flex; flex-direction: column; background: var(--navy-light); }
.light-under-header main { background: #fff; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  /* Same fix idea as .site-footer below, same root cause: paints the
     header's own bottom-edge color over whatever gap the display's
     fractional scaling leaves between the sticky header and main. 1px
     wasn't enough — confirmed live in real (non-headless) Chromium/Edge,
     Aug 21, the actual gap ran a few px on that display — so this bleeds
     generously rather than guessing an exact size. It's solid navy-light,
     the same color as what's already directly beneath it on every page
     that uses this (About/FAQ/SS-calc/Contact/Privacy), so the extra
     bleed is invisible against that background. */
  box-shadow: 0 8px 0 0 var(--navy-light);
}
.light-under-header .site-header { box-shadow: none; }
/* Soft fade below the header rather than a hard edge — since the header is
   sticky, it scrolls over the video hero, cream sections, and navy-light
   sections in turn, so this fades to transparent rather than matching any
   one fixed color underneath. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 28px;
  background: linear-gradient(180deg, rgba(29,33,44,0.35) 0%, rgba(29,33,44,0) 100%);
  pointer-events: none;
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { border-radius: 50%; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a, .dropdown > button {
  color: var(--cream);
  background: none;
  border: none;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-light);
  min-width: 200px;
  padding: 8px 0;
  z-index: 10;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--cream);
  font-size: 0.85rem;
  text-transform: none;
}
.dropdown-menu a:hover { background: rgba(184,151,101,0.15); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (min-aspect-ratio: 2/1) {
  .hero { min-height: 52vh; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { display: none; }
  .hero { background: url('/assets/hero-houston.jpg') center/cover no-repeat; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,23,31,0.35) 0%, rgba(20,23,31,0.7) 100%);
}
.hero-content {
  position: relative;
  padding: 60px 40px;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: 312px;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}
.hero-content h1 {
  color: var(--cream);
  font-size: 1.9rem;
  font-weight: 400;
  margin: 110px 0 0;
  white-space: nowrap;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}
.photo-credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: rgba(240,232,217,0.45);
  font-size: 0.7rem;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  transition: color 0.2s ease;
}
.photo-credit:hover,
.photo-credit:focus {
  color: rgba(240,232,217,0.9);
}

/* Why Partner */
.why-partner {
  background: var(--cream);
  padding: 44px 24px;
  text-align: center;
}
.why-partner h2 {
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.6rem;
}
.why-grid {
  max-width: 1000px;
  margin: 22px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.why-grid p {
  flex: 1 1 260px;
  max-width: 300px;
  line-height: 1.6;
  color: #333;
}
.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 36px;
  background: var(--gold);
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  text-decoration: none !important;
  border-radius: 6px;
}
.cta-button:hover { background: #a3835a; }

/* Dark embed sections (the custom widgets already carry their own
   cream-on-navy styling, this just sets the surrounding background) */
.embed-section.dark {
  background: var(--navy-light);
  padding: 20px 0;
}
/* Light variant — Market Pulse's embed was built with its own dark-navy
   text (#002147) meant to sit on a light background, not the same dark
   wrapper the other embeds use. Wrapping it dark made the text unreadable
   (Brian, Aug 21) — this is the actual fix, not a guess at new colors. */
.embed-section.light {
  background: #fff;
  padding: 20px 0;
}
.embed-section iframe { display: block; min-height: 400px; }

/* Generic page header for non-home pages */
.page-header {
  background: var(--navy-light);
  padding: 36px 24px 16px;
  text-align: center;
}
.page-header h1 {
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.8rem;
  margin: 0;
}

/* Centers a page's single embed in whatever leftover vertical room main's
   flex-grow (the sticky-footer fix) leaves on short pages — otherwise the
   embed sits flush under the header and a dead gap opens up above the
   footer on tall/wide viewports instead. */
.page-body {
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

/* Contact Us's own dark section — same navy-light treatment as the
   About/FAQ pages, per Brian, Aug 21. A separate class from .home-contact
   deliberately: that class's .contact-info margin-top:46px is tuned to
   compensate for the HOME form having an <h3> ("Drop us a line!") that its
   info column lacks — here it's reversed (the info column has the h3,
   "Campbell Wealth Partners", and the form has none), so reusing that
   value would misalign this instance instead of fixing it. */
.contact-dark {
  background: var(--navy-light);
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.contact-dark .contact-info { color: var(--cream); }
.contact-dark .contact-info a { color: var(--gold); }

.whats-next {
  text-align: center;
  padding: 28px 24px 0;
}
.whats-next img {
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Contact page */
.contact-section {
  max-width: 900px;
  width: 100%;
  margin: auto;
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-self: center;
}
.contact-form { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.contact-form h3 {
  margin: 0 0 6px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.2rem;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.contact-form button {
  padding: 12px 24px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  width: fit-content;
}
.contact-form button:hover { background: #a3835a; }
#contact-status, .contact-status { font-size: 0.9rem; color: #555; min-height: 1.2em; }
.contact-info { flex: 1 1 260px; line-height: 1.8; }
.contact-info p { margin: 0 0 4px; }
.contact-info h3 { margin-top: 0; }
/* Aligns the first line ("Office...") with the Name field's top edge next
   to it — the form has an <h3> pushing its first input down, the info
   column doesn't, so without this the two columns start at different
   heights (confirmed via measurement, Aug 21). */
.home-contact .contact-info { margin-top: 46px; }

/* Homepage "Drop us a line!" block — dark section (matches the live site),
   with the SBA/Veteran-Owned badges sitting alongside it. */
.home-contact {
  background: var(--navy-light);
  padding: 44px 24px;
}
.home-contact .contact-form h3,
.home-contact .contact-info { color: var(--cream); }
.home-contact .contact-info a { color: var(--gold); }

/* Plain text pages (privacy policy) */
/* Explicit white background + flex:1 0 auto — without this, main's own
   navy-light default (added for the header-seam fix above) shows straight
   through behind this dark-#333-on-nothing text block, making it
   unreadable, and any leftover vertical space in main below it would show
   navy-light instead of white (confirmed live, Aug 21 — this page went
   dark-on-dark the moment main's background was added). page-header above
   it stays navy-light regardless, since it paints its own opaque
   background independent of main's. */
.text-page {
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  padding: 0 24px 60px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  flex: 1 0 auto;
}
.text-page p { margin: 0 0 16px; }
.text-page h3 { margin: 32px 0 12px; font-size: 1.2rem; }
.privacy-updated { color: #888; font-size: 0.85rem; font-style: italic; }
.privacy-table-wrap { overflow-x: auto; margin: 8px 0 20px; }
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.privacy-table th, .privacy-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.privacy-table th {
  background: var(--cream);
  color: var(--navy);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
.privacy-table td:nth-child(2), .privacy-table td:nth-child(3) { white-space: nowrap; }
@media (max-width: 600px) {
  .privacy-table { font-size: 0.85rem; }
  .privacy-table td:nth-child(2), .privacy-table td:nth-child(3) { white-space: normal; }
}

/* Footer */
.site-footer {
  background: var(--cream);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: #555;
  /* A negative margin here (tried first) shifted the flex layout's rounding
     remainder instead of removing it — the hairline just reappeared at the
     header/main seam instead. box-shadow doesn't affect layout at all, it's
     a pure paint-time overlay, so it can't relocate the problem: it just
     bleeds 1px of the correct color over whatever fraction-of-a-pixel gap
     the browser's sub-pixel display scaling leaves at this edge (confirmed
     live, Aug 21 — this seam, unlike the sticky header's, checked out clean
     at 1px in real-browser testing, so it's left small deliberately: the
     content sitting just above the footer is dark, not cream, so a bigger
     cream bleed here would visibly cut into it instead of hiding a seam). */
  box-shadow: 0 -1px 0 0 var(--cream);
}
.footer-inner { max-width: 1000px; margin: 0 auto; }
.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-badges img { flex-shrink: 0; }
.footer-disclosure { flex: 1 1 500px; max-width: 560px; text-align: left; }
.disclosure-link { margin-bottom: 16px; }
.disclosure-link a { color: #555; text-decoration: underline; }
.compliance { margin: 4px 0; text-transform: uppercase; letter-spacing: 0.3px; }
.footer-links { margin: 16px 0 8px; }
.copyright { margin: 12px 0; }
.social-links { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20,23,31,0.08);
  color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease;
}
.social-links a:hover { background: var(--gold); color: #fff; }
@media (max-width: 600px) {
  .footer-badges { flex-direction: column; }
  .footer-disclosure { text-align: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 8px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .dropdown > button {
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid rgba(240,232,217,0.1);
  }
  .dropdown { width: 100%; }
  .dropdown > button { width: 100%; }
  .dropdown-menu {
    display: none;
    position: static;
    background: var(--navy-light);
    padding: 0;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 12px 16px; }
  .header-inner { position: relative; }
  .hero-content h1 { font-size: 1.4rem; white-space: normal; margin-top: 64px; }
  .hero-logo { width: 216px; }
}
