/* ═══════════════════════════════════════════════════════════════════
   REDWOOD EMPIRE — PHASE 2 CSS
   Poppins font system, premium components, popup, page layouts
   Load AFTER global.css on all Phase 2+ pages
   ═══════════════════════════════════════════════════════════════════ */

/* ── POPPINS OVERRIDE ───────────────────────────────────────────── */
/* Applied to all Phase 2 page bodies via .p2-page class on <body>  */
.p2-page,
.p2-page h1,
.p2-page h2,
.p2-page h3,
.p2-page h4,
.p2-page h5,
.p2-page .btn,
.p2-page .nav-link,
.p2-page p,
.p2-page input,
.p2-page select,
.p2-page textarea,
.p2-page button {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.p2-page h1 { font-weight: 700; }
.p2-page h2 { font-weight: 600; }
.p2-page h3 { font-weight: 600; }
.p2-page h4 { font-weight: 600; }
.p2-page .btn { font-weight: 500; }

/* ── POPUP OVERLAY ──────────────────────────────────────────────── */
#re-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 10, 0.72);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(3px);
}
#re-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── POPUP MODAL ────────────────────────────────────────────────── */
#re-popup {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
#re-popup-overlay.active #re-popup {
  transform: translateY(0) scale(1);
}

/* Popup header bar */
.popup-header {
  background: linear-gradient(135deg, #1a2e1a 0%, #2d5a2d 100%);
  padding: 28px 32px 24px;
  border-radius: 16px 16px 0 0;
  position: relative;
}
.popup-header-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 6px;
  display: block;
}
.popup-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 6px;
}
.popup-header p {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.5;
}

/* Trust badges row inside popup header */
.popup-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.popup-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.popup-trust-icon {
  width: 18px;
  height: 18px;
  color: #c8a96e;
  flex-shrink: 0;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-family: 'Poppins', sans-serif;
}
.popup-close:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* Popup body */
.popup-body {
  padding: 28px 32px 32px;
}

/* Popup form */
.popup-form .pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.popup-form .pf-group {
  margin-bottom: 12px;
}
.popup-form label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #374151;
  margin-bottom: 5px;
}
.popup-form input,
.popup-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.popup-form input:focus,
.popup-form select:focus {
  border-color: #2d5a2d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,90,45,0.1);
}
.popup-form input::placeholder { color: #9ca3af; }

/* Submit button */
.popup-submit {
  width: 100%;
  padding: 15px 20px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.popup-submit:hover {
  background: #a02820;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.35);
}
.popup-submit:active {
  transform: translateY(0);
}
.popup-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Privacy note */
.popup-privacy {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* Success state */
.popup-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.popup-success-icon {
  width: 56px;
  height: 56px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.popup-success-icon svg { color: #059669; }
.popup-success h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a2e1a;
  margin-bottom: 8px;
}
.popup-success p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}
.popup-error {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #c0392b;
  margin-top: 8px;
  display: none;
  text-align: center;
}

/* ── PHASE 2 PAGE HERO ──────────────────────────────────────────── */
.p2-hero {
  background: linear-gradient(160deg, #0f1f0f 0%, #1e3a1e 55%, #2d5a2d 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.p2-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(200,169,110,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.p2-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.p2-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 14px;
}
.p2-hero-eyebrow-line {
  width: 28px;
  height: 2px;
  background: #c8a96e;
  border-radius: 2px;
}
.p2-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 680px;
}
.p2-hero-sub {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}
.p2-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.p2-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.p2-trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.p2-trust-badge svg {
  color: #c8a96e;
  flex-shrink: 0;
}

/* ── BREADCRUMB ─────────────────────────────────────────────────── */
.p2-breadcrumb {
  background: #f0ece4;
  padding: 10px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #6b7280;
  border-bottom: 1px solid #e5e0d8;
}
.p2-breadcrumb-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.p2-breadcrumb a {
  color: #2d5a2d;
  font-weight: 500;
  transition: color 0.15s;
}
.p2-breadcrumb a:hover { color: #1a2e1a; }
.p2-breadcrumb-sep {
  color: #d1d5db;
  font-size: 12px;
}
.p2-breadcrumb-current {
  color: #374151;
  font-weight: 600;
}

/* ── CONTENT SECTION ────────────────────────────────────────────── */
.p2-section { padding: 80px 0; }
.p2-section-sm { padding: 48px 0; }
.p2-section-lg { padding: 100px 0; }
.p2-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.p2-section-header { margin-bottom: 52px; }
.p2-section-header.center { text-align: center; }
.p2-section-header.center .p2-gold-line { margin: 14px auto 0; }
.p2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 10px;
}
.p2-section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  color: #1a2e1a;
  line-height: 1.25;
  margin-bottom: 12px;
}
.p2-section-header p {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  color: #4a5a4a;
  line-height: 1.7;
  max-width: 620px;
}
.p2-gold-line { width: 48px; height: 3px; background: #c8a96e; border-radius: 2px; margin-top: 14px; }

/* ── CONTENT + SIDEBAR LAYOUT ───────────────────────────────────── */
.p2-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.p2-content-layout.reverse { grid-template-columns: 340px 1fr; }

/* ── SIDEBAR CTA BOX ────────────────────────────────────────────── */
.p2-sidebar { display: flex; flex-direction: column; gap: 20px; }

.p2-cta-box {
  background: linear-gradient(160deg, #1a2e1a 0%, #2d5a2d 100%);
  border-radius: 14px;
  padding: 28px;
  color: #fff;
}
.p2-cta-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.p2-cta-box p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
  line-height: 1.6;
}
.p2-cta-box .btn-primary {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  justify-content: center;
  margin-bottom: 8px;
}
.p2-cta-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #c8a96e;
  margin-top: 14px;
  text-decoration: none;
  justify-content: center;
}
.p2-cta-phone:hover { color: #e8d0a0; }
.p2-cta-phone svg { flex-shrink: 0; }

/* Info card in sidebar */
.p2-info-card {
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 12px;
  padding: 22px;
}
.p2-info-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a2e1a;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0ece4;
}
.p2-info-list { display: flex; flex-direction: column; gap: 10px; }
.p2-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #4a5a4a;
  line-height: 1.5;
}
.p2-info-item svg { color: #2d5a2d; flex-shrink: 0; margin-top: 2px; }

/* Related links card */
.p2-related-card {
  background: #f0f2f0;
  border-radius: 12px;
  padding: 20px;
}
.p2-related-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7a6b;
  margin-bottom: 12px;
}
.p2-related-links { display: flex; flex-direction: column; gap: 6px; }
.p2-related-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1a2e1a;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s, padding-left 0.15s;
  font-weight: 500;
}
.p2-related-link:hover { background: #e0e8e0; padding-left: 14px; }
.p2-related-link svg { color: #2d5a2d; flex-shrink: 0; }

/* ── PROSE CONTENT ──────────────────────────────────────────────── */
.p2-prose { font-family: 'Poppins', sans-serif; }
.p2-prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #1a2e1a;
  margin: 36px 0 14px;
  line-height: 1.3;
}
.p2-prose h2:first-child { margin-top: 0; }
.p2-prose h3 {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 600;
  color: #1a2e1a;
  margin: 28px 0 10px;
}
.p2-prose p {
  font-size: 16px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 18px;
}
.p2-prose ul {
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p2-prose ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
}
.p2-prose ul li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8a96e;
  flex-shrink: 0;
  margin-top: 8px;
}
.p2-prose .highlight-box {
  background: #eaf4ea;
  border-left: 4px solid #2d5a2d;
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: #1e3a1e;
  line-height: 1.7;
}
.p2-prose .warning-box {
  background: #fff8e8;
  border-left: 4px solid #c8a96e;
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: #6b4e20;
  line-height: 1.7;
}

/* ── SERVICE FEATURE GRID ───────────────────────────────────────── */
.p2-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.p2-feature-card {
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.22s ease;
  position: relative;
}
.p2-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  border-color: #2d5a2d;
}
.p2-feature-icon {
  width: 48px;
  height: 48px;
  background: #eaf4ea;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #2d5a2d;
}
.p2-feature-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a2e1a;
  margin-bottom: 8px;
}
.p2-feature-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #4a5a4a;
  line-height: 1.65;
  margin: 0;
}

/* ── PROCESS STEPS ──────────────────────────────────────────────── */
.p2-steps { display: flex; flex-direction: column; gap: 24px; }
.p2-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.p2-step-num {
  width: 44px;
  height: 44px;
  background: #1a2e1a;
  color: #c8a96e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.p2-step-content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a2e1a;
  margin-bottom: 6px;
}
.p2-step-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #4a5a4a;
  line-height: 1.65;
  margin: 0;
}

/* ── IMAGE PLACEHOLDER ──────────────────────────────────────────── */
.p2-img-placeholder {
  background: linear-gradient(135deg, #1e3a1e 0%, #2d5a2d 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  text-align: center;
  gap: 10px;
  padding: 20px;
}
.p2-img-placeholder svg { color: rgba(255,255,255,0.3); }
.p2-img-real {
  border-radius: 12px;
  width: 100%;
  object-fit: cover;
}

/* ── INLINE FORM (on service/contact pages) ─────────────────────── */
.p2-inline-form {
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 14px;
  padding: 28px;
}
.p2-inline-form h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a2e1a;
  margin-bottom: 6px;
}
.p2-inline-form .form-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}
.p2-inline-form label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #374151;
  display: block;
  margin-bottom: 5px;
}
.p2-inline-form input,
.p2-inline-form select,
.p2-inline-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 14px;
}
.p2-inline-form input:focus,
.p2-inline-form select:focus,
.p2-inline-form textarea:focus {
  border-color: #2d5a2d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,90,45,0.1);
}
.p2-inline-form textarea { min-height: 90px; resize: vertical; }
.p2-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── DARK CTA BAND ──────────────────────────────────────────────── */
.p2-cta-band {
  background: linear-gradient(135deg, #1a2e1a 0%, #2d5a2d 100%);
  padding: 72px 0;
  text-align: center;
}
.p2-cta-band h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.p2-cta-band p {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.p2-cta-band-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ── STAT BAR (Phase 2 version, no emojis) ──────────────────────── */
.p2-stat-bar {
  background: #1a2e1a;
  padding: 44px 0;
}
.p2-stat-bar-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.p2-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #c8a96e;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.p2-stat-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.p2-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  margin: auto;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .p2-content-layout {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }
  .p2-content-layout.reverse {
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }
  .p2-stat-bar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .p2-content-layout,
  .p2-content-layout.reverse {
    grid-template-columns: 1fr;
  }
  .popup-form .pf-row { grid-template-columns: 1fr; }
  .p2-form-row { grid-template-columns: 1fr; }
  .p2-stat-bar-grid { gap: 28px; }
  .p2-hero { padding: 64px 0 56px; }
}

@media (max-width: 480px) {
  .popup-header { padding: 22px 20px 18px; }
  .popup-body { padding: 20px 20px 24px; }
  .p2-hero { padding: 56px 0 48px; }
  .p2-hero-ctas { flex-direction: column; }
  .p2-hero-ctas .btn { width: 100%; justify-content: center; }
  .p2-stat-bar-grid { grid-template-columns: 1fr; }
  .p2-feature-grid { grid-template-columns: 1fr; }
}
