/* Loveland Leak Repair Pros — S18 — v2.7 reference design system
   Palette 18: Sweetheart Rose & Big Thompson Pine */
:root {
  --primary: #BE123C;
  --primary-dark: #9A0E31;
  --primary-light: #E11D48;
  --accent: #15803D;
  --accent-dark: #116330;
  --accent-text: #ffffff;
  --text-base: #1e293b;
  --text-muted: #4a5568;
  --text-light: #718096;
  --bg-alt: #fafbfc;
  --border: #e2e8f0;
  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-base);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--primary);
  color: #fff; padding: 0.5rem 1rem; z-index: 999;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- Header ---------- */
.top-strip { background: var(--primary); height: 4px; }
.site-header {
  background: #fff; border-bottom: 2px solid var(--primary);
  position: sticky; top: 0; z-index: 400;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 1rem;
}
.logo-lockup { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 8px; background: var(--primary);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { line-height: 1.15; }
.logo-name { font-weight: 800; color: var(--text-base); font-size: 1.02rem; display: block; }
.logo-sub { font-size: 0.7rem; color: var(--text-light); display: block; }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a, .nav-menu button.drop-toggle {
  display: block; padding: 0.6rem 0.8rem; color: var(--text-base);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  background: none; border: 0; cursor: pointer; font-family: inherit; line-height: inherit;
}
.nav-menu a:hover, .nav-menu button.drop-toggle:hover { color: var(--primary); }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 31, 46, 0.12); padding: 0.4rem 0; z-index: 500;
  list-style: none; margin: 0;
}
.dropdown li a { padding: 0.45rem 1rem; font-weight: 500; font-size: 0.92rem; }
.dropdown li a.view-all { color: var(--primary); font-weight: 700; }
.has-drop.open .dropdown { display: block; }
.nav-phone {
  background: var(--accent); color: var(--accent-text) !important;
  border-radius: var(--radius); padding: 0.6rem 1.1rem !important;
  font-weight: 700 !important; white-space: nowrap;
}
.nav-phone:hover { background: var(--accent-dark); color: var(--accent-text) !important; }
.hamburger {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.hamburger span {
  display: block; width: 24px; height: 3px; background: var(--text-base);
  margin: 5px 0; border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero { background: #fff; padding: 3rem 0 0; }
.hero-eyebrow {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 0.75rem;
}
.hero h1 {
  font-size: clamp(1.625rem, 4vw, 2.5rem); font-weight: 800; color: #0f1f2e;
  line-height: 1.2; margin: 0 0 1rem; max-width: 860px;
}
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 760px; margin: 0 0 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.btn-primary, .btn-secondary {
  display: inline-block; padding: 0.875rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: 1.02rem; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; border: 1.5px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-secondary:hover { background: var(--bg-alt); color: var(--primary-dark); }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 2rem; }
.trust-items {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding: 0.9rem 0;
  font-size: 0.93rem; font-weight: 600; color: var(--text-muted);
}
.trust-items span::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* ---------- Sections / typography ---------- */
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: #0f1f2e; line-height: 1.25; margin: 0 0 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; color: #0f1f2e; margin: 1.5rem 0 0.5rem; }
.section p { margin: 0 0 1rem; max-width: 68rem; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; }
.bg-alt { background: var(--bg-alt); }
.inline-img { border-radius: var(--radius-lg); overflow: hidden; margin: 1.5rem 0; }
.inline-img img { width: 100%; object-fit: cover; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,31,46,0.08); }
.service-card .glyph { font-size: 1.6rem; line-height: 1; }
.service-card h3 { margin: 0.6rem 0 0.4rem; font-size: 1.05rem; }
.service-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 0.6rem; }
.service-card a { font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.service-card a:hover { text-decoration: underline; }
.view-all-link { display: inline-block; margin-top: 1.5rem; font-weight: 700; }

/* ---------- Dark section ---------- */
.dark-section { background: var(--primary); color: #fff; }
.dark-section h2, .dark-section h3 { color: #fff; }
.dark-section p { color: rgba(255,255,255,0.92); }
.dark-section a { color: #fff; text-decoration: underline; }
.dark-section .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.dark-section .btn-primary:hover { background: var(--accent-dark); }

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Mid-page phone band ---------- */
.phone-band { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.phone-band .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.phone-band strong { font-size: 1.15rem; color: #0f1f2e; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item h3 { margin: 0 0 0.5rem; }
.faq-item p { margin: 0; color: var(--text-muted); }

/* ---------- Final CTA band ---------- */
.cta-band { background: var(--primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-size: 1.15rem; }
.cta-band .btn-primary:hover { background: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #0f1f2e; color: #cbd5e1; padding: 3rem 0 5.5rem; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-nap { line-height: 1.7; }
.footer-nap a { font-weight: 700; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: #94a3b8;
}

/* ---------- Mobile sticky call bar ---------- */
.mobile-call {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 450;
  background: var(--accent); text-align: center; display: none;
}
.mobile-call a {
  display: block; color: var(--accent-text); font-weight: 800; font-size: 1.05rem;
  padding: 0.9rem 1rem; text-decoration: none; min-height: 44px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-light); padding: 1rem 0 0; }
.breadcrumb a { color: var(--text-light); }

/* ---------- Responsive nav ---------- */
@media (max-width: 980px) {
  .hamburger { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 2px solid var(--primary);
    flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem;
    box-shadow: 0 12px 24px rgba(15,31,46,0.12);
  }
  .nav-menu.open { display: flex; }
  .dropdown { position: static; box-shadow: none; border: 0; padding-left: 1rem; min-width: 0; }
  .mobile-call { display: block; }
  body { padding-bottom: 0; }
}
@media (min-width: 981px) { .site-footer { padding-bottom: 3rem; } }

/* ============================================================
   DESIGN REFRESH — All 6 fixes applied July 2026
   ============================================================ */

/* ---------- FIX 1: Blog grid cards (3-col, card UI) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15,31,46,0.10);
}
.blog-card-img-link { display: block; overflow: hidden; }
.blog-card-img-link img {
  width: 100%; height: 185px; object-fit: cover;
  display: block; transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-img-link img { transform: scale(1.03); }
.blog-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1; display: flex; flex-direction: column;
}
.blog-card-date {
  font-size: 0.78rem; color: var(--text-light);
  margin: 0 0 0.35rem; display: block;
}
.blog-card-title {
  font-size: 1.02rem; font-weight: 700;
  margin: 0 0 0.55rem; line-height: 1.35;
}
.blog-card-title a { color: var(--text-base); text-decoration: none; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt {
  font-size: 0.875rem; color: var(--text-muted);
  flex: 1; margin: 0 0 0.9rem; line-height: 1.5;
}
.blog-card-read {
  font-size: 0.85rem; font-weight: 700;
  color: var(--primary); text-decoration: none; margin-top: auto;
}
.blog-card-read:hover { text-decoration: underline; }
@media (max-width: 820px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- FIX 2: Hero as full-bleed background image ---------- */
.hero {
  background-size: cover !important;
  background-position: center !important;
  background-color: #0f1f2e;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,31,46,0.88) 0%, rgba(15,31,46,0.62) 60%, rgba(15,31,46,0.45) 100%);
  z-index: 1; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero-eyebrow { color: rgba(255,255,255,0.85); }
.hero-sub { color: rgba(255,255,255,0.90); }
.hero-ctas .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}
.hero-ctas .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}
/* Remove old separate hero-media block */
.hero-media { display: none !important; }
/* Trust bar inside hero needs z-index */
.trust-bar { position: relative; z-index: 3; }

/* ---------- FIX 3: Service cards — 4 per row ---------- */
.services-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr !important; }
}

/* ---------- FIX 4: Era-card bordered boxes ---------- */
.era-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.85rem;
}
.era-card p { margin: 0; font-size: 0.95rem; }
.era-card p strong { color: var(--primary); }

/* ---------- FIX 5: Reduce paragraph and section spacing ---------- */
.section { padding: 2.25rem 0; }
.section p { margin: 0 0 0.65rem; }
.section p:last-child { margin-bottom: 0; }
h2 { margin: 0 0 0.75rem; }
h3 { margin: 1.1rem 0 0.4rem; }
.faq-item { padding: 1rem 0; }
.blog-post .post-body p { margin: 0 0 0.65rem; }
.blog-post .post-body h2 { margin: 1.5rem 0 0.6rem; }
.blog-post .post-body h3 { margin: 1.1rem 0 0.4rem; }

/* ---------- FIX 6: Phone-band — themed dark background ---------- */
.phone-band {
  background: #0f1f2e !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 0.25rem 0;
}
.phone-band strong { color: #fff !important; font-size: 1.1rem; }
.phone-band .btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.phone-band .btn-primary:hover {
  background: var(--primary-dark) !important;
}

/* ============================================================
   BLOG POST BOXED LAYOUT — body in card + sidebar
   ============================================================ */

/* Post hero header */
.post-hero {
  background: #0f1f2e;
  padding: 2.5rem 0 2rem;
  border-bottom: 3px solid var(--primary);
}
.post-hero .hero-eyebrow { color: rgba(255,255,255,0.7); }
.post-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #fff; margin: 0 0 0.6rem;
  max-width: 900px; line-height: 1.25;
}
.post-meta {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  margin: 0; letter-spacing: 0.02em;
}

/* Featured image strip */
.post-featured-img { background: #f5f6f7; padding: 0; }
.post-featured-img img {
  width: 100%; height: auto; max-height: 420px;
  object-fit: cover; object-position: center;
  border-radius: 0;
  display: block;
}

/* Two-column layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

/* Boxed article body */
.post-body-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(15,31,46,0.06);
  padding: 2rem 2.25rem;
}
.post-body-box h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin: 1.75rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
  color: #0f1f2e;
}
.post-body-box h2:first-child { margin-top: 0; }
.post-body-box h3 {
  font-size: 1.08rem; margin: 1.25rem 0 0.4rem;
  color: var(--primary);
}
.post-body-box p {
  margin: 0 0 0.8rem;
  line-height: 1.7;
  color: var(--text-base);
  font-size: 0.975rem;
}
.post-body-box p:last-child { margin-bottom: 0; }
.post-body-box a { color: var(--primary); font-weight: 600; }
.post-body-box a:hover { text-decoration: underline; }
.post-body-box strong { color: #0f1f2e; }
/* Tables inside blog body */
.post-body-box table {
  width: 100%; border-collapse: collapse;
  margin: 1.25rem 0; font-size: 0.88rem;
  overflow-x: auto; display: block;
}
.post-body-box table thead tr { background: var(--primary); color: #fff; }
.post-body-box table th, .post-body-box table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left; vertical-align: top;
  white-space: nowrap;
}
.post-body-box table tbody tr:nth-child(even) { background: var(--bg-alt); }
/* Block quotes / callouts inside body */
.post-body-box blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-alt);
  padding: 0.75rem 1rem; margin: 1rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* Sidebar */
.post-sidebar {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 1rem;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 6px rgba(15,31,46,0.05);
}
.sidebar-cta {
  background: var(--primary);
  border-color: var(--primary);
  text-align: center;
}
.sidebar-cta-label {
  font-size: 0.82rem; color: rgba(255,255,255,0.8);
  font-weight: 600; margin: 0 0 0.4rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.sidebar-phone {
  display: block; color: #fff; font-weight: 800;
  font-size: 1.25rem; text-decoration: none;
  margin-bottom: 0.25rem; letter-spacing: 0.01em;
}
.sidebar-phone:hover { color: rgba(255,255,255,0.85); }
.sidebar-hours { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin: 0; }
.sidebar-heading {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-light);
  font-weight: 700; margin: 0 0 0.65rem;
}
.sidebar-links {
  list-style: none; margin: 0; padding: 0;
}
.sidebar-links li {
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block; padding: 0.42rem 0;
  font-size: 0.87rem; color: var(--text-base);
  text-decoration: none; font-weight: 500;
}
.sidebar-links a:hover { color: var(--primary); padding-left: 4px; transition: padding 0.15s; }

/* CTA band at bottom of post */
.post-cta-band .container {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.post-cta-band strong { font-size: 1.1rem; color: #fff; }

/* Responsive blog post */
@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .sidebar-cta { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .post-body-box { padding: 1.25rem 1rem; }
  .post-sidebar { grid-template-columns: 1fr; }
  .post-body-box table { font-size: 0.78rem; }
  .post-body-box table th,
  .post-body-box table td { white-space: normal; }
}

/* ============================================================
   REAL LOGO — replaces SVG placeholder
   ============================================================ */
.site-logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Remove old logo-mark/logo-text styles (now using image) */
.logo-mark, .logo-text { display: none !important; }
/* Keep lockup as flex for alignment */
.logo-lockup {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
/* Dark hero: use dark logo version */
.post-hero .site-logo,
.hero .site-logo {
  /* site-header is outside hero so no change needed */
}
@media (max-width: 540px) {
  .site-logo { height: 42px; }
}

/* ============================================================
   FOOTER SOCIAL LINKS
   ============================================================ */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}
.footer-social a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
  text-decoration: none;
}
.footer-social svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
/* Facebook hover */
.footer-social a[href*="facebook"]:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
/* Instagram hover */
.footer-social a[href*="instagram"]:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; color: #fff; }
