/* =============================================
   Knoxville Water Heater Leak Repair — v3 Design System
   Premium dark-to-light editorial design with photo backgrounds
   ============================================= */

/* ---------- Reset & Foundations ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --navy:#0b1222;--navy-mid:#111b2e;--navy-light:#1a2744;
  --slate:#293548;--slate-light:#3a4b64;
  --sky:#0ea5e9;--sky-hover:#0284c7;--sky-pale:#e0f2fe;--sky-ring:rgba(14,165,233,.25);
  --fire:#f97316;--fire-hover:#ea580c;--fire-ring:rgba(249,115,22,.3);
  --red:#ef4444;--red-pale:#fee2e2;
  --green:#22c55e;--green-pale:#dcfce7;
  --gold:#eab308;--gold-pale:#fef9c3;
  --white:#ffffff;--off-white:#f8fafc;--gray-50:#f1f5f9;
  --gray-100:#e2e8f0;--gray-200:#cbd5e1;--gray-300:#94a3b8;
  --gray-400:#64748b;--gray-500:#475569;--gray-600:#334155;
  --text:#0f172a;--text-muted:#475569;--text-light:#64748b;
  --radius:8px;--radius-lg:16px;--radius-xl:24px;
  --shadow-sm:0 1px 3px rgba(0,0,0,.06);
  --shadow-md:0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:0 12px 40px rgba(0,0,0,.12);
  --shadow-xl:0 24px 56px rgba(0,0,0,.16);
  --font:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --transition:0.2s cubic-bezier(.4,0,.2,1);
}

html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--off-white);color:var(--text);line-height:1.7;font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{color:var(--sky);text-decoration:none;transition:color var(--transition)}
a:hover{color:var(--sky-hover)}
img,svg{max-width:100%;height:auto;display:block}

/* ---------- Layout ---------- */
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 24px}
.section{padding:80px 0}
.section-dark{background:var(--navy);color:var(--white)}
.section-alt{background:var(--gray-50)}
.section-navy{background:linear-gradient(180deg,var(--navy) 0%,var(--navy-mid) 100%);color:var(--white)}

/* ---------- Typography ---------- */
.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;border-radius:100px;font-size:13px;font-weight:700;letter-spacing:.5px;text-transform:uppercase}
.badge-sky{background:var(--sky-pale);color:var(--sky-hover);border:1px solid rgba(14,165,233,.2)}
.badge-fire{background:rgba(249,115,22,.12);color:var(--fire);border:1px solid rgba(249,115,22,.2)}
.badge-white{background:rgba(255,255,255,.1);color:var(--white);border:1px solid rgba(255,255,255,.15)}
.section-label{display:block;font-size:13px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--sky);margin-bottom:12px}
.section-title{font-size:clamp(28px,4vw,42px);font-weight:900;line-height:1.15;letter-spacing:-.5px;margin-bottom:16px}
.section-sub{font-size:18px;color:var(--text-muted);line-height:1.7;max-width:680px}
.section-center{text-align:center}.section-center .section-sub{margin:0 auto}

/* ---------- Top Bar ---------- */
.top-bar{background:var(--navy);color:var(--gray-200);font-size:13px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.top-bar .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.top-bar a{color:var(--sky);font-weight:600}

/* ---------- Header ---------- */
.site-header{background:var(--white);position:sticky;top:0;z-index:1000;box-shadow:0 1px 0 var(--gray-100);backdrop-filter:blur(12px);background:rgba(255,255,255,.96)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 0;gap:24px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--text)}
.brand-mark{width:46px;height:46px;border-radius:12px;background:linear-gradient(135deg,var(--sky),var(--navy));display:flex;align-items:center;justify-content:center;color:var(--white);font-weight:900;font-size:20px;flex-shrink:0}
.brand-text .brand-name{font-size:18px;font-weight:800;line-height:1.2;color:var(--text)}
.brand-text .brand-tagline{font-size:11px;color:var(--text-light);font-weight:600;letter-spacing:.3px}
.nav-list{display:flex;align-items:center;gap:4px;list-style:none}
.nav-list a{font-size:14px;font-weight:600;color:var(--gray-500);padding:8px 14px;border-radius:var(--radius);transition:all var(--transition)}
.nav-list a:hover,.nav-list a.active{color:var(--sky);background:var(--sky-pale)}
.nav-actions{display:flex;align-items:center;gap:12px}
.mobile-btn{display:none;background:none;border:1px solid var(--gray-100);border-radius:var(--radius);padding:8px 10px;cursor:pointer;color:var(--text)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:var(--radius);font-weight:700;font-size:15px;text-decoration:none!important;transition:all var(--transition);border:none;cursor:pointer;line-height:1.2}
.btn-lg{padding:16px 32px;font-size:17px;border-radius:12px}
.btn-sm{padding:8px 16px;font-size:13px}
.btn-fire{background:var(--fire);color:var(--white)!important;box-shadow:0 4px 14px var(--fire-ring)}
.btn-fire:hover{background:var(--fire-hover);transform:translateY(-1px);box-shadow:0 6px 20px var(--fire-ring)}
.btn-sky{background:var(--sky);color:var(--white)!important;box-shadow:0 4px 14px var(--sky-ring)}
.btn-sky:hover{background:var(--sky-hover);transform:translateY(-1px)}
.btn-outline{background:transparent;color:var(--white)!important;border:2px solid rgba(255,255,255,.3)}
.btn-outline:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.5)}
.btn-outline-dark{background:transparent;color:var(--text)!important;border:2px solid var(--gray-100)}
.btn-outline-dark:hover{border-color:var(--sky);color:var(--sky)!important}
.btn-white{background:var(--white);color:var(--navy)!important}
.btn-white:hover{background:var(--gray-50)}

/* ---------- Hero ---------- */
.hero{position:relative;background:var(--navy);overflow:hidden;padding:0}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.35}
.hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(11,18,34,.92) 0%,rgba(11,18,34,.7) 50%,rgba(11,18,34,.5) 100%)}
.hero-content{position:relative;z-index:1;display:grid;grid-template-columns:1fr .85fr;gap:48px;align-items:center;padding:80px 0 90px;min-height:560px}
.hero-left{max-width:620px}
.hero h1{font-size:clamp(32px,4.5vw,52px);font-weight:900;color:var(--white);line-height:1.1;letter-spacing:-1px;margin:20px 0}
.hero-lead{font-size:19px;color:var(--gray-200);line-height:1.7;margin-bottom:32px}
.hero-ctas{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:36px}
.hero-checks{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hero-check{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--gray-200)}
.hero-check svg{width:20px;height:20px;fill:var(--sky);flex-shrink:0}
.hero-right{position:relative}
.hero-img-wrap{border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-xl);border:3px solid rgba(255,255,255,.1)}
.hero-img-wrap img{width:100%;height:auto;display:block}
.hero-float-card{position:absolute;bottom:-20px;left:-30px;background:var(--white);padding:18px 22px;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:14px}
.hero-float-icon{width:48px;height:48px;border-radius:12px;background:var(--sky-pale);display:flex;align-items:center;justify-content:center;font-size:22px}
.hero-float-text .hf-label{font-size:12px;color:var(--text-light);font-weight:600}
.hero-float-text .hf-val{font-size:18px;font-weight:800;color:var(--text)}

/* ---------- Metrics ---------- */
.metrics{background:var(--white);border-top:1px solid var(--gray-100);border-bottom:1px solid var(--gray-100);padding:36px 0}
.metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center}
.metric{padding:8px 0}
.metric-val{font-size:clamp(28px,3vw,38px);font-weight:900;color:var(--navy);line-height:1}
.metric-label{font-size:13px;color:var(--text-light);font-weight:600;margin-top:6px}

/* ---------- Service Cards ---------- */
.services-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:24px}
.service-card{background:var(--white);border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--gray-100);box-shadow:var(--shadow-sm);transition:all .3s ease}
.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--sky)}
.service-card-img{position:relative;height:220px;overflow:hidden}
.service-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.service-card:hover .service-card-img img{transform:scale(1.05)}
.service-card-img .service-card-badge{position:absolute;top:16px;left:16px}
.service-card-body{padding:24px}
.service-card-title{font-size:20px;font-weight:800;color:var(--text);margin-bottom:10px}
.service-card-text{font-size:15px;color:var(--text-muted);line-height:1.7;margin-bottom:16px}
.service-card-link{font-weight:700;font-size:14px;color:var(--sky);display:inline-flex;align-items:center;gap:6px}
.service-card-link:hover{gap:10px}

/* ---------- Area Cards ---------- */
.area-card{background:var(--white);border-radius:var(--radius-lg);padding:32px;border:1px solid var(--gray-100);box-shadow:var(--shadow-sm);transition:all .3s ease}
.area-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--sky)}

/* ---------- Image Row (Split Comp) ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.split-img{border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-lg)}
.split-img img{width:100%;height:100%;object-fit:cover;display:block}

/* ---------- Guide Cards ---------- */
.guide-card{background:var(--white);border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--gray-100);display:flex;transition:all .3s ease}
.guide-card:hover{box-shadow:var(--shadow-md);border-color:var(--sky)}
.guide-card-img{width:200px;flex-shrink:0;overflow:hidden}
.guide-card-img img{width:100%;height:100%;object-fit:cover}
.guide-card-body{padding:24px;display:flex;flex-direction:column;justify-content:center}

/* ---------- FAQ ---------- */
.faq-item{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-lg);padding:24px 28px;margin-bottom:14px;transition:border-color var(--transition)}
.faq-item:hover{border-color:var(--sky)}
.faq-q{font-size:18px;font-weight:700;color:var(--text);margin-bottom:8px}
.faq-a{font-size:15px;color:var(--text-muted);line-height:1.7}

/* ---------- Callout ---------- */
.callout{padding:24px;border-radius:var(--radius);margin:28px 0;color:var(--text);font-size:15px;line-height:1.7}
.callout-green{background:var(--green-pale);border-left:4px solid var(--green);color:#14532d}
.callout-green strong{color:#14532d}
.callout-green a{color:#15803d;text-decoration:underline;font-weight:700}
.callout-red{background:#fff1f2;border:1px solid #fecdd3;border-left:5px solid #e11d48;color:#881337}
.callout-red strong{color:#881337}
.callout-red em{color:#9f1239;font-weight:600}
.callout-red a{color:#be123c;text-decoration:underline;font-weight:800}
.callout-red a:hover{color:#881337}
.callout-sky{background:var(--sky-pale);border-left:4px solid var(--sky);color:#0c4a6e}
.callout-sky strong{color:#075985}
.callout-sky a{color:#0284c7;text-decoration:underline;font-weight:700}
.callout-gold{background:var(--gold-pale);border-left:4px solid var(--gold);color:#713f12}
.callout-gold strong{color:#713f12}
.callout-gold a{color:#854d0e;text-decoration:underline;font-weight:700}

/* High-contrast callout overrides inside dark / navy sections */
.section-navy .callout-red, .section-dark .callout-red{
  background:#ffffff!important;
  border:1px solid #fecdd3!important;
  border-left:6px solid #e11d48!important;
  color:#881337!important;
  box-shadow:0 8px 24px rgba(0,0,0,0.25)!important;
}
.section-navy .callout-red strong, .section-dark .callout-red strong{
  color:#881337!important;
}
.section-navy .callout-red em, .section-dark .callout-red em{
  color:#9f1239!important;
  font-weight:700!important;
}
.section-navy .callout-red span, .section-dark .callout-red span{
  color:#4c0519!important;
}
.section-navy .callout-red a, .section-dark .callout-red a{
  color:#881337!important;
  text-decoration:underline!important;
  font-weight:800!important;
}
.section-navy .callout-red a:hover, .section-dark .callout-red a:hover{
  color:#881337!important;
}

/* ---------- Call Panel (formerly dispatch form) ---------- */
.form-card{background:var(--white);padding:36px;border-radius:var(--radius-xl);border:1px solid var(--gray-100);box-shadow:var(--shadow-md)}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy);color:var(--gray-300);padding:64px 0 24px;font-size:14px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:40px;margin-bottom:48px}
.footer-title{color:var(--white);font-size:16px;font-weight:700;margin-bottom:18px}
.footer-links{list-style:none}
.footer-links li{margin-bottom:10px}
.footer-links a{color:var(--gray-300);transition:color var(--transition)}
.footer-links a:hover{color:var(--sky)}
.footer-zips{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
.zip-tag{background:var(--navy-light);color:var(--gray-200);font-size:11px;padding:3px 8px;border-radius:4px;font-weight:600}
.footer-bottom{border-top:1px solid var(--navy-light);padding-top:24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;font-size:13px;color:var(--gray-400)}
.footer-bottom a{color:var(--gray-400)}
.footer-bottom a:hover{color:var(--sky)}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{background:var(--gray-50);border-bottom:1px solid var(--gray-100);padding:12px 0;font-size:13px;color:var(--text-light)}
.breadcrumb-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none}
.breadcrumb-list li+li::before{content:"›";margin-right:8px;color:var(--gray-200)}
.breadcrumb-list a{color:var(--text-light)}
.breadcrumb-list a:hover{color:var(--sky)}

/* ---------- Content Body (articles) ---------- */
.content-body{max-width:820px;margin:0 auto}
.content-body h2{font-size:28px;font-weight:800;color:var(--text);margin:40px 0 16px;line-height:1.25}
.content-body h3{font-size:21px;font-weight:700;color:var(--text);margin:30px 0 12px}
.content-body p{margin-bottom:18px;font-size:16px;line-height:1.75}
.content-body ul,.content-body ol{margin:0 0 20px 24px}
.content-body li{margin-bottom:8px}
.content-body img{border-radius:var(--radius-lg);margin:32px 0;box-shadow:var(--shadow-md)}

/* ---------- Tables ---------- */
.table-wrap{overflow-x:auto;margin:24px 0;border-radius:var(--radius-lg);border:1px solid var(--gray-100);box-shadow:var(--shadow-sm)}
.data-table{width:100%;border-collapse:collapse;text-align:left;background:var(--white);font-size:15px}
.data-table th{background:var(--gray-50);padding:14px 18px;font-weight:700;color:var(--text);border-bottom:2px solid var(--gray-100)}
.data-table td{padding:14px 18px;border-bottom:1px solid var(--gray-100);color:var(--text)}
.data-table tr:last-child td{border-bottom:none}
.data-table tr:hover{background:var(--sky-pale)}

/* ---------- Sticky Mobile CTA ---------- */
.mobile-cta{display:none;position:fixed;bottom:0;left:0;right:0;z-index:999;background:var(--navy);padding:12px 16px;box-shadow:0 -4px 20px rgba(0,0,0,.2)}
.mobile-cta a{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--fire);color:var(--white)!important;font-weight:700;font-size:16px;padding:14px;border-radius:var(--radius);text-decoration:none!important}

/* ---------- Animations ---------- */
@keyframes fadeUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
.anim{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.anim.visible{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.anim{opacity:1;transform:none;transition:none}}

/* ---------- Responsive ---------- */
@media(max-width:1024px){
  .hero-content{grid-template-columns:1fr;padding:56px 0 64px}
  .hero-right{display:none}
  .split{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .nav-list{display:none}
  .mobile-btn{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
  .mobile-nav-open .nav-list{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:var(--white);padding:16px 20px;border-bottom:3px solid var(--sky);box-shadow:var(--shadow-lg);z-index:999}
  .mobile-nav-open .nav-list a{padding:12px 16px;font-size:16px;display:block;border-bottom:1px solid var(--gray-50)}
  .mobile-nav-open .nav-list li:last-child a{border-bottom:none}
  .hero-ctas{flex-direction:column;width:100%}
  .hero-ctas .btn{width:100%;justify-content:center;min-height:48px}
  .metrics-grid{grid-template-columns:1fr 1fr}
  .services-grid{grid-template-columns:1fr}
  .hero-checks{grid-template-columns:1fr}
  .section{padding:56px 0}
  .mobile-cta{display:block}
  .guide-card{flex-direction:column}
  .guide-card-img{width:100%;height:180px}
  .hero-float-card{display:none}
  body{padding-bottom:80px}
}
@media(max-width:480px){
  .footer-grid{grid-template-columns:1fr}
  .hero h1{font-size:28px}
  .container{padding:0 16px}
  .top-bar{text-align:center}
  .top-bar .container{justify-content:center}
}
