/* ================================================
   Lawrenceville HVAC Contractor & More
   ================================================ */

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

:root {
  /* ---- Palette ---- */
  --color-bg: #f0f4f8;
  --color-surface: #ffffff;
  --color-text: #334155;
  --color-text-muted: #475569;
  --color-heading: #0f172a;
  --color-white: #ffffff;

  /* Cool (AC / cooling) */
  --color-cool: #1d4ed8;
  --color-cool-hover: #1e40af;
  --color-cool-light: #e8f0fe;
  --color-cool-glow: rgba(29, 78, 216, 0.07);
  --color-cool-shadow: rgba(29, 78, 216, 0.22);
  --color-cool-focus: rgba(29, 78, 216, 0.12);

  /* Warm (heating) */
  --color-warm: #b45309;
  --color-warm-light: #fef7ed;
  --color-warm-glow: rgba(180, 83, 9, 0.06);

  /* Utility */
  --color-star: #d97706;
  --color-border: #dfe4ec;
  --color-overlay: rgba(0, 0, 0, 0.55);
  --color-cta-muted: rgba(255, 255, 255, 0.82);
  --color-nav-bg: rgba(240, 244, 248, 0.86);

  /* Footer */
  --color-footer-bg: #101827;
  --color-footer-text: #94a3b8;
  --color-footer-link: #cbd5e1;
  --color-footer-border: rgba(148, 163, 184, 0.18);

  /* ---- Tokens ---- */
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);
  --max-width: 1100px;
  --nav-height: 64px;
}

/* ---- Base ---- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-cool);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.12;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.15rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.1rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

/* ---- Layout ---- */

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

/* ---- Navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-phone {
  font-weight: 650;
  font-size: 1rem;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-phone:hover {
  color: var(--color-cool);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-heading);
  text-decoration: none;
}
.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--color-cool);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-height: 34px;
  min-width: 34px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s, border-color 0.2s;
  min-height: 46px;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-cool);
  color: var(--color-white);
  border-color: var(--color-cool);
  box-shadow: 0 2px 8px var(--color-cool-shadow);
}
.btn-primary:hover {
  background: var(--color-cool-hover);
  border-color: var(--color-cool-hover);
  box-shadow: 0 4px 16px var(--color-cool-shadow);
}

.btn-outline {
  background: transparent;
  color: var(--color-cool);
  border-color: var(--color-cool);
}
.btn-outline:hover {
  background: var(--color-cool-light);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-cool);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-bg);
  border-color: var(--color-bg);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.15rem;
  min-height: 54px;
}

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

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -18%;
  width: 58%;
  height: 190%;
  background: radial-gradient(ellipse at center, var(--color-warm-glow), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -12%;
  width: 52%;
  height: 170%;
  background: radial-gradient(ellipse at center, var(--color-cool-glow), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-tagline {
  margin-top: 14px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

/* ---- Stats Strip ---- */

.stats {
  padding: 36px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}

.stat-stars {
  color: var(--color-star);
  letter-spacing: 2px;
  font-size: 1.15rem;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ---- Services Split (homepage) ---- */

.services-split {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 44px;
  font-size: 1.05rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.split-col {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-border);
}
.split-cool { border-left-color: var(--color-cool); }
.split-warm { border-left-color: var(--color-warm); }

.split-label {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.split-cool .split-label { color: var(--color-cool); }
.split-warm .split-label { color: var(--color-warm); }

.svc-item {
  margin-bottom: 18px;
}
.svc-item:last-child {
  margin-bottom: 0;
}
.svc-item h4 {
  margin-bottom: 6px;
}
.svc-item p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.services-more {
  text-align: center;
  margin-top: 32px;
  color: var(--color-text-muted);
  font-size: 0.96rem;
}
.services-more a {
  font-weight: 600;
}

/* ---- About ---- */

.about {
  padding: 80px 0;
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  position: relative;
}
.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.stock-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--color-overlay);
  color: var(--color-white);
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.about-text h2 {
  margin-bottom: 16px;
}
.about-text p {
  margin-bottom: 14px;
}
.about-text p:last-of-type {
  margin-bottom: 0;
}
.about-text .btn {
  margin-top: 22px;
}

/* ---- CTA Close ---- */

.cta-close {
  padding: 80px 0;
  background: var(--color-cool);
  text-align: center;
}

.cta-content h2 {
  color: var(--color-white);
  margin-bottom: 10px;
}
.cta-content p {
  color: var(--color-cta-muted);
  margin-bottom: 28px;
  font-size: 1.08rem;
}

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

.footer {
  background: var(--color-footer-bg);
  padding: 44px 0 28px;
  color: var(--color-footer-text);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-name {
  font-weight: 600;
  color: var(--color-footer-link);
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.footer-info p {
  margin-bottom: 3px;
  line-height: 1.5;
}
.footer-info a {
  color: var(--color-footer-link);
  text-decoration: none;
}
.footer-info a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-copy {
  border-top: 1px solid var(--color-footer-border);
  padding-top: 20px;
  font-size: 0.8rem;
}

/* ---- Page Header (inner pages) ---- */

.page-header {
  padding: 80px 0 36px;
}
.page-header h1 {
  margin-bottom: 12px;
}
.page-header p {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  max-width: 500px;
}

/* ---- Services Detail (services.html) ---- */

.services-detail {
  padding: 0 0 80px;
}

.svc-group {
  margin-bottom: 44px;
}
.svc-group:last-child {
  margin-bottom: 0;
}

.group-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}
.group-heading.cool {
  color: var(--color-cool);
  border-bottom-color: var(--color-cool);
}
.group-heading.warm {
  color: var(--color-warm);
  border-bottom-color: var(--color-warm);
}

.svc-detail-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-border);
}
.svc-detail-card:last-child {
  margin-bottom: 0;
}
.svc-detail-card.cool {
  border-left-color: var(--color-cool);
}
.svc-detail-card.warm {
  border-left-color: var(--color-warm);
}

.svc-detail-card h3 {
  margin-bottom: 8px;
}
.svc-detail-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.services-photo {
  margin: 48px 0;
  position: relative;
}
.services-photo img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* ---- Contact Layout (contact.html) ---- */

.contact-section {
  padding: 0 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 22px;
}

.contact-row {
  margin-bottom: 16px;
  line-height: 1.5;
}
.contact-row:last-child {
  margin-bottom: 0;
}
.contact-row-label {
  font-weight: 600;
  color: var(--color-heading);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 2px;
}
.contact-row a {
  font-weight: 500;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-cool);
  box-shadow: 0 0 0 3px var(--color-cool-focus);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

/* ---- Scroll Reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 8px 24px 16px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    padding: 12px 0;
    font-size: 1rem;
  }
  .nav-link.active {
    box-shadow: none;
  }

  .hero {
    padding: 68px 0 52px;
  }

  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    text-align: center;
  }

  .stats-row {
    gap: 28px;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .services-split,
  .about,
  .cta-close {
    padding: 56px 0;
  }

  .page-header {
    padding: 60px 0 28px;
  }

  .services-detail,
  .contact-section {
    padding-bottom: 56px;
  }

  .footer-grid {
    flex-direction: column;
  }

  .svc-detail-card {
    padding: 22px 20px;
  }

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

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 18px;
  }

  .stats-row {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
  }
}
