/* ===========================================
   SITESPARK PRO — Plumbing/HVAC Template
   Primary: Deep Blue #1a3a5c | Accent: Safety Orange #ff6b35
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-dark:    #1a3a5c;
  --brand-mid:     #2a5488;
  --brand-light:   #e8f0f8;
  --accent:        #ff6b35;
  --accent-hover:  #e85520;
  --text-primary:  #111827;
  --text-secondary:#4b5563;
  --text-light:    #9ca3af;
  --white:         #ffffff;
  --off-white:     #f9fafb;
  --border:        rgba(0,0,0,0.08);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:     0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --transition:    180ms cubic-bezier(0.16, 1, 0.3, 1);
  --font-body:     'Inter', system-ui, sans-serif;
  --font-display:  'Sora', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Utility --- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--brand-dark); color: var(--white); }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-dark .section-title { color: var(--white); }

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

.section-dark .section-sub { color: rgba(255,255,255,0.72); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,53,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-dark {
  background: var(--brand-dark);
  color: var(--white);
  border-color: var(--brand-dark);
}
.btn-dark:hover { background: var(--brand-mid); border-color: var(--brand-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,58,92,0.35); }

/* --- Emergency Sticky Bar --- */
.emergency-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.emergency-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 30px rgba(255,107,53,0.50);
  transition: all var(--transition);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.emergency-btn:hover { background: var(--accent-hover); transform: scale(1.04); }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 6px 30px rgba(255,107,53,0.50); }
  50%       { box-shadow: 0 6px 40px rgba(255,107,53,0.75), 0 0 0 6px rgba(255,107,53,0.15); }
}

/* --- Top Bar --- */
.top-bar {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
  display: none;
}
@media (min-width: 768px) { .top-bar { display: block; } }

.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.85); transition: color var(--transition); }
.top-bar a:hover { color: var(--accent); }
.top-bar-items { display: flex; gap: 24px; }

/* --- Header/Nav --- */
.header {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.1;
}

.logo-tagline {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  display: none;
}
@media (min-width: 480px) { .logo-tagline { display: block; } }

nav { display: none; }
@media (min-width: 900px) {
  nav { display: flex; align-items: center; gap: 4px; }
}

nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
nav a:hover { color: var(--brand-dark); background: var(--brand-light); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.header-phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
  display: none;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
@media (min-width: 640px) { .header-phone { display: flex; } }
.header-phone:hover { color: var(--accent); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  margin: 0 8px;
  transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--brand-light); color: var(--brand-dark); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
  color: var(--white);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,53,0.18);
  border: 1px solid rgba(255,107,53,0.35);
  color: #ffa07a;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: clamp(16px, 2.5vw, 18px);
  color: rgba(255,255,255,0.80);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.65;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-trust {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.trust-item strong { color: var(--white); }

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-visual {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  color: var(--white);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.70); margin-top: 4px; }

.about-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--brand-light);
  border: 1px solid rgba(26,58,92,0.12);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
}

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stars { color: #f59e0b; font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }

.review-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.author-info strong { font-size: 14px; font-weight: 600; display: block; }
.author-info span { font-size: 12px; color: var(--text-light); }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--off-white);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand-dark);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-sm); }

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.info-content strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; }
.info-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.info-content a { color: var(--brand-dark); font-weight: 600; transition: color var(--transition); }
.info-content a:hover { color: var(--accent); }

.map-placeholder {
  background: var(--brand-light);
  border: 2px dashed rgba(26,58,92,0.2);
  border-radius: var(--radius-md);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 500;
}

/* Google Maps embed replacement */
.map-embed {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  border: 0;
  overflow: hidden;
}

/* --- Footer --- */
.footer {
  background: #0f2236;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .logo-text { color: var(--white); font-size: 22px; }
.footer-brand p { font-size: 14px; line-height: 1.65; margin-top: 12px; max-width: 280px; }

.footer h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  align-items: flex-start;
}
.footer-contact-item .icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.footer-contact-item a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--accent); }

.powered-by a {
  color: var(--accent);
  font-weight: 600;
}

/* --- Hours Table --- */
.hours-table { width: 100%; font-size: 14px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 500; }
.hours-time { color: var(--text-secondary); }
.hours-time.open { color: #16a34a; font-weight: 600; }
.hours-time.emergency { color: var(--accent); font-weight: 600; }

/* --- Responsive tweaks --- */
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 72px; }
  .emergency-bar { bottom: 16px; right: 16px; }
  .emergency-btn { padding: 12px 16px; font-size: 14px; }
}


/* === PRO UPGRADE: Lucide Icons === */
.lucide-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: brightness(0) saturate(100%);
}
.lucide-icon-lg { width: 32px; height: 32px; }
.lucide-icon-xl { width: 40px; height: 40px; }
.lucide-icon-white { filter: brightness(0) invert(1); }
.lucide-icon-accent { filter: none; }

.service-icon .lucide-icon,
.service-icon-wrap .lucide-icon,
.info-icon .lucide-icon {
  width: 28px;
  height: 28px;
}

.logo-icon .lucide-icon {
  width: 28px;
  height: 28px;
  filter: none;
}

.trust-item .lucide-icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 4px;
}

.badge .lucide-icon {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
  margin-right: 4px;
}

.footer-contact-item .icon .lucide-icon {
  width: 16px;
  height: 16px;
}

/* === PRO UPGRADE: Hero Background Image === */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}

/* === PRO UPGRADE: CSS Scroll Reveal Animations === */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-scale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Progressive enhancement: only apply if browser supports scroll-driven animations */
@supports (animation-timeline: view()) {
  .service-card,
  .review-card,
  .info-card,
  .process-step,
  .menu-category,
  .stat-item {
    opacity: 0;
    animation: reveal-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }

  .service-card:nth-child(2),
  .review-card:nth-child(2),
  .process-step:nth-child(2) { animation-delay: 0.08s; }
  .service-card:nth-child(3),
  .review-card:nth-child(3),
  .process-step:nth-child(3) { animation-delay: 0.16s; }
  .service-card:nth-child(4),
  .process-step:nth-child(4) { animation-delay: 0.24s; }
  .service-card:nth-child(5) { animation-delay: 0.32s; }
  .service-card:nth-child(6) { animation-delay: 0.40s; }

  .about-visual,
  .about-content {
    opacity: 0;
    animation: reveal-scale 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }

  .section-title,
  .section-label {
    opacity: 0;
    animation: reveal-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

/* Fallback for browsers without scroll-timeline: JS handles it */
