/* ==========================================================================
   Easley Does It Heating & Air — Stylesheet
   Brand colors pulled from logo: red #BF1E2D, blue #1E75BC
   ========================================================================== */

:root {
  --color-red: #bf1e2d;
  --color-red-dark: #9c1822;
  --color-blue: #1e75bc;
  --color-blue-dark: #18629f;
  --color-navy: #16324f;
  --color-dark: #1c1f24;
  --color-text: #333a42;
  --color-light-bg: #f4f7fa;
  --color-white: #ffffff;
  --color-border: #e3e8ee;
  --shadow-sm: 0 2px 8px rgba(22, 50, 79, 0.08);
  --shadow-md: 0 8px 24px rgba(22, 50, 79, 0.12);
  --radius: 10px;
  --container-width: 1180px;
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-light-bg);
}

.section-tight-top {
  padding-top: 36px;
}

.eyebrow-xl {
  font-size: 4.1rem;
  margin-bottom: 18px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--color-red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.section-header p {
  color: #5b6570;
  margin-top: 12px;
}

/* ----------------------------- Buttons ----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-red-dark); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-blue-dark);
  border-color: var(--color-white);
}
.btn-secondary:hover { box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-blue); color: var(--color-blue-dark); }

.btn-block { width: 100%; }

/* ----------------------------- Header / Nav ----------------------------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.topbar {
  background: var(--color-navy);
  color: #d7e4f0;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a { color: #ffffff; font-weight: 600; }
.topbar .topbar-phone { display: flex; align-items: center; gap: 8px; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--color-navy);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links > li > a:hover,
.nav-links > li.active > a {
  color: var(--color-blue-dark);
  background: var(--color-light-bg);
}

.has-dropdown > a::after {
  content: "\25BE";
  margin-left: 6px;
  font-size: 0.75em;
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--color-text);
}

.dropdown li a:hover { background: var(--color-light-bg); color: var(--color-blue-dark); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ----------------------------- Hero ----------------------------- */

.hero {
  position: relative;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(22,50,79,0.92) 0%, rgba(22,50,79,0.78) 45%, rgba(191,30,45,0.55) 100%);
}

.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 640px; }

.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 { color: var(--color-white); margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: #eef3f8; max-width: 560px; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-page {
  min-height: 380px;
}

/* trust badges strip */
.trust-strip {
  background: var(--color-navy);
  color: #d7e4f0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}
.trust-strip span { display: flex; align-items: center; gap: 8px; }

/* ----------------------------- Logo band ----------------------------- */

.logo-band {
  text-align: center;
  padding: 80px 24px 8px;
}
.logo-band img {
  max-width: 343px;
  width: 100%;
  margin: 0 auto;
  display: block;
}

/* ----------------------------- Cards / Grids ----------------------------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card-icon.icon-heat { background: rgba(191,30,45,0.1); color: var(--color-red); }
.card-icon.icon-cool { background: rgba(30,117,188,0.1); color: var(--color-blue); }
.card-icon.icon-install { background: rgba(22,50,79,0.1); color: var(--color-navy); }

.card h3 { margin-bottom: 10px; }
.card p { color: #5b6570; margin-bottom: 14px; }
.card a.card-link { font-weight: 700; color: var(--color-blue-dark); }

/* Service area chips */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.area-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.area-chip:hover { border-color: var(--color-blue); color: var(--color-blue-dark); background: #f2f8fd; }
.area-chip .arrow { color: var(--color-red); font-weight: 900; }

/* Why us / feature list */
.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.feature-row .num {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}
.feature-row h3 { margin-bottom: 6px; font-size: 1.1rem; }
.feature-row p { color: #5b6570; margin-bottom: 0; }

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ----------------------------- CTA Banner ----------------------------- */

.cta-banner {
  background: linear-gradient(120deg, var(--color-blue-dark), var(--color-navy));
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: #dbe8f4; max-width: 560px; margin: 0 auto 28px; }
.cta-banner .btn-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ----------------------------- Testimonials ----------------------------- */

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--color-red); letter-spacing: 2px; margin-bottom: 12px; font-size: 1rem; }
.testimonial-card p.quote { color: var(--color-text); font-style: italic; margin-bottom: 16px; }
.testimonial-card .author { font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); }
.testimonial-card .review-date { font-size: 0.8rem; color: #7a838c; margin-top: 2px; }

.fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30,117,188,0.08);
  color: var(--color-blue-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ----------------------------- Forms ----------------------------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

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

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note { font-size: 0.82rem; color: #7a838c; margin-top: 6px; }

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-weight: 600;
}
.alert-success { background: #e5f6ec; color: #1a7a3f; border: 1px solid #b6e5c8; }
.alert-error { background: #fdecec; color: var(--color-red-dark); border: 1px solid #f5c2c6; }

.info-card {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.info-card h3 { color: #fff; margin-bottom: 16px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .ico {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.info-row a, .info-row span { color: #e6eef6; }
.info-row a:hover { color: #fff; text-decoration: underline; }

/* ----------------------------- Footer ----------------------------- */

.site-footer {
  background: var(--color-dark);
  color: #b9c1c9;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer-brand img { height: 48px; margin-bottom: 14px; }
.footer-brand p { color: #97a1aa; font-size: 0.92rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b9c1c9; font-size: 0.94rem; transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 0.85rem;
  color: #7d858d;
}
.footer-bottom a { color: #97a1aa; }
.footer-bottom a:hover { color: #fff; }

/* ----------------------------- Utilities ----------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 14px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding-left: 14px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .nav-cta { margin: 8px 0 0; }
  .topbar .container { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { min-height: 460px; }
  .brand img { height: 44px; }
}
