:root {
  --brand-primary: #0d6efd;
  --brand-dark: #0b3d91;
  --brand-light: #eaf3ff;
  --brand-gray: #6c757d;
  --text-dark: #1f2937;
  --surface: #f1f5f9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--surface);
  margin: 0;
  /* Do not add padding-bottom here — it creates a light strip below the dark footer. */
}

/* Space for fixed FABs lives on .site-footer so the footer background fills to the bottom. */

/* ----- Site header (top bar + navbar) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #fff;
  isolation: isolate;
}

.top-bar {
  background: linear-gradient(90deg, #0b3d91 0%, #0f4cac 50%, #0b3d91 100%);
  color: #e2e8f0;
  font-size: 0.8125rem;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.45rem 0;
  min-height: 2.25rem;
}

.top-bar-tagline {
  display: inline-flex;
  align-items: center;
  opacity: 0.95;
}

.top-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.top-bar-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.top-bar-link:hover {
  color: #c5dcff;
  text-decoration: underline;
}

.top-bar-hours {
  opacity: 0.85;
}

.site-navbar {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-navbar .navbar-toggler {
  border-color: rgba(13, 110, 253, 0.35);
  padding: 0.45rem 0.6rem;
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.navbar-brand {
  gap: 0.65rem;
  max-width: min(100%, 17rem);
}

@media (min-width: 768px) {
  .navbar-brand {
    max-width: none;
  }
}

.navbar-brand img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.brand-text {
  line-height: 1.15;
}

.brand-text .brand-name {
  display: block;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
}

.brand-text .brand-tag {
  display: block;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--brand-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-navbar .navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-navbar .navbar-nav .nav-link:hover {
  color: var(--brand-primary);
  background-color: rgba(13, 110, 253, 0.06);
}

.site-navbar .navbar-nav .nav-link.active {
  color: var(--brand-primary);
  font-weight: 700;
  background-color: rgba(13, 110, 253, 0.1);
}

@media (min-width: 992px) {
  .site-navbar .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }

  .site-navbar .navbar-nav .nav-link.active {
    background-color: transparent;
    position: relative;
  }

  .site-navbar .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.15rem;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-primary);
  }
}

.site-navbar .navbar-collapse {
  flex-grow: 1;
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .site-navbar .navbar-nav .nav-link {
    padding: 0.65rem 0.75rem;
  }

  .site-navbar .btn-brand {
    margin-top: 0.75rem;
    width: 100%;
    display: block;
  }

  .site-navbar .ms-lg-3 {
    margin-left: 0 !important;
  }
}

.hero {
  position: relative;
  background: linear-gradient(115deg, rgba(13, 110, 253, 0.92), rgba(11, 61, 145, 0.88)),
    url("../images/rooftop-hvac.png")
      center/cover no-repeat;
  color: #fff;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero .hero-visual img {
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0, 20, 60, 0.35);
}

.section-title {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

.section-lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.testimonial-card blockquote.testimonial-modern {
  margin: 0;
  padding: 0;
  border: 0;
}

.icon-card,
.service-card,
.product-card,
.testimonial-card,
.stat-card,
.process-step {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(12, 28, 61, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.icon-card:hover,
.service-card:hover,
.product-card:hover,
.testimonial-card:hover,
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(12, 28, 61, 0.14);
}

.service-hub-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-hub-card .service-hub-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.service-hub-card .service-body {
  padding: 1.35rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: var(--brand-light);
  color: var(--brand-primary);
  font-size: 1.25rem;
}

.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-brand:hover {
  background-color: #0954c8;
  border-color: #0954c8;
}

.btn-outline-brand {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline-brand:hover {
  background-color: #fff;
  color: var(--brand-dark);
}

.cta-strip {
  background: var(--brand-dark);
  color: #fff;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.img-soft {
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(12, 28, 61, 0.12);
}

.bg-section {
  background: #fff;
}

.footer-main,
.site-footer.footer-main {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #f1f5f9;
  /* Extra bottom padding = clearance for fixed Call/WhatsApp (dark extends under them, no page gap) */
  padding-bottom: calc(1.5rem + 54px + env(safe-area-inset-bottom, 0px)) !important;
}

.footer-main a,
.site-footer a {
  color: #c5dcff;
  text-decoration: none;
}

.footer-main a:hover,
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-main .footer-muted,
.site-footer .footer-muted {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-grid {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    text-align: start;
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.85rem;
  text-align: start;
}

@media (min-width: 768px) {
  .footer-brand {
    justify-content: flex-start;
  }
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.footer-brand-title {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #f8fafc;
  line-height: 1.2;
}

.footer-brand-sub {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-contact li {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-contact a {
  font-weight: 600;
}

.footer-social .footer-social-btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.footer-social-icons {
  gap: 0.5rem;
}

.footer-social-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer-social-icon:hover {
  background: rgba(13, 110, 253, 0.45);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.img-gallery {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(12, 28, 61, 0.1);
}

@media (max-width: 575.98px) {
  .img-gallery {
    height: 180px;
  }
}

.contact-hero-img {
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(12, 28, 61, 0.12);
}

.footer-rule {
  border-color: rgba(148, 163, 184, 0.22) !important;
  margin: 1.75rem 0 1.25rem;
  opacity: 1;
}

.footer-bottom .footer-copy {
  color: #94a3b8;
}

.footer-bottom a {
  color: #c5dcff;
}

.fixed-action-btn {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0);
  z-index: 1040;
  border-radius: 50px;
  padding: 12px 16px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.fixed-action-btn:hover {
  color: #fff;
  filter: brightness(1.05);
}

.call-btn {
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  background: #0d6efd;
}

.whatsapp-btn {
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  background: #25d366;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* When JS runs, invisible .reveal blocks must not steal clicks from links below (e.g. footer). */
html.js-reveal-enabled .reveal:not(.show) {
  pointer-events: none;
}

html.js-reveal-enabled .reveal.show {
  pointer-events: auto;
}

.page-hero {
  padding: 96px 0 64px;
  background: linear-gradient(135deg, #d7e7ff 0%, #edf3fb 45%, #f8fafc 100%);
}

.page-hero.compact {
  padding: 72px 0 48px;
}

.contact-map iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
  min-height: 360px;
  box-shadow: 0 10px 28px rgba(12, 28, 61, 0.1);
}

.contact-map .contact-map-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(12, 28, 61, 0.1);
}

.contact-map .contact-map-frame iframe {
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}

.service-detail-hero {
  position: relative;
  padding: 100px 0 72px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.service-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(11, 61, 145, 0.9), rgba(13, 110, 253, 0.82));
}

.service-detail-hero .container {
  position: relative;
  z-index: 1;
}

.content-prose p {
  line-height: 1.75;
}

.list-check {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.list-check li {
  padding-left: 0.25rem;
  margin-bottom: 0.5rem;
}

.service-detail-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
  color: #c5dcff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.testimonial-modern {
  border-left: 4px solid var(--brand-primary);
  padding-left: 1rem;
}

.testimonial-modern .author {
  font-weight: 700;
  color: var(--brand-dark);
}

.mini-faq .accordion-button:not(.collapsed) {
  background-color: var(--brand-light);
  color: var(--brand-dark);
}

@media (max-width: 767.98px) {
  .hero {
    padding: 96px 0 72px;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .top-bar-tagline {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
  }

  .top-bar-actions {
    width: 100%;
    justify-content: center;
  }

  .fixed-action-btn {
    font-size: 0.85rem;
    padding: 10px 12px;
    max-width: calc(50vw - 1rem);
    text-align: center;
  }

  .service-detail-hero {
    padding: 88px 0 56px;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .footer-grid .col-md-12 {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}
