/* ===================================================
   Champion HVAC Atlanta Experts — Stylesheet
   =================================================== */

:root {
  --color-primary: #1b4965;
  --color-primary-dark: #122f43;
  --color-primary-light: #256485;
  --color-accent: #d4830e;
  --color-accent-soft: rgba(212, 131, 14, 0.12);
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #475569;
  --color-border: #dfe3e8;
  --gradient-thermal: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p + p { margin-top: 1em; }

.accent { color: var(--color-accent); }
.muted  { color: var(--color-text-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  min-height: 48px;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(27, 73, 101, 0.25);
}

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

.btn-white {
  background-color: #fff;
  color: var(--color-primary);
}
.btn-white:hover {
  background-color: var(--color-bg);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  background: transparent;
}
.btn-outline-white:hover {
  background-color: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(245, 246, 248, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.header-phone {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.header-phone:hover {
  color: var(--color-primary-dark);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}
.nav-link.active {
  font-weight: 600;
}

.header-gradient {
  height: 3px;
  background: var(--gradient-thermal);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  padding: 120px 0 80px;
  background-color: var(--color-bg);
  background-image: radial-gradient(ellipse 60% 50% at 80% 25%, rgba(27, 73, 101, 0.06) 0%, transparent 70%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
}

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

.hero h1 { margin-bottom: 12px; }

.hero-tagline {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.hero-rating {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 32px;
}

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

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(27, 73, 101, 0.12);
}

.stock-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

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

.section-header {
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

/* --- About --- */
.about-content {
  max-width: 680px;
}
.about-content h2 { margin-bottom: 16px; }
.about-content p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.about-accent-bar {
  width: 64px;
  height: 4px;
  background: var(--gradient-thermal);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* --- Services list (homepage) --- */
.services-list {
  display: grid;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-item:first-child {
  border-top: 1px solid var(--color-border);
}

.service-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.service-info h3 { margin-bottom: 6px; }
.service-info p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.services-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.services-link:hover {
  color: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

/* --- Trust strip --- */
.trust-strip {
  padding: 48px 0;
  text-align: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-stars {
  font-size: 1.5rem;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

.trust-text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* --- CTA --- */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--color-primary);
  color: #fff;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --- Page header (inner pages) --- */
.page-header {
  padding: 120px 0 48px;
  background-color: var(--color-bg);
  background-image: radial-gradient(ellipse 50% 60% at 20% 60%, rgba(27, 73, 101, 0.05) 0%, transparent 70%);
}
.page-header h1 { margin-bottom: 10px; }
.page-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.page-header .about-accent-bar {
  margin-bottom: 20px;
}

/* --- Service blocks (services page) --- */
.service-block {
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-block:last-child {
  border-bottom: none;
}

.service-block-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.service-block-num {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.service-block h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.service-block p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 640px;
}

/* --- Process steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: var(--gradient-thermal);
  border-radius: 1px;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.step h3 { margin-bottom: 6px; }
.step p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* --- Contact page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-details h2 { margin-bottom: 24px; }

.contact-item { margin-bottom: 20px; }

.contact-item-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contact-item a {
  font-weight: 600;
  color: var(--color-primary);
}
.contact-item a:hover {
  color: var(--color-primary-dark);
}

.contact-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 73, 101, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.footer-brand strong {
  color: #fff;
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}

.footer-brand p,
.footer-brand a {
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-brand a:hover { color: #fff; }

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.from-left  { transform: translateX(-24px); }
.reveal.from-right { transform: translateX(24px); }

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* --- Tablet --- */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero { padding: 100px 0 56px; }
  .hero-content { max-width: none; }
  .hero-image-wrap img { height: 320px; }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .process-steps::before { display: none; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(245, 246, 248, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .header-nav.open { display: flex; }

  .header-nav .nav-link {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }
  .header-nav .nav-link:last-child { border-bottom: none; }

  .menu-toggle { display: flex; }

  .hero { padding: 88px 0 48px; }
  .hero-image-wrap img { height: 260px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }

  .process-steps { grid-template-columns: 1fr; gap: 28px; }
  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    text-align: left;
  }
  .step-num { margin-bottom: 0; }
  .step-text { padding-top: 4px; }

  .cta-section { padding: 56px 0; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; }

  .footer-inner { flex-direction: column; gap: 20px; }

  .contact-form-card { padding: 24px; }

  .service-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .page-header { padding: 100px 0 36px; }
}
