/* ============================================================
   Savin Hill Consulting - shared stylesheet
   Single source of truth for every page. Colors, fonts, and the
   wordmark treatment are preserved exactly from the original site.
   ============================================================ */

:root {
  --navy: #0B1F3B;
  --red: #D72638;
  --gray: #A0AEC0;
  --light: #F7F9FB;
  --white: #FFFFFF;
  --text: #4a5568;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAV
   Home uses a transparent nav over the dark hero that gains a
   background on scroll (.scrolled). Inner pages have no full-height
   dark hero, so they add .nav--solid for a permanent navy bar.
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
nav.scrolled,
nav.nav--solid {
  background: rgba(11,31,59,0.97);
  padding: 16px 48px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.15);
}
.nav-logo {
  font-weight: 600; font-size: 14px; letter-spacing: 4px;
  color: var(--white); text-transform: uppercase; text-decoration: none;
  z-index: 2; white-space: nowrap;
}
.nav-logo span { color: var(--red); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  transition: color 0.3s; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* Hamburger toggle - hidden on desktop, shown under 900px */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: none; border: none; cursor: pointer; z-index: 2;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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 (home)
   ============================================================ */
.hero {
  min-height: 85vh;
  background: var(--navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  text-align: center;
  padding: 120px 48px 80px;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(215,38,56,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 30%, rgba(160,174,192,0.04) 0%, transparent 40%);
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 2%) rotate(1deg); }
}
.hero-logo {
  position: relative; z-index: 2;
  animation: fadeUp 1.2s ease-out;
}
.hero-logo .mark {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 600; letter-spacing: 0.35em;
  color: var(--white); text-transform: uppercase; line-height: 1;
}
.hero-logo .rule {
  width: 85%; height: 3px; margin: 16px auto 24px;
  background: var(--red);
}
.hero-logo .sub {
  font-size: clamp(12px, 2vw, 18px);
  font-weight: 500; letter-spacing: 0.5em;
  color: var(--white); text-transform: uppercase;
}
.hero-tagline {
  position: relative; z-index: 2; margin-top: 40px;
  font-size: clamp(16px, 2.2vw, 22px); font-weight: 300;
  color: var(--gray); letter-spacing: 0.03em; line-height: 1.6;
  max-width: 700px;
  animation: fadeUp 1.2s ease-out 0.3s both;
}
.hero-sub {
  position: relative; z-index: 2; margin-top: 16px;
  font-size: clamp(12px, 1.4vw, 15px); font-weight: 400;
  color: rgba(160,174,192,0.7); max-width: 580px; line-height: 1.7;
  animation: fadeUp 1.2s ease-out 0.45s both;
}
.hero-cta {
  position: relative; z-index: 2; margin-top: 40px;
  display: inline-block; padding: 14px 40px;
  border: 1.5px solid var(--red); color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; transition: background 0.3s;
  animation: fadeUp 1.2s ease-out 0.6s both;
}
.hero-cta:hover { background: var(--red); }
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PAGE HEADER - shorter navy header for inner pages
   Derived from the hero vocabulary (navy ground, red accent).
   ============================================================ */
.page-header {
  background: var(--navy);
  padding: 180px 48px 80px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(215,38,56,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 30%, rgba(160,174,192,0.04) 0%, transparent 40%);
}
.page-header .section-inner { position: relative; z-index: 2; }
.page-header .section-label { color: var(--red); }
.page-header h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 600; line-height: 1.15; color: var(--white);
  max-width: 800px; margin-bottom: 24px;
}
.page-header p {
  font-size: 16px; font-weight: 400; line-height: 1.8;
  color: var(--gray); max-width: 640px;
}
.page-header p a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.page-header p a:hover { color: var(--red); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 120px 48px; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--red); margin-bottom: 24px;
}
.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600; line-height: 1.2;
  color: var(--navy); margin-bottom: 24px; max-width: 700px;
}
.section-body {
  font-size: 16px; font-weight: 400; line-height: 1.8;
  color: var(--text); max-width: 640px;
}
.section-inner { max-width: 1100px; margin: 0 auto; }

/* MISSION / WHO WE ARE */
.mission { background: var(--light); }
.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.mission-pillars {
  display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 40px;
}
.pillar {
  display: flex; gap: 20px; align-items: flex-start;
}
.pillar-marker {
  width: 3px; min-height: 100%; background: var(--red); flex-shrink: 0;
  border-radius: 2px;
}
.pillar h4 {
  font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px;
}
.pillar p {
  font-size: 13px; line-height: 1.7; color: var(--text);
}

/* EXPERTISE */
.expertise { background: var(--white); }
.expertise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 64px;
}
.expertise-card {
  padding: 40px 32px; border: 1px solid #e2e6ea;
  border-top: 3px solid var(--navy);
  transition: border-top-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.expertise-card:hover {
  border-top-color: var(--red); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11,31,59,0.08);
}
.expertise-card h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.expertise-card p { font-size: 14px; line-height: 1.7; color: var(--text); }
.card-accent { width: 24px; height: 2px; background: var(--red); margin-bottom: 20px; }

/* IMPACT */
.impact { background: var(--navy); color: var(--white); }
.impact .section-label { color: var(--red); }
.impact .section-heading { color: var(--white); }
.impact .section-body { color: var(--gray); }
.impact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 40px; margin-top: 64px;
}
.impact-item {
  padding: 36px; border: 1px solid rgba(160,174,192,0.15);
  border-left: 3px solid var(--red);
  transition: border-color 0.3s, background 0.3s;
}
.impact-item:hover { background: rgba(255,255,255,0.03); border-left-color: var(--white); }
.impact-item h3 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.impact-item p { font-size: 13px; line-height: 1.7; color: var(--gray); }

/* ANDREA / FOUNDER */
.founder { background: var(--light); }
.founder-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.founder-credentials {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
}
.credential-tag {
  padding: 6px 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--navy); color: var(--navy);
}
.founder-quote {
  margin-top: 40px; padding: 32px;
  border-left: 3px solid var(--red); background: var(--white);
}
.founder-quote p {
  font-size: 15px; font-weight: 400; font-style: italic;
  color: var(--navy); line-height: 1.7;
}
.founder-quote cite {
  display: block; margin-top: 12px;
  font-size: 12px; font-style: normal; font-weight: 600;
  color: var(--gray); letter-spacing: 1px; text-transform: uppercase;
}
.career-timeline { margin-top: 40px; }
.career-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #e2e6ea;
}
.career-item:last-child { border-bottom: none; }
.career-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); margin-top: 6px; flex-shrink: 0;
}
.career-role { font-size: 14px; font-weight: 600; color: var(--navy); }
.career-org { font-size: 13px; color: var(--text); margin-top: 2px; }

/* APPROACH */
.approach { background: var(--white); }
.approach-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-top: 64px;
}
.step-number {
  font-size: 48px; font-weight: 700; color: var(--red);
  opacity: 0.3; line-height: 1; margin-bottom: 16px;
}
.step-title { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.step-desc { font-size: 13px; line-height: 1.7; color: var(--text); }

/* ============================================================
   LINK-BACK BAND - cross-page routing strip (e.g. HHS -> Home/Services)
   Built from the existing card/border vocabulary.
   ============================================================ */
.linkband { background: var(--light); }
.linkband .section-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px;
}
.linkband-text { max-width: 640px; }
.linkband-text h3 { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.linkband-text p { font-size: 15px; line-height: 1.7; color: var(--text); }
.btn-outline {
  display: inline-block; padding: 14px 36px;
  border: 1.5px solid var(--navy); color: var(--navy);
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; transition: background 0.3s, color 0.3s; white-space: nowrap;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ============================================================
   WOSB BADGE - placeholder for the official SBA/WOSB mark (§8).
   Styled from the existing credential-tag vocabulary. Swap the
   inner markup for the supplied official icon when it arrives.
   ============================================================ */
.wosb-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border: 1px solid var(--gray);
  border-radius: 4px; text-decoration: none;
}
.wosb-badge .wosb-seal {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid var(--red);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--red);
}
.wosb-badge .wosb-text {
  display: flex; flex-direction: column; line-height: 1.3;
}
.wosb-badge .wosb-text strong {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--navy);
}
.wosb-badge .wosb-text span {
  font-size: 10px; letter-spacing: 0.5px; color: var(--text);
}
/* Light variant - light text on dark grounds (footer, credibility band) */
footer .wosb-badge, .impact .wosb-badge { border-color: rgba(160,174,192,0.4); }
footer .wosb-badge .wosb-text strong, .impact .wosb-badge .wosb-text strong { color: var(--white); }
footer .wosb-badge .wosb-text span, .impact .wosb-badge .wosb-text span { color: var(--gray); }
.impact .wosb-badge .wosb-seal { color: var(--red); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--light); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: 'Montserrat', sans-serif; font-size: 14px; padding: 14px 18px;
  border: 1px solid #d1d5db; background: var(--white);
  color: var(--navy); outline: none; transition: border-color 0.3s;
  -webkit-appearance: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--navy); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select { color: var(--gray); }
.contact-form button {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; padding: 16px 40px;
  background: var(--navy); color: var(--white);
  border: none; cursor: pointer; transition: background 0.3s;
  align-self: flex-start;
}
.contact-form button:hover { background: var(--red); }
.contact-info h3 {
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy); margin-bottom: 8px;
}
.contact-info p { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 32px; }
.contact-info a { color: var(--navy); text-decoration: none; }
.contact-info a:hover { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy); padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.footer-logo {
  font-weight: 600; font-size: 12px; letter-spacing: 3px;
  color: var(--white); text-transform: uppercase;
}
.footer-logo span { color: var(--red); }
.footer-right { text-align: right; }
.footer-copy { font-size: 11px; color: var(--gray); letter-spacing: 1px; }
.footer-link {
  display: block; margin-top: 8px; font-size: 11px;
  color: var(--gray); letter-spacing: 1px; text-decoration: none;
  transition: color 0.3s;
}
.footer-link:hover { color: var(--white); }
.footer-cert {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray); text-decoration: none;
  transition: color 0.3s;
}
.footer-cert:hover { color: var(--white); }

/* Official SBA WOSB mark - light backgrounds only (white logo ground) */
.wosb-official { display: block; width: 150px; height: auto; }

/* ============================================================
   HOME - headline-led hero, partner paths, four buckets, CTA band.
   All derived from the existing card / section vocabulary.
   ============================================================ */
.hero-headline {
  position: relative; z-index: 2;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 600; line-height: 1.15;
  color: var(--white); width: 100%; max-width: 900px;
  animation: fadeUp 1.2s ease-out;
}
.hero .hero-sub { width: 100%; margin-top: 28px; }

.partner { background: var(--light); }
.partner-band { background: var(--light); }

/* Partner paths and four buckets reuse .expertise-card in 2-col grids */
.partner-grid, .bucket-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 40px; margin-top: 64px;
}
a.expertise-card { text-decoration: none; display: block; }
.partner-num {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--red); margin-bottom: 12px;
}
.path-tag {
  display: inline-block; margin-top: 16px;
  padding: 4px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--red); border: 1px solid var(--red);
}
.deliverable { display: block; margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--navy); }
.deliverable strong {
  display: block; margin-bottom: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--red);
}

/* Credibility band reuses .impact; allow one full-width item */
.impact-item.wide { grid-column: 1 / -1; }
.impact-item .wosb-badge { margin-top: 16px; }

/* SERVICES - bucket detail layout (two columns: narrative + deliverables) */
.svc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start; margin-top: 44px;
}
.svc-when { margin-top: 20px; }
.svc-when strong { color: var(--navy); }
.deliverables-title {
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy); margin-bottom: 20px;
}
.deliverables-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.deliverables-list li {
  position: relative; padding-left: 24px;
  font-size: 14px; line-height: 1.6; color: var(--text);
}
.deliverables-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 12px; height: 2px; background: var(--red);
}

/* Footer CTA band (§4.7) */
.cta-band { background: var(--navy); text-align: center; }
.cta-band .section-label { color: var(--red); }
.cta-band h2 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 600;
  color: var(--white); margin: 0 auto 32px; max-width: 640px;
}
.cta-band .hero-cta { animation: none; margin-top: 0; }

/* ============================================================
   PODCAST FEATURE band (§4.5) - cover art + promo, two columns
   ============================================================ */
.podcast { background: var(--light); }
.podcast-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 56px; align-items: center; margin-top: 8px;
}
.podcast-art {
  width: 280px; height: 280px; flex-shrink: 0;
  background: var(--navy); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e2e6ea;
}
.podcast-art span {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  text-align: center; padding: 0 24px; line-height: 1.7;
}
.podcast-art .mark-mini {
  position: absolute; bottom: 18px; left: 0; right: 0;
  font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.3);
  text-transform: uppercase; text-align: center;
}
.podcast-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.podcast-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; align-items: center; }

/* Responsive YouTube embed */
.video-embed {
  position: relative; width: 100%; max-width: 760px;
  aspect-ratio: 16 / 9; margin-top: 8px; background: var(--navy);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Podcast platform logo links (uniform rounded-square tiles) */
.podcast-platforms { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.podcast-platforms a {
  display: inline-flex; flex-direction: column; align-items: center; gap: 9px;
  text-decoration: none; transition: transform 0.2s;
}
.podcast-platforms a:hover { transform: translateY(-3px); }
.podcast-platforms .tile {
  width: 56px; height: 56px; border-radius: 13px; background: var(--white);
  border: 1px solid #e2e6ea; box-shadow: 0 4px 14px rgba(11,31,59,0.10);
  display: flex; align-items: center; justify-content: center;
}
.podcast-platforms .tile img { max-width: 40px; max-height: 40px; object-fit: contain; display: block; }
.podcast-platforms span {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Nav collapses to the hamburger before the full wordmark + seven links
   would crowd. This breakpoint is intentionally separate from the layout
   one below so grids still go single-column at 900px. */
@media (max-width: 1120px) {
  nav { padding: 20px 24px; }
  nav.scrolled, nav.nav--solid { padding: 14px 24px; }

  /* Mobile menu: hamburger reveals a full-width navy dropdown */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,31,59,0.98);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 520px; }
  .nav-links a {
    padding: 16px 24px; font-size: 13px;
    border-bottom: 1px solid rgba(160,174,192,0.12);
  }
  .nav-links a[aria-current="page"] {
    border-bottom: 1px solid rgba(160,174,192,0.12);
    border-left: 3px solid var(--red); padding-left: 21px;
  }
}

@media (max-width: 900px) {
  section { padding: 80px 24px; }
  .hero { padding: 100px 24px 70px; }
  .page-header { padding: 140px 24px 64px; }
  .mission-grid, .founder-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .expertise-grid, .impact-grid, .partner-grid, .bucket-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; gap: 36px; }
  .podcast-grid { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: center; }
  .podcast-art { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1 / 1; }
  .podcast-links { justify-content: center; }
  .approach-steps { grid-template-columns: 1fr 1fr; }
  .linkband .section-inner { flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .footer-right { text-align: center; }
}
@media (max-width: 600px) {
  .approach-steps { grid-template-columns: 1fr; }
}
