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

/* ── 1. HERO — Bold, City-Forward ─────────────────────────────────── */
.nampa-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-image: url('<?php echo $clientPhotos[17]; ?>');
  background-size: cover;
  background-position: center 25%;
  overflow: hidden;
}

.nampa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(12, 10, 10, 0.95) 0%,
    rgba(45, 42, 42, 0.78) 42%,
    rgba(43, 43, 42, 0.12) 100%
  );
  z-index: 1;
}

.nampa-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.82' 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: 230px 230px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

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

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

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

.nampa-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.8vw, 4.4rem);
  font-weight: 900;
  line-height: 1.07;
  color: #fff;
  text-wrap: balance;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

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

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

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

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

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

.nm-answer-card {
  background: var(--color-card-tint-2);
  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;
}

.nm-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); }
.nm-answer-card p { font-size: 1rem; line-height: 1.75; color: var(--color-text); }

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

.nampa-local::after {
  content: 'NAMPA';
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-heading);
  font-size: 10rem;
  font-weight: 900;
  color: rgba(43, 43, 42,0.04);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.1em;
}

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

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

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

.nm-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);
}

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

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

.nm-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);
}

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

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

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

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

.nm-img-sub {
  position: absolute;
  bottom: -22px; left: -22px;
  width: 48%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-bg);
}

.nm-img-sub img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

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

.nampa-services .nm-svc-hdr { text-align: center; margin-bottom: var(--space-3xl); }

.nampa-services .nm-svc-hdr 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);
}

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

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

.nm-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;
}

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

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

.nm-svc-card:hover .nm-svc-icon { background: rgba(193, 118, 67,0.15); }
.nm-svc-icon i, .nm-svc-icon svg { width: 22px; height: 22px; color: var(--color-primary); transition: color var(--transition); }
.nm-svc-card:hover .nm-svc-icon i { color: var(--color-secondary); }
.nm-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; }
.nm-svc-card p { font-size: 0.82rem; color: var(--color-text-light); line-height: 1.55; margin-bottom: var(--space-sm); flex: 1; }
.nm-svc-card a { font-size: 0.84rem; font-weight: 700; color: var(--color-secondary); transition: color var(--transition); }
.nm-svc-card a:hover { color: var(--color-primary); }

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

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

.nampa-why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(193, 118, 67,0.07) 0%, transparent 55%);
  pointer-events: none;
}

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

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

.nm-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);
}

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

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

.nm-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);
}

.nm-why-text h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 300; color: var(--color-secondary); }
.nm-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; }

.nm-why-pts { list-style: none; padding: 0; margin: var(--space-lg) 0; display: flex; flex-direction: column; gap: var(--space-md); }
.nm-why-pts li { display: flex; gap: var(--space-md); align-items: flex-start; }

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

/* ── 7. FAQ ───────────────────────────────────────────────────────── */
.nampa-faq { padding: var(--space-4xl) 0; background: var(--color-bg); }
.nampa-faq .nm-faq-hdr { text-align: center; margin-bottom: var(--space-3xl); }
.nampa-faq .nm-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; }

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

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

.nm-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;
}

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

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

.nampa-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(0,0,0,0.14) 0%, transparent 55%); }
.nampa-cta::after { content: ''; position: absolute; top: -65px; left: -65px; width: 290px; height: 290px; border-radius: 50%; border: 52px solid rgba(255,255,255,0.05); pointer-events: none; }

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

.nm-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); }
.nm-cta-inner p { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.65; margin-bottom: var(--space-xl); }
.nm-cta-btns { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

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