/* ══════════════════════════════════════════════════════════════════
   REMODELING PAGE STYLES — /remodeling/
   Loaded after assets/css/site.css. Uses shared design tokens
   (--navy, --gold, --charcoal, --steel, --cream, --off-white, --gold-light,
   --border, --muted, --shadow-md, --r) defined in site.css.
   Page-local prefix: "rm-" to avoid collisions with handyman.css ("hs-").
   ══════════════════════════════════════════════════════════════════ */

:root {
  --rm-radius: 10px;
  --rm-shadow: 0 4px 24px rgba(11,27,43,.18);
}

/* ─── LEAD FORM (mirrors site.css #form-success / #form-error / consent
   error wiring for this page's uniquely-prefixed rf- form IDs) ─── */
#rf-form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
#rf-form-success h3 { color: var(--white); font-size: 24px; margin-bottom: 12px; }
#rf-form-success p { color: rgba(255,255,255,.75); margin-bottom: 20px; }
#rf-form-error {
  display: none;
  background: rgba(185,28,28,.15);
  border: 1px solid rgba(185,28,28,.4);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 14px;
  color: #fca5a5;
  line-height: 1.6;
  margin-top: 12px;
}
#rf-err-consent {
  font-size: 12px;
  color: #f87171;
  font-family: 'Inter', sans-serif;
  display: none;
  margin: -2px 0 12px 2px;
}
#rf-field-consent.invalid ~ #rf-err-consent { display: block; }

/* ─── UTILITY ─── */
.rm-section { padding: 80px 0; }
.rm-section.on-navy { background: var(--navy); }
.rm-section.on-cream { background: var(--off-white); }
.rm-section.on-charcoal { background: var(--charcoal); }
.rm-section--compact { padding: 48px 0; }
.rm-county-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.rm-county-pill { display: inline-flex; align-items: center; padding: 8px 18px; border: 1px solid rgba(200,151,58,.35); border-radius: 999px; color: var(--gold); font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 600; }
.rm-section-header { text-align: center; margin-bottom: 52px; }
.rm-section-header h2 { font-size: clamp(1.6rem,3vw,2.4rem); color: var(--navy); margin-bottom: 12px; }
.rm-section-header p { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.rm-section-header.on-dark h2 { color: var(--off-white); }
.rm-section-header.on-dark p { color: rgba(253,252,250,.72); }
.rm-tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; display: block; color: var(--gold); }

/* ─── HERO ─── */
#rm-hero {
  background: linear-gradient(105deg, var(--navy) 60%, var(--charcoal) 100%);
  padding: 64px 24px 72px;
  position: relative;
  overflow: hidden;
}
#rm-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8973A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.rm-hero-inner { max-width: 880px; margin: 0 auto; text-align: center; position: relative; }
.rm-hero-eyebrow { color: var(--gold); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.rm-hero-h1 { font-family: 'DM Sans', sans-serif; font-size: clamp(2rem,4.5vw,3.2rem); color: var(--off-white); font-weight: 800; margin-bottom: 20px; line-height: 1.15; }
.rm-hero-sub { color: rgba(253,252,250,.8); font-size: 1.08rem; line-height: 1.7; margin-bottom: 30px; max-width: 660px; margin-left: auto; margin-right: auto; }
.rm-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.rm-badge { display: flex; align-items: center; gap: 7px; background: rgba(200,151,58,.12); border: 1px solid var(--gold-border, rgba(200,151,58,.25)); color: var(--gold); padding: 7px 14px; border-radius: 50px; font-size: .8rem; font-weight: 600; }
.rm-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.rm-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ─── CATEGORY GRID ─── */
.rm-cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.rm-cat-card { background: var(--off-white); border: 1px solid var(--border); border-radius: 14px; padding: 28px 22px 24px; transition: all .25s; position: relative; overflow: hidden; }
.rm-cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.rm-cat-card:hover { box-shadow: var(--rm-shadow); border-color: var(--gold); transform: translateY(-4px); }
.rm-cat-card:hover::before { transform: scaleX(1); }
.rm-cat-icon { width: 48px; height: 48px; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.rm-cat-icon svg { width: 26px; height: 26px; color: var(--gold); }
.rm-cat-card h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 10px; }
.rm-cat-card p { font-size: .89rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.rm-cat-cta { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; transition: color .2s; }
.rm-cat-cta:hover { color: var(--gold); }
@media (max-width: 1024px) { .rm-cat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .rm-cat-grid { grid-template-columns: 1fr; } }

/* ─── PROCESS STEPS ─── */
.rm-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; margin-top: 48px; }
.rm-step { text-align: center; }
.rm-step-num { width: 56px; height: 56px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; color: var(--navy); margin: 0 auto 18px; font-family: 'DM Sans', sans-serif; }
.rm-step h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 10px; }
.rm-step p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .rm-steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .rm-steps { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; } }

/* ─── TRUST ─── */
.rm-trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 44px; }
.rm-trust-item { text-align: center; padding: 26px 18px; background: rgba(255,255,255,.04); border: 1px solid var(--gold-border, rgba(200,151,58,.25)); border-radius: 12px; }
.rm-trust-icon { font-size: 1.8rem; margin-bottom: 14px; }
.rm-trust-item h3 { color: var(--gold); font-size: .96rem; margin-bottom: 8px; }
.rm-trust-item p { color: rgba(253,252,250,.7); font-size: .85rem; line-height: 1.6; }
@media (max-width: 900px) { .rm-trust-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .rm-trust-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; } }

/* ─── FAQ (wrapper spacing only — .faq-btn / .faq-body / .faq-icon
   accordion styling & JS behavior come from shared site.css) ─── */
.rm-faq-list { max-width: 760px; margin: 44px auto 0; }

/* ─── FINAL CTA ─── */
#rm-final-cta { padding: 88px 0; background: var(--charcoal); text-align: center; }
#rm-final-cta h2 { font-family: 'DM Sans', sans-serif; font-size: clamp(1.6rem,3.5vw,2.5rem); color: var(--off-white); margin-bottom: 16px; }
#rm-final-cta p { color: rgba(253,252,250,.75); font-size: 1.05rem; margin-bottom: 34px; max-width: 560px; margin-left: auto; margin-right: auto; }
.rm-final-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ─── SCROLL REVEAL (shared with .fade-up in site.css) ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
