/* =========================================
   ContractorSource — Landing Page Styles
   ========================================= */

:root {
  --bg: #faf9f7;
  --bg-alt: #f0ede8;
  --fg: #1a1f2e;
  --fg-muted: #6b7280;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-subtle: rgba(245, 158, 11, 0.08);
  --border: rgba(26, 31, 46, 0.1);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(26, 31, 46, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 31, 46, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 600; font-family: 'DM Sans', sans-serif; }

p { color: var(--fg-muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Section eyebrow */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: 'DM Sans', sans-serif;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
}

.nav-tagline {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-alt);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(26, 31, 46, 0.025) 40px,
      rgba(26, 31, 46, 0.025) 41px
    );
  pointer-events: none;
}

.hero-content {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--fg);
  line-height: 1.08;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

.badge svg { color: var(--accent); flex-shrink: 0; }

/* Hero graphic */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  position: relative;
  width: 320px;
  height: 320px;
}

.graphic-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.graphic-ring-1 { width: 320px; height: 320px; animation: spin 20s linear infinite; }
.graphic-ring-2 { width: 240px; height: 240px; animation: spin 14s linear infinite reverse; }
.graphic-ring-3 { width: 160px; height: 160px; animation: spin 9s linear infinite; }

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.graphic-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: var(--bg);
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.graphic-dot {
  position: absolute;
  z-index: 3;
}

.dot-1 { top: 0; left: 50%; transform: translateX(-50%); }
.dot-2 { top: 50%; right: 0; transform: translateY(-50%); }
.dot-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.dot-4 { top: 50%; left: 0; transform: translateY(-50%); }

/* =========================================
   TRUSTBAR
   ========================================= */
.trustbar {
  background: var(--fg);
  padding: 1rem 1.5rem;
}

.trustbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trustbar-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.trustbar-cities {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.city-pill {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
}

.city-sep { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

/* =========================================
   PROBLEM
   ========================================= */
.problem {
  padding: 5rem 1.5rem;
  background: var(--bg);
}

.problem-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.problem-header {
  max-width: 560px;
  margin-bottom: 3rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.problem-card--bad {
  border-left: 3px solid #dc2626;
}

.problem-card-icon {
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =========================================
   LEAD FLOW
   ========================================= */
.leadflow {
  padding: 5rem 1.5rem;
  background: var(--bg-alt);
}

.leadflow-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.leadflow-header {
  margin-bottom: 3rem;
}

.leadflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.leadflow-step {
  display: grid;
  grid-template-columns: 80px 2px 1fr;
  gap: 0 2rem;
  align-items: flex-start;
}

.step-number {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  padding-top: 0.25rem;
}

.step-connector {
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  min-height: 120px;
  align-self: stretch;
}

.step-connector--last { background: none; min-height: 0; }

.step-content {
  padding-bottom: 2.5rem;
}

.step-icon {
  margin-bottom: 1rem;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9rem;
  max-width: 480px;
}

/* CTA box */
.leadflow-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.cta-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}

.cta-icon { flex-shrink: 0; }

.cta-headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.cta-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* =========================================
   GUARANTEE
   ========================================= */
.guarantee {
  padding: 5rem 1.5rem;
  background: var(--fg);
}

.guarantee-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.guarantee-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.guarantee-icon {
  margin-bottom: 1.25rem;
}

.guarantee-card h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.guarantee-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* Quote */
.guarantee-quote {
  position: relative;
  padding-left: 2rem;
  max-width: 640px;
}

.quote-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.guarantee-quote blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: white;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.guarantee-quote cite {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-style: normal;
}

/* =========================================
   CLOSING
   ========================================= */
.closing {
  padding: 6rem 1.5rem;
  background: var(--accent-subtle);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.closing-headline {
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.closing-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.closing-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.closing-graphic {
  position: relative;
  width: 280px;
  height: 280px;
}

.closing-square {
  position: absolute;
  border-radius: 16px;
  border: 1.5px solid var(--accent);
}

.closing-square-1 {
  width: 280px;
  height: 280px;
  top: 0;
  left: 0;
  transform: rotate(6deg);
  opacity: 0.3;
}

.closing-square-2 {
  width: 220px;
  height: 220px;
  bottom: 0;
  right: 0;
  transform: rotate(-4deg);
  opacity: 0.2;
}

.closing-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--fg);
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  max-width: 340px;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual { display: none; }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guarantee-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .closing-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .closing-visual { display: none; }

  .leadflow-step {
    grid-template-columns: 56px 1px 1fr;
  }

  .step-connector { min-height: 80px; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .problem, .leadflow, .guarantee, .closing { padding: 3.5rem 1.25rem; }

  .trustbar-cities {
    gap: 0.35rem;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}