/* ============================================
   FIVE STAR SOLUTIONS GROUP — Design Tokens
   ============================================ */
:root {
  --navy: #0E2340;
  --navy-panel: #152C4F;
  --navy-deep: #081527;
  --gold: #C6A15B;
  --gold-bright: #D9B876;
  --ivory: #FAF8F3;
  --ivory-dim: #F1EDE3;
  --charcoal: #242A32;
  --slate: #5C6672;
  --line: rgba(14, 35, 64, 0.12);
  --line-on-navy: rgba(250, 248, 243, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 4px;
  --shadow-soft: 0 12px 32px rgba(14, 35, 64, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; color: var(--charcoal); }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.eyebrow.center { text-align: center; }
h2.center { text-align: center; max-width: 700px; margin: 0 auto 3rem; }

.section { padding: 5.5rem 1.5rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }

.lead { font-size: 1.15rem; color: var(--slate); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(198, 161, 91, 0.35);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark { display: flex; flex-direction: column; gap: 0.15rem; }
.logo-img { height: 44px; width: auto; display: block; }
.wordmark-stars {
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
}
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.wordmark-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--slate);
  margin-top: 0.1rem;
}

.main-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 0.3rem 0;
}
.nav-list a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.nav-list a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--navy);
  color: var(--ivory) !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--navy-panel); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  display: block;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ivory);
  padding: 5rem 1.5rem 4rem;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  min-width: 0;
}
.hero-inner > * { min-width: 0; }
.hero-copy h1 { color: var(--ivory); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(250, 248, 243, 0.78);
  max-width: 560px;
  margin-top: 1.2rem;
}

.hero-questions {
  list-style: none;
  margin: 2rem 0 2.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-questions li {
  border: 1px solid var(--line-on-navy);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}
.q-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--gold-bright);
}

.hero-industries { border-top: 1px solid var(--line-on-navy); padding-top: 2rem; }
.industries-label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(250, 248, 243, 0.55);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.industry-strip {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.industry-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 108px;
  padding: 1.1rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-on-navy);
  opacity: 0.55;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}
.industry-card.active {
  opacity: 1;
  border-color: var(--gold);
  background: rgba(198, 161, 91, 0.08);
}
.industry-card svg { width: 26px; height: 26px; stroke: var(--gold-bright); }
.industry-card span {
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  color: rgba(250, 248, 243, 0.85);
}

/* ============ Insight / Pain / Bridge (narrow text sections) ============ */
.insight { background: var(--ivory); }
.pain {
  background: var(--ivory-dim);
  text-align: center;
}
.pain-line { color: var(--slate); font-size: 1.05rem; }
.pain-question {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--navy);
  font-weight: 600;
}
.bridge { text-align: center; }
.bridge-line { color: var(--slate); font-size: 1.05rem; }
.bridge-emphasis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}

/* ============ Video ============ */
.video-section { padding-top: 0; padding-bottom: 0; }
.video-frame {
  aspect-ratio: 16/9;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(250, 248, 243, 0.7);
}
.play-ring {
  width: 64px; height: 64px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.video-placeholder p { color: rgba(250, 248, 243, 0.7); margin: 0; font-size: 0.9rem; }

/* ============ Pillars / Pathway ============ */
.pillars { background: var(--ivory); }
.pathway {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.pathway-line {
  position: absolute;
  top: 28px;
  left: calc(16.66% + 10px);
  right: calc(16.66% + 10px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.pillar-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.pillar-marker {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.pillar-question {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
}
.pillar-card em { font-style: italic; color: var(--navy); }

/* ============ Final CTA ============ */
.final-cta {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
  border-radius: 0;
}
.final-cta h2 { color: var(--ivory); }
.final-cta p { color: rgba(250, 248, 243, 0.75); margin-bottom: 2rem; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-deep); color: rgba(250, 248, 243, 0.8); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .wordmark-stars { display: block; margin-bottom: 0.4rem; }
.footer-brand .wordmark-text { color: var(--ivory); font-size: 1.1rem; }
.footer-brand .wordmark-sub { color: rgba(250, 248, 243, 0.55); }
.footer-logo-img { height: 52px; width: auto; display: block; }
.footer-tag { margin-top: 0.8rem; font-style: italic; font-family: var(--font-display); color: var(--gold-bright); }

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.5);
  margin-bottom: 1rem;
}
.footer-col p { margin-bottom: 0.6rem; font-size: 0.92rem; color: #FFFFFF; }
.footer-col a { color: #FFFFFF; }
.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid var(--line-on-navy);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #FFFFFF;
}
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { color: #FFFFFF; }
.footer-legal a:hover { color: var(--gold-bright); }

/* ============ Responsive ============ */
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero-industries { border-top: none; padding-top: 0; }
  .industry-strip { flex-direction: column; overflow: visible; }
}

@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; padding: 0.6rem 0; }
  .nav-cta { display: inline-block; margin-top: 0.6rem; }
  .pathway { grid-template-columns: 1fr; }
  .pathway-line { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1.25rem; }
}
