/* =============================================================
   Swayze's Heating & Cooling — dark theme (reconstruction)
   ============================================================= */

:root {
  --bg: #15181c;
  --bg-alt: #1b2024;
  --surface: #20262c;
  --surface-2: #272e35;
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.22);

  --text: #f4f5f7;
  --text-soft: #b6bdc6;
  --text-faint: #7c8590;

  --white: #ffffff;

  --flame: #e8491d;
  --flame-dark: #c53a12;
  --flame-light: #ff8a50;

  --ice: #29abe2;
  --ice-dark: #1b8fc4;
  --ice-light: #7fd4f5;

  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.4);

  --container: 1160px;
}

* { box-sizing: border-box; }

/* ---------- Emergency banner ---------- */
.emergency-banner {
  background: var(--flame-dark);
  color: var(--white);
}
.emergency-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 9px;
  padding-bottom: 9px;
  text-align: center;
}
.emergency-banner .badge-icon { font-size: 0.95rem; }
.emergency-banner strong { font-weight: 700; letter-spacing: 0.01em; }
.emergency-banner span.sep { color: rgba(255,255,255,0.55); }
.emergency-banner a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.emergency-banner a:hover { color: var(--flame-light); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--text);
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon-svg { width: 1.15em; height: 1.15em; }

.placeholder { color: var(--flame-light); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--grey { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.btn--grey:hover { background: var(--line-strong); }
.btn--flame { background: var(--flame); color: var(--white); }
.btn--flame:hover { background: var(--flame-dark); box-shadow: 0 12px 28px rgba(232,73,29,0.35); }
.btn--ice { background: var(--ice); color: var(--white); }
.btn--ice:hover { background: var(--ice-dark); box-shadow: 0 12px 28px rgba(41,171,226,0.3); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline-white:hover { background: var(--white); color: var(--bg); border-color: var(--white); }
.btn--outline-grey { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--outline-grey:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-soft); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 24, 28, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: 48px; }
.brand-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text); line-height: 1.15; }
.brand-text .line1 { font-size: 1.05rem; }
.brand-text .line2 { font-size: 0.72rem; font-weight: 500; color: var(--text-faint); letter-spacing: 0.03em; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.call-link { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); font-size: 0.95rem; }
.call-link .icon { color: var(--flame); }

.main-nav { display: flex; align-items: center; gap: 26px; margin-right: 8px; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--text-soft); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--text); border-color: var(--flame); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, #1c2126 0%, #121518 65%, #0e1013 100%);
  color: var(--white); overflow: hidden; padding: 110px 0 80px;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(16px); opacity: 0.45; pointer-events: none; }
.hero::before { width: 560px; height: 560px; background: radial-gradient(circle at 30% 30%, var(--flame), transparent 70%); top: -200px; right: -160px; }
.hero::after { width: 480px; height: 480px; background: radial-gradient(circle at 60% 60%, var(--ice), transparent 70%); bottom: -220px; left: -160px; }
.hero .container { position: relative; z-index: 2; text-align: center; max-width: 820px; }

.hero-eyebrow { display: inline-block; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); padding: 6px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 22px; }

.hero-eyebrow--accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(90deg, var(--flame) 0%, var(--flame-light) 35%, var(--ice-light) 65%, var(--ice) 100%) border-box;
  box-shadow: 0 0 18px rgba(232,73,29,0.22), 0 0 18px rgba(41,171,226,0.18);
  text-transform: uppercase;
  font-size: 0.8rem;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.eyebrow-dot--flame { background: var(--flame-light); box-shadow: 0 0 9px 1px var(--flame); }
.eyebrow-dot--ice { background: var(--ice-light); box-shadow: 0 0 9px 1px var(--ice); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); margin-bottom: 16px; letter-spacing: -0.01em; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-soft); max-width: 620px; margin: 0 auto 30px; }
.hero-call { font-size: 1.15rem; font-weight: 700; margin-bottom: 34px; }
.hero-call a { color: var(--white); border-bottom: 2px solid var(--flame); }
.hero-nav-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Hero: split photo layout (home page) ---------- */
.hero--split { padding: 90px 0 0; }
.hero--split .hero-grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 50px; align-items: center; text-align: left; max-width: none;
}
.hero--split .hero-copy { max-width: 560px; }
.hero--split .hero-eyebrow { margin-bottom: 20px; }
.hero--split .hero-sub { margin: 0 0 28px; }
.hero--split .hero-call { margin-bottom: 30px; }
.hero--split .hero-nav-buttons { justify-content: flex-start; }

.hero-photo-frame {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(140deg, rgba(232,73,29,0.35), rgba(41,171,226,0.35));
  border: 1px solid var(--line-strong);
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-photo-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-photo-frame .frame-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 40% 30%, rgba(255,255,255,0.12), transparent 60%);
}
.hero-photo-frame .frame-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  width: 64px; height: 64px; color: rgba(255,255,255,0.55);
}
.hero-photo-frame .frame-caption {
  position: relative; z-index: 2; margin: 0 24px 22px; padding: 10px 16px;
  background: rgba(0,0,0,0.45); border-radius: 999px; font-size: 0.85rem; color: var(--text-soft); text-align: center;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 60px 0; }
.section--grey { background: var(--bg-alt); }
.section--dark { background: var(--surface); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--text-soft); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-header p { color: var(--text-soft); font-size: 1.05rem; }

.eyebrow { display: inline-block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow--flame { color: var(--flame-light); }
.eyebrow--ice { color: var(--ice-light); }

/* ---------- Why choose us cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow-sm); }
.feature-card .icon-badge { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.4rem; }
.feature-card.flame .icon-badge { background: rgba(232,73,29,0.16); color: var(--flame-light); }
.feature-card.ice .icon-badge { background: rgba(41,171,226,0.16); color: var(--ice-light); }
.feature-card.grey .icon-badge { background: rgba(255,255,255,0.08); color: var(--text-soft); }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--text-soft); margin-bottom: 0; }

/* ---------- Service photo cards (Our Services grid) ---------- */
.feature-card--photo { padding: 0; overflow: hidden; }
.feature-card--photo .card-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.feature-card--photo .card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-card--photo .feature-card-body { padding: 26px; }

/* ---------- Testimonial ---------- */
.testimonial { max-width: 720px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow-sm); }
.testimonial .stars { color: var(--flame-light); font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 3px; }
.testimonial blockquote { font-size: 1.2rem; font-style: italic; margin: 0 0 18px; color: var(--text); }
.testimonial cite { font-weight: 600; color: var(--text-soft); font-style: normal; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--bg), var(--surface)); color: var(--white); padding: 60px 0; text-align: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-soft); margin-bottom: 28px; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.pricing-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.pricing-card--featured { border-color: var(--flame); box-shadow: 0 0 0 1px var(--flame), var(--shadow); position: relative; }
.pricing-tag { position: absolute; top: -13px; left: 28px; background: var(--flame); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.pricing-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pricing-card .price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2rem; color: var(--text); }
.pricing-card .price span { font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; font-size: 0.85rem; color: var(--text-faint); margin-left: 6px; }
.pricing-card .price-note { color: var(--text-faint); font-size: 0.85rem; margin: 4px 0 20px; }
.pricing-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; flex: 1; }
.pricing-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--text-soft); }
.pricing-card .check { flex: none; width: 18px; height: 18px; color: var(--flame-light); margin-top: 2px; }

/* ---------- Discount / savings band ---------- */
.discount-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; }
.discount-card .discount-icon { font-size: 1.6rem; color: var(--flame-light); }
.discount-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.discount-card p { color: var(--text-soft); font-size: 0.92rem; margin: 0; max-width: 560px; }
.discount-card .discount-value { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--flame-light); }

/* ---------- Services page ---------- */
.service-section { padding: 80px 0; }
.service-intro { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.service-intro p { color: var(--text-soft); font-size: 1.05rem; }
.section--dark .service-intro p { color: var(--text-soft); }

.service-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.service-block h3 { font-size: 1.15rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.service-list li { display: flex; gap: 14px; align-items: flex-start; }
.service-list .bullet-icon { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; margin-top: 2px; }
.service--heating .bullet-icon { background: rgba(232,73,29,0.18); color: var(--flame-light); }
.service--cooling .bullet-icon { background: rgba(41,171,226,0.18); color: var(--ice-light); }
.service-list strong { display: block; color: var(--text); }
.service-list span.desc { color: var(--text-soft); font-size: 0.95rem; }
.service-cta { text-align: center; margin-top: 10px; }

.maintenance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.maintenance-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 30px; }
.maintenance-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.maintenance-card p { color: var(--text-soft); margin-bottom: 0; }
.maintenance-card .badge { font-size: 1.6rem; margin-bottom: 12px; display: block; }

/* ---------- Rate table ---------- */
.rate-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.rate-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.rate-table th, .rate-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.rate-table th { background: var(--surface-2); color: var(--text-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.rate-table td.service-name { color: var(--text); font-weight: 600; }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table-note { text-align: center; color: var(--text-faint); font-size: 0.85rem; margin-top: 16px; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.quote-card h4 { font-size: 1rem; margin-bottom: 8px; }
.quote-card p { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 14px; }
.quote-card .quote-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--flame-light); font-size: 0.95rem; letter-spacing: 0.02em; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: start; }
.credentials { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.credentials li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.credentials li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flame); flex: none; }

.service-area-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.service-area-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-weight: 500; font-size: 0.95rem; }

/* ---------- Job site gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery-photo { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; position: relative; font-size: 2rem; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { padding: 12px 14px; font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Form ---------- */
.booking-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; color: var(--text); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: inherit; font-size: 0.98rem; color: var(--text); background: var(--bg-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--flame); background: var(--surface); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--text-faint); margin-top: 14px; text-align: center; }
.form-success { display: none; background: rgba(41,171,226,0.12); border: 1px solid var(--ice); color: var(--ice-light); padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }

/* ---------- Contact card (contact page) ---------- */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--flame-light); margin-top: 2px; }
.contact-list b, .contact-list a { display: block; color: var(--text); font-size: 1rem; }
.contact-list small { display: block; color: var(--text-faint); font-size: 0.85rem; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--text-soft); padding: 60px 0 26px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-text .line1 { color: var(--white); }
.footer-brand .brand-text .line2 { color: var(--text-faint); }
.footer-tagline { margin-top: 14px; color: var(--text-faint); font-style: italic; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: var(--text-soft); font-size: 0.95rem; }
.footer-col a:hover { color: var(--flame-light); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero--split .hero-grid { grid-template-columns: 1fr; }
  .hero--split .hero-copy { max-width: none; text-align: center; }
  .hero--split .hero-nav-buttons { justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .service-columns { grid-template-columns: 1fr; gap: 32px; }
  .maintenance-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 73px; left: 0; right: 0; background: var(--bg-alt);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .call-link span.call-text { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .service-area-list { grid-template-columns: 1fr 1fr; }
  .discount-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 0 50px; }
  .hero--split { padding: 56px 0 0; }
  .section, .service-section { padding: 56px 0; }
  .booking-form, .contact-card { padding: 24px; }
  .service-area-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .header-actions { gap: 10px; }
  .header-actions .btn--grey { display: none; }
}
