/*
  Ellwanger Painting — Drywall Repair & Seamless Texturing service page
  Palette: primary #2e5f84, accent #c48416, dark #640505, text #0f172a
  Notes:
  - Mobile-first; breakpoints at 640px, 900px, 1100px
  - Header & footer styling lives in /bellingham-location/css/header_footer.css
*/

:root{
  --brand-primary:#2e5f84;
  --brand-accent:#c48416;
  --brand-dark:#640505;
  --bg:#ffffff;
  --bg-soft:#f8fafc;
  --bg-tint:rgba(46,95,132,0.06);
  --text:#0f172a;
  --text-muted:#475569;
  --text-light:#64748b;
  --border:#e2e8f0;
  --border-strong:#cbd5e1;
  --radius:16px;
  --radius-sm:10px;
  --shadow-sm:0 4px 16px rgba(15,23,42,0.06);
  --shadow:0 6px 18px rgba(15,23,42,0.08);
  --shadow-lg:0 12px 30px rgba(15,23,42,0.16);
}

/* ── Page wrap ─────────────────────────────────────────────── */
.dw-page{
  max-width:1080px;
  margin:0 auto;
  padding:1.5rem 1.25rem 3rem;
  color:var(--text);
  line-height:1.65;
  font-size:1rem;
}
@media (min-width:768px){
  .dw-page{ padding:2rem 2rem 4rem; font-size:1.05rem; }
}

/* ── Breadcrumbs ───────────────────────────────────────────── */
.dw-crumbs{ margin:0 0 1.5rem; }
.dw-crumbs ol{
  list-style:none; padding:0; margin:0;
  display:flex; flex-wrap:wrap; align-items:center;
  gap:0.4rem; font-size:0.85rem; color:var(--text-light);
}
.dw-crumbs a{ color:var(--brand-primary); text-decoration:none; font-weight:600; transition:color 0.15s ease; }
.dw-crumbs a:hover{ color:var(--brand-accent); text-decoration:underline; }
.dw-crumbs li[aria-current="page"]{ color:var(--text-muted); font-weight:600; }
.dw-crumbs li[aria-hidden="true"]{ color:var(--border-strong); }

/* ── Tag pill ──────────────────────────────────────────────── */
.dw-tag{
  display:inline-flex; align-items:center; gap:0.4rem;
  padding:0.3rem 0.75rem;
  border-radius:999px;
  background:var(--bg-tint);
  color:var(--text-light);
  font-size:0.78rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-weight:600;
  margin-bottom:0.85rem;
}
.dw-tag .dot{ width:6px; height:6px; border-radius:50%; background:var(--brand-accent); }

/* ── Hero ──────────────────────────────────────────────────── */
.dw-hero{
  display:grid;
  grid-template-columns:1fr;
  gap:1.75rem;
  align-items:center;
  margin:0 0 3rem;
  padding-bottom:2rem;
  border-bottom:2px solid var(--border);
}
@media (min-width:900px){
  .dw-hero{ grid-template-columns:1.05fr 0.95fr; gap:2.5rem; }
}
.dw-hero h1{
  color:var(--brand-primary);
  font-size:2rem;
  font-weight:800;
  line-height:1.15;
  letter-spacing:-0.015em;
  margin:0 0 0.85rem;
}
@media (min-width:768px){ .dw-hero h1{ font-size:2.6rem; } }
.dw-hero__sub{
  font-size:1.1rem;
  color:var(--text-muted);
  line-height:1.6;
  margin:0 0 1.5rem;
  max-width:50ch;
}
@media (min-width:768px){ .dw-hero__sub{ font-size:1.18rem; } }
.dw-hero__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:1rem 1.25rem;
}
.dw-hero__phone{
  color:var(--brand-primary);
  font-weight:700;
  text-decoration:none;
  font-size:1.05rem;
  display:inline-flex;
  align-items:center;
  gap:0.45rem;
}
.dw-hero__phone:hover{ color:var(--brand-accent); }

/* Hero media — holds the Splide slideshow, fixed aspect ratio so the
   layout never jumps as photos crossfade */
.dw-hero__media{
  width:100%;
  aspect-ratio:16/10;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  background:var(--bg-soft);
}

/* ── Hero slideshow (Splide.js, fade) ──────────────────────── */
.dw-slideshow{ width:100%; height:100%; }
.dw-slideshow .splide__track,
.dw-slideshow .splide__list,
.dw-slideshow .splide__slide{ height:100%; }
.dw-slideshow .splide__slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* Guard against a flash of all three stacked images before Splide mounts */
.dw-slideshow:not(.is-initialized) .splide__slide:not(:first-child){ display:none; }

/* Pagination dots in brand colors */
.dw-slideshow .splide__pagination{ bottom:0.7rem; padding:0; }
.dw-slideshow .splide__pagination__page{
  background:rgba(255,255,255,0.7);
  opacity:1;
  margin:0 4px;
  box-shadow:0 1px 4px rgba(0,0,0,0.25);
  transition:background 0.2s ease, transform 0.2s ease;
}
.dw-slideshow .splide__pagination__page.is-active{
  background:var(--brand-accent);
  transform:scale(1.4);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary{
  display:inline-block;
  background:var(--brand-accent);
  color:#fff;
  padding:0.85rem 1.6rem;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  font-size:1rem;
  letter-spacing:0.01em;
  box-shadow:0 4px 14px rgba(196,132,22,0.4);
  transition:transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary:hover{
  background:#a86f12;
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(196,132,22,0.5);
}

/* ── Sections ──────────────────────────────────────────────── */
.dw-section{ margin:0 0 3rem; }
.dw-section h2{
  color:var(--brand-primary);
  font-size:1.6rem;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-0.01em;
  margin:0 0 0.85rem;
}
@media (min-width:768px){ .dw-section h2{ font-size:1.9rem; } }
.dw-section h3{
  color:var(--text);
  font-size:1.12rem;
  font-weight:700;
  margin:0 0 0.5rem;
}
.dw-section p{ margin:0 0 1rem; }
.dw-section strong{ color:var(--text); }
.dw-section em{ color:var(--text-muted); }
.dw-lead{
  font-size:1.08rem;
  color:var(--text-muted);
  line-height:1.6;
  margin:0 0 1.5rem !important;
  max-width:68ch;
}

/* ── Damage grid ───────────────────────────────────────────── */
.dw-damage-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1.1rem;
  margin:0 0 1.75rem;
}
@media (min-width:640px){ .dw-damage-grid{ grid-template-columns:1fr 1fr; } }
@media (min-width:1100px){ .dw-damage-grid{ grid-template-columns:repeat(3,1fr); } }

.dw-damage{
  background:#fff;
  border:1px solid var(--border);
  border-left:4px solid var(--brand-primary);
  border-radius:var(--radius-sm);
  padding:1.1rem 1.25rem;
  box-shadow:var(--shadow-sm);
}
.dw-damage h3{
  color:var(--brand-primary);
  font-size:1.05rem;
  margin-bottom:0.4rem;
}
.dw-damage p{
  font-size:0.95rem;
  color:var(--text-muted);
  line-height:1.55;
  margin:0;
}

/* ── Callout (accent gold) ─────────────────────────────────── */
.dw-callout{
  background:linear-gradient(135deg, rgba(196,132,22,0.09), rgba(196,132,22,0.04));
  border-left:4px solid var(--brand-accent);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:1.1rem 1.4rem;
  box-shadow:var(--shadow-sm);
}
.dw-callout p{
  margin:0;
  font-size:1.05rem;
  font-weight:600;
  color:var(--text);
  line-height:1.5;
}

/* ── Process (numbered steps) ──────────────────────────────── */
.dw-process{
  counter-reset:dw-step;
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.dw-step{
  counter-increment:dw-step;
  position:relative;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem 1.4rem 1.25rem 4.25rem;
  box-shadow:var(--shadow-sm);
}
.dw-step::before{
  content:counter(dw-step);
  position:absolute;
  left:1.25rem;
  top:1.25rem;
  width:2.1rem; height:2.1rem;
  border-radius:50%;
  background:var(--brand-primary);
  color:#fff;
  font-weight:800;
  font-size:1rem;
  display:flex;
  align-items:center;
  justify-content:center;
}
.dw-step h3{
  color:var(--brand-primary);
  margin-bottom:0.4rem;
}
.dw-step p{
  font-size:0.97rem;
  color:var(--text-muted);
  line-height:1.6;
  margin:0;
}

/* ── Standards (maroon-accented panel) ─────────────────────── */
.dw-standards{
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-top:4px solid var(--brand-dark);
  border-radius:var(--radius);
  padding:1.6rem 1.75rem;
  box-shadow:var(--shadow-sm);
}
.dw-standards h2{ margin-top:0; }
.dw-standards__list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:1fr;
  gap:0.6rem;
}
@media (min-width:768px){ .dw-standards__list{ grid-template-columns:1fr 1fr; gap:0.75rem 1.5rem; } }
.dw-standards__list li{
  position:relative;
  padding:0.35rem 0 0.35rem 1.85rem;
  font-size:0.97rem;
  line-height:1.5;
  color:var(--text-muted);
}
.dw-standards__list li::before{
  content:"\2713";
  position:absolute;
  left:0;
  top:0.35rem;
  color:var(--brand-accent);
  font-weight:800;
  font-size:1.05rem;
}
.dw-standards__list strong{ color:var(--text); }

/* ── FAQ ───────────────────────────────────────────────────── */
.dw-faq{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  margin:0 0 0.75rem;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.dw-faq summary{
  cursor:pointer;
  list-style:none;
  padding:0.95rem 1.25rem;
  font-weight:700;
  color:var(--brand-primary);
  font-size:1rem;
  position:relative;
  padding-right:2.5rem;
  user-select:none;
  line-height:1.4;
}
.dw-faq summary::-webkit-details-marker{ display:none; }
.dw-faq summary::after{
  content:"+";
  position:absolute;
  right:1.25rem;
  top:50%;
  transform:translateY(-50%);
  font-size:1.4rem;
  font-weight:400;
  color:var(--brand-accent);
  line-height:1;
}
.dw-faq[open] summary{ border-bottom:1px solid var(--border); }
.dw-faq[open] summary::after{ content:"\2013"; }
.dw-faq summary:hover{ background:var(--bg-soft); }
.dw-faq > p{
  padding:0 1.25rem 1.1rem;
  margin:1rem 0 0;
  color:var(--text-muted);
  line-height:1.6;
}

/* ── Final CTA ─────────────────────────────────────────────── */
.dw-cta{
  text-align:center;
  background:var(--brand-primary);
  color:#fff;
  border-radius:var(--radius);
  padding:2.25rem 1.5rem;
  box-shadow:var(--shadow);
}
.dw-cta h2{
  color:#fff;
  margin:0 0 0.75rem;
  font-size:1.6rem;
  font-weight:700;
}
.dw-cta p{
  color:rgba(255,255,255,0.92);
  font-size:1.02rem;
  margin:0 auto 0.85rem;
  max-width:60ch;
}
.dw-cta__trust{
  font-size:0.92rem !important;
  color:rgba(255,255,255,0.78) !important;
  margin-bottom:1.4rem !important;
}
.dw-cta__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:1rem 1.25rem;
}
.dw-cta__secondary{
  color:#fff;
  font-weight:600;
  text-decoration:none;
  font-size:0.98rem;
  border-bottom:1px solid rgba(255,255,255,0.4);
  padding-bottom:1px;
  transition:border-color 0.15s ease, color 0.15s ease;
}
.dw-cta__secondary:hover{ color:#ffe6bd; border-color:#ffe6bd; }

/* ── Print ─────────────────────────────────────────────────── */
@media print{
  .site-header, footer, .dw-cta, .dw-hero__actions{ display:none !important; }
  .dw-page{ max-width:100%; padding:0; }
  .dw-step, .dw-damage, .dw-faq, .dw-standards{ box-shadow:none; break-inside:avoid; }
}
