/* Mark Kinney Plumbing Heating & Cooling
   Brand: Navy blue + Red (from work van) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary: #1B3A6B;
  --primary-dark: #132C52;
  --accent: #C42032;
  --accent-dark: #a71b2a;
  --bg: #0D1620;
  --bg-card: #141F2E;
  --bg-section: #111C29;
  --text: #EDE8E0;
  --text-muted: #8FA3B8;
  --border: rgba(27,58,107,0.3);
  --white: #ffffff;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #e2384a; }
img { max-width: 100%; display: block; }

/* Skip Link */
.skip-link { position: absolute; top: -999px; left: 0; background: var(--accent); color: var(--white); padding: .5rem 1rem; font-family: var(--font-display); font-weight: 700; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ======================== HEADER ======================== */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(13,22,32,0.97); border-bottom: 3px solid var(--accent); backdrop-filter: blur(8px); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: .75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo-wrap { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; }
.logo-sub { font-size: .6rem; color: var(--accent); text-transform: uppercase; letter-spacing: 3px; font-family: var(--font-display); font-weight: 500; }

nav ul { list-style: none; display: flex; gap: .25rem; align-items: center; }
nav ul li a { font-family: var(--font-display); font-weight: 500; font-size: .85rem; color: var(--text-muted); padding: .4rem .75rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; transition: color .2s, background .2s; }
nav ul li a:hover, nav ul li a[aria-current="page"] { color: var(--white); background: rgba(27,58,107,0.3); }
.nav-cta { background: var(--accent) !important; color: var(--white) !important; border-radius: 4px !important; }
.nav-cta:hover { background: var(--accent-dark) !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; color: var(--text); }

/* ======================== HERO ======================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,22,32,0.95) 40%, rgba(27,58,107,0.75) 100%); z-index: 1; }
.hero-accent-line { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--accent), transparent); z-index: 3; }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; width: 100%; }

.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(196,32,50,0.12); border: 1px solid rgba(196,32,50,0.3); border-radius: 2px; padding: .4rem 1rem; font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; opacity: 0; animation: fadeUp .6s ease .2s forwards; }
.hero-tagline { font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 700; text-transform: uppercase; line-height: 1; color: var(--white); margin-bottom: 1.25rem; opacity: 0; animation: fadeUp .7s ease .4s forwards; }
.hero-tagline .accent { color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--text-muted); max-width: 600px; margin-bottom: 2.5rem; opacity: 0; animation: fadeUp .7s ease .6s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; opacity: 0; animation: fadeUp .7s ease .8s forwards; }

.hero-trust { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.5rem; opacity: 0; animation: fadeUp .7s ease 1s forwards; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-muted); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; }
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ======================== BUTTONS ======================== */
.btn-primary { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; padding: .875rem 2rem; border-radius: 4px; border: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; text-decoration: none; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,32,50,0.35); color: var(--white); }
.btn-primary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn-outline { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; padding: .875rem 2rem; border-radius: 4px; border: 2px solid rgba(255,255,255,0.3); cursor: pointer; transition: border-color .2s, color .2s, transform .2s; text-decoration: none; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn-dark { display: inline-flex; align-items: center; gap: .5rem; background: var(--bg); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; padding: 1rem 2.25rem; border-radius: 4px; transition: background .2s, transform .2s; text-decoration: none; }
.btn-dark:hover { background: #080e15; transform: translateY(-2px); color: var(--accent); }

/* ======================== SECTIONS ======================== */
section { padding: 5rem 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.section-label::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--accent); }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--white); line-height: 1.15; }
.section-title .accent { color: var(--accent); }
.section-desc { font-size: 1rem; color: var(--text-muted); max-width: 600px; margin-top: .75rem; line-height: 1.8; }

/* ======================== STATS BAND ======================== */
.stats-band { background: var(--primary); padding: 3.5rem 1.5rem; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem 4rem; max-width: 1100px; margin: 0 auto; }
.stat-item { text-align: center; min-width: 140px; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: var(--white); line-height: 1; display: block; }
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.7); display: block; margin-top: .4rem; font-family: var(--font-display); }

/* ======================== SERVICES ======================== */
.services-section { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; transition: border-color .3s, transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent); transform: scaleY(0); transition: transform .3s ease; }
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon { width: 48px; height: 48px; background: rgba(196,32,50,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--accent); transition: background .3s; }
.service-card:hover .service-icon { background: rgba(196,32,50,0.18); }
.service-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--white); margin-bottom: .5rem; }
.service-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }
.service-card .card-link { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-display); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-top: .75rem; transition: gap .2s; }
.service-card .card-link:hover { gap: .6rem; }

/* ======================== WHY CHOOSE US ======================== */
.features-section { background: var(--bg-section); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; display: flex; gap: 1.25rem; align-items: flex-start; transition: border-color .3s, transform .3s; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-icon { flex-shrink: 0; width: 48px; height: 48px; background: rgba(196,32,50,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.feature-card h3 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: .35rem; }
.feature-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ======================== TESTIMONIALS ======================== */
.testimonials-section { background: var(--bg); }
.testimonial-carousel { position: relative; max-width: 800px; margin: 3rem auto 0; overflow: hidden; min-height: 220px; }
.tc-track { display: flex; transition: transform .6s cubic-bezier(.25,.46,.45,.94); }
.tc-slide { min-width: 100%; padding: 2.5rem 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.tc-slide blockquote { font-size: 1.05rem; line-height: 1.85; font-style: italic; color: var(--text); position: relative; }
.tc-slide blockquote::before { content: '\201C'; font-family: var(--font-display); font-size: 5rem; color: var(--accent); opacity: .3; position: absolute; top: -1.5rem; left: -.5rem; line-height: 1; }
.tc-slide cite { display: block; margin-top: 1.25rem; font-style: normal; font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); }
.tc-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.tc-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--accent); opacity: .3; cursor: pointer; transition: opacity .3s, transform .3s; padding: 0; }
.tc-dot.active { opacity: 1; transform: scale(1.3); }

/* ======================== PAGE HERO ======================== */
.page-hero { padding: 8rem 1.5rem 4rem; background: var(--bg-section); border-bottom: 3px solid var(--accent); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .08; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb { font-family: var(--font-display); font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: .75rem; }
.page-hero .breadcrumb a { color: var(--text-muted); }
.page-hero .breadcrumb a:hover { color: var(--accent); }

/* Service Detail Layout */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; border-bottom: 1px solid var(--border); }
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-img { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-detail:hover .service-detail-img img { transform: scale(1.03); }
.service-detail-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; color: var(--white); margin-bottom: .75rem; padding-left: 1rem; border-left: 3px solid var(--accent); }
.service-detail-content p { font-size: .95rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.key-points { list-style: none; }
.key-points li { padding: .35rem 0 .35rem 1.5rem; position: relative; font-size: .9rem; color: var(--text-muted); }
.key-points li::before { content: ''; position: absolute; left: 0; top: .65rem; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }

/* ======================== ABOUT PAGE ======================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; border-radius: 8px; overflow: hidden; }
.about-img-wrap img { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; }
.about-img-badge { position: absolute; bottom: -1px; right: -1px; background: var(--accent); padding: 1.25rem 1.5rem; border-radius: 8px 0 0 0; text-align: center; }
.about-img-badge .num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
.about-img-badge .lbl { display: block; font-family: var(--font-display); font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.85); margin-top: .2rem; }
.about-text p { color: var(--text-muted); margin-top: 1rem; line-height: 1.85; }

.license-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.license-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; padding: 1.5rem; }
.license-card h3 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: .4rem; }
.license-card p { font-size: .85rem; color: var(--text-muted); }

.brands-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.brand-badge { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: .5rem 1.25rem; font-family: var(--font-display); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); transition: border-color .2s, color .2s; }
.brand-badge:hover { border-color: var(--accent); color: var(--white); }

/* ======================== CONTACT PAGE ======================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; margin-top: 3rem; }
.contact-info h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; color: var(--white); margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-detail-icon { width: 44px; height: 44px; background: rgba(196,32,50,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.contact-detail-text strong { display: block; font-family: var(--font-display); font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: .25rem; }
.contact-detail-text a, .contact-detail-text span { color: var(--text); font-size: .95rem; display: block; }
.contact-detail-text a:hover { color: var(--accent); }

.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-family: var(--font-display); font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: .5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--bg); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: .875rem 1rem; color: var(--text); font-family: var(--font-body); font-size: .95rem; transition: border-color .2s; appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success { display: none; background: rgba(196,32,50,0.12); border: 1px solid var(--accent); border-radius: 8px; padding: 1.5rem; text-align: center; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }

/* Map */
.map-container { margin-top: 2.5rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }

/* ======================== CTA BAND ======================== */
.cta-band { background: var(--accent); padding: 4rem 1.5rem; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; text-transform: uppercase; color: var(--white); margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; font-size: 1rem; }

/* ======================== FOOTER ======================== */
footer { background: #070D14; border-top: 3px solid var(--accent); padding: 4rem 1.5rem 1.5rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-brand p { font-size: .875rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.8; max-width: 280px; }
.footer-section h4 { font-family: var(--font-display); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: .5rem; }
.footer-section ul li a { font-size: .875rem; color: var(--text-muted); transition: color .2s; }
.footer-section ul li a:hover { color: var(--text); }
.footer-contact p { font-size: .875rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .75rem; line-height: 1.5; }
.footer-contact p a { color: var(--text-muted); transition: color .2s; }
.footer-contact p a:hover { color: var(--accent); }
.footer-contact p svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { max-width: 1200px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .75rem; color: var(--text-muted); }

/* ======================== FLOATING CALL ======================== */
.floating-cta { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; background: var(--accent); color: white; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(196,32,50,0.4); transition: transform .2s, box-shadow .2s; text-decoration: none; border: 2px solid rgba(255,255,255,0.2); }
.floating-cta:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(196,32,50,0.5); color: white; }
@media (min-width: 768px) { .floating-cta { bottom: 2rem; right: 2rem; width: 66px; height: 66px; } }

/* ======================== ANIMATIONS ======================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }
.reveal:nth-child(6) { transition-delay: .5s; }
.reveal:nth-child(7) { transition-delay: .6s; }
.reveal:nth-child(8) { transition-delay: .7s; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  nav { display: none; }
  nav.open { display: block; position: fixed; inset: 0; top: 73px; background: var(--bg); z-index: 99; padding: 2rem 1.5rem; }
  nav.open ul { flex-direction: column; gap: .5rem; }
  nav.open ul li a { font-size: 1.25rem; display: block; padding: .75rem 1rem; }
  .about-grid, .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { direction: ltr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 1rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-tagline { font-size: clamp(2rem, 10vw, 3.5rem); }
  .hero-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
