/* ============================================
   CENTRAL JERSEY MECHANICAL HVAC
   Palette: #1a2e3a (navy base)
            #f0f4f8 (warm ice foreground)
            #f59e0b (amber accent)
   Type: Barlow Condensed (display) + Inter (body)
   ============================================ */

:root {
  /* Palette */
  --navy: #1a2e3a;
  --navy-dark: #0f1d25;
  --navy-light: #2a4250;
  --ice: #f0f4f8;
  --ice-warm: #e8edf2;
  --amber: #f59e0b;
  --amber-hover: #d97706;
  --amber-light: #fbbf24;
  --text: #1a1a1a;
  --text-muted: #5a6a74;
  --card-bg: #ffffff;
  --border: #d0d8de;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 96px;

  /* Type */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii */
  --radius: 8px;
  --radius-lg: 12px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--body);
  background: var(--ice);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ice);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 29, 37, 0.92) 0%,
    rgba(26, 46, 58, 0.78) 50%,
    rgba(15, 29, 37, 0.88) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg);
  max-width: 800px;
}
.hero-tagline {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin: 0 0 var(--space-md);
}
.hero-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 var(--space-lg);
  color: var(--ice);
}
.hero-sub {
  font-family: var(--body);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  color: var(--ice-warm);
  opacity: 0.9;
}
.hero-hours {
  font-family: var(--body);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  opacity: 0.7;
  color: var(--ice);
}

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--amber);
  padding: 16px 40px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.cta-btn:hover {
  background: var(--amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}
.cta-btn:active {
  transform: translateY(0);
}
.cta-btn--small {
  font-size: 0.95rem;
  padding: 12px 28px;
}
.cta-btn--full {
  width: 100%;
  text-align: center;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--navy);
  color: var(--ice);
  text-align: center;
  padding: 14px var(--space-md);
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  border-bottom: 2px solid var(--amber);
}
.trust-dot {
  opacity: 0.4;
  margin: 0 4px;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--space-2xl) var(--space-lg);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 0 0 var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
}
.section-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 4px solid var(--amber);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.service-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 var(--space-sm);
}
.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ===== REVIEWS ===== */
.section-reviews {
  background: var(--navy);
  color: var(--ice);
}
.section-reviews .section-label {
  color: var(--ice);
}
.section-reviews .section-label::after {
  background: var(--amber);
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.review-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 3px solid var(--amber);
  display: flex;
  flex-direction: column;
}
.review-stars {
  color: var(--amber);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}
.review-card blockquote {
  margin: 0;
  flex: 1;
}
.review-card blockquote p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ice-warm);
  margin: 0 0 var(--space-sm);
}
.review-card blockquote p:last-child {
  margin-bottom: 0;
}
.review-author {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-light);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.review-date {
  font-weight: 400;
  opacity: 0.7;
  margin-left: var(--space-sm);
}

/* ===== INFO SECTION ===== */
.section-info {
  background: var(--card-bg);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.info-block .section-label {
  margin-bottom: var(--space-lg);
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.hours-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  width: 40%;
}
.hours-table td:last-child {
  color: var(--text-muted);
}
.hours-table tr:last-child td {
  border-bottom: none;
}
address {
  font-style: normal;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
address strong {
  color: var(--navy);
}
.info-phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: var(--space-md) 0;
}
.info-phone a {
  color: var(--navy);
  text-decoration: none;
}
.info-phone a:hover {
  color: var(--amber-hover);
}

/* ===== CONTACT FORM ===== */
#contact-form label {
  display: block;
  margin-bottom: var(--space-md);
}
.label-text {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ice);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.form-status {
  font-size: 0.9rem;
  color: var(--navy);
  margin-top: var(--space-sm);
  text-align: center;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: var(--ice);
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  font-size: 0.85rem;
  line-height: 1.8;
}
.site-footer .attribution {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: var(--space-sm);
}
.site-footer .attribution a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer .attribution a:hover {
  color: var(--amber);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 480px) {
  .hero {
    min-height: 90vh;
  }
  .hero-content {
    padding: var(--space-md);
  }
  .hero-name {
    letter-spacing: -0.01em;
  }
  .cta-btn {
    padding: 14px 28px;
    font-size: 1rem;
  }
  .section {
    padding: var(--space-xl) var(--space-md);
  }
  .service-card {
    padding: var(--space-md);
  }
  .review-card {
    padding: var(--space-md);
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
