/* =========================================================
   Brownlee Digital — styles.css
   Mobile-first, no external JS frameworks
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:   #0F172A;
  --navy2:  #1E293B;
  --green:  #10B981;
  --green-dark: #059669;
  --white:  #FFFFFF;
  --gray50: #F8FAFC;
  --gray100:#F1F5F9;
  --gray300:#CBD5E1;
  --gray500:#64748B;
  --gray700:#334155;
  --text:   #1E293B;
  --max-w:  1100px;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(15,23,42,0.10);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ----- Section spacing ----- */
section {
  padding: 64px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--gray500);
  max-width: 600px;
  line-height: 1.7;
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--green);
}

.nav-cta {
  font-size: 0.9375rem;
  padding: 0 20px;
  min-height: 40px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--navy);
  padding: 72px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -180px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-eyebrow svg {
  flex-shrink: 0;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 640px;
}

.hero h1 .highlight {
  color: var(--green);
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-trust {
  margin-top: 40px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

/* =========================================================
   PROBLEM SECTION
   ========================================================= */
.problem {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0;
}

.problem .section-heading {
  color: var(--white);
}

.problem .section-sub {
  color: rgba(255,255,255,0.6);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.pain-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.pain-icon {
  width: 44px;
  height: 44px;
  background: rgba(16,185,129,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  background: var(--gray50);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray100);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(15,23,42,0.13);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(16,185,129,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray500);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--green-dark);
}

.service-badge {
  display: inline-block;
  background: rgba(16,185,129,0.1);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-it-works {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
  position: relative;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.0625rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.9375rem;
  color: var(--gray500);
  line-height: 1.65;
}

/* =========================================================
   AEO EXPLAINED
   ========================================================= */
.aeo {
  background: var(--navy);
  padding: 64px 0;
}

.aeo .section-heading {
  color: var(--white);
  max-width: 540px;
}

.aeo-body {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 680px;
  margin-top: 20px;
}

.aeo-body p + p {
  margin-top: 16px;
}

.aeo-body strong {
  color: var(--white);
}

.aeo-signals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}

.aeo-signal {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 20px;
}

.aeo-signal svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.aeo-signal h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.aeo-signal p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background: var(--gray50);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-avatar {
  width: 80px;
  height: 80px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.about-avatar svg {
  opacity: 0.9;
}

.about-content h2 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
}

.about-content p {
  font-size: 1rem;
  color: var(--gray500);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content strong {
  color: var(--navy);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  background: var(--white);
}

.faq-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--gray100);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--gray50);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--gray100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--green);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--gray500);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* =========================================================
   CONTACT / CTA
   ========================================================= */
.contact {
  background: var(--navy);
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.contact p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-email {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.45);
}

.contact-email a {
  color: var(--green);
  font-weight: 600;
  transition: color var(--transition);
}

.contact-email a:hover {
  color: #34D399;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-logo span {
  color: var(--green);
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* =========================================================
   MEDIA QUERIES — Tablet (640px+)
   ========================================================= */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aeo-signals {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-options {
    flex-direction: row;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =========================================================
   MEDIA QUERIES — Desktop (900px+)
   ========================================================= */
@media (min-width: 900px) {
  section {
    padding: 96px 0;
  }

  .hero {
    padding: 100px 0 110px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .section-heading {
    font-size: 2.25rem;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps .step {
    flex-direction: column;
  }

  .aeo-signals {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-inner {
    grid-template-columns: auto 1fr;
    gap: 60px;
  }

  .about-avatar {
    width: 100px;
    height: 100px;
  }

  .contact h2 {
    font-size: 2.75rem;
  }

  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
