/* =============================================
   Built For Product — Palette 1: Warm Authority
   ============================================= */

/* --- Variables --- */
:root {
  --primary: #1A1A2E;
  --accent: #E07A5F;
  --accent-hover: #D06A4F;
  --bg: #FAF7F2;
  --bg-alt: #F3EDE4;
  --text: #2D2D2D;
  --text-muted: #5A5A5A;
  --text-light: #8A8A8A;
  --card-bg: #FFFFFF;
  --card-border: #E8E2D8;
  --white: #FFFFFF;
  --cream: #FAF7F2;
  --radius: 10px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Container --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--cream);
}

/* --- Typography --- */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: -0.5px;
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.3px;
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}
.highlight {
  color: var(--accent);
}
.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ============================
   NAV
   ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}
.logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--primary);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}
.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }
.mobile-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ============================
   HERO
   ============================ */
.hero {
  padding: 140px 0 80px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero-sub {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.hero .btn {
  margin-top: 32px;
}

/* ============================
   SECTIONS
   ============================ */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-alt);
}

/* ============================
   PAIN CARDS
   ============================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: #FDF0EB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================
   PROCESS STEPS
   ============================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.step {
  position: relative;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================
   CASE STUDIES
   ============================ */
.cases {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}
.case {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.case:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}
.case-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.case-company {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.case-label {
  font-size: 0.8rem;
  color: var(--text-light);
}
.case h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.case-problem {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.case-action {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.case-results {
  display: flex;
  gap: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
}
.metric {
  display: flex;
  flex-direction: column;
}
.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.metric-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ============================
   ABOUT
   ============================ */
.about-content h2 {
  margin-bottom: 24px;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 680px;
}
.credibility {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.credibility span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.testimonial {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 3px solid var(--accent);
}
.testimonial p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  font-style: normal;
}

/* ============================
   CTA SECTION
   ============================ */
.section-cta {
  background: var(--primary);
  color: var(--cream);
  text-align: center;
  padding: 80px 0;
}
.section-cta h2 {
  color: var(--cream);
  margin-bottom: 16px;
}
.section-cta p {
  color: #A0A0B0;
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.section-cta .btn {
  margin-bottom: 20px;
}
.cta-note {
  font-size: 0.85rem !important;
  color: #6A6A80 !important;
  max-width: 440px !important;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--primary);
  border-top: 1px solid #2A2A3E;
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.logo-footer {
  color: var(--cream);
}
.logo-footer span {
  color: var(--accent);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.85rem;
  color: #8A8A9A;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--cream);
}
.footer-copy {
  font-size: 0.8rem;
  color: #5A5A6A;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .hero {
    padding: 110px 0 60px;
    min-height: auto;
  }

  .card-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .case-results {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }
  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .credibility {
    gap: 20px;
  }

  .section {
    padding: 60px 0;
  }

  .section-cta {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .case {
    padding: 24px 20px;
  }
  .card {
    padding: 24px 20px;
  }
}
