:root {
  /* Brand Colors - Preserved from Original */
  --primary: #5b3f8b;
  --secondary: #28a745;
  --tertiary: #8da0b1;
  --quarternary: #a8bbca;
  --merternary: #c0c0c0;
  --orangenary: #bb8a2d;
  --border-primary: #5b3f8b;
  --border-secondary: #28a745;
  --danger: #eb0000;
  
  /* Typography */
  --ff-primary: "Montserrat", sans-serif;
  --ff-secondary: "Montserrat", sans-serif;
  
  /* Original Color Variables */
  --gold-col: #e3b900;
  --goldlight-col: #fff0af;
  --neonblue-col: #5b3f8b;
  --neonbluelight-col: #5b3f8b;
  --neonbluelightest-col: #f6f5f3;
  --white-col: #ffffff;
  --grey-col: #777;

  /* Design System */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 5px 15px rgba(0,0,0,0.1);
  --transition-base: all 0.3s ease;
  --border-radius: 12px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--ff-primary);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 0px;
  height: 100%;
}

html, body {
  overflow-x: hidden;
  height: 100%;
}

/* Typography */
p {
  font-family: sans-serif !important;
  font-size: 1.2em !important;
  line-height: 1.6 !important;
  letter-spacing: .5px !important;
}

h1 {
  font-size: 72px;
  font-weight: 600;
  line-height: 80px;
}

h2 {
  font-size: 48px;
  font-weight: 600;
}

h3 {
  font-size: 36px;
  font-weight: 600;
}

h4 {
  font-size: 24px;
  font-weight: 600;
}

h5 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4em !important;
}

h6 {
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 430px) {
  h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 42px;
  }

  h2 {
    font-size: 30px;
    font-weight: 600;
  }

  h3 {
    font-size: 20px;
    font-weight: 600;
  }

  h4 {
    font-size: 18px;
    font-weight: 600;
  }

  h5 {
    font-size: 16px;
    font-weight: 400;
  }
}

/* Font Weights */
.fw-light {
  font-weight: 300 !important;
}

.fw-regular {
  font-weight: 400 !important;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-sami-bold {
  font-weight: 600 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.text-bold-1 {
  font-weight: 100;
}

.text-bolder {
  font-weight: 300;
}

/* Layout */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl {
  max-width: 1600px;
  padding-left: 30px;
  padding-right: 30px;
}

main {
  margin-top: 120px;
}

/* Background Colors */
.bg-primary {
  background-color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.bg-tertiary {
  background-color: var(--tertiary) !important;
}

.bg-quarternary {
  background-color: var(--quarternary) !important;
}

.bg-orangenary {
  background-color: var(--orangenary) !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.bg-dark {
  background-color: #2e2e2e !important;
}

.bg-purple {
  background: var(--neonblue-col) !important;
}

.bg-purple-light {
  background: var(--neonbluelightest-col) !important;
}

.bg-greyish {
  background: #f8f9fa !important;
}

.bg-cleaning-header {
  background-image: linear-gradient(to right, #efefeff0, #fefefef0);
  padding-top: 5rem;
}

/* Text Colors */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-tertiary {
  color: var(--tertiary) !important;
}

.text-quarternary {
  color: var(--quarternary) !important;
}

.text-orangenary {
  color: var(--orangenary) !important;
}

.text-white {
  color: #ffffff !important;
}

.text-black {
  color: #000000 !important;
}

.text-purple {
  color: var(--neonblue-col) !important;
}

.text-dark {
  color: #212529;
}

.text-body {
  font-size: 20px !important;
  line-height: 30px !important;
  font-weight: 500;
  font-family: var(--ff-secondary);
}

/* Padding Utilities */
.p-100 {
  padding: 100px;
}

.pt-100 {
  padding-top: 100px;
}

.pb-100 {
  padding-bottom: 100px;
}

.py-100 {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Responsive Padding */
@media (min-width: 576px) {
  .p-sm-100 { padding: 100px; }
  .pt-sm-100 { padding-top: 100px; }
  .pb-sm-100 { padding-bottom: 100px; }
  .py-sm-100 { padding-top: 100px; padding-bottom: 100px; }
}

@media (min-width: 768px) {
  .p-md-100 { padding: 100px; }
  .pt-md-100 { padding-top: 100px; }
  .pb-md-100 { padding-bottom: 100px; }
  .py-md-100 { padding-top: 100px; padding-bottom: 100px; }
}

@media (min-width: 992px) {
  .p-lg-100 { padding: 100px; }
  .pt-lg-100 { padding-top: 100px; }
  .pb-lg-100 { padding-bottom: 100px; }
  .py-lg-100 { padding-top: 100px; padding-bottom: 100px; }
}

@media (min-width: 1200px) {
  .p-xl-100 { padding: 100px; }
  .pt-xl-100 { padding-top: 100px; }
  .pb-xl-100 { padding-bottom: 100px; }
  .py-xl-100 { padding-top: 100px; padding-bottom: 100px; }
}

@media (min-width: 1400px) {
  .p-xxl-100 { padding: 100px; }
  .pt-xxl-100 { padding-top: 100px; }
  .pb-xxl-100 { padding-bottom: 100px; }
  .py-xxl-100 { padding-top: 100px; padding-bottom: 100px; }
}

/* Border Radius */
.rounded-5 { border-radius: 5px !important; }
.rounded-10 { border-radius: 10px !important; }
.rounded-15 { border-radius: 15px; }
.rounded-20 { border-radius: 20px; }
.rounded-25 { border-radius: 25px; }
.rounded-30 { border-radius: 30px; }

/* Header Styles */
.header {
  z-index: 9999999999999999999999;
}

.navbar {
  background-image: linear-gradient(to right, #efefeff0, #fefefef0);
  -webkit-background-image: linear-gradient(to right, #efefeff0, #fefefef0);
}

nav.affix {
  background-image: linear-gradient(to right, #efefeff0, #fefefef0);
  -webkit-background-image: linear-gradient(to right, #efefeff0, #fefefef0);
  -webkit-box-shadow: 0 1px 10px 6px rgba(153, 153, 153, 0.35);
  -moz-box-shadow: 0 1px 10px 6px rgba(153, 153, 153, 0.35);
  box-shadow: 0 1px 10px 6px rgba(153, 153, 153, 0.35);
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

.nav-link {
  white-space: nowrap;
}

.navbar-light .navbar-nav .active > .nav-link {
  color: #000000;
}

.navbar-light .navbar-nav .nav-link {
  color: rgba(0,0,0,0.7);
}

li.nav-item {
  padding: 0 5px;
}

.header-phone-button {
  position: absolute;
  right: 20px;
  top: 20%;
  transform: translateY(-50%);
  padding: 8px 16px;
  border-radius: 25px;
  background-color: #28a745;
  color: white !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  z-index: 10;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.header-phone-button:hover {
  background-color: #218838;
  text-decoration: none;
  color: white !important;
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 1199px) {
  .header-phone-button {
    display: none !important;
  }
}

/* Hero Section - Fixed Image Repeat Issue */
.hero-section {
  background-image: url("./images/beautiful-family-homes-livingroom-interior-design.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Fix mobile background attachment issue */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    background-repeat: no-repeat;
    min-height: 70vh;
  }
}

#intro .lead {
  color: #090d10;
}

#intro .jumbotron {
  padding: 5rem 1rem;
}

@media (min-width: 576px) {
  #intro .jumbotron {
    padding: 12rem 2rem;
  }
  #intro .lead {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  #intro .lead {
    font-size: 2rem;
  }
}

/* YouTube Video Enhancement */
.youtube-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.youtube-facade {
  transition: transform 0.3s ease;
}

.youtube-facade:hover {
  transform: scale(1.02);
}

/* Components */
.intro-card {
  background-color: rgba(255,255,255,.95);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 2rem auto;
}

/* Cards */
.service-card,
.package-box,
.package-card {
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition-base);
  height: 100%;
  background: white;
  box-shadow: var(--shadow-sm);
}

.service-card {
  padding: 1rem;
}

.package-box,
.package-card {
  padding: 1.5rem;
  text-decoration: none !important;
  display: block;
  color: inherit;
}

.service-card:hover,
.package-box:hover,
.package-card:hover,
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card {
  border: 1px solid #d9d9d9 !important;
}

/* Package Cards Enhancement */
.package-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.package-description {
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.package-image {
  margin-top: auto;
  border-radius: 8px;
  overflow: hidden;
}

.package-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.package-card:hover .package-image img {
  transform: scale(1.05);
}

/* Buttons */
.btn {
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 10px;
  font-family: var(--ff-secondary);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  text-align: center;
  transition: var(--transition-base);
}

.btn-success {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-success:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #4a2d6b;
  border-color: #4a2d6b;
  transform: translateY(-2px);
}

.btn-outline-dark:hover {
  transform: translateY(-2px);
}

.btn-block {
  width: 100% !important;
}

/* Features List */
.features-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.features-list li {
  padding: 0.75rem 0;
  position: relative;
  padding-left: 2rem;
  font-size: 1.1rem;
  color: #333;
}

.features-list li:before {
  content: "✓";
  color: var(--secondary);
  position: absolute;
  left: -15px;
  font-weight: bold;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 10px;
  padding: 20px 15px !important;
  margin-top: 10px;
  font-size: 20px;
  color: #d9d9d9 !important;
  border: 1px solid #d9d9d9;
}

.form-control:focus {
  background: #fff;
  box-shadow: none;
  color: #000000 !important;
}

label {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;
}

::placeholder {
  color: #d9d9d9 !important;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Remove the X animation - keep it as hamburger lines even when open */
/* .mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
} */

/* Ensure the toggle button is visible on smaller screens */
@media (max-width: 1375px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
}

@media (min-width: 1376px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Off-canvas Overlay */
.offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.offcanvas-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Off-canvas Menu */
.offcanvas-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -5px 0 25px rgba(96, 60, 140, 0.2);
  overflow-y: auto;
}

.offcanvas-menu.show {
  right: 0;
}

/* Off-canvas Header */
.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, #603c8c 0%, #4a2d6b 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(96, 60, 140, 0.2);
}

.offcanvas-logo img {
  filter: brightness(0) invert(1);
}

.offcanvas-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offcanvas-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Off-canvas Body */
.offcanvas-body {
  padding: 0;
  height: calc(100% - 80px);
  overflow-y: auto;
}

/* Mobile Navigation */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #e9ecef;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-link:hover {
  background-color: #f8f9fa;
  color: #603c8c;
  transform: translateX(5px);
}

.mobile-nav-link i:first-child {
  width: 20px;
  margin-right: 15px;
  color: #603c8c;
  font-size: 16px;
}

.mobile-nav-link span {
  flex: 1;
  font-weight: 500;
}

.submenu-toggle {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.mobile-nav-item.active .submenu-toggle {
  transform: rotate(180deg);
}

/* Mobile Submenu */
.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #f8f9fa;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav-item.active .mobile-submenu {
  max-height: 500px;
}

.mobile-submenu-link {
  display: block;
  padding: 12px 20px 12px 55px;
  text-decoration: none;
  color: #666;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-submenu-link:hover {
  color: #603c8c;
  background-color: #e9ecef;
  border-left-color: #603c8c;
}

/* Mobile Contact Info */
.mobile-contact-info {
  margin-top: auto;
  padding: 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.contact-item {
  margin-bottom: 15px;
}

.contact-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #603c8c;
}

.contact-link i {
  width: 20px;
  margin-right: 10px;
  color: #603c8c;
}

.contact-link span {
  font-size: 14px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #603c8c;
  color: white;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #4a2d6b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(96, 60, 140, 0.3);
}

/* Dropdown Styles */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  color: #000000;
}

.dropdown:hover .dropdown-menu {
  display: block !important;
}

.dropdown-menu {
  padding: 15px;
  border-radius: 10px;
}

.dropdown-item.active,
.dropdown-item:focus,
.dropdown-item:hover {
  color: var(--primary) !important;
  text-decoration: none;
  background-color: transparent;
}

/* Footer Styles - Fixed Gap Issue */
footer {
  background-color: #211430;
  margin-top: 0 !important;
}

.hover-white:hover {
  color: #fff !important;
  transition: color 0.3s ease;
}

.contact-info i {
  width: 18px;
  color: #6c757d;
}

/* Remove margin from last section before footer */
section:last-of-type {
  margin-bottom: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* Shadows */
.shadow {
  box-shadow: 0px 10px 30px 0px #00000029;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

/* Video Styles */
.video-sec {
  margin-top: -250px;
}

@media (max-width: 500px) {
  .video-sec {
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .video-sec img.img-fluid.w-100.pointer {
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
  }
}

div#videoModal {
  z-index: 999999999999999999999999999999999;
}

/* Form Positioning */
.form-box {
  margin-top: 50px;
}

@media screen and (min-width: 1024px) {
  .form-box {
    margin-top: -280px;
    z-index: 100000000;
    position: relative;
  }
}

/* Animations */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Images */
.img-hover {
  transition: var(--transition-base);
}

.img-hover:hover {
  opacity: 0.9;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Section Spacing */
section {
  position: relative;
  overflow: hidden;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Responsive Navigation Breakpoints */

/* Hide hours first (1215px and below) */
@media (max-width: 1215px) {
  .topbar li:nth-child(3) {
    display: none !important;
  }
}

/* Hide email second (1050px and below) */
@media (max-width: 1050px) {
  .topbar li:nth-child(2) {
    display: none !important;
  }
}


/* Hide phone number last (772px and below) */
@media (max-width: 772px) {
  .topbar li:nth-child(1) {
    display: none !important;
  }
}

/* Custom responsive breakpoint for navigation */
@media (max-width: 1375px) {
  .col-md-9.d-none.d-md-block {
    display: none !important;
  }
  
  .col-6.d-md-none {
    display: block !important;
  }
  
  .navbar-collapse {
    display: none !important;
  }
}

@media (min-width: 1376px) {
  .col-md-9.d-none.d-md-block {
    display: block !important;
  }
  
  .col-6.d-md-none {
    display: none !important;
  }
}

/* Fix mobile hamburger spacing */
@media (max-width: 1375px) and (min-width: 768px) {
  .col-6.d-md-none.text-end {
    flex: 0 0 auto;
    width: auto;
    padding-right: 15px;
    margin-left: auto;
  }
  
  .col-6.col-md-3 {
    flex: 1;
  }
}

@media (max-width: 767px) {
  .col-6.d-md-none.text-end {
    flex: 0 0 50%;
    width: 50%;
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .features-list li {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  footer .col-md-6.text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }
  
  footer .col-md-6.text-md-end a {
    display: block;
    margin-bottom: 0.5rem;
  }

  /* Fix Why Choose Us section spacing on mobile */
  .features-list {
    padding-left: 1rem;
  }

  /* Ensure proper button spacing on mobile */
  .btn-block {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 400px) {
  .offcanvas-menu {
    width: 100%;
    right: -100%;
  }
}

/* Fix Why Choose Us Section - Better Content Alignment */
@media (min-width: 992px) {
  .why-choose-content {
    padding-right: 2rem;
  }
}

/* Ensure proper spacing for the Why Choose Us section */
.why-choose-us-section .container .row {
  align-items: center;
}

.why-choose-us-section .col-lg-6:first-child {
  padding-right: 2rem;
}

@media (max-width: 991px) {
  .why-choose-us-section .col-lg-6:first-child {
    padding-right: 15px;
    margin-bottom: 2rem;
  }
}

/* Scrollbar Styles */
.offcanvas-body {
  scrollbar-width: thin;
  scrollbar-color: #603c8c #f1f1f1;
}

.offcanvas-body::-webkit-scrollbar {
  width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.offcanvas-body::-webkit-scrollbar-thumb {
  background: #603c8c;
  border-radius: 3px;
}

.offcanvas-body::-webkit-scrollbar-thumb:hover {
  background: #4a2d6b;
}

/* General Scrollbar */
::-webkit-scrollbar {
  width: 2px;
}

::-webkit-scrollbar-track {
  background: #f1f1f100;
}

::-webkit-scrollbar-thumb {
  background: #fff;
}

/* Utility Classes */
.z-0 { z-index: 0; }
.z-1 { z-index: 10; }
.z-2 { z-index: 20; }
.z-9 { z-index: 999999; }

.invert { filter: invert(100%) !important; }
.mirror { transform: scaleX(-1) !important; }
.min-h-inherit { min-height: inherit; }
.o-cover { object-fit: cover; }
.w-short { width: 75%; }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -o-object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
}

/* Enhanced Link Styles */
a {
  text-decoration: none;
  color: var(--primary);
  opacity: 1;
  transition: all 0.356s;
}

a:hover {
  opacity: 0.85;
  transition: all 0.356s;
}

/* Badge Styles */
.badge {
  padding: 20px 30px !important;
  font-size: 20px;
  border-radius: 10px;
  font-weight: 400 !important;
  text-transform: uppercase;
}

@media (max-width: 430px) {
  .badge {
    padding: 20px 30px !important;
    font-size: 16px;
  }
}

/* List Styles */
.list-unstyled li {
  display: flex;
  align-items: flex-start;
}

.list-unstyled li .fa,
.list-unstyled li img {
  margin-top: 5px;
}

/* Performance Optimizations */
.parallax-window {
  min-height: 400px;
  background: transparent;
  z-index: 200 !important;
}

img.parallax-slider {
  opacity: 0.4;
}

/* Print Styles */
@media print {
  .header-phone-button,
  .mobile-menu-toggle,
  .offcanvas-menu,
  .offcanvas-overlay {
    display: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid;
  }
  
  .card {
    border: 2px solid #000 !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.mobile-nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Ensure contrast ratios meet WCAG guidelines */
.text-white-50 {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Additional Bootstrap 5 Compatibility */
@media (min-width: 768px) {
  .text-md-end {
    text-align: right !important;
  }
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.5rem;
}

/* Font Family Fixes */
.ff-primary {
  font-family: var(--ff-primary);
}

.ff-secondary {
  font-family: var(--ff-secondary);
}

b,
strong {
  font-weight: 600 !important;
}

/* Additional responsive utilities */
@media (min-width: 576px) {
  .w-sm-auto {
    width: auto !important;
  }
}

@media (min-width: 768px) {
  .w-md-auto {
    width: auto !important;
  }

  .w-md-50 {
    width: 50% !important;
  }
  
  .w-md-80 {
    width: 80% !important;
  }
  
  .text-md-left {
    text-align: left !important;
  }
  
  .text-md-center {
    text-align: center !important;
  }
  
  .text-md-right {
    text-align: right !important;
  }
  
  .text-md-start {
    text-align: left !important;
  }
}

/* Fix any remaining gaps */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* Final adjustments for seamless design */
main section:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 0;
}

.mt-cust {
margin-top: -1rem !important;
}
@media (max-width: 500px) {
  .jumbotron svg {
    width: 100%;
}
footer a {
    word-wrap: break-word;
}
.jobber-inline-work-request {
    height: auto !important;
}
.jobber-inline-work-request iframe {
    height: 3500px !important;
}
}
@media (max-width:1024px) {
.word-wrap-break {
    word-wrap: break-word;
}
}
@media (min-width:1024px) {
    .mt-lg-123 {
    margin-top: 123px;
}
}

.google-reviews-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.google-logo {
  font-size: 2rem;
  font-weight: 400;
  font-family: 'Product Sans', Arial, sans-serif;
  margin-bottom: 0.5rem;
}

.google-g { color: #4285f4; }
.google-o1 { color: #ea4335; }
.google-o2 { color: #fbbc05; }
.google-g2 { color: #4285f4; }
.google-l { color: #34a853; }
.google-e { color: #ea4335; }

.stars-container {
  display: flex;
  gap: 0.2rem;
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.star {
  color: #ffc107;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.star:hover {
  transform: scale(1.1);
}

.reviews-text {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .google-logo {
    font-size: 1.5rem;
  }
  
  .stars-container {
    font-size: 1.3rem;
  }
  
  .reviews-text {
    font-size: 1rem;
  }
}


/* Articles & Videos Pages - Complete Scoped Styles */
.body-Articles main#main-content,
.body-Videos_1 main#main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 0 2rem 0; /* Added top spacing */
}

.body-Articles .header-content,
.body-Videos_1 .header-content {
    display: contents;
}

.body-Articles .tpp_article,
.body-Videos_1 .tpp_article {
    grid-column: 1;
}

@media (min-width: 768px) {
    .body-Articles main#main-content,
    .body-Videos_1 main#main-content {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .body-Articles .tpp_article,
    .body-Videos_1 .tpp_article {
        grid-column: auto;
    }
}

@media (min-width: 1200px) {
    .body-Articles main#main-content,
    .body-Videos_1 main#main-content {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2.5rem;
    }
}

/* Individual article/video styling */
.body-Articles .tpp_article,
.body-Videos_1 .tpp_article {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e5e5;
    height: fit-content;
}

.body-Articles .tpp_article:hover,
.body-Videos_1 .tpp_article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.body-Articles .tpp_article_wrapper,
.body-Videos_1 .tpp_article_wrapper {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    min-height: 300px;
}

.body-Articles .tpp_article_wrapper:hover,
.body-Videos_1 .tpp_article_wrapper:hover {
    text-decoration: none;
    color: inherit;
}

.body-Articles .tpp_article_content,
.body-Videos_1 .tpp_article_content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.body-Articles .tpp_article_title,
.body-Videos_1 .tpp_article_title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
    color: #5b3f8b;
    transition: color 0.3s ease;
}

.body-Articles .tpp_article_wrapper:hover .tpp_article_title,
.body-Videos_1 .tpp_article_wrapper:hover .tpp_article_title {
    color: #4a2d7a;
}

.body-Articles .tpp_article_time,
.body-Videos_1 .tpp_article_time {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.body-Articles .tpp_article_text,
.body-Videos_1 .tpp_article_text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.body-Articles .tpp_article_read,
.body-Videos_1 .tpp_article_read {
    background-color: #5b3f8b;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.body-Articles .tpp_article_read:hover,
.body-Videos_1 .tpp_article_read:hover {
    background-color: #4a2d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(91, 63, 139, 0.3);
}

/* Mobile responsive adjustments - Increased top spacing */
@media (max-width: 767px) {
    .body-Articles main#main-content,
    .body-Videos_1 main#main-content {
        padding: 6rem 0 1rem 0; /* Increased top padding */
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .body-Articles .tpp_article_wrapper,
    .body-Videos_1 .tpp_article_wrapper {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    .body-Articles .tpp_article_title,
    .body-Videos_1 .tpp_article_title {
        font-size: 1.25rem;
    }
    
    .body-Articles .tpp_article_text,
    .body-Videos_1 .tpp_article_text {
        font-size: 0.95rem;
        -webkit-line-clamp: 4;
    }
}

/* Extra small screens - even more space if needed */
@media (max-width: 480px) {
    .body-Articles main#main-content,
    .body-Videos_1 main#main-content {
        padding: 6rem 0 1rem 0; /* Even more top padding for very small screens */
        margin-top: 2.5rem;
    }
}

/* Header styling for when $is_social_media is true */
.body-Articles .bg-cleaning-header,
.body-Videos_1 .bg-cleaning-header {
    background: linear-gradient(135deg, #5b3f8b 0%, #4a2d7a 100%);
}

.body-Articles .text-cleaning-header,
.body-Videos_1 .text-cleaning-header {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .body-Articles .text-cleaning-header,
    .body-Videos_1 .text-cleaning-header {
        font-size: 2rem;
    }
}

/* Additional spacing fix if needed */
.body-Articles .container,
.body-Videos_1 .container {
    margin-top: 0;
}

.body-Articles section.bg-cleaning-header + .container,
.body-Videos_1 section.bg-cleaning-header + .container {
    padding-top: 0;
}