/* ==========================================================================
   Get Quik Install - Master Stylesheet (Perfect Proportions & Spacing)
   ========================================================================== */

:root {
  --primary-color: #ff8f27;
  --primary-hover: #ff7b00;
  --dark-bg: #1f212d;
  --darker-bg: #181b2a;
  --light-bg: #fef6ee;
  --white: #ffffff;
  --text-dark: #1f212d;
  --text-muted: #707070;
  --text-light: #fbfbfb;
  --font-heading: 'Exo 2', 'Poppins', sans-serif;
  --font-body: 'Public Sans', 'Open Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  width: 100%;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar {
  background-color: var(--dark-bg);
  color: #abb8c3;
  font-size: 13.5px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #abb8c3;
}

.contact-fa-icon {
  color: var(--primary-color);
  font-size: 14px;
}

.top-bar-right .social-icons {
  display: flex;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #ffffff;
  color: var(--dark-bg);
  border-radius: 3px;
  font-size: 13px;
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Main Navbar - Clean, Compact Spacing */
.main-navbar {
  background-color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 85px;
}

.site-branding .brand-link {
  display: flex;
  align-items: center;
}

/* Header Logo - Exact User Requested Sizing */
.site-logo {
  height: 110px;
  max-height: 115px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  display: block;
  margin: -10px 0;
  transition: var(--transition);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item .nav-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #1f212d;
  letter-spacing: 0.5px;
  padding: 6px 0;
}

.nav-item.active .nav-link,
.nav-item .nav-link:hover {
  color: var(--primary-color);
}

.btn-appointment {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 13px 26px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-appointment:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 143, 39, 0.35);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-bg);
  margin: 5px 0;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: url('/assets/images/bavarianwindows_oakville_aug2019-18-683x1024-1.jpg') center center / cover no-repeat;
  padding: 100px 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 17, 26, 0.92) 0%, rgba(31, 33, 45, 0.78) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 50px;
  min-height: 460px;
}

.hero-content {
  max-width: 680px;
}

.hero-subtitle {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 3.5px solid var(--primary-color);
}

.hero-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.btn-hero-contact {
  display: inline-block;
  padding: 14px 34px;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.btn-hero-contact:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Play Button Centered Vertically & Horizontally */
.hero-video-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.video-play-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 105px;
  height: 105px;
  background-color: #ffffff;
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 32px;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.2);
  animation: pulse-border 2s infinite;
  transition: var(--transition);
  cursor: pointer;
}

.video-play-btn i {
  margin-left: 6px;
  color: var(--primary-color);
  font-size: 36px;
  transition: var(--transition);
}

.video-play-btn:hover {
  background-color: var(--primary-color);
  box-shadow: 0 0 0 16px rgba(255, 143, 39, 0.3);
}

.video-play-btn:hover i {
  color: #ffffff;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 24px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ==========================================================================
   Partner / Brands Carousel Section
   ========================================================================== */
.partner-section {
  background-color: var(--light-bg);
  padding: 60px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-slider-wrap {
  overflow: hidden;
  position: relative;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  height: 105px;
}

.partner-logo-item img {
  max-height: 85px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0.12);
  opacity: 0.92;
  transition: var(--transition);
}

.partner-logo-item:hover img {
  filter: brightness(1);
  opacity: 1;
  transform: scale(1.06);
}

/* ==========================================================================
   Egress Windows Section (Tall Portrait Rectangles)
   ========================================================================== */
.egress-section {
  padding: 110px 0;
  background-color: var(--white);
  position: relative;
  overflow: visible;
}

.egress-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 36px;
}

.collage-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.collage-col-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.collage-col-left img {
  border-radius: 4px;
  width: 100%;
  height: 310px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.collage-col-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.collage-col-right img {
  border-radius: 4px;
  width: 100%;
  height: 490px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.egress-content {
  position: relative;
}

.egress-content .section-title {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 22px;
}

.egress-content .section-desc {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.badges-bar {
  display: flex;
  background-color: var(--light-bg);
  padding: 24px 34px;
  gap: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  margin-left: -90px;
  position: relative;
  z-index: 10;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.badge-divider {
  width: 1px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.08);
}

.badge-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--dark-bg);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 26px;
  flex-shrink: 0;
}

.badge-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  background-color: var(--dark-bg);
  padding: 100px 0;
  color: #ffffff;
}

.section-header-center {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px auto;
}

.section-subtitle-center {
  display: inline-block;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary-color);
}

.section-title-white {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc-light {
  color: #c9cdd4;
  font-size: 16.5px;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  background-color: #191c28;
  border: 1px solid rgba(254, 246, 238, 0.08);
  padding: 34px 28px;
  border-radius: 4px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.service-svg-icon {
  width: 44px;
  height: 44px;
  stroke: var(--primary-color);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

.service-card:hover .service-svg-icon {
  transform: scale(1.08);
}

.service-divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(255, 143, 39, 0.35);
  margin: 0 18px;
}

.service-arrow-btn {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 143, 39, 0.2);
  color: #fbfbfb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.service-card:hover .service-arrow-btn {
  background-color: var(--primary-color);
  color: #1f212d;
}

.service-title {
  color: #fbfbfb;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  color: #c9cdd4;
  font-size: 15.5px;
  line-height: 1.65;
}

.services-cta-wrap {
  text-align: center;
}

.btn-view-services {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 15px 36px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-view-services:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 143, 39, 0.4);
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-choose-section {
  background-color: var(--light-bg);
  padding: 100px 0;
}

.why-choose-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  align-items: stretch;
}

.why-choose-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.why-choose-text-box .section-title {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.why-choose-text-box .section-desc {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.btn-view-projects {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--primary-color);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-view-projects:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 143, 39, 0.35);
}

.why-choose-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  height: 310px;
  cursor: pointer;
  background-color: #191c28;
}

.why-choose-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.why-choose-card:hover img {
  transform: scale(1.05);
}

.why-choose-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #191c28;
  padding: 18px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
  z-index: 2;
  border-top: 2px solid var(--primary-color);
}

.why-choose-card:hover .why-choose-overlay {
  transform: translateY(0);
  opacity: 1;
}

.why-choose-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-choose-link {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  transition: var(--transition);
}

.why-choose-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   Footer - Exact User Requested Sizing & Tightened Margins
   ========================================================================== */
.site-footer {
  background-color: var(--darker-bg);
  color: #abb8c3;
  padding-top: 45px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 35px;
  align-items: start;
}

.footer-logo-wrap {
  margin-top: -50px;
  margin-bottom: 4px;
}

/* Footer Logo - Exact User Requested Dimensions */
.footer-logo {
  height: 170px;
  max-height: 180px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  display: block;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #a0a6b5;
  margin-top: -30px;
}

.footer-heading {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-divider {
  width: 36px;
  height: 2px;
  background-color: var(--primary-color);
  margin-bottom: 16px;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #abb8c3;
}

.footer-menu a:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.footer-menu .arrow-icon {
  color: var(--primary-color);
  font-size: 14px;
}

.footer-address .address-text {
  font-size: 15px;
  color: #abb8c3;
  margin-bottom: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #abb8c3;
}

.footer-contact-icon {
  color: var(--primary-color);
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 14px;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.privacy-link {
  color: #abb8c3;
}

.privacy-link:hover {
  color: var(--primary-color);
}

.copyright-text {
  color: #abb8c3;
}

.copyright-text strong {
  color: #ffffff;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 990;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

/* ==========================================================================
   Video Modal Popup
   ========================================================================== */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-dialog {
  position: relative;
  width: 90%;
  max-width: 850px;
  background-color: #000000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-iframe-wrap iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.video-modal-close:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }
  .egress-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .badges-bar {
    margin-left: 0;
  }
  .why-choose-grid-2x2 {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: none;
  }
  .site-nav.active {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .header-cta {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 32px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .badges-bar {
    flex-direction: column;
    margin-left: 0;
    gap: 16px;
  }
  .badge-divider {
    display: none;
  }
  .collage-container {
    flex-direction: column;
  }
  .collage-col-right img {
    height: 300px;
  }
  .why-choose-card {
    height: 250px;
  }
  .why-choose-overlay {
    transform: translateY(0);
    opacity: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
