/* Power to the People — Homepage Styles
   Brand tokens per brand-system.md
   Functional rules per DESIGN.md (mobile-first, WCAG AA, perf targets) */

/* ============================================================
   1. Brand tokens
   ============================================================ */
:root {
  /* Primary palette (sampled from Andrew's logo) */
  --maroon: #8B2C2C;
  --maroon-dark: #6B2020;
  --gold: #C8983B;
  --gold-dark: #A67D2C;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --cream: #FDFBF6;

  /* Secondary palette (van wrap accents — use sparingly) */
  --sun: #F4C238;
  --pink: #E5408F;
  --coral: #F26F4A;
  --purple: #8E4AC4;

  /* Neutrals */
  --slate: #1A1A1A;
  --stone: #6B6760;
  --line: #EEEAE2;
  --moss: #3D6B4C;

  /* Type scale (mobile-first; desktop overrides at lg) */
  --fs-h1: 32px;
  --fs-h2: 24px;
  --fs-h3: 20px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-button: 18px;
  --lh-h1: 1.15;
  --lh-h2: 1.25;
  --lh-h3: 1.35;
  --lh-body: 1.55;

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Layout */
  --max-w: 1200px;
  --radius: 8px;
  --header-h: 64px;
}

@media (min-width: 1024px) {
  :root {
    --fs-h1: 48px;
    --fs-h2: 32px;
    --fs-h3: 24px;
    --header-h: 80px;
  }
}

/* ============================================================
   2. Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--slate);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Mona Sans', 'Public Sans', -apple-system, sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }

p { margin: 0; }
a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   3. Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.section {
  padding: var(--sp-7) 0;
}
@media (min-width: 1024px) {
  .section { padding: var(--sp-9) 0; }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--black);
  color: var(--white);
  padding: var(--sp-2) var(--sp-4);
  z-index: 200;
}
.skip-link:focus { top: 0; }

/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 56px;
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius);
  font-size: var(--fs-button);
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms, background 150ms, box-shadow 150ms;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--maroon);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139,44,44,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
}

.btn-outline-dark {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}
.btn-outline-dark:hover {
  background: var(--maroon);
  color: var(--white);
}

/* ============================================================
   5. Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 200ms;
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  gap: var(--sp-4);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--black);
  font-family: 'Mona Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo img {
  height: 44px;
  width: auto;
}
.logo:hover { text-decoration: none; }
.logo-text {
  display: none;
}
@media (min-width: 768px) {
  .logo img { height: 56px; }
  .logo-text { display: inline; }
}

.nav-desktop {
  display: none;
  gap: var(--sp-5);
  margin-left: auto;
  margin-right: var(--sp-5);
}
.nav-desktop a {
  color: var(--black);
  font-weight: 500;
  font-size: 16px;
}
.nav-desktop a:hover {
  color: var(--maroon);
  text-decoration: none;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.header-phone {
  background: var(--maroon);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.header-phone:hover {
  background: var(--maroon-dark);
  text-decoration: none;
  color: var(--white);
}
.header-phone-text { display: none; }
@media (min-width: 480px) {
  .header-phone-text { display: inline; }
  .header-phone { padding: 12px 20px; font-size: 16px; }
}

/* ============================================================
   6. Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { min-height: 560px; }
}
@media (min-width: 1024px) {
  .hero { min-height: 640px; align-items: center; }
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.45) 60%, rgba(10,10,10,0.15) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--sp-7) 0;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
}
.hero h1 {
  max-width: 42rem;
  margin-bottom: var(--sp-4);
}
.hero-sub {
  max-width: 38rem;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: var(--sp-6);
  color: rgba(255,255,255,0.92);
}
@media (min-width: 1024px) {
  .hero-sub { font-size: 20px; }
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
@media (min-width: 480px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   7. Trust strip
   ============================================================ */
.trust-strip {
  background: var(--black);
  color: var(--white);
  padding: var(--sp-5) 0;
  text-align: center;
  font-weight: 600;
}
.trust-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
  font-size: 15px;
}
.trust-items > * {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.trust-icon {
  color: var(--gold);
  font-weight: 800;
}
@media (min-width: 768px) {
  .trust-items {
    flex-direction: row;
    justify-content: center;
    gap: var(--sp-7);
    font-size: 16px;
  }
}

/* ============================================================
   8. Sections — common
   ============================================================ */
.section-header {
  margin-bottom: var(--sp-6);
  text-align: center;
}
.section-header h2 {
  margin-bottom: var(--sp-3);
}
.section-header p {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--stone);
  font-size: 17px;
}
.section-eyebrow {
  display: inline-block;
  color: var(--maroon);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

/* ============================================================
   9. Services grid
   ============================================================ */
.services {
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--maroon);
  box-shadow: 0 8px 24px rgba(139,44,44,0.08);
}
.service-card h3 {
  color: var(--black);
}
.service-card p {
  color: var(--stone);
  font-size: 16px;
  flex-grow: 1;
}
.service-card-link {
  color: var(--maroon);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-2);
}
.service-card-link::after {
  content: "→";
  transition: transform 150ms;
}
.service-card:hover .service-card-link::after {
  transform: translateX(4px);
}

/* ============================================================
   10. About Andrew
   ============================================================ */
.about {
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: var(--sp-9); }
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--line);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about h2 {
  margin-bottom: var(--sp-4);
}
.about p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  color: var(--slate);
}
.about-signature {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-style: italic;
}

/* ============================================================
   11. Reviews placeholder
   ============================================================ */
.reviews {
  background: var(--white);
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 768px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.review-stars {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: var(--sp-3);
  letter-spacing: 2px;
}
.review-quote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate);
  margin-bottom: var(--sp-4);
}
.review-author {
  font-weight: 700;
  color: var(--black);
  font-size: 14px;
}
.review-source {
  color: var(--stone);
  font-size: 13px;
  margin-top: 2px;
}

/* ============================================================
   12. FAQ
   ============================================================ */
.faq {
  background: var(--cream);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  font-family: 'Mona Sans', 'Public Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { color: var(--maroon); }
.faq-question:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq-toggle {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
  color: var(--maroon);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-question[aria-expanded="true"] .faq-toggle::before { content: "−"; }
.faq-question[aria-expanded="false"] .faq-toggle::before { content: "+"; }
.faq-answer {
  padding-bottom: var(--sp-5);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 65ch;
}
.faq-answer p { margin-bottom: var(--sp-3); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer[hidden] { display: none; }

/* ============================================================
   13. Final CTA
   ============================================================ */
.final-cta {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: var(--sp-9) 0;
}
.final-cta h2 {
  margin-bottom: var(--sp-4);
  color: var(--white);
}
.final-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 36rem;
  margin: 0 auto var(--sp-6);
}
.final-cta-phone {
  display: block;
  font-family: 'Mona Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: var(--sp-5);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.final-cta-phone:hover {
  color: var(--gold);
  text-decoration: underline;
}
@media (min-width: 768px) {
  .final-cta-phone { font-size: 48px; }
}
.final-cta-trust {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ============================================================
   14. Footer
   ============================================================ */
.footer {
  background: var(--maroon-dark);
  color: var(--white);
  padding: var(--sp-7) 0 var(--sp-5);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--sp-7);
  }
}
.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: var(--sp-3);
  font-weight: 800;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-bottom: var(--sp-2);
}
.footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.footer a:hover {
  color: var(--gold);
  text-decoration: none;
}
.footer-brand p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-3);
  line-height: 1.5;
}
.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   15. Utilities
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
