/* ============================================
   Summit Heating & Air — shared styles
   Replace brand values below to re-theme site
   ============================================ */

:root {
  --navy: #0f2a43;
  --navy-dark: #0a1e30;
  --blue: #1668a7;
  --blue-light: #e8f2fa;
  --orange: #e8762d;
  --orange-dark: #cf5f18;
  --ink: #22303c;
  --muted: #5b6b78;
  --line: #dde5ec;
  --bg-soft: #f5f8fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(15, 42, 67, 0.08);
  --shadow-lg: 0 8px 28px rgba(15, 42, 67, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cdd9e4;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; }
.nowrap { white-space: nowrap; }
/* On narrow screens: drop the dot, stack the two phrases cleanly */
@media (max-width: 560px) {
  .topbar .sep { display: none; }
  .topbar .nowrap { display: block; }
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(15, 42, 67, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .flame { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--orange); text-decoration: none; }
.main-nav a.active { color: var(--orange); }
/* Button in the nav keeps button colors (beats .main-nav a specificity) */
.main-nav a.btn-primary { color: #fff; }
.main-nav a.btn-primary:hover { color: #fff; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-nav { padding: 10px 20px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 90px 0;
  text-align: center;
}
.hero.hero-photo {
  background:
    linear-gradient(rgba(10, 30, 48, 0.78), rgba(15, 42, 67, 0.68)),
    url("assets/hero-roof.jpg") center 40% / cover no-repeat;
  padding: 130px 0;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero p.lede {
  font-size: 1.15rem;
  color: #d7e4ef;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-sub {
  padding: 60px 0;
  text-align: left;
}
.hero-sub h1 { margin-bottom: 10px; }
.hero-sub p.lede { margin: 0; max-width: 720px; }

/* ---------- Trust badges ---------- */
.trust {
  background: var(--navy-dark);
  color: #fff;
  padding: 22px 0;
}
.trust .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}
.trust-item strong { display: block; font-size: 1.3rem; color: var(--orange); }
.trust-item span { font-size: 0.85rem; color: #b9c8d5; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); }
.section-head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  margin: 14px auto 0;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card.card-photo { padding: 0; overflow: hidden; }
.card.card-photo .card-body { padding: 26px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
/* Crop window anchored toward the bottom of the photo (subject low in frame) */
.card-img.img-bottom { object-position: center 80%; }
.card:hover .card-img { transform: scale(1.04); }
.card-img { transition: transform 0.4s ease; }
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 30px; height: 30px; stroke: var(--blue); }
.card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card ul {
  list-style: none;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.card ul li { padding: 4px 0 4px 24px; position: relative; }
.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
.card .card-link { font-weight: 700; margin-top: 14px; }

/* ---------- About / photo-text split ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.about-grid p { color: var(--ink); margin-bottom: 14px; }
.about-photo {
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 rgba(232, 118, 45, 0.16), var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.content-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin: 20px 0;
}
/* Uncropped variant: show the whole photo at natural aspect ratio */
.content-photo.full {
  height: auto;
  object-fit: initial;
  max-width: 560px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.feature { text-align: center; padding: 0 8px; }
.feature .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature .icon svg { width: 26px; height: 26px; stroke: var(--blue); }
.feature h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.25;
}
.testimonial .stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial p { color: var(--ink); font-size: 0.95rem; font-style: italic; }
.testimonial footer {
  margin-top: 14px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  font-style: normal;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.cta-banner p { margin-bottom: 26px; color: #ffe8d8; }
.cta-banner .btn { background: #fff; color: var(--orange-dark); }
.cta-banner .btn:hover { background: #fff3ea; }

/* ---------- Content pages ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.content-main h2 { color: var(--navy); margin: 28px 0 12px; font-size: 1.4rem; }
.content-main h2:first-child { margin-top: 0; }
.content-main p { color: var(--ink); margin-bottom: 14px; }
.content-main ul { margin: 0 0 14px 22px; color: var(--ink); }
.content-main ul li { margin-bottom: 6px; }

.sidebar-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 90px;
}
.sidebar-card h3 { color: var(--navy); margin-bottom: 10px; }
.sidebar-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.sidebar-card .phone-big {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.sidebar-card .btn { width: 100%; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
.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(22, 104, 167, 0.12);
}
.contact-info h3 { color: var(--navy); margin-bottom: 8px; }
.contact-info .info-block { margin-bottom: 26px; }
.contact-info .info-block p { color: var(--muted); }
.contact-info .phone-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table td { padding: 6px 0; color: var(--muted); }
.hours-table td:last-child { text-align: right; color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c8d5;
  padding: 56px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #b9c8d5; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #7e93a5;
}

/* ---------- Albuquerque touches ---------- */
/* Sandia-style mountain ridge divider */
.ridge { display: block; line-height: 0; }
.ridge svg { display: block; width: 100%; height: 54px; }
.hero.hero-photo { position: relative; }
.hero.hero-photo .ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
}

/* Floating hot-air balloons in the hero sky */
.balloon {
  position: absolute;
  pointer-events: none;
  animation: balloonFloat 8s ease-in-out infinite alternate;
}
.balloon.b1 { width: 54px; right: 12%; top: 16%; opacity: 0.9; }
.balloon.b2 { width: 34px; left: 9%; top: 34%; opacity: 0.6; animation-duration: 11s; animation-delay: 1.2s; }
@keyframes balloonFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-18px); }
}

/* Balloon Fiesta photo band */
.abq-band {
  background:
    linear-gradient(rgba(10, 30, 48, 0.66), rgba(10, 30, 48, 0.72)),
    url("assets/balloons-abq.jpg") center 62% / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 96px 0;
}
.abq-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}
.abq-band p {
  color: #d7e4ef;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Scroll animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.visible {
  opacity: 1;
  transform: none;
}
/* Stagger children inside a revealed group */
.reveal-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-group.visible > * { opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.36s; }

/* Hero entrance */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.hero h1, .hero .lede, .hero .hero-ctas {
  animation: heroUp 0.8s ease both;
}
.hero .lede { animation-delay: 0.15s; }
.hero .hero-ctas { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero h1, .hero .lede, .hero .hero-ctas { animation: none; }
  .card-img, .card:hover .card-img { transition: none; transform: none; }
  .balloon { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .main-nav .btn-nav { margin: 14px 20px; }

  .balloon.b1 { width: 36px; right: 6%; top: 5%; }
  .balloon.b2 { width: 24px; left: 6%; top: 9%; }

  .content-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .hero { padding: 64px 0; }
  .hero.hero-photo { padding: 90px 0; }
  .about-photo { height: 300px; }
  .section { padding: 52px 0; }
}
