/* HVAC Template — style.css */
/* Palette A: Deep navy + white + orange accent. Emergency-call vertical. */
/* Phone number is the most prominent element above the fold. */

:root {
  --color-bg: #f8f9fc;
  --color-surface: #ffffff;
  --color-navy: #0f1f3c;
  --color-navy-mid: #162b52;
  --color-orange: #f5a623;
  --color-orange-dark: #d4891a;
  --color-text: #1c1c1e;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 10px rgba(0,0,0,.09);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); line-height: 1.6; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── STICKY HEADER ─── */
.sticky-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--color-navy);
  transform: translateY(-100%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.sticky-header.visible { transform: translateY(0); }
.sticky-left { display: flex; align-items: center; gap: 10px; }
.sticky-badge {
  background: var(--color-orange);
  color: var(--color-navy);
  font-weight: 900;
  font-size: .75rem;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.sticky-biz { color: #fff; font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.sticky-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-orange);
  color: var(--color-navy);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: .88rem;
  white-space: nowrap;
  transition: background .2s;
}
.sticky-phone-btn:hover { background: var(--color-orange-dark); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--color-orange); color: var(--color-navy); }
.btn-primary:hover { background: var(--color-orange-dark); box-shadow: 0 4px 16px rgba(245,166,35,.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  background-image: url('assets/hero-hvac.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,31,60,.92) 0%, rgba(15,31,60,.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  padding: 48px 32px;
  opacity: 0;
  transform: translateY(20px);
}
.hero-content.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .38s ease, transform .38s ease;
}
.hero-emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-orange);
  color: var(--color-navy);
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.hero-h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-tagline {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
}

/* ─── HERO PHONE — LARGEST ELEMENT ─── */
.hero-phone-display {
  margin-bottom: 24px;
}
.hero-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  padding: 12px 0;
  transition: color .2s;
}
.hero-phone-link:hover { color: var(--color-orange); }
.hero-phone-link svg { color: var(--color-orange); flex-shrink: 0; }
.hero-phone-label {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  margin-top: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* Pulse animation */
.hero-phone-link.pulse {
  animation: phonePulse 2.2s ease-in-out infinite;
}
@keyframes phonePulse {
  0%, 100% { text-shadow: 0 0 0 rgba(245,166,35,0); }
  50% { text-shadow: 0 0 20px rgba(245,166,35,.5); }
}

.hero-secondary-cta { margin-top: 4px; }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--color-navy-mid);
  padding: 20px 0;
  border-bottom: 3px solid var(--color-orange);
}
.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 44px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .87rem;
  color: rgba(255,255,255,.9);
  opacity: 0;
  transform: translateY(6px);
}
.trust-item.animated { opacity: 1; transform: translateY(0); transition: opacity .3s, transform .3s; }
.trust-icon { width: 20px; height: 20px; color: var(--color-orange); flex-shrink: 0; }

/* ─── SECTIONS COMMON ─── */
section { padding: 76px 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  font-size: 1rem;
}

/* ─── SERVICES ─── */
.services { background: var(--color-surface); }
.services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 28px 18px 24px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: .92rem;
  opacity: 0;
  transform: translateY(10px);
  transition: box-shadow .2s, transform .2s, background .2s;
}
.service-card.animated { opacity: 1; transform: translateY(0); }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); background: #fff; }
.service-icon {
  width: 46px;
  height: 46px;
  background: rgba(245,166,35,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 24px; height: 24px; color: var(--color-orange); }

/* ─── ABOUT ─── */
.about { background: var(--color-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-navy) url('assets/about-comfort.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg);
}
.about-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  color: var(--color-orange);
  font-weight: 700;
  margin-bottom: 10px;
}
.about-text h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  line-height: 1.25;
}
.about-text p { color: var(--color-text-muted); margin-bottom: 14px; line-height: 1.7; }
.about-text .btn { margin-top: 10px; }

/* ─── CALLOUT ─── */
.callout-banner { background: var(--color-navy); padding: 40px 0; }
.callout-text {
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto;
}
.callout-text strong { color: var(--color-orange); }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--color-surface); }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  border-top: 4px solid var(--color-orange);
  opacity: 0;
  transform: translateX(-14px);
}
.testimonial-card:nth-child(2) { transform: translateX(14px); }
.testimonial-card.animated { opacity: 1; transform: translateX(0); transition: opacity .4s, transform .4s; }
.stars { color: var(--color-orange); font-size: 1.15rem; margin-bottom: 12px; }
.testimonial-card blockquote { font-size: 1rem; color: var(--color-text); line-height: 1.65; font-style: italic; margin-bottom: 12px; }
.testimonial-card cite { font-size: .83rem; color: var(--color-text-muted); font-style: normal; font-weight: 600; }

/* ─── SERVICE AREA ─── */
.service-area { background: var(--color-bg); text-align: center; }
.service-area-text { font-size: 1.08rem; color: var(--color-text-muted); margin-bottom: 22px; }

/* ─── FOOTER ─── */
.footer { background: var(--color-navy); color: rgba(255,255,255,.75); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand strong { display: block; font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.footer-brand p { font-size: .88rem; }
.footer-avail { color: var(--color-orange); font-weight: 600; font-size: .85rem; margin-top: 8px; }
.footer-contact p { margin-bottom: 8px; font-size: .88rem; }
.footer-contact a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-contact a:hover { color: var(--color-orange); }
.footer-phone a { color: var(--color-orange) !important; font-weight: 700; font-size: 1rem; }
.footer-bottom { padding: 18px 24px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.3); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
  .hero { min-height: 90vh; }
  .hero-content { padding: 36px 20px; }
  .hero-phone-link { font-size: 1.9rem; }
  .sticky-biz { display: none; }
}
@media (max-width: 480px) {
  .hero-phone-link { font-size: 1.5rem; }
  .sticky-biz { display: none; }
}
