/* =================================================================
   MAHE'S SERVICES — MAIN STYLESHEET
   This is the ONLY stylesheet the site uses (besides vendor CSS for
   Bootstrap / Bootstrap Icons / AOS, loaded separately in <head>).
   Every page-specific style lives here too, in its own clearly
   labeled section near the bottom — nothing is duplicated inline
   in individual HTML files.
   ================================================================= */

/* -----------------------------------------------------------------
   PART 1 — CORE TEMPLATE (fonts, brand tokens, header, nav, footer,
   preloader, shared section/button primitives). Used on every page.
   ----------------------------------------------------------------- */

/* --- Fonts --- */
/*--------------------------------------------------------------
# Fonts (Updated to modern Montserrat & Lato pairing)
--------------------------------------------------------------*/
:root {
  --default-font: "Lato", system-ui, -apple-system, sans-serif;
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Montserrat", sans-serif;
}


/* --- Global Colors & Tokens --- */
/*--------------------------------------------------------------
# Global Colors & Tokens (Mapped to your new luxury design tokens)
--------------------------------------------------------------*/
:root { 
  /* Base Brand Colors */
  --brand-navy:       #1A2B48;   /* Primary Brand — Authority & Trust */
  --brand-navy-light: #243a63;   /* Lighter Navy for hovers */
  --brand-gold:       #C5A048;   /* Premium Accent Color */
  --brand-gold-light: #debb6a;   /* Lighter Gold for hovers */

  /* Global Section Configurations */
  --background-color: #ffffff;   /* Crisp white backdrop */
  --default-color: #374151;      /* Using your --text-mid for optimal body copy reading */
  --heading-color: #111827;      /* Using your deep --text-dark for sharp, professional titles */
  --accent-color: #1A2B48;       /* Primary branding maps directly to Navy */
  --surface-color: #ffffff;      /* Section box highlights */
  --contrast-color: #ffffff;     /* Clean text overlay on dark backdrops */

  /* Utility / Decorative tokens */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-card: 0 4px 24px rgba(26, 43, 72, 0.10);
  --shadow-hover: 0 8px 40px rgba(26, 43, 72, 0.18);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}


/* --- Nav Menu Colors --- */
/*--------------------------------------------------------------
# Nav Menu Colors
--------------------------------------------------------------*/
:root {
  --nav-color: #666666;                       /* Using your new --gray-600 token */
  --nav-hover-color: var(--brand-gold);       /* Changes links to Premium Gold on hover */
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #666666;              /* Using your new --gray-600 token */
  --nav-dropdown-hover-color: var(--brand-navy); /* Darkens dropdown choices to Navy on hover */
}


/* --- Color Presets (Light & Dark Section Overrides) --- */
/*--------------------------------------------------------------
# Color Presets (Light & Dark Section Overrides)
--------------------------------------------------------------*/
.light-background {
  --background-color: #f8f6f1;   /* Utilizing your gorgeous new warm --off-white background tone */
  --surface-color: #ffffff;
  --default-color: #374151;
  --heading-color: #111827;
}

.dark-background {
  --background-color: var(--brand-navy); /* Deep rich premium blue section alternative */
  --default-color: #f1f1f1;              /* Using --gray-100 for legibility */
  --heading-color: #ffffff;
  --surface-color: var(--brand-navy-light);
  --contrast-color: #ffffff;
  --accent-color: var(--brand-gold);     /* Accents cleanly swap to Gold inside dark areas */
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}


/* --- General Styling & Shared Classes (incl. PHP email form states) --- */
/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* --- Global Header --- */
/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: #ffffff; /* Upgraded to crisp white for a cleaner aesthetic */
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0; /* Slightly increased padding for better breathing room */
  transition: all 0.4s ease;
  z-index: 997;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 94%); /* Subtle elegant bottom border */
}

.header .logo {
  line-height: 1;
  text-decoration: none;
}

.header .logo img {
  max-height: 40px; /* Enhanced slightly for better brand visibility */
  margin-right: 10px;
}

.header .logo h1 {
  font-size: 24px; /* Slightly tighter, modern font sizing */
  margin: 0;
  font-weight: 700; /* Bold weight for a premium structural anchor */
  letter-spacing: 1px;
  color: var(--heading-color);
  font-family: var(--nav-font);
}

.header .logo h1 span {
  color: var(--accent-color); /* Accents the secondary word dynamically */
  font-weight: 400;
}

/* Flexible Action Container (Socials + CTA Button alignment) */
.header-actions {
  gap: 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  padding: 0 8px;
  display: inline-block;
  transition: 0.3s ease;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-2px); /* Premium subtle lift on hover */
}

.header .header-social-links a i {
  line-height: 0px;
}

/* EN / FR language switcher, top-right of the header */
.lang-switcher {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lang-switcher .lang-btn {
  background: none;
  border: none;
  padding: 4px 4px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-switcher .lang-btn:hover,
.lang-switcher .lang-btn.active {
  color: var(--accent-color);
}

.lang-switcher .lang-sep {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 11px;
}

/* New Call to Action (CTA) Button Styling */
.btn-cta {
  background-color: var(--accent-color);
  color: var(--contrast-color, #ffffff);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px; /* Pill shape for a highly approachable, professional visual target */
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-cta:hover {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--accent-color), transparent 80%);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-actions {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}


/* --- Navigation Menu --- */
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px; /* Clean layout gap instead of massive variable paddings */
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 10px 14px;
    font-size: 15px;
    font-family: var(--nav-font);
    font-weight: 500; /* Medium weight reads cleaner than regular */
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    text-decoration: none;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 11px;
    line-height: 0;
    margin-left: 6px;
    transition: 0.3s;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--accent-color);
  }

  /* Dropdown container enhancements */
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color, #ffffff);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 0;
    top: 130%;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 8px; /* Softer rounded edges */
    z-index: 99;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08); /* Modern, soft shadow architecture */
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  }

  .navmenu .dropdown ul li {
    min-width: 220px;
  }

  .navmenu .dropdown ul a {
    padding: 9px 20px;
    font-size: 14px;
    text-transform: none;
    font-weight: 400;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--accent-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 96%); /* Light hover block background */
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  /* Fixed deep dropdown positioning issues */
  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: 100%; /* Spans gracefully out to the right */
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-left: 15px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 70px 20px auto 20px;
    padding: 15px 0;
    margin: 0;
    border-radius: 12px;
    background-color: var(--nav-mobile-background-color, #ffffff);
    overflow-y: auto;
    max-height: 80vh;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 12px 20px;
    font-family: var(--nav-font);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    text-decoration: none;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--accent-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 5px 0;
    margin: 5px 20px;
    background-color: color-mix(in srgb, var(--default-color), transparent 97%);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 94%);
    border-radius: 6px;
    box-shadow: none;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.05);
  }

  .navmenu .dropdown > .dropdown-active {
    display: block;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: var(--accent-color);
    position: static;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* Modern semi-transparent backdrop blur look */
    backdrop-filter: blur(4px);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}

/* --- Global Footer Structure --- */
/*--------------------------------------------------------------
# Global Footer Structure — MAHE'S SERVICES Dark Luxury
--------------------------------------------------------------*/
.footer {
  color: #e5e7eb;
  background-color: var(--brand-navy, #1A2B48);
  font-size: 14px;
  position: relative;
  font-family: var(--default-font, sans-serif);
}

.footer .footer-top {
  padding-top: 60px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 20px;
}

.footer .footer-about .logo span {
  color: #ffffff;
  font-family: var(--heading-font, sans-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about .logo span span {
  color: var(--brand-gold, #C5A048);
  font-weight: 400;
}

.footer .footer-about p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.footer .text-gold {
  color: var(--brand-gold, #C5A048) !important;
}


/* --- Animated Footer Social Links --- */
/*--------------------------------------------------------------
# Animated Footer Social Links
--------------------------------------------------------------*/
.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 12px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}

.footer .social-links a::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brand-gold, #C5A048);
  z-index: -1;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  color: #1A2B48 !important;
  border-color: var(--brand-gold, #C5A048);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(197, 160, 72, 0.3);
}

.footer .social-links a:hover::before {
  top: 0;
}


/* --- Structural Content Links & Underline Animations --- */
/*--------------------------------------------------------------
# Structural Content Links & Underline Animations
--------------------------------------------------------------*/
.footer h4 {
  color: #ffffff;
  font-family: var(--heading-font, sans-serif);
  font-size: 17px;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: var(--brand-gold, #C5A048);
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 8px 0;
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer .footer-links ul a:hover {
  color: var(--brand-gold, #C5A048);
  padding-left: 6px;
}

.footer .cta-desc {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

.footer-btn-cta {
  display: inline-block;
  background-color: var(--brand-gold, #C5A048);
  color: #ffffff;
  padding: 11px 24px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.footer-btn-cta:hover {
  background-color: transparent;
  color: var(--brand-gold, #C5A048);
  border-color: var(--brand-gold, #C5A048);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(197, 160, 72, 0.2);
}


/* --- Copyright Section --- */
/*--------------------------------------------------------------
# Copyright Sections
--------------------------------------------------------------*/
.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .copyright p {
  margin-bottom: 0;
  font-family: var(--heading-font, sans-serif);
  font-weight: 600;
  color: #ffffff;
}

.footer .credits {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}


/* --- Responsive Smartphone Override --- */
/*--------------------------------------------------------------
# RESPONSIVE SMARTPHONE OVERRIDE (Ultra fluide sur écran mobile)
--------------------------------------------------------------*/
@media (max-width: 767.98px) {
  .footer {
    text-align: center !important;
  }
  
  .footer .footer-about, 
  .footer .footer-links {
    margin-bottom: 35px;
  }
  
  .footer h4::after {
    left: 50%;
    transform: translateX(-50%); /* Centre l'accent d'or sous le titre */
  }
  
  .footer .social-links {
    justify-content: center;
  }
  
  .footer .footer-links ul a:hover {
    padding-left: 0; /* Évite un décalage asymétrique sur mobile centré */
    color: var(--brand-gold, #C5A048);
  }
  
  .footer-btn-cta {
    width: 100%; /* Le bouton prend toute la largeur sur mobile pour faciliter le clic tactile */
    text-align: center;
  }
}

/* --- Preloader --- */
/*--------------------------------------------------------------
# Preloader — MAHE'S SERVICES Premium Design
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Preloader Global Screen
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  /* Fallback for Safari on iOS < 14.5 which doesn't support 'inset' */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--brand-navy, #1A2B48); /* Fond immersif de luxe */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
}

/* Animation de pulsation douce sur le logo */
.preloader-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  animation: logo-pulse 2s infinite ease-in-out;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Typographie du Preloader */
.preloader-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 8px 0;
  font-family: sans-serif;
}

.preloader-slogan {
  color: var(--brand-gold, #C5A048);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  margin: 0 0 30px 0;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Barre de progression ultra-fine et élégante */
.preloader-progress {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  position: absolute;
  height: 100%;
  width: 40%;
  background: var(--brand-gold, #C5A048);
  border-radius: 4px;
  animation: preloader-loading 1.5s infinite ease-in-out;
}


/* --- Preloader Keyframes (logo-pulse, preloader-loading) --- */
/*--------------------------------------------------------------
# Keyframes Animations
--------------------------------------------------------------*/
@keyframes logo-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(197, 160, 72, 0));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(197, 160, 72, 0.5)); /* Effet d'aura dorée */
  }
}

@keyframes preloader-loading {
  0% {
    left: -40%;
  }
  50% {
    width: 60%; /* La barre s'étire au milieu pour plus de réalisme */
  }
  100% {
    left: 100%;
  }
}


/* --- Animated Scroll-Top Button --- */
/*--------------------------------------------------------------
# Animated Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  background-color: var(--brand-gold, #C5A048);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm, 6px);
  transition: var(--transition, all 0.4s ease);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.scroll-top i {
  font-size: 26px;
  color: #ffffff;
  line-height: 0;
  transition: transform 0.3s ease;
}

/* Hover creates an appealing slide up arrow animation with infinite pulse */
.scroll-top:hover {
  background-color: var(--brand-navy, #1A2B48);
  animation: pulse-glow 1.5s infinite;
}

.scroll-top:hover i {
  transform: translateY(-4px);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(26, 43, 72, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(26, 43, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 43, 72, 0); }
}


/* --- Disable AOS Animation Delay on Mobile --- */
/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}


/* --- Global Sections (.section) --- */
/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 40px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}


/* --- Global Section Titles (.section-title) --- */
/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  margin-bottom: 60px;
  position: relative;
}

.section-title .section-title-container {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--default-color);
}

.section-title h2 {
  font-size: 40px;
  font-weight: 0;
}

.section-title p {
  margin-bottom: 0;
}

.section-title p a {
  color: var(--default-color);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid var(--default-color);
  font-family: var(--nav-font);
  font-weight: 500;
  padding-bottom: 2px;
}


/* --- Floating Navbar + Footer Brand Polish --- */
/*--------------------------------------------------------------
# Restored Premium Navbar + Footer Brand Polish
--------------------------------------------------------------*/
.header.sticky-top {
  top: 12px;
}

.header {
  width: min(1180px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 10px 0;
  border: 1px solid rgba(26, 43, 72, 0.10);
  border-bottom: 1px solid rgba(26, 43, 72, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(26, 43, 72, 0.12);
  /* NOTE: backdrop-filter removed here on purpose — it was creating a new
     CSS containing block, which trapped the mobile nav's fixed-position
     full-screen overlay inside this header's own ~60px box instead of
     letting it cover the viewport. Background is already 94% opaque
     white, so the visual difference is negligible; a working mobile
     menu is worth more than a barely-visible blur. If the blur is
     wanted back, apply it to a `.header::before` pseudo-element instead
     of the header itself, so #navmenu is no longer a descendant of an
     element with backdrop-filter set. */
}

.scrolled .header {
  box-shadow: 0 22px 60px rgba(26, 43, 72, 0.16);
}

.header .container-xl {
  padding-left: 18px;
  padding-right: 18px;
}

.header .logo {
  min-width: max-content;
  gap: 10px;
}

.header .logo img {
  width: 44px !important;
  height: 44px !important;
  max-height: none !important;
  margin-right: 0 !important;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(197, 160, 72, 0.45);
  box-shadow: 0 10px 24px rgba(26, 43, 72, 0.18);
}

.header .logo h1 {
  font-size: 18px !important;
  line-height: 0.92 !important;
  letter-spacing: 0 !important;
}

.header .logo h1 span,
.header .logo .sitename span {
  color: var(--brand-gold) !important;
  font-weight: 700;
}

@media (min-width: 1200px) {
  .navmenu ul {
    gap: 4px;
  }

  .navmenu a,
  .navmenu a:focus {
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    background: rgba(197, 160, 72, 0.15);
    color: var(--brand-navy);
  }

  .navmenu .dropdown ul {
    border-radius: 16px;
    padding: 10px;
    border: 1px solid rgba(26, 43, 72, 0.10);
    box-shadow: 0 22px 55px rgba(26, 43, 72, 0.16);
  }

  .navmenu .dropdown ul a {
    border-radius: 10px;
    padding: 10px 14px;
  }
}

.btn-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(26, 43, 72, 0.16);
}

.btn-cta:hover {
  background: var(--brand-gold);
  color: var(--brand-navy);
  border-color: var(--brand-gold);
}

.footer {
  background:
    radial-gradient(circle at 18% 0%, rgba(197, 160, 72, 0.18), transparent 30%),
    linear-gradient(135deg, var(--brand-navy), #111827) !important;
}

.footer .footer-about .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-brand-logo,
.footer .footer-about .logo img {
  width: 46px !important;
  height: 46px !important;
  margin-right: 0 !important;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(197, 160, 72, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.footer .footer-about .logo .sitename,
.footer .footer-about .logo span.sitename {
  line-height: 0.95;
  font-size: 22px;
  letter-spacing: 0;
}

@media (max-width: 1199px) {
  .header.sticky-top {
    top: 8px;
  }

  .header {
    width: calc(100% - 18px);
    border-radius: 24px;
  }

  .mobile-nav-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #ffffff !important;
  }

  .mobile-nav-active .navmenu {
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(8px);
  }

  .mobile-nav-active .navmenu > ul {
    inset: 86px 14px auto 14px;
    border-radius: 20px;
  }
}

@media (max-width: 575px) {
  .header .logo h1 {
    font-size: 15px !important;
  }

  .header .logo img {
    width: 38px !important;
    height: 38px !important;
  }

  .footer .footer-about .logo {
    justify-content: center;
  }
}



/* -----------------------------------------------------------------
   PART 2 — SITE-WIDE PAGE COMPONENTS
   Everything below was previously duplicated as an inline <style>
   block on every page. It now lives here once. Sections are grouped
   by where they're used; several are shared across multiple pages.
   ----------------------------------------------------------------- */

/* === Dark hero band used at the top of About / Services / Service
   detail / Contact / Booking / Reviews pages. (Supersedes an older,
   conflicting `.dynamic-hero` rule that forced a flat navy
   background via !important — that rule has been removed so the
   gradient + background-image combinations below actually render.) === */
.dynamic-hero {
  position: relative;
  padding: 90px 0 60px;
  background: linear-gradient(rgba(26, 43, 72, .88), rgba(11, 18, 38, .95));
}

/* Frosted-glass title card sitting on top of a .dynamic-hero (About, Contact) */
.glass-title-card {
  background: rgba(255, 255, 255, .07) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: var(--radius-lg, 20px);
  color: #fff;
}

/* Dark frosted-glass content card used on dark backgrounds
   (About's org chart, Contact's "Direct Lines" sidebar) */
.glass-bento-card {
  background: rgba(26, 43, 72, .65) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(197, 160, 72, .2) !important;
  border-radius: var(--radius-md, 12px);
  transition: transform .4s cubic-bezier(.25, 1, .5, 1), box-shadow .4s ease, border-color .3s;
}
.glass-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(197, 160, 72, .18) !important;
  border-color: var(--brand-gold, #C5A048) !important;
}

/* Circular icon badge that rotates gold on hover, used inside .glass-bento-card
   (About's certification-style cards) */
.icon-glow-box {
  background: rgba(255, 255, 255, .1) !important;
  border: 1px solid rgba(255, 255, 255, .15);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: .3s;
}
.glass-bento-card:hover .icon-glow-box {
  background: var(--brand-gold, #C5A048) !important;
  color: var(--brand-navy, #1A2B48) !important;
  transform: rotate(360deg) scale(1.08);
}

/* === Service/feature cards used on Home (divisions grid) and the
   Services hub (division cards) === */
.bento-card {
  transition: transform .4s cubic-bezier(.25, 1, .5, 1), box-shadow .4s ease, border-color .3s !important;
  overflow: hidden;
  position: relative;
}
.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover, 0 12px 40px rgba(26, 43, 72, .15)) !important;
  border-color: var(--brand-gold, #C5A048) !important;
}
.img-zoom-wrapper { overflow: hidden; border-radius: var(--radius-sm, 6px); }
.img-zoom-wrapper img { transition: transform .5s ease; }
.bento-card:hover .img-zoom-wrapper img { transform: scale(1.08); }

/* Small helper for contact-detail spans that are placeholder values
   pending owner confirmation (phone/email) — currently just a hint
   via the title="" tooltip, this class is reserved for a future
   visual treatment if needed. */
.placeholder-note { font-size: 11px; color: #8FA0AF; }

/* === Service detail pages (services/*.html): hero icon badge,
   numbered process steps, KPI/why-us tiles, client pill tags === */
.div-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: 'Montserrat';
  flex-shrink: 0;
}
.kpi-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  background: #fff;
}
.kpi-card .num {
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 28px;
  color: var(--brand-navy);
}
.client-pill {
  display: inline-block;
  background: #f8f6f1;
  border: 1px solid #eee;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  margin: 4px 4px 0 0;
  color: #374151;
}

/* === Service-selector cards (Contact page's routed request form) === */
.selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sel-card {
  background: #fff;
  border: 1px solid #E7E1D3;
  border-radius: var(--radius-lg, 20px);
  padding: 22px 18px;
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 8px 24px rgba(15, 36, 56, .08);
}
.sel-card:hover { border-color: var(--brand-gold); transform: translateY(-2px); }
.sel-card.selected {
  border-color: var(--brand-gold);
  background: #FFFBF2;
  box-shadow: 0 0 0 2px var(--brand-gold-light, #debb6a);
}
.sel-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #f8f6f1;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-navy);
  font-size: 20px;
  margin-bottom: 14px;
}
.sel-card.selected .sel-icon { background: var(--brand-gold); color: #fff; }
.sel-title { font-family: 'Montserrat'; font-weight: 700; font-size: 14.5px; margin-bottom: 4px; color: var(--heading-color); }
.sel-sub { font-size: 12.5px; color: #6b7280; line-height: 1.4; }
.dyn-hint {
  font-size: 12px;
  color: #0f5132;
  background: #e8f6f1;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex; gap: 8px; align-items: center;
}

/* Dashed drop-zone hint above the real <input type="file"> on
   Contact, Booking, and (implicitly) any future upload form */
.file-drop {
  border: 1.5px dashed #DDD6C4;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

/* === FAQ accordion (Contact page) === */
.faq-item { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq-q { font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-a { font-size: 13.5px; color: #6b7280; margin-top: 10px; line-height: 1.6; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .bi-chevron-down { transform: rotate(180deg); }

/* === Review cards (Reviews page, populated via api/reviews.php) === */
.review-card { border: 1px solid #eee; border-radius: 14px; padding: 22px; background: #fff; }
.review-card .stars i { color: var(--brand-gold); }

/* === Service-area components (Home, Services hub, service-detail
   pages, Contact, and the footer) — the 9 municipalities MAHE'S
   SERVICES operates in. Single set of styles shared everywhere the
   list appears so it always looks the same. === */
.area-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f6f1;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-navy);
  transition: var(--transition);
}
.area-card i { color: var(--brand-gold); font-size: 18px; }
.area-card:hover { border-color: var(--brand-gold); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.dark-background .area-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #fff; }

/* Compact "Areas We Serve" strip inside the footer */
.footer-areas-row {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-areas-row h4 {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-areas-list { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-area-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 12px;
  color: #B9C6D2;
}
.footer-area-pill i { color: var(--brand-gold); }

/* === Client-type cards (Professional Cleaning page) — the three
   categories the cleaning division serves: Commercial, Private /
   Residential, and Newly Constructed Buildings. === */
.client-type-card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  background: #fff;
  transition: var(--transition);
}
.client-type-card:hover { border-color: var(--brand-gold); box-shadow: var(--shadow-card); transform: translateY(-4px); }
.client-type-card .ct-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.client-type-card h4 { font-family: 'Montserrat'; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.client-type-card ul { padding-left: 18px; margin-bottom: 0; color: #6b7280; font-size: 13.5px; }
.client-type-card ul li { margin-bottom: 4px; }

/* === Accessibility: skip-to-content link. Visually hidden until the
   link receives keyboard focus (Tab key), then appears at the top-left
   so keyboard/screen-reader users can bypass the header and nav. === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-navy);
  color: #fff !important;
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus {
  left: 0;
}

/* === Honeypot anti-spam field. Real visitors never see or fill this
   in; a filled honeypot tells the PHP handler the submission is a bot
   and it's discarded silently (see includes/bootstrap.php). Hidden via
   position, not display:none/visibility:hidden, since some bots skip
   fields that are display:none but still fill absolutely-positioned
   off-screen ones by mistake — position-based hiding catches more. === */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* === Booking form: step progress indicator + review-before-submit
   screen (booking.html) === */
.booking-progress { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 28px; }
.booking-progress .bp-step { display: flex; align-items: center; gap: 8px; }
.booking-progress .bp-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat'; font-weight: 700; font-size: 13px;
  background: #e9e4d6; color: #9a927e;
  transition: var(--transition);
}
.booking-progress .bp-step.active .bp-num,
.booking-progress .bp-step.done .bp-num { background: var(--brand-gold); color: #fff; }
.booking-progress .bp-label { font-size: 13px; font-weight: 600; color: #9a927e; }
.booking-progress .bp-step.active .bp-label,
.booking-progress .bp-step.done .bp-label { color: var(--heading-color); }
.booking-progress .bp-line { width: 40px; height: 2px; background: #e9e4d6; }
.booking-progress .bp-step.done + .bp-line { background: var(--brand-gold); }

.review-summary { background: #f8f6f1; border: 1px solid #eee; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.review-summary dt { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9a927e; margin-top: 10px; }
.review-summary dt:first-child { margin-top: 0; }
.review-summary dd { font-size: 14px; font-weight: 600; color: var(--heading-color); margin-bottom: 0; }

/* === Booking Success: "what happens next" timeline === */
.success-timeline { position: relative; padding-left: 44px; }
.success-timeline::before { content:''; position:absolute; left:14px; top:6px; bottom:6px; width:2px; background:#e9e4d6; }
.success-timeline .st-item { position: relative; padding-bottom: 24px; }
.success-timeline .st-item:last-child { padding-bottom: 0; }
.success-timeline .st-dot {
  position: absolute; left: -44px; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat'; font-weight: 700; font-size: 13px;
}

/* === Mobile-only sticky call/book bar (site-wide, see page() in
   _tools/_build.py). Fixed to the bottom of small screens only —
   desktop already has the header's Book Service button and phone
   link, so this bar is d-md-none. === */
.mobile-sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1040;
  display: flex;
  background: var(--brand-navy);
  box-shadow: 0 -4px 18px rgba(0,0,0,.18);
}
.mobile-sticky-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.mobile-sticky-bar a:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,.12);
}
.mobile-sticky-bar .msb-cta {
  background: var(--brand-gold);
}
@media (max-width: 767px) {
  body { padding-bottom: 54px; }
}

/* === Lift the scroll-top button above the mobile sticky call/book bar ===
   The bar is ~54px tall (see body padding-bottom above), so on small screens
   the button must sit higher than that. Desktop keeps bottom: 20px. */
@media (max-width: 767px) {
  .scroll-top {
    bottom: calc(54px + 24px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    z-index: 1050 !important;
  }
}