/* ═══════════════════════════════════════════
   Elite HVAC Suwanee — Stylesheet
   ═══════════════════════════════════════════ */

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

:root {
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-primary: #1b4d5c;
  --color-primary-dark: #143c49;
  --color-primary-light: #e4eff3;
  --color-accent: #8b6914;
  --color-accent-hover: #755812;
  --color-accent-light: #f5e8d0;
  --color-accent-pale: #f0d68a;
  --color-text: #1a1d23;
  --color-text-secondary: #5b6370;
  --color-text-light: #8c939e;
  --color-border: #dde1e6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --nav-height: 68px;
}

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  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: inherit;
  text-decoration: none;
}

ul { list-style: none; }

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

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.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-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-phone:hover {
  color: var(--color-accent);
}

.nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--color-accent);
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Hero ─── */
.hero {
  margin-top: var(--nav-height);
  padding: 72px 0 80px;
  position: relative;
}

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

.hero-content {
  padding-right: 16px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 460px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-surface);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-surface);
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-surface);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.btn-full {
  width: 100%;
}

/* Hero image with diagonal clip — represents directed airflow */
.hero-image-wrap {
  position: relative;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

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

.about-image-wrap figcaption.stock-label {
  right: auto;
  left: 12px;
}

/* ─── Credentials Strip ─── */
.credentials {
  padding: 28px 0;
  background: var(--color-primary);
}

.credentials-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.credential {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

/* ─── Generic Section ─── */
.section {
  padding: 64px 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 520px;
}

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

.about-text h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.65;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* About image — mirrored diagonal clip */
.about-image-wrap {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ─── Services (Homepage Preview) ─── */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 28px;
  background: var(--color-surface);
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease;
}

.service-item:hover {
  box-shadow: 0 4px 20px rgba(27, 77, 92, 0.08);
}

.service-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  min-width: 44px;
  padding-top: 2px;
  flex-shrink: 0;
}

.service-info h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.service-info p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.services-footer {
  margin-top: 32px;
  text-align: center;
}

/* ─── CTA Section ─── */
.cta-section {
  padding: 64px 0;
  background: var(--color-primary);
  text-align: center;
}

.cta-section h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-surface);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

.cta-phone {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent-pale);
  display: inline-block;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.cta-phone:hover {
  color: var(--color-surface);
}

/* ─── Page Header (Services / Contact) ─── */
.page-header {
  margin-top: var(--nav-height);
  padding: 56px 0 44px;
  background: var(--color-primary);
}

.page-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-surface);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
}

/* ─── Services Page — Detail Blocks ─── */
.service-detail {
  padding: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  border-left: 4px solid var(--color-accent);
}

.service-detail-num {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  min-width: 48px;
  flex-shrink: 0;
}

.service-detail-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-detail-content p {
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.service-detail-content ul {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.service-detail-content li {
  color: var(--color-text-secondary);
  font-size: 15px;
}

.service-detail-content li::before {
  content: '\2713';
  color: var(--color-accent);
  margin-right: 6px;
  font-weight: 700;
}

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

.contact-info h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 28px;
}

.contact-detail {
  margin-bottom: 28px;
}

.contact-detail:last-child {
  margin-bottom: 0;
}

.contact-detail h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
  font-size: 18px;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.5;
}

.contact-detail a {
  display: inline-block;
  padding: 4px 0;
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: var(--color-accent);
}

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

.contact-form h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font);
  border: 1px 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;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

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

/* ─── Footer ─── */
.footer {
  padding: 44px 0 28px;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-surface);
  margin-bottom: 8px;
}

.footer-brand span {
  color: var(--color-accent);
}

.footer-info p {
  margin-bottom: 3px;
}

.footer-info a {
  transition: color 0.2s;
}

.footer-info a:hover {
  color: var(--color-surface);
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
  font-weight: 500;
  padding: 8px 0;
}

.footer-nav a:hover {
  color: var(--color-surface);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ─── Responsive: Tablet ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 12px 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 40px 0 56px;
  }

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

  .hero-content {
    padding-right: 0;
    order: 2;
  }

  .hero-image-wrap {
    order: 1;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero-image-wrap img {
    height: 280px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .credentials-list {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

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

  .about-image-wrap {
    clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
  }

  .about-image-wrap img {
    height: 260px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header h2,
  .about-text h2 {
    font-size: 28px;
  }

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

  .service-detail {
    flex-direction: column;
    gap: 12px;
  }

  .service-item {
    padding: 20px 22px;
  }

  .page-header {
    padding: 40px 0 32px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .cta-phone {
    font-size: 24px;
  }

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

/* ─── Responsive: Small Phone ─── */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .nav-left {
    gap: 12px;
  }

  .nav-phone {
    font-size: 13px;
  }

  .nav-brand {
    font-size: 17px;
  }

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

  .service-detail {
    padding: 24px 20px;
  }

  .section-header h2,
  .about-text h2 {
    font-size: 26px;
  }
}
