:root {
  --color-primary: #7fd13b;      /* main green */
  --color-primary-dark: #65a92f;
  --color-secondary: #9da3a8;    /* grey */
  --color-dark: #182024;
  --color-light: #ffffff;
  --color-bg: #f5f7f8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-dark);
}

/* Headings */

h1,
h2,
h3,
.section-header h2 {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* extra breathing room under the main title of the first light section on home */
/* .page-home main .section-light:first-of-type h2 {
  margin-bottom: 1.2rem;
} */


/* Topbar */

.topbar {
  background-color: var(--color-primary);
  color: #fff;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  margin-left: 6px;
  font-size: 13px;
}

.social-link:hover {
  background-color: #fff;
  color: var(--color-primary);
}

/* Navbar */

.main-navbar {
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.logo-img {
  max-height: 60px;
  max-width: 300px;
  object-fit: contain;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  color: var(--color-dark);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-primary);
}

/* Hero */

.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: url('/assets/img/hero-bg.jpg') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(24, 32, 36, 0.85),
    rgba(24, 32, 36, 0.65)
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  padding: 3rem 0;
}

.hero-title {
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.hero-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.35rem 1.5rem;
  margin-top: 1.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
}

.hero-highlights i {
  color: var(--color-primary);
  margin-right: 0.35rem;
}

@media (max-width: 767.98px) {
  .hero-section {
    text-align: left;
    min-height: 60vh;
  }

  .hero-highlights {
    border-radius: 1rem;
  }
}


/* Video CTA */

.video-cta-section {
  position: relative;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
}

.video-cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.video-cta-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 177.78vh;     /* keeps 16:9 ratio while covering */
  height: 56.25vw;
  transform: translate(-50%, -50%);
}

.video-cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.55)
  );
}

.video-cta-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
}


/* Generic Sections */

.section-light {
  background-color: #ffffff;
}

.section-accent {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-dark));
}

.section-header h2 {
  font-weight: 700;
}

.section-header p {
  color: #666f76;
}

/* Icon cards */

.icon-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  text-align: left;
  overflow: hidden;
}

.icon-card i {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

/* colored edge */
.icon-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  left: 0;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-primary-dark)
  );
  opacity: 0.9;
}

/* 4-feature card grid on home */

.icon-card-grid .col-6 {
  display: flex;
}

.icon-card-grid .icon-card {
  flex: 1;
}

/* tinted backgrounds */
.icon-card-grid .col-6:nth-child(1) .icon-card,
.icon-card-grid .col-6:nth-child(4) .icon-card {
  background-color: #f6fff3; /* pale green */
}

.icon-card-grid .col-6:nth-child(3) .icon-card,
.icon-card-grid .col-6:nth-child(2) .icon-card {
  background-color: #f7f9fb; /* light grey */
}

/* move the colored edge to the right side for cards 2 and 4 */
.icon-card-grid .col-6:nth-child(2) .icon-card::before,
.icon-card-grid .col-6:nth-child(4) .icon-card::before {
  left: auto;
  right: 0;
}

/* subtle green glow */
.icon-card-grid .icon-card {
  box-shadow: 0 10px 26px rgba(127, 209, 59, 0.08);
}


/* Service cards */

.service-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.service-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.service-card h4 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #5b646b;
}

.service-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* Products */

.product-card {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.product-image-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.product-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Testimonials */

.testimonial-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.testimonial-card p {
  color: #555e64;
}

.testimonial-name {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
}

.stars i {
  color: #f6c150;
}

/* Page header */

.page-header-section {
  background-color: #ffffff;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid #e3e6ea;
}

.page-header-section h1 {
  font-weight: 700;
}

/* Service page images (optional background placeholders) */

.service-image {
  min-height: 220px;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
}

.service-image-ducts {
  background-image: linear-gradient(120deg, #d9e9ff, #ffffff);
}

.service-image-vents {
  background-image: linear-gradient(120deg, #e2ffe5, #ffffff);
}

.service-image-iaq {
  background-image: linear-gradient(120deg, #e5f3ff, #ffffff);
}

.service-list {
  padding-left: 1.1rem;
}

.service-list li {
  margin-bottom: 0.35rem;
}

/* About page */

.about-list {
  padding-left: 1.1rem;
}

.about-list li {
  margin-bottom: 0.4rem;
}

.stat-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.stat-card h3 {
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* Map */

.map-section .map-wrapper {
  width: 100%;
  height: 380px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
}

/* Contact */

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-side-box {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.contact-phone-link {
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.contact-phone-link:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e3e6ea;
}

.site-footer h5 {
  font-weight: 600;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #c4c8cc;
  margin-right: 6px;
  color: var(--color-dark);
  text-decoration: none;
}

.footer-social a:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Buttons override */

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* Responsive tweaks */

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .video-cta-section {
    height: 320px;
  }
}
