/* ══════════════════════════════════════════════════════════
   Beckner HVAC style.css -- ACSP trades-v2 quality
   ══════════════════════════════════════════════════════════ */

/* ── Loader ─────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.loader-icon {
  width: clamp(64px, 12vw, 96px);
  height: auto;
}
.loader-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawPath 1.4s var(--ease) forwards;
  fill: none;
}
.loader-draw-2 { animation-delay: 0.2s; }
.loader-draw-3 { animation-delay: 0.4s; }
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
.loader-text {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  opacity: 0;
  animation: fadeInText 0.6s ease 0.8s forwards;
}
@keyframes fadeInText {
  to { opacity: 1; }
}

/* ── Skip Nav ───────────────────────────────────────────── */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}
.skip-nav:focus {
  position: fixed;
  top: 0;
  left: 16px;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ── Scroll Progress ────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: none;
}

/* ── Emergency Bar ──────────────────────────────────────── */
.emergency-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.emergency-bar.visible {
  transform: translateY(0);
}
.emergency-bar-link {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: var(--accent);
  border-radius: var(--radius-btn);
  transition: background 0.2s;
}
.emergency-bar-link:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}
.emergency-bar-close {
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.emergency-bar-close:hover {
  color: #FFFFFF;
}
@media (min-width: 769px) {
  .emergency-bar { display: none; }
}

/* ── Animations ──────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.services-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }
.testimonials-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.testimonials-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.testimonials-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.why-points .why-point:nth-child(2) { transition-delay: 0.08s; }
.why-points .why-point:nth-child(3) { transition-delay: 0.16s; }
.why-points .why-point:nth-child(4) { transition-delay: 0.24s; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: #FFFFFF;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

/* Nav link colors adapt to hero transparency */
.nav:not(.scrolled) .nav-links a { color: #FFFFFF; }
.nav:not(.scrolled) .nav-hamburger span { background: #FFFFFF; }
.nav:not(.scrolled) .logo { color: #FFFFFF; }
.nav:not(.scrolled) .logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #FFFFFF !important;
  border-radius: var(--radius-btn);
  transition: background 0.2s;
}
.btn-nav:hover {
  background: var(--accent-hover);
  color: #FFFFFF !important;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  padding: 14px 32px;
  font-size: 15px;
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 75, 49, 0.3);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}
.btn-ghost {
  padding: 14px 28px;
  font-size: 15px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-ghost:hover {
  background: var(--text);
  color: #FFFFFF;
}
.btn-white {
  padding: 14px 32px;
  font-size: 15px;
  background: #FFFFFF;
  color: var(--text);
}
.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.btn-outline-white {
  padding: 14px 32px;
  font-size: 15px;
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

/* ── Hero (full-bleed photo) ────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(26, 26, 46, 0.5) 40%,
    rgba(26, 26, 46, 0.3) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  max-width: 700px;
}
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 36px;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Trust Bar ──────────────────────────────────────────── */
.trust-bar {
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.trust-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.trust-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.trust-label strong {
  font-weight: 700;
  color: #FFFFFF;
}
.trust-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
}

/* ── About Section ───────────────────────────────────────── */
.about-section {
  background: var(--bg-alt);
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.about-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-text .btn {
  margin-top: 12px;
}

/* ── Services Section ────────────────────────────────────── */
.services-section {
  background: var(--bg);
  padding: 100px 0;
}
.services-header {
  margin-bottom: 56px;
}
.services-header h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 75, 49, 0.08);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}
.service-card-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.service-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.service-card-link:hover {
  gap: 10px;
}
.service-card-link svg {
  width: 14px;
  height: 14px;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-alt);
  padding: 100px 0;
}
.testimonials-header {
  margin-bottom: 56px;
}
.testimonials-header h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
.testimonial-stars {
  color: #FBBF24;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-card blockquote {
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
  font-style: normal;
  margin-bottom: 20px;
}
.testimonial-author {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.testimonial-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Why Section ─────────────────────────────────────────── */
.why-section {
  background: var(--bg);
  padding: 100px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.why-content h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}
.why-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.why-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-point-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 75, 49, 0.08);
  border-radius: var(--radius-sm);
}
.why-point-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.why-point strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.why-point p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(26, 26, 46, 0.8) 100%
  );
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cta-section .cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.cta-phone {
  margin-bottom: 32px;
}
.cta-phone a {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.cta-phone a:hover {
  color: var(--accent);
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-border);
}
.footer-brand .logo {
  font-size: 22px;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: inline-block;
}
.footer-brand p {
  font-size: 14px;
  color: var(--dark-text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin-top: 16px;
}
.footer-brand .footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-heading);
}
.footer-brand .footer-phone svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: var(--dark-text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
  line-height: 1.5;
}
.footer-col a:hover {
  color: #FFFFFF;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}
.footer-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copy a:hover {
  color: #FFFFFF;
}

/* ── Hamburger ───────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Responsive: 1024px ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { max-height: 800px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .testimonials-grid { gap: 20px; }
  .about-grid { gap: 40px; }
  .why-grid { gap: 40px; }
  .why-photo img { height: 440px; }
}

/* ── Responsive: 768px ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 16px; color: var(--text) !important; }
  .nav.mobile-menu-open {
    background: #FFFFFF;
  }
  .nav.mobile-menu-open .logo { color: var(--text) !important; }
  .nav.mobile-menu-open .nav-hamburger span {
    background: var(--text) !important;
  }
  .hero {
    min-height: 500px;
    max-height: 700px;
  }
  .hero-headline { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }
  .trust-bar-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .trust-divider {
    width: 40px;
    height: 1px;
  }
  .about-section,
  .services-section,
  .why-section,
  .testimonials-section,
  .cta-section { padding: 72px 0; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-image { height: 300px; }
  .about-text h2,
  .services-header h2,
  .testimonials-header h2,
  .why-content h2,
  .cta-section h2 { font-size: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .why-photo img { height: 280px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
