/* ============================================
   Deane Electric & Air Conditioning
   Brand Design System — style.css
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1F2937; line-height: 1.7; background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1354a5; text-decoration: none; transition: color .25s ease; }
a:hover { color: #053e84; }
ul, ol { list-style: none; }

/* --- Colors --- */
:root {
  --navy: #053e84;
  --blue: #1354a5;
  --blue-dark: #053e84;
  --blue-light: #eff6ff;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --green: #10B981;
  --amber: #FFB400;
  --red: #EF4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--gray-700); line-height: 1.7; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-blue { color: var(--blue); }
.text-navy { color: var(--navy); }
.text-gray { color: var(--gray-500); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hide-mobile { display: none !important; }
}

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.85rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all .25s ease; border: none; text-decoration: none; gap: 0.5rem; letter-spacing: 0.01em; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5,62,132,.25); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.8); }
.btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(19,84,165,.2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #122a4f; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5,62,132,.25); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #059669; color: #fff; }
.btn-orange { background: var(--amber); color: #053e84; font-weight: 700; }
.btn-orange:hover { background: #e6a200; color: #053e84; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,180,0,.35); }
.btn-lg { padding: 1.05rem 2.5rem; font-size: 1.125rem; }
.btn-sm { padding: 0.55rem 1.35rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* --- Top Bar --- */
.top-bar { background: var(--navy); color: rgba(255,255,255,.8); font-size: 0.8125rem; padding: 0.5rem 0; }
.top-bar a { color: #fff; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 768px) { .top-bar { text-align: center; } .top-bar .container { justify-content: center; } }

/* --- Header --- */
.header { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.04); position: sticky; top: 0; z-index: 1000; transition: box-shadow .3s ease; }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.header-logo img { height: 52px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav a { color: var(--navy); font-weight: 500; font-size: 0.9375rem; transition: color .2s; position: relative; }
.header-nav a:hover { color: var(--blue); }
.header-nav a.active { color: var(--blue); }
.header-phone { display: flex; align-items: center; gap: 0.5rem; color: var(--navy); font-weight: 700; font-size: 1.125rem; }
.header-phone svg { width: 20px; height: 20px; color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: -1rem; background: #fff; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.12); padding: 0.5rem 0; min-width: 230px; z-index: 100; border: 1px solid rgba(0,0,0,.04); }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 0.6rem 1.5rem; font-size: 0.875rem; white-space: nowrap; transition: all .2s ease; }
.nav-dropdown-menu a:hover { background: var(--blue-light); color: var(--blue); padding-left: 1.75rem; }

/* Mobile nav */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }
.mobile-nav { display: none; background: #fff; padding: 1rem 0; border-top: 1px solid var(--gray-200); }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: 0.75rem 1.5rem; color: var(--navy); font-weight: 500; border-bottom: 1px solid var(--gray-100); }
.mobile-nav a:hover { background: var(--gray-50); color: var(--blue); }

@media (max-width: 1024px) {
  .header-nav, .header-actions .hide-mobile { display: none; }
  .mobile-toggle { display: block; }
}

/* --- Hero --- */
.hero { background: linear-gradient(135deg, #053e84 0%, #1354a5 100%); color: #fff; padding: 5rem 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(19,84,165,0.08)"/><circle cx="20" cy="80" r="30" fill="rgba(19,84,165,0.05)"/></svg>') center/cover; }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.25rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-lg { padding: 7rem 0; }
.hero-center { text-align: center; }
.hero-center .hero-content { max-width: 800px; margin: 0 auto; }
.hero-center .hero-ctas { justify-content: center; }

/* Trust bar */
.trust-bar { background: rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 1.25rem 2rem; margin-top: 3rem; display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,.9); font-size: 0.9375rem; font-weight: 500; }
.trust-item svg { width: 20px; height: 20px; color: var(--amber); }
@media (max-width: 768px) { .trust-bar { gap: 1.25rem; padding: 1rem; } .trust-item { font-size: 0.8125rem; } }

/* --- Cards --- */
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 2px 12px rgba(0,0,0,.06); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; border: 1px solid rgba(0,0,0,.04); }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.card-body { padding: 2rem; }
.card-icon { width: 56px; height: 56px; background: var(--blue-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon svg { width: 28px; height: 28px; color: var(--blue); }
.card h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.card p { color: var(--gray-500); font-size: 0.9375rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--blue); font-weight: 600; font-size: 0.9375rem; margin-top: 0.75rem; }
.card-link:hover { gap: 0.5rem; }

/* Service card with image */
.service-card { position: relative; }
.service-card-img { height: 200px; background: var(--gray-200); position: relative; }
.service-card-badge { position: absolute; top: 1rem; right: 1rem; background: var(--green); color: #fff; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

/* --- Callout Sections --- */
.callout { background: var(--navy); color: #fff; padding: 4rem 0; position: relative; overflow: hidden; }
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,.8); }
.callout-blue { background: var(--blue); }
.callout-gradient { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); }
.callout-light { background: var(--blue-light); color: var(--navy); }
.callout-light h2 { color: var(--navy); }
.callout-light p { color: var(--gray-700); }

/* --- Reviews --- */
.review-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.04); transition: transform .3s ease, box-shadow .3s ease; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.review-stars { color: var(--amber); font-size: 1.25rem; margin-bottom: 1rem; letter-spacing: 3px; }
.review-text { color: var(--gray-700); font-style: italic; margin-bottom: 1.25rem; line-height: 1.8; font-size: 0.9375rem; }
.review-author { font-weight: 700; color: var(--navy); font-size: 0.9375rem; }
.review-date { color: var(--gray-500); font-size: 0.8125rem; margin-top: 0.25rem; }
.review-platform { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--gray-500); }

/* Review header */
.reviews-header { text-align: center; margin-bottom: 3.5rem; }
.reviews-header .big-rating { font-size: 4.5rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.reviews-header .star-row { color: var(--amber); font-size: 2.25rem; letter-spacing: 5px; margin-top: 0.5rem; }

/* --- Badges --- */
.badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.875rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-green { background: #D1FAE5; color: #059669; }
.badge-navy { background: var(--navy); color: #fff; }
.badge-amber { background: #FEF3C7; color: #92400E; }

/* --- Pricing Cards --- */
.pricing-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow); border: 2px solid var(--gray-200); padding: 2.5rem; text-align: center; transition: all .3s; position: relative; }
.pricing-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pricing-card.featured { border-color: var(--blue); }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; padding: 0.25rem 1.25rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pricing-price span { font-size: 1rem; color: var(--gray-500); font-weight: 400; }
.pricing-features { text-align: left; margin: 1.5rem 0; }
.pricing-features li { padding: 0.5rem 0; color: var(--gray-700); display: flex; align-items: start; gap: 0.5rem; }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.375rem; font-weight: 600; font-size: 0.875rem; color: var(--navy); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 1rem; font-family: inherit; color: var(--gray-900); transition: border-color .2s, box-shadow .2s; background: #fff; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,84,165,.1); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-input::placeholder { color: var(--gray-300); }

/* --- Accordion / FAQ --- */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; background: none; border: none; cursor: pointer; font-size: 1.0625rem; font-weight: 600; color: var(--navy); text-align: left; font-family: inherit; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--blue); transition: transform .3s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 0 1.25rem; color: var(--gray-700); line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 500px; }

/* --- Coupon Cards --- */
.coupon-card { background: #fff; border: 2px dashed var(--blue); border-radius: var(--radius-lg); padding: 2rem; text-align: center; position: relative; }
.coupon-value { font-size: 2.5rem; font-weight: 800; color: var(--blue); }
.coupon-desc { font-size: 1.125rem; font-weight: 600; color: var(--navy); margin: 0.5rem 0; }
.coupon-terms { font-size: 0.75rem; color: var(--gray-500); }

/* --- Stats --- */
.stat { text-align: center; }
.stat-number { font-size: 3.25rem; font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-size: 0.9375rem; color: var(--gray-500); margin-top: 0.5rem; font-weight: 500; }

/* --- Steps / Process --- */
.step { text-align: center; position: relative; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h4 { margin-bottom: 0.5rem; }
.step p { font-size: 0.9375rem; color: var(--gray-500); }

/* --- Footer --- */
.footer { background: #041e42; color: rgba(255,255,255,.7); padding: 5rem 0 2rem; }
.footer h4 { color: #fff; margin-bottom: 1.5rem; font-size: 1.125rem; letter-spacing: 0.02em; }
.footer a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.9375rem; }
.footer-contact li { margin-bottom: 0.75rem; font-size: 0.9375rem; display: flex; align-items: start; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.8125rem; }
.footer-licenses { font-size: 0.75rem; color: rgba(255,255,255,.4); }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .15s; }
.fade-in-delay-2 { transition-delay: .3s; }
.fade-in-delay-3 { transition-delay: .45s; }

/* --- Utility --- */
.bg-gray { background: var(--gray-50); }
.bg-white { background: #fff; }
.bg-navy { background: var(--navy); }
.bg-blue { background: var(--blue); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Floating Book Now Button --- */
.float-book-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: linear-gradient(135deg, var(--amber), #e6a200); color: #053e84;
  padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 1rem;
  text-decoration: none; box-shadow: 0 4px 24px rgba(255,180,0,.35);
  display: flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif; letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: float-pulse 2.5s ease-in-out infinite;
}
.float-book-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(255,180,0,.45); animation: none; }
@keyframes float-pulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 480px) { .float-book-btn { padding: 12px 20px; font-size: 0.875rem; bottom: 16px; right: 16px; } }
