/* =============================================
   Prime Lawrenceville HVAC Experts
   Custom Design — Temperature-Gradient Theme
   ============================================= */

:root {
  --primary: #1a3c50;
  --primary-light: #2d6a8a;
  --accent: #d08c2e;
  --accent-hover: #b87826;
  --accent-cool: #3888aa;
  --accent-warm: #c05a30;
  --bg: #f2f4f8;
  --bg-warm: #f8f5f1;
  --surface: #ffffff;
  --text: #1c2530;
  --text-muted: #4a5568;
  --border: #dfe3ea;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;
  --nav-height: 68px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg-warm));
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3 { line-height: 1.15; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text-muted); max-width: 60ch; }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section   { padding: 64px 0; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center;
  background: rgba(242, 244, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.phone-link {
  font-weight: 700; font-size: 0.95rem;
  color: var(--primary); white-space: nowrap;
}
.phone-link:hover { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 28px; }

.nav-link {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s ease; padding: 6px 0; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s ease; border-radius: 1px;
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  min-height: 36px; min-width: 36px;
  justify-content: center; align-items: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.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: 13px 26px; font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-m); border: 2px solid transparent;
  cursor: pointer; transition: all 0.25s ease; min-height: 48px;
  text-align: center; font-family: inherit;
}

.btn-primary {
  background: var(--primary); color: var(--surface);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light); border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 60, 80, 0.18);
}

.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(26, 60, 80, 0.03);
}

.btn-accent {
  background: var(--accent); color: var(--surface);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(208, 140, 46, 0.22);
}

/* --- Hero (homepage) --- */
.hero {
  padding: 40px 0 48px;
  min-height: calc(75vh - var(--nav-height));
  display: flex; align-items: center;
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.hero-content   { max-width: 520px; }
.hero-tagline   { font-size: 1.1rem; margin-top: 12px; line-height: 1.55; }
.hero-actions   { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-image-wrap {
  position: relative; border-radius: var(--radius-l);
  overflow: hidden; aspect-ratio: 4 / 3; background: var(--border);
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.stock-label {
  position: absolute; bottom: 8px; right: 8px;
  font-size: 0.65rem; color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.4); padding: 2px 8px;
  border-radius: 4px; pointer-events: none;
}

/* --- Rating Bar --- */
.rating-bar {
  padding: 18px 0; background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rating-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--text-muted);
}
.rating-inner .stars {
  color: var(--accent); font-size: 1.05rem; letter-spacing: 2px;
}
.rating-inner .sep { color: var(--border); }

/* --- About --- */
.about { background: var(--surface); }
.about h2 { margin-bottom: 14px; }
.about p  { margin-bottom: 14px; }
.about p:last-child { margin-bottom: 0; }

/* --- Services Grid (homepage) --- */
.services-section h2 { text-align: center; margin-bottom: 10px; }
.services-intro      { text-align: center; margin: 0 auto 40px; }
.services-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.service-card {
  background: var(--surface); padding: 24px 22px;
  border-radius: var(--radius-m);
  border-left: 4px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}
.service-card[data-temp="cool"] { border-left-color: var(--accent-cool); }
.service-card[data-temp="warm"] { border-left-color: var(--accent-warm); }
.service-card[data-temp="both"] { border-left-color: var(--accent); }
.service-card h3 { margin-bottom: 6px; }
.service-card p  { font-size: 0.88rem; line-height: 1.5; }

.temp-label {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 10px;
}
.temp-label.cool { background: rgba(56, 136, 170, 0.1);  color: var(--accent-cool); }
.temp-label.warm { background: rgba(192, 90, 48, 0.1);   color: var(--accent-warm); }
.temp-label.both { background: rgba(208, 140, 46, 0.1);  color: var(--accent); }

.section-link { text-align: center; margin-top: 32px; }

/* --- CTA Section --- */
.cta-section {
  text-align: center; background: var(--primary); padding: 56px 0;
}
.cta-section h2 { color: var(--surface); margin-bottom: 10px; }
.cta-section p  { color: rgba(255, 255, 255, 0.7); margin: 0 auto 24px; }

.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.25); color: var(--surface);
}
.cta-actions .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Page Hero (inner pages) --- */
.page-hero         { padding: 40px 0 32px; }
.page-hero h1      { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 8px; }
.page-hero p       { font-size: 1rem; }

/* --- Service Blocks (services page) --- */
.service-block { padding: 56px 0; border-bottom: 1px solid var(--border); }
.service-block:last-of-type { border-bottom: none; }
.service-block.white-bg     { background: var(--surface); }

.service-block-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.service-block.reverse .service-block-photo { order: -1; }

.service-block-content h2  { margin-bottom: 12px; }
.service-block-content > p { margin-bottom: 18px; }

.check-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.check-list li {
  font-size: 0.9rem; color: var(--text-muted);
  padding-left: 22px; position: relative;
}
.check-list li::before {
  content: '\2713'; position: absolute; left: 0;
  font-weight: 700; color: var(--accent-cool);
}
.service-block[data-temp="warm"] .check-list li::before { color: var(--accent-warm); }
.service-block[data-temp="both"] .check-list li::before { color: var(--accent); }

.service-block-photo {
  border-radius: var(--radius-l); overflow: hidden;
  aspect-ratio: 4 / 3; position: relative; background: var(--border);
}
.service-block-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Contact --- */
.contact-section { background: var(--surface); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 48px; align-items: start;
}

.contact-info h2  { margin-bottom: 12px; }
.contact-info > p { margin-bottom: 28px; }

.contact-item        { margin-bottom: 20px; }
.contact-item .label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 4px;
}
.contact-item .value { font-weight: 600; color: var(--text); font-size: 1rem; }
.contact-item a.value:hover { color: var(--accent); }

.contact-form {
  background: var(--bg); padding: 32px;
  border-radius: var(--radius-l); border: 1px solid var(--border);
}
.contact-form h3 { margin-bottom: 20px; }

.form-group       { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text); margin-bottom: 5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-s);
  font-family: inherit; font-size: 0.9rem; color: var(--text);
  background: var(--surface); transition: border-color 0.2s ease;
  min-height: 44px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45, 106, 138, 0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .btn { width: 100%; }

/* --- Footer --- */
.site-footer {
  background: var(--primary); color: rgba(255, 255, 255, 0.85);
  padding: 44px 0 20px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

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

.footer-brand     { max-width: 320px; }
.footer-brand h4  { font-size: 1.05rem; color: var(--surface); margin-bottom: 6px; }
.footer-brand p   { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); line-height: 1.5; }

.footer-links     { display: flex; gap: 36px; }
.footer-col h5 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.4); margin-bottom: 10px;
}
.footer-col a {
  display: block; font-size: 0.85rem; padding: 3px 0;
  color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-col .muted {
  display: block; font-size: 0.85rem; padding: 3px 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px; font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35); text-align: center;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .btn, .nav-link::after { transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive: Tablet --- */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  section { padding: 48px 0; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--surface); flex-direction: column;
    padding: 16px 24px; gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform 0.3s ease;
    z-index: 99; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav .nav-link {
    padding: 12px 0; font-size: 1rem; width: 100%;
  }

  .hero { min-height: auto; padding: 24px 0 40px; }
  .hero .container { grid-template-columns: 1fr; gap: 28px; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }

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

  .service-block-split { grid-template-columns: 1fr; gap: 24px; }
  .service-block.reverse .service-block-photo { order: 0; }
  .service-block { padding: 40px 0; }

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

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

/* --- Responsive: Small mobile --- */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .rating-inner { flex-direction: column; gap: 4px; text-align: center; }
  .rating-inner .sep { display: none; }
  .footer-links { flex-direction: column; gap: 20px; }
  .cta-actions  { flex-direction: column; align-items: center; }
}
