/* ===== MEAD HEATING & COOLING — BRAND VARIABLES ===== */
:root {
  --navy:   #0d1b2a;
  --navy2:  #122233;
  --blue:   #1a7fc1;
  --blue2:  #1565a0;
  --orange: #f46b1b;
  --orange2:#d45a0f;
  --white:  #ffffff;
  --offwhite: #f5f7fa;
  --gray:   #6b7280;
  --light:  #e8edf2;
  --text:   #1a1a2e;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --transition: 0.25s ease;
  --max-width: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { font-size: 1.05rem; color: var(--gray); line-height: 1.75; }
.lead { font-size: 1.2rem; color: var(--gray); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark .lead { color: rgba(255,255,255,0.75); }
.section-navy2 { background: var(--navy2); }
.section-offwhite { background: var(--offwhite); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header p { margin-top: 16px; }
.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.section-dark .eyebrow { color: var(--orange); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; border: none; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(244,107,27,0.35); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(13,27,42,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--max-width); margin: 0 auto; gap: 24px; }
.navbar-logo img { height: 52px; width: auto; }
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.navbar-nav a { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: var(--radius); transition: var(--transition); }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--white); background: rgba(255,255,255,0.08); }
.navbar-cta { display: flex; align-items: center; gap: 12px; }
.navbar-phone { color: var(--orange); font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.navbar-phone:hover { color: var(--orange2); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.mobile-nav { display: none; position: fixed; top: 81px; left: 0; right: 0; background: var(--navy); padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.08); z-index: 999; flex-direction: column; gap: 4px; }
.mobile-nav a { color: rgba(255,255,255,0.85); padding: 12px 16px; border-radius: var(--radius); display: block; font-weight: 500; }
.mobile-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.mobile-nav .btn { margin-top: 12px; justify-content: center; }
.mobile-nav.open { display: flex; }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 81px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; background-repeat: no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.75) 55%, rgba(13,27,42,0.35) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 60px 24px; margin-left: calc((100vw - var(--max-width)) / 2 + 24px); }
.hero-content .eyebrow { color: var(--orange); }
.hero-content h1 { color: var(--white); margin: 12px 0 24px; }
.hero-content h1 span { color: var(--orange); }
.hero-content .lead { color: rgba(255,255,255,0.82); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 24px; margin-top: 48px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.92rem; font-weight: 600; }
.hero-badge svg { color: var(--orange); flex-shrink: 0; }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--orange); padding: 18px 0; }
.trust-bar-inner { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 0.95rem; }
.trust-item svg { opacity: 0.9; flex-shrink: 0; }

/* ===== CARDS ===== */
.card-grid { display: grid; gap: 28px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 28px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { font-size: 0.95rem; }
.card-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--orange), var(--blue)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
.card-icon svg { color: var(--white); }

/* ===== SERVICE CARDS (dark) ===== */
.service-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 32px 28px; transition: var(--transition); }
.service-card:hover { background: rgba(255,255,255,0.09); border-color: var(--orange); transform: translateY(-3px); }
.service-card h3 { color: var(--white); margin: 16px 0 10px; }
.service-card p { color: rgba(255,255,255,0.68); font-size: 0.95rem; }

/* ===== SPLIT SECTIONS ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.split-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 420px; object-fit: cover; }
.split-text h2 { margin-bottom: 20px; }
.split-text p { margin-bottom: 16px; }
.split-text .btn { margin-top: 16px; }
.check-list { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.97rem; color: var(--text); }
.check-list li svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.section-dark .check-list li { color: rgba(255,255,255,0.85); }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; }
.stat-item { background: rgba(255,255,255,0.04); padding: 36px 24px; text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-top: 8px; font-weight: 500; }

/* ===== TESTIMONIALS ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial { background: var(--white); border-radius: 12px; padding: 32px 28px; box-shadow: var(--shadow); border-left: 4px solid var(--orange); }
.testimonial-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.97rem; color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testimonial-author { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.testimonial-role { font-size: 0.85rem; color: var(--gray); margin-top: 2px; }

/* ===== TECH FEATURE ===== */
.tech-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tech-img { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.tech-img img { width: 100%; height: 480px; object-fit: cover; }
.tech-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,127,193,0.2), rgba(244,107,27,0.1)); pointer-events: none; }
.tech-points { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.tech-point { display: flex; gap: 18px; align-items: flex-start; }
.tech-point-icon { width: 48px; height: 48px; background: linear-gradient(135deg, rgba(244,107,27,0.15), rgba(26,127,193,0.15)); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tech-point-icon svg { color: var(--orange); }
.tech-point h4 { color: var(--white); margin-bottom: 4px; }
.tech-point p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }

/* ===== CTA BANNER ===== */
.cta-banner { background: linear-gradient(135deg, var(--orange) 0%, #c8430a 100%); padding: 64px 0; text-align: center; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.88); margin: 16px 0 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-secondary { border-color: var(--white); }

/* ===== FOOTER ===== */
.footer { background: #070f18; color: rgba(255,255,255,0.65); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 52px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.05em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.92rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul a:hover { color: var(--orange); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; margin-bottom: 12px; }
.footer-contact-item svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.6); }
.footer-contact-item a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); }
.footer-bottom-links a:hover { color: var(--orange); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: var(--navy); padding: 140px 0 80px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(26,127,193,0.15) 0%, transparent 70%); }
.page-hero h1 { color: var(--white); position: relative; }
.page-hero p { color: rgba(255,255,255,0.72); max-width: 600px; margin: 16px auto 0; position: relative; }
.page-hero .eyebrow { position: relative; }

/* ===== CONTACT FORM ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea { padding: 13px 16px; border: 1.5px solid var(--light); border-radius: var(--radius); font-size: 1rem; color: var(--text); background: var(--white); transition: var(--transition); font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,127,193,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.text-white { color: var(--white); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex-center { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.tag { display: inline-block; background: rgba(244,107,27,0.12); color: var(--orange); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; }
.divider { width: 56px; height: 4px; background: linear-gradient(90deg, var(--orange), var(--blue)); border-radius: 2px; margin: 20px auto; }
.divider-left { margin-left: 0; }

/* ===== TICKER ===== */
.ticker-wrap { background: var(--navy2); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 12px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker-scroll 35s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.82); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em; padding: 0 40px; text-transform: uppercase; }
.ticker-item svg { color: var(--orange); flex-shrink: 0; }
.ticker-dot { display: inline-block; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; margin: 0 16px; flex-shrink: 0; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-nav, .navbar-cta .btn { display: none; }
  .hamburger { display: flex; }
  .hero-content { margin-left: 0; padding: 40px 24px; }
  .split, .tech-feature, .card-grid-2, .card-grid-3, .testimonial-grid { grid-template-columns: 1fr; }
  .split-reverse { direction: ltr; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .split-img img, .tech-img img { height: 280px; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .card-grid-4, .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .trust-bar-inner { flex-direction: column; gap: 12px; }
}
