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

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

.caldwell-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(15, 13, 13, 0.92) 0%,
    rgba(50, 47, 47, 0.74) 50%,
    rgba(43, 43, 42, 0.16) 100%
  );
  z-index: 1;
}

.caldwell-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.88' 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: 210px 210px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

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

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

.caldwell-hero-inner .cw-eyebrow::before {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

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

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

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

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

.cw-bc { position: relative; z-index: 2; margin-top: var(--space-lg); }
.cw-bc ol { display: flex; align-items: center; gap: var(--space-xs); list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.cw-bc a, .cw-bc span { font-size: 0.82rem; color: rgba(255,255,255,0.44); transition: color var(--transition); }
.cw-bc a:hover { color: rgba(255,255,255,0.82); }
.cw-bc .sep { color: rgba(255,255,255,0.24); }
.cw-bc .cur { color: rgba(255,255,255,0.72); }

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

.cw-answer-card {
  background: var(--color-card-tint-1);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-xl) var(--space-2xl);
  max-width: 820px;
  margin: 0 auto;
}

.cw-answer-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 800;
  color: var(--color-primary);
  text-wrap: balance;
  margin-bottom: var(--space-sm);
}

.cw-answer-card p { font-size: 1rem; line-height: 1.75; color: var(--color-text); }

/* ── 3. LOCAL CONTENT ─────────────────────────────────────────────── */
.caldwell-local {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.caldwell-local::before {
  content: 'CALDWELL';
  position: absolute;
  bottom: 30px;
  left: -100px;
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(43, 43, 42,0.035);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
  transform: rotate(8deg);
}

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

.cw-text-col .cw-sect-eyebrow { display: inline-block; margin-bottom: var(--space-sm); }

.cw-text-col h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  text-wrap: balance;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.cw-accent-sub {
  display: block;
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: var(--color-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.cw-text-col p { font-size: 0.97rem; line-height: 1.75; color: var(--color-text); margin-bottom: var(--space-md); max-width: 54ch; }

.cw-facts {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cw-facts li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.cw-facts li:last-child { border-bottom: none; }
.cw-facts li i, .cw-facts li svg { width: 17px; height: 17px; color: var(--color-secondary); flex-shrink: 0; margin-top: 2px; }

.cw-img-col { position: relative; }

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

.cw-img-main img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.cw-img-tag {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  max-width: 200px;
}

.cw-img-tag strong { display: block; font-family: var(--font-heading); font-size: 1rem; font-weight: 800; margin-bottom: 3px; }
.cw-img-tag span { font-size: 0.78rem; color: rgba(255,255,255,0.75); }

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

.caldwell-services .cw-svc-header { text-align: center; margin-bottom: var(--space-3xl); }

.caldwell-services .cw-svc-header 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;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.caldwell-services .cw-svc-header p { font-size: 1rem; color: var(--color-text-light); max-width: 50ch; margin: 0 auto; line-height: 1.65; }

.cw-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.cw-svc-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cw-svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.cw-svc-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-card-tint-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: background var(--transition);
}

.cw-svc-card:hover .cw-svc-icon { background: rgba(193, 118, 67,0.15); }
.cw-svc-icon i, .cw-svc-icon svg { width: 22px; height: 22px; color: var(--color-primary); transition: color var(--transition); }
.cw-svc-card:hover .cw-svc-icon i { color: var(--color-secondary); }
.cw-svc-card h3 { font-family: var(--font-heading); font-size: 0.93rem; font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-xs); line-height: 1.3; }
.cw-svc-card p { font-size: 0.82rem; color: var(--color-text-light); line-height: 1.55; margin-bottom: var(--space-sm); flex: 1; }
.cw-svc-card a { font-size: 0.84rem; font-weight: 700; color: var(--color-secondary); transition: color var(--transition); }
.cw-svc-card a:hover { color: var(--color-primary); }

/* ── 5. SVG DIVIDER ───────────────────────────────────────────────── */
.cw-divider { display: block; overflow: hidden; line-height: 0; }
.cw-divider svg { display: block; width: 100%; }

/* ── 6. WHY US ────────────────────────────────────────────────────── */
.caldwell-why {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-dark);
  position: relative;
  overflow: hidden;
}

.caldwell-why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(43, 43, 42,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.cw-why-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.cw-why-text .cw-why-eyebrow { display: inline-block; margin-bottom: var(--space-sm); color: rgba(255,255,255,0.5); }

.cw-why-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-wrap: balance;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.cw-why-text h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 300; color: var(--color-secondary); }
.cw-why-text p { font-size: 0.97rem; line-height: 1.75; color: rgba(255,255,255,0.62); margin-bottom: var(--space-md); max-width: 52ch; }

.cw-why-points {
  list-style: none; padding: 0; margin: var(--space-lg) 0;
  display: flex; flex-direction: column; gap: var(--space-md);
}

.cw-why-points li { display: flex; gap: var(--space-md); align-items: flex-start; }

.cw-pt-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(193, 118, 67,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.cw-pt-icon i, .cw-pt-icon svg { width: 18px; height: 18px; color: var(--color-secondary); }
.cw-pt-body strong { display: block; font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.88); margin-bottom: 3px; }
.cw-pt-body span { font-size: 0.83rem; color: rgba(255,255,255,0.48); line-height: 1.5; }

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

.cw-stat-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: background var(--transition);
}

.cw-stat-box:hover { background: rgba(255,255,255,0.08); }
.cw-stat-num { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; color: var(--color-secondary); line-height: 1; margin-bottom: 6px; }
.cw-stat-lbl { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.42); }

/* ── 7. FAQ ───────────────────────────────────────────────────────── */
.caldwell-faq { padding: var(--space-4xl) 0; background: var(--color-bg); }
.caldwell-faq .cw-faq-hdr { text-align: center; margin-bottom: var(--space-3xl); }
.caldwell-faq .cw-faq-hdr h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--color-primary); text-wrap: balance; letter-spacing: -0.02em; }

.cw-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-md); }

.cw-faq-item {
  background: var(--color-card-tint-1);
  border-radius: var(--radius);
  border: 1px solid rgba(43, 43, 42,0.10);
  overflow: hidden;
}

.cw-faq-q {
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  border: none; background: none; width: 100%; text-align: left;
}

.cw-faq-q i, .cw-faq-q svg { width: 18px; height: 18px; color: var(--color-secondary); flex-shrink: 0; transition: transform var(--transition); }
.cw-faq-item.open .cw-faq-q i { transform: rotate(180deg); }
.cw-faq-a { padding: 0 var(--space-xl) var(--space-lg); font-size: 0.95rem; line-height: 1.75; color: var(--color-text); }

/* ── 8. CTA ───────────────────────────────────────────────────────── */
.caldwell-cta {
  padding: var(--space-4xl) 0;
  background: var(--color-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.caldwell-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(0,0,0,0.18) 0%, transparent 55%); }
.caldwell-cta::after { content: ''; position: absolute; bottom: -60px; right: -60px; width: 280px; height: 280px; border-radius: 50%; border: 50px solid rgba(255,255,255,0.04); pointer-events: none; }

.cw-cta-inner { position: relative; z-index: 2; max-width: 580px; margin: 0 auto; }

.cw-cta-inner h2 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff; text-wrap: balance; letter-spacing: -0.02em; margin-bottom: var(--space-md); }
.cw-cta-inner p { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.65; margin-bottom: var(--space-xl); }
.cw-cta-btns { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* ── 9. RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1100px) { .cw-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .cw-split { grid-template-columns: 1fr; }
  .cw-img-col { order: -1; }
  .cw-why-grid { grid-template-columns: 1fr; }
  .cw-stats-grid { order: -1; }
}
@media (max-width: 640px) {
  .caldwell-hero { min-height: 75vh; }
  .cw-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .cw-stats-grid { grid-template-columns: 1fr 1fr; }
  .cw-cta-btns { flex-direction: column; align-items: center; }
}
