/* ============================================
   Desert Breeze Heating & Air - Global Styles
   ============================================ */

:root {
  --primary: #1a365d;
  --primary-dark: #0f2440;
  --primary-light: #2c5282;
  --accent: #ed8936;
  --accent-hover: #dd6b20;
  --accent-light: #fbd38d;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --bg-dark: #edf2f7;
  --border: #e2e8f0;
  --success: #38a169;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Accessibility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--primary);
  color: white;
}
.btn-secondary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-outline-light:hover {
  background: white;
  color: var(--primary);
}

.btn-block { width: 100%; }

.link-arrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}
.link-arrow:hover { color: var(--accent-hover); }

.sidebar-related {
  list-style: none;
  padding: 0;
  font-size: 14px;
}
.sidebar-related li { margin-bottom: 10px; }
.sidebar-related a {
  color: var(--primary-light);
  font-weight: 600;
}
.sidebar-related a:hover { color: var(--accent); }

.area-note {
  font-size: 13px;
  color: var(--text-light);
}

.sidebar-card-dark {
  background: var(--primary);
  color: white;
}
.sidebar-card-dark h3 { color: white; }
.sidebar-card-dark p { color: rgba(255,255,255,0.85); }
.sidebar-card-dark .sidebar-phone { color: white; font-size: 24px; }
.sidebar-card-dark a { color: white; }

.blog-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-dark);
  color: white;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: white; font-weight: 600; }
.top-bar a:hover { color: var(--accent-light); }
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ===== Header ===== */
.site-header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo svg { flex-shrink: 0; }
.logo span { color: var(--accent); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-desktop a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-desktop a:hover { color: var(--accent); }

.nav-cta { margin-left: 16px; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn svg { width: 28px; height: 28px; }

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  padding: 80px 24px 24px;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn { margin-top: 8px; }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}
.mobile-overlay.open { display: block; }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-content h1 span { color: var(--accent-light); }
.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 18px;
  font-weight: 700;
}
.hero-phone svg { fill: var(--accent); width: 20px; height: 20px; }

/* Hero Form Card */
.hero-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.hero-form-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--primary);
}
.hero-form-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(237,137,54,0.15);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

.form-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
}

.img-rounded {
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  width: 100%;
}

/* Service hours & areas sidebar lists */
.sidebar-list {
  list-style: none;
  padding: 0;
  font-size: 14px;
  color: var(--text-light);
}
.sidebar-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-list.hours li {
  justify-content: space-between;
}
.sidebar-list .hours-emergency {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--primary);
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--bg-alt);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.trust-item svg { width: 20px; height: 20px; fill: var(--accent); flex-shrink: 0; }

/* ===== Section Styles ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-light);
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 32px; height: 32px; fill: var(--accent); }
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}
.service-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.service-card .link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}
.service-card .link:hover { color: var(--accent-hover); }

/* ===== Why Choose Us ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-item {
  display: flex;
  gap: 16px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; fill: white; }
.feature-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary);
}
.feature-text p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}
.testimonial-stars svg { width: 16px; height: 16px; fill: #ecc94b; }
.testimonial-card p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
}
.testimonial-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--primary);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-size: cover;
  background-position: center;
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Emergency Banner ===== */
.emergency-banner {
  background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
  color: white;
  padding: 20px 0;
  text-align: center;
}
.emergency-banner .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.emergency-banner strong {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.emergency-banner svg { width: 20px; height: 20px; fill: #feb2b2; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { margin-bottom: 16px; line-height: 1.7; }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 16px; height: 16px; fill: white; }

.footer-social a[href="#"] {
  cursor: default;
  opacity: 0.6;
}
.footer-social a[href="#"]:hover {
  background: rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}
.footer-legal a:hover { color: var(--accent-light); }

/* Footer logo overrides */
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand .logo span { color: var(--accent-light); }

/* ===== Inner Page Header ===== */
.page-header {
  background: var(--primary);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-size: cover;
  background-position: center;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
  font-size: 38px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

/* ===== Content Layouts ===== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.main-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 12px;
}
.main-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 8px;
}
.main-content p {
  margin-bottom: 16px;
  color: var(--text-light);
}
.main-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-light);
}
.main-content li { margin-bottom: 6px; }

.sidebar-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.sidebar-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.sidebar-card p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.sidebar-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.sidebar-phone svg { fill: var(--accent); }

/* ===== Area Grid ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.area-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.area-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.area-card svg { width: 32px; height: 32px; fill: var(--accent); margin-bottom: 8px; }
.area-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); }

/* ===== Blog Grid ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.blog-card-body { padding: 24px; }
.blog-card .date {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card p { font-size: 14px; color: var(--text-light); }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate {
  opacity: 0;
}
.animate.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}
.animate.fade-in {
  animation: fadeIn 0.7s ease forwards;
}
.animate.slide-left {
  animation: slideInLeft 0.7s ease forwards;
}
.animate.slide-right {
  animation: slideInRight 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Stagger on scroll - simple class toggle via JS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-form-card { max-width: 480px; margin: 0 auto; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav { display: flex; }
  .hero-content h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-bar .container { gap: 16px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 26px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .top-bar .container { justify-content: center; }
}
