/* ============================================================
   BSA STRATEGIES — Government Relations & Public Affairs
   Aesthetic: refined civic authority (navy · antique gold · paper)
   ============================================================ */

:root {
  /* Brand — derived from the BSA Strategies logo */
  --navy-900: #08203A;
  --navy-800: #0E2A47;   /* primary brand navy */
  --navy-700: #143356;
  --navy-600: #1E3F63;

  --gold-600: #9C7536;
  --gold-500: #B48C50;   /* logo gold */
  --gold-400: #C8A463;   /* bright accent */
  --gold-200: #E4D3AC;

  --paper:    #FAF7F0;   /* warm off-white */
  --paper-2:  #F3EDE1;   /* deeper paper for alt sections */
  --ink:      #1B2330;   /* primary text on light */
  --ink-soft: #4C5563;   /* secondary text on light */
  --cream:    #F4EFE3;   /* text on navy */
  --cream-soft: #C3CAD6; /* muted text on navy */
  --slate:    #5A6E82;

  --line-light: rgba(27, 35, 48, 0.12);
  --line-dark:  rgba(244, 239, 227, 0.16);

  --shadow-sm: 0 2px 10px rgba(8, 32, 58, 0.06);
  --shadow-md: 0 18px 50px -22px rgba(8, 32, 58, 0.35);
  --shadow-lg: 0 40px 80px -30px rgba(8, 32, 58, 0.45);

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { margin: 0; font-weight: 500; font-family: var(--font-serif); }

p { margin: 0; }

::selection { background: var(--gold-400); color: var(--navy-900); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-800); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* grain / paper texture overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* shared accents */
.star { color: var(--gold-500); font-style: normal; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: flex; align-items: center; gap: 0.7rem;
  margin: 0 0 1.4rem;
}
.eyebrow-light { color: var(--gold-400); }
.eyebrow .idx {
  font-variant-numeric: tabular-nums;
  color: var(--ink); opacity: 0.45;
  padding-right: 0.7rem; border-right: 1px solid var(--line-light);
}
.eyebrow-light .idx { color: var(--cream); border-color: var(--line-dark); }

em {
  font-style: italic;
  color: var(--gold-600);
}

/* section rhythm */
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8.5rem); z-index: 2; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--navy-800); color: var(--cream); }

.section-title {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 18ch;
}
.section-title-light { color: var(--cream); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro { color: var(--ink-soft); font-size: 1.1rem; margin-top: 1.4rem; max-width: 58ch; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary { --btn-bg: var(--gold-500); --btn-fg: var(--navy-900); }
.btn-primary:hover { --btn-bg: var(--gold-400); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--cream);
  border-color: rgba(244, 239, 227, 0.4);
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-200); box-shadow: none; transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.7);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line-light);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 54px; width: auto; transition: transform 0.4s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.03); }

.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink); position: relative; padding: 0.4rem 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--gold-500); transition: width 0.35s var(--ease);
}
.nav-list a:hover { color: var(--gold-600); }
.nav-list a:hover::after { width: 100%; }
.nav-cta { padding: 0.7rem 1.3rem; }

/* mobile nav */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy-800); transition: transform 0.35s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line-light);
  background: var(--paper);
  padding: 1.5rem var(--gutter) 2rem;
}
.mobile-menu ul { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.3rem; }
.mobile-menu a { display: block; padding: 0.8rem 0; font-size: 1.1rem; font-family: var(--font-serif); border-bottom: 1px solid var(--line-light); }
.mobile-menu .btn { width: 100%; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative; z-index: 2;
  background: var(--navy-800);
  color: var(--cream);
  padding-block: clamp(5rem, 13vw, 9.5rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(200,164,99,0.16), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(30,63,99,0.6), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.hero-seal {
  position: absolute; top: 50%; right: -6%; transform: translateY(-50%);
  width: clamp(360px, 46vw, 660px); height: auto;
  color: var(--gold-400); opacity: 0.16;
  animation: seal-rotate 80s linear infinite;
}
@keyframes seal-rotate { to { transform: translateY(-50%) rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; max-width: 940px; }
.hero-eyebrow { color: var(--gold-400); }
.hero-title {
  font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 400;
  margin: 0 0 1.6rem;
  max-width: 16ch;
}
.hero-title em { color: var(--gold-400); }
.hero-lede {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  color: var(--cream-soft);
  max-width: 60ch;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero-credit {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.95rem; color: var(--cream-soft);
  padding-top: 1.8rem; border-top: 1px solid var(--line-dark);
  max-width: 52ch;
}
.hero-credit strong { color: var(--cream); font-weight: 600; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-soft);
}
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--gold-400), transparent); animation: scroll-pulse 2.4s var(--ease) infinite; }
@keyframes scroll-pulse { 0%,100% { opacity: 0.4; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ───────────────────────── About ───────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-portrait { position: relative; }
.portrait-frame {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--navy-800);
}
.portrait-frame img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top;
  filter: saturate(1.02) contrast(1.02);
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(244,239,227,0.25);
  background: linear-gradient(to top, rgba(8,32,58,0.28), transparent 38%);
  pointer-events: none;
}
.portrait-corner { position: absolute; width: 34px; height: 34px; z-index: 3; }
.portrait-corner.tl { top: 14px; left: 14px; border-top: 2px solid var(--gold-400); border-left: 2px solid var(--gold-400); }
.portrait-corner.br { bottom: 14px; right: 14px; border-bottom: 2px solid var(--gold-400); border-right: 2px solid var(--gold-400); }
.portrait-caption {
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: 1.3rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.4;
}
.portrait-caption strong { color: var(--ink); font-weight: 600; }
.portrait-caption .star { font-size: 1.1rem; }

.about-body .prose { margin-top: 1.8rem; }
.prose p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 56ch; }
.prose p:first-of-type {
  font-size: 1.2rem; color: var(--ink);
}

.cred-list { list-style: none; margin: 2.2rem 0 0; padding: 1.8rem 0 0; border-top: 1px solid var(--line-light); display: grid; gap: 0.9rem; }
.cred-list li { display: flex; align-items: baseline; gap: 0.8rem; font-size: 0.98rem; color: var(--ink); font-weight: 500; }

/* ───────────────────────── Services ───────────────────────── */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.card {
  position: relative; background: var(--paper);
  border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 2.2rem 1.9rem 2rem;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-num {
  font-family: var(--font-serif); font-size: 0.85rem; font-weight: 500;
  color: var(--gold-600); letter-spacing: 0.1em;
  display: block; margin-bottom: 1.1rem;
}
.card-title { font-size: 1.32rem; line-height: 1.2; color: var(--ink); margin-bottom: 0.8rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ───────────────────────── Approach ───────────────────────── */
.approach { overflow: hidden; }
.approach-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(200,164,99,0.1), transparent 55%),
    radial-gradient(60% 90% at -10% 100%, rgba(30,63,99,0.5), transparent 60%);
}
.approach-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.approach-lede { color: var(--cream-soft); font-size: 1.1rem; margin: 1.6rem 0 2.2rem; max-width: 46ch; }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  padding: 1.6rem 0; border-top: 1px solid var(--line-dark);
}
.pillar:last-child { border-bottom: 1px solid var(--line-dark); }
.pillar-num {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--gold-400);
  font-variant-numeric: tabular-nums; padding-top: 0.15rem;
}
.pillar h3 { font-size: 1.3rem; color: var(--cream); margin-bottom: 0.35rem; }
.pillar p { color: var(--cream-soft); font-size: 0.98rem; }

/* ───────────────────────── Stats band ───────────────────────── */
.stats { padding-block: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { position: relative; display: flex; flex-direction: column; gap: 0.7rem; padding: 0.3rem 1.4rem; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 8%; height: 84%; width: 1px; background: var(--line-dark);
}
.stat-num {
  font-family: var(--font-serif); font-weight: 500; color: var(--gold-400);
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.02em;
}
.stat-suffix { font-size: 0.42em; vertical-align: super; margin-left: 0.05em; }
.stat-label { color: var(--cream-soft); font-size: 0.92rem; line-height: 1.45; max-width: 24ch; }

/* ───────────────────────── Contact ───────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-lede { color: var(--ink-soft); font-size: 1.1rem; margin: 1.4rem 0 2.4rem; max-width: 46ch; }

.contact-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.contact-details li { display: grid; gap: 0.25rem; }
.contact-label {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-600); font-weight: 600;
}
.contact-details a, .contact-details span:not(.contact-label) { font-size: 1.05rem; color: var(--ink); }
.contact-details a { position: relative; width: fit-content; }
.contact-details a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.contact-details a:hover::after { transform: scaleX(1); }

.contact-form {
  background: var(--paper-2); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.78rem; letter-spacing: 0.06em; font-weight: 600; color: var(--ink); text-transform: uppercase; }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 0.8rem 0.9rem; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(180,140,80,0.15);
}
.field textarea { resize: vertical; }
.form-note { font-size: 0.9rem; padding: 0.6rem 0; }
.form-note.ok { color: var(--gold-600); }
.form-note.err { color: #a3402f; }
/* honeypot — hidden from humans, catches bots */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer { background: var(--navy-900); color: var(--cream); position: relative; z-index: 2; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark);
}
.footer-logo { height: 96px; width: auto; }
.footer-tag { font-family: var(--font-serif); font-style: italic; color: var(--gold-200); margin-top: 0.8rem; font-size: 1.05rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { font-size: 0.9rem; color: var(--cream-soft); letter-spacing: 0.02em; transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--gold-400); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  padding-block: 1.6rem 2.2rem; font-size: 0.82rem; color: var(--cream-soft);
}

/* ───────────────────────── Reveal animations ───────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* staggered hero load */
[data-stagger] { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; }
[data-stagger="1"] { animation-delay: 0.1s; }
[data-stagger="2"] { animation-delay: 0.25s; }
[data-stagger="3"] { animation-delay: 0.42s; }
[data-stagger="4"] { animation-delay: 0.58s; }
[data-stagger="5"] { animation-delay: 0.74s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 940px) {
  .nav-list, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .about-grid, .approach-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .stat { padding-inline: 0; }
  .stat + .stat::before { display: none; }
  .hero-seal { opacity: 0.1; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-stagger] { opacity: 1; transform: none; }
  .hero-seal { animation: none; }
}
