/* ================================================================
   CAMBRIDGE, ID — Service Area Page Styles
   Idaho Build Group | Phase 6 | Premium Tier | ≥400 lines
   ================================================================ */

/* ── 1. HERO ──────────────────────────────────────────────────────── */
.cambridge-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-image: url('<?php echo $clientPhotos[29]; ?>');
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}

.cambridge-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(11, 11, 11, 0.94) 0%,
    rgba(43, 43, 42, 0.68) 50%,
    rgba(43, 43, 42, 0.15) 100%
  );
  z-index: 1;
}

.cambridge-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.cambridge-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-4xl) 0 var(--space-3xl);
}

.cambridge-hero .eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.cambridge-hero .eyebrow-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.cambridge-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  text-wrap: balance;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.025em;
}

.cambridge-hero h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  color: var(--color-secondary);
}

.cb-hero-sub {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.80);
  max-width: 580px;
  margin-bottom: var(--space-xl);
}

.cb-hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cb-breadcrumb .bc-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.cb-breadcrumb .bc-nav a { color: rgba(255,255,255,0.6); transition: color var(--transition-base); }
.cb-breadcrumb .bc-nav a:hover { color: var(--color-secondary); }
.cb-breadcrumb .bc-sep { color: rgba(255,255,255,0.3); }
.cb-breadcrumb .bc-current { color: var(--color-secondary); font-weight: 600; }

/* ── 2. ANSWER BLOCK ──────────────────────────────────────────────── */
.cb-answer-section {
  background: var(--color-bg-alt);
  padding: var(--space-3xl) 0;
}

/* ── 3. LOCAL CONTENT SPLIT ───────────────────────────────────────── */
.cb-local-section {
  background: var(--color-bg);
  padding: var(--space-4xl) 0;
}

.cb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.cb-split-image {
  position: relative;
}

.cb-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cb-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.cb-main-img:hover img {
  transform: scale(1.03);
}

.cb-accent-img {
  position: absolute;
  bottom: -32px;
  right: -24px;
  width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}

.cb-accent-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cb-split-text .eyebrow-label {
  margin-bottom: var(--space-sm);
}

.cb-split-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--color-primary);
  text-wrap: balance;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.cb-split-text .section-subtitle {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.cb-split-text p {
  color: var(--color-text);
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: var(--space-md);
}

/* ── 4. SERVICES GRID ─────────────────────────────────────────────── */
.cb-services-section {
  background: var(--color-bg-alt);
  padding: var(--space-4xl) 0;
}

.cb-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.cb-service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.cb-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(var(--color-secondary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--color-secondary);
}

.cb-service-icon i,
.cb-service-icon svg {
  width: 24px;
  height: 24px;
}

.cb-service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.cb-service-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.cb-service-card a {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.cb-service-card a:hover { color: var(--color-primary); }

/* ── 5. SVG DIVIDER ───────────────────────────────────────────────── */
.cb-divider-angle {
  display: block;
  line-height: 0;
  overflow: hidden;
}

.cb-divider-angle svg {
  display: block;
  width: 100%;
}

/* ── 6. WHY US SECTION ────────────────────────────────────────────── */
.cb-why-section {
  background: var(--color-bg-dark);
  padding: var(--space-4xl) 0;
}

.cb-why-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-4xl);
  align-items: start;
}

.cb-why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.cb-why-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.cb-why-stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.cb-why-stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.cb-why-stat-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.cb-why-text .eyebrow-label {
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.cb-why-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.cb-why-text h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  color: var(--color-secondary);
}

.cb-why-text > p {
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  max-width: 55ch;
}

.cb-reasons {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.cb-reasons li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.cb-reason-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--color-secondary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-secondary);
}

.cb-reason-icon i,
.cb-reason-icon svg {
  width: 20px;
  height: 20px;
}

.cb-reason-body strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cb-reason-body span {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── 7. FAQ SECTION ───────────────────────────────────────────────── */
.cb-faq-section {
  background: var(--color-bg);
  padding: var(--space-4xl) 0;
}

/* ── 8. CTA SECTION ───────────────────────────────────────────────── */
.cb-cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg-dark) 100%);
  padding: var(--space-4xl) 0;
}

.cb-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cb-cta-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  text-wrap: balance;
  margin-bottom: var(--space-md);
}

.cb-cta-inner p {
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── 9. RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cb-split {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .cb-split-image {
    max-width: 560px;
  }

  .cb-accent-img {
    right: 0;
    bottom: -20px;
    width: 180px;
  }

  .cb-why-inner {
    grid-template-columns: 1fr;
  }

  .cb-why-stats {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .cambridge-hero {
    min-height: 70vh;
  }

  .cb-hero-ctas {
    flex-direction: column;
  }

  .cb-hero-ctas .btn-primary,
  .cb-hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .cb-accent-img {
    display: none;
  }
}

@media (max-width: 480px) {
  .cb-services-grid {
    grid-template-columns: 1fr;
  }
}
