/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* Base Styles & Variables */
:root {
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Updated Color Scheme */
    --primary-blue: #0d3e5f;          /* New darker blue */
    --primary-blue-light: #1a5a8a;    /* Lighter shade for hovers */
    --primary-red: #c8102e;           /* British red for accents */
    --primary: #0d3e5f;               /* Main brand color */
    --secondary: #e63946;             /* Red for accents */
    --dark: #0a2d47;                  /* Dark blue for headings */
    --medium: #3a6b8c;                /* Medium blue */
    --light: #a8c6d9;                 /* Light blue */
    --lighter: #e6f0f7;               /* Very light blue/gray */
    --white: #ffffff;                 /* White */
    --black: #000000;                 /* Black */
    --gray-100: #f8fafc;              /* Light gray */
    --gray-200: #f1f5f9;              /* Light gray */
    --gray-300: #e2e8f0;              /* Light gray */
    --gray-400: #cbd5e1;              /* Medium gray */
    --gray-500: #94a3b8;              /* Medium gray */
    --gray-600: #64748b;              /* Dark gray */
    --gray-700: #475569;              /* Dark gray */
    --gray-800: #1e293b;              /* Dark gray */
    --gray-900: #0f172a;              /* Dark gray */
    --success: #10b981;               /* Green */
    --info: #0ea5e9;                  /* Sky blue */
    --warning: #f59e0b;               /* Amber */
    --danger: #ef4444;                /* Red */
    --light: #f8fafc;                 /* Light gray */
    --dark: #0f172a;                  /* Dark gray */
    --text-dark: #1e293b;             /* Dark text */
    --text-light: #64748b;            /* Light text */
    --border-color: #e2e8f0;          /* Border color */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(13, 62, 95, 0.05);
    --shadow: 0 4px 6px -1px rgba(13, 62, 95, 0.1), 0 2px 4px -1px rgba(13, 62, 95, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(13, 62, 95, 0.1), 0 4px 6px -2px rgba(13, 62, 95, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(13, 62, 95, 0.1), 0 10px 10px -5px rgba(13, 62, 95, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(13, 62, 95, 0.25);
    --shadow-2xl: 0 25px 50px -12px rgba(13, 62, 95, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(13, 62, 95, 0.06);
    --shadow-outline: 0 0 0 3px rgba(13, 62, 95, 0.5);
    --shadow-none: 0 0 #0000;
    
    /* Typography */
    --font-heading: 'Montserrat', 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --line-height: 1.6;
    --heading-line-height: 1.2;
    
    /* Spacing */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2.5rem;    /* 40px */
    --spacing-xl: 4rem;      /* 64px */
    --spacing-xxl: 6rem;     /* 96px */
    
    /* Border Radius */
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
    
    /* UI Elements */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
    --border-radius: 6px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
}



/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 0;
}

/* Reset padding for pages that handle it themselves */
.main-page {
    padding-top: 0;
}



body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    margin: 0;
    padding-top: 0; /* Removed padding as we have a fixed header */
}

/* Main content area */
main {
    padding-top: 0; /* Removed padding to eliminate extra space above hero */
}



/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}



/* Section Styling */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}



section:nth-child(even) {
    background-color: var(--off-white);
}



.section-title {
    text-align: center;
    position: relative;
    color: var(--primary-blue);
}

.section-title h2 {
    font-size: 2.5rem;
    color: inherit;
    position: relative;
    display: inline-block;
}

.section-title p {
    font-size: 1.35rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 1.3rem auto 0 auto;
}

/* REMOVED - section titles now use inline spans only */



/* Typography */
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--dark);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--heading-line-height);
    margin: 0 0 var(--spacing-md) 0;
    /* color intentionally unset here to allow page-specific header colors */
}



h1 { 
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}



h2 { 
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}



h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}



h3 { 
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}



h4 { 
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}



h5 { 
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}



h6 { 
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--medium-gray);
}



a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}



a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}



p {
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}

.welcome-message-content .welcome-text {
    text-align: left;
}



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



ul, ol {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
}



/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}



.section {
    padding: var(--spacing-xxl) 0;
}

/* Services section now uses standard .section padding: 24px 0 on mobile, 48px 0 on desktop */



.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}



/* REMOVED - section titles now use inline spans only */




/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    min-height: 44px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
    box-shadow: 0 4px 15px rgba(13, 62, 95, 0.2);
}

/* ... */

/* Base primary button styles */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white !important;
    transition: all 0.3s ease, transform 0.2s ease;
}

/* ... */
#get-quote-btn {
    background-color: var(--primary-blue) !important;
    color: white !important;
    border-color: var(--primary-blue) !important;
    transition: all 0.3s ease !important;
}



#get-quote-btn:hover,
#get-quote-btn:focus,
#get-quote-btn:active {
    background-color: #c8102e !important;
    border-color: #c8102e !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    outline: none !important;
}



/* Fallback for other primary buttons */
.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* CTA Card Buttons */
.btn-blue {
  background-color: var(--info) !important;
  color: var(--white) !important;
}

.btn-blue:hover {
  background: linear-gradient(to right, var(--info), var(--primary-blue-light)) !important;
}

.btn-red {
  background-color: var(--primary-red) !important;
  color: var(--white) !important;
}

.btn-red:hover {
  background: linear-gradient(to right, var(--secondary), var(--primary-red)) !important;
}



/* Button Sizes */
.btn-lg {
    padding: 1.1rem 2.75rem;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    box-shadow: 0 6px 20px rgba(32, 97, 186, 0.3);
    position: relative;
    overflow: hidden;
}



.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(32, 97, 186, 0.4);
}



/* Button with Icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 2.5rem;
    position: relative;
    overflow: visible;
}



.btn-icon i {
    font-size: 1.1em;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    right: 1.25rem;
    opacity: 0.9;
}



.btn-icon:hover i {
    transform: translateX(4px);
    opacity: 1;
}



/* Button States */
.btn:disabled,
.btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}



/* Button Loading State */
.btn .btn-loading {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: inherit;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}



.btn.is-loading .btn-text {
    opacity: 0;
}



.btn.is-loading .btn-loading {
    opacity: 1;
}



.btn .btn-loading i {
    animation: spin 1s linear infinite;
}

/* Hide promo message in banner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Single media query for promo message */
@media (max-width: 700px) {

  .promo-message {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #0d3e5f !important;
    color: #fff !important;
    padding: 8px 0 6px 0;
    width: 100%;
    font-size: 0.98rem;
    gap: 0;
  }
  .promo-message .promo-desktop,
  .promo-message .promo-contact-link {
    display: none !important;
  }
  .promo-message .promo-mobile {
    display: inline !important;
    font-size: 1.08em;
    font-weight: 600;
  }
}


/* =Testimonials Section
------------------------------------------------------------------*/

/* Responsive Testimonial Section */
.testimonial-section .container {
    position: relative;
}

/* Desktop: 3-column grid */
@media (min-width: 769px) {
    .t-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

/* Mobile: Carousel */
.t-arrow {
    display: none; /* Hidden by default */
}

@media (max-width: 768px) {
    .t-arrow {
        display: flex; /* Show arrows on mobile */
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.8);
        border: 1px solid var(--border-color);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        cursor: pointer;
        justify-content: center;
        align-items: center;
        z-index: 10;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        box-shadow: var(--shadow-sm);
    }

    .t-arrow:hover {
        background-color: var(--white);
        box-shadow: var(--shadow-md);
    }

    .t-arrow.prev {
        left: 0px;
    }

    .t-arrow.next {
        right: 0px;
    }

    .t-arrow i {
        color: var(--primary-blue);
        font-size: 1rem;
    }
    
    .t-track {
        padding: 0 30px;
    }
}

.testimonials {
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent;
    position: relative;
    overflow: visible;
    max-width: 1200px;
    border-radius: 0;
    box-shadow: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/*
GLOBAL BLOCK SPACING SYSTEM
----------------------------------------
- All major blocks/sections get consistent vertical spacing.
- Adjust --block-spacing to change spacing everywhere.
- Applies globally, not just homepage.
*/
:root {
  --block-spacing: 0.5rem;
}
#page-wrapper > section:not(.no-padding),
#page-wrapper > div:not(.home-footer-image-row),
.container > section:not(.no-padding),
.container > div {
  margin-bottom: var(--block-spacing) !important;
}

.no-bottom-padding {
  padding-bottom: 0 !important;
}

.no-top-padding {
  padding-top: 0 !important;
}

.no-bottom-margin {
  margin-bottom: 0 !important;
}

/* Remove previous homepage-specific spacing overrides for testimonials/brands */

@media (max-width: 700px) {
  :root {
    --block-spacing: 0.35rem;
  }
}


.service-content {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 18px rgba(32,97,186,0.06);
    padding: 3rem 2rem;
    padding-left: 15px;
    padding-right: 15px;
}

.testimonial-section .section-title {
  margin-bottom: 1.5rem;
}

.testimonial-compact {
  background: #0d3e5f;
  color: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem 2.5rem 1.5rem;
  max-width: 1200px; /* Set to site width */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto; /* Center the block */
}

.testimonial-content {
    background: #0d3e5f;
    color: #fff;
    border-radius: 20px;
    padding: 1.6rem 2.2rem 1.4rem 2.2rem !important;
    margin-bottom: 1.1rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
  .testimonial-content {
    max-width: 95vw;
    padding: 1.2rem 1.3rem 1.2rem 1.3rem !important;
  }
  .testimonial-content .testimonial-avatar {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80px !important;
    height: 80px !important;
  }
  .testimonial-content .btn,
  .testimonial-content a.btn {
    margin-bottom: 2.1rem !important;
    margin-top: 0 !important;
    display: block !important;
  }
}



@media (max-width: 700px) {
  .testimonial-content .testimonial-avatar {
    width: 90px !important;
    height: 90px !important;
    border-width: 4px !important;
    margin-bottom: 0.7rem !important;
  }
  .testimonial-content .testimonial-author {
    margin-bottom: 2.4rem !important;
    font-size: 1.05rem !important;
  }
  .testimonial-content .btn,
  .testimonial-content a.btn {
    margin-bottom: 2.6rem !important;
    margin-top: 0 !important;
    display: block !important;
  }
  .testimonial-content .testimonial-text {
    padding: 0 1.1rem !important;
  }
}



.testimonial-image {
    margin-bottom: 0.5rem !important;
}

.testimonial-avatar {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-text {
    text-align: center;
    padding: 0 1rem !important;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
  .testimonial-text {
    padding: 0 2rem !important;
  }
  .testimonial-author {
    margin-bottom: 1.1rem !important;
  }
  .testimonial-text a.btn {
    margin-bottom: 1.7rem !important;
  }
}

@media (max-width: 600px) {
  .testimonial-text {
    padding: 0 0.7rem !important;
  }
}

.testimonial-author {
    margin-bottom: 0.6rem !important;
}

@media (max-width: 1024px) {
  .testimonial-author {
    margin-bottom: 0.7rem !important;
  }
  .testimonial-text a.btn {
    margin-bottom: 0.7rem !important;
  }
}

@media (max-width: 600px) {
  .testimonial-author {
    margin-bottom: 0.9rem !important;
  }
  .testimonial-text a.btn {
    margin-bottom: 1.2rem !important;
  }
}


.testimonial-quote {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin: 0.75rem 0 1rem 0 !important;
    padding: 0 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.testimonial-author {
    font-size: 1rem !important;
    font-weight: 500;
    margin-bottom: 0.5rem !important;
}


/* LOCKED: CTA Card Width - DO NOT REMOVE OR OVERRIDE */

/* NEW: Compact Testimonial Block */

.testimonial-compact {
  background: #0d3e5f;
  color: #fff;
  border-radius: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 2.5rem auto 0 auto;
  /* Margin-bottom removed to avoid stacking */
  box-sizing: border-box;
  padding: 2.2rem 2.4rem 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials section.testimonial-compact {
  margin-bottom: 0 !important;
}
.testimonial-compact-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.testimonial-avatar-img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  margin-bottom: 1rem;
}
.testimonial-compact-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.testimonial-compact-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}
.testimonial-compact-quote {
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 1.1rem 0;
  padding: 0.7rem 1.2rem;
  background: none;
  border-radius: 0;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #fff;
}
.testimonial-compact-author {
  font-size: 1.03rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
  text-align: center;
  letter-spacing: 0.01em;
}
.testimonial-compact-btn {
  display: inline-block;
  font-size: 1rem;
  padding: 12px 24px;
  width: auto;

  background-color: var(--primary-blue-light) !important;
  color: var(--white) !important;
  transition: background 0.3s ease;
}

.testimonial-compact-btn:hover {
  background: linear-gradient(to right, var(--info), var(--primary-blue-light)) !important;
}

@media (max-width: 1200px) {
  .testimonial-compact {
    max-width: 95vw;
    padding: 1.6rem 1.1rem 1.6rem 1.1rem;
  }
}
@media (max-width: 800px) {
  .testimonial-compact-inner {
    gap: 0.7rem;
  }
  .testimonial-compact-avatar {
    padding-top: 1.2rem;
  }
  .testimonial-compact-avatar img {
    width: 68px;
    height: 68px;
  }
  .testimonial-compact-content h3 {
    font-size: 1.18rem;
  }
  .testimonial-compact-quote {
    font-size: 0.98rem;
    padding: 0.5rem 0.6rem;
  }
  .testimonial-compact-author {
    font-size: 0.97rem;
    margin-bottom: 1rem;
  }
  .testimonial-compact-btn {
    margin-bottom: 1.5rem;
  }
}


.cta-card {
  background: var(--primary-blue) !important;
  color: var(--white) !important;
}

.cta-card .testimonial-text h3 {
    position: relative;
    padding-bottom: 1rem;
}

.cta-card .testimonial-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.get-started-btn-container {
    margin-top: 1.5rem;
    text-align: center;
}

@media (max-width: 700px) {
    .get-started-btn-container {
        text-align: left;
    }
}

.testimonial-content.cta-card:not(.container .testimonial-content.cta-card) {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}
@media (max-width: 700px) {
  .testimonial-content.cta-card:not(.container .testimonial-content.cta-card) {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (min-width: 768px) {
  .testimonial-content.cta-card {
    padding-top: 4rem !important;
    padding-bottom: 5rem !important;
  }

  .testimonial-content.cta-card h3 {
    font-size: 2.4rem !important;
  }
}

@media (max-width: 700px) {

    .testimonials-section .container .testimonial-content {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 28px 4vw 24px 4vw;
        border-radius: 14px;
        margin-top: 36px;
    }
}

.testimonials-section .container .testimonial-content {
    max-width: 900px;
    margin: 70px auto 0 auto;
    padding: 56px 36px 48px 36px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(26,58,106,0.10);
    background: #0d3e5f;
    color: #fff;
    text-align: center;
}

.testimonial-content * {
    color: #fff !important;
}


@media (max-width: 1240px) {
    .testimonials, .service-content {
        max-width: 98vw;
        border-radius: 14px;
    }
}


.testimonials-row {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 2.5rem;
}

.testimonial-content {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem 2rem;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.testimonials-row {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 2.5rem;
}

.testimonials .btn, .testimonials .btn.brands-grid img {
    display: block;
    margin: 0 auto;
    max-width: 146px;
    max-height: 87px;
    width: auto;
    height: auto;
    transition: transform 0.2s;
}

.testimonials .btn.btn-sm {
    padding: 0.18rem 0.5rem;
    font-size: 0.89rem;
    min-width: 0;
    max-width: 100px;
    box-sizing: border-box;
}

.testimonials .btn.btn-md {
    padding: 0.25rem 0.7rem;
    font-size: 0.90rem;
    min-width: 0;
    max-width: 110px;
    box-sizing: border-box;
}

.testimonials .btn.btn-lg {
    padding: 0.35rem 0.9rem;
    font-size: 0.95rem;
    min-width: 0;
    max-width: 140px;
    box-sizing: border-box;
}

.testimonials .btn.btn-xl {
    padding: 0.4rem 1.2rem;
    font-size: 0.95rem;
    min-width: 0;
    max-width: 170px;
    box-sizing: border-box;
}

.testimonials .btn.btn-secondary {
    display: block;
    margin: 0 auto 0 auto;
    margin-bottom: 0;
    text-align: center;
    min-width: 220px;
}

@media (max-width: 900px) {
    .testimonials-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .testimonial-content {
        max-width: 98vw;
        width: 100%;
    }
    .testimonials {
        max-width: 98vw;
    }
}

.testimonial-content-row {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(32,97,186,0.06);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-image {
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100px;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2061ba;
    box-shadow: 0 2px 12px rgba(32,97,186,0.07);
    display: block;
}

@media (max-width: 800px) {
    .testimonials {
        max-width: 98vw;
        border-radius: 14px;
    }
    .testimonial-content {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0.5rem;
    }
    .testimonial-image {
        margin-bottom: 1rem;
    }
}



/* .testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-bg.png') repeat;
    opacity: 0.03;
    z-index: 0;
} */

/* Hide promo message in banner */
@media (max-width: 700px) {

  .promo-message {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #0d3e5f !important;
    color: #fff !important;
    padding: 8px 0 6px 0;
    width: 100%;
    font-size: 0.98rem;
    gap: 0;
  }



.brands-section {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    margin-bottom: 1rem;
}

.brands-section .brands-carousel-container {
    margin-bottom: 1rem !important;
    position: relative;
}

/* Modern transparent carousel navigation buttons */
.brands-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #173c67;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brands-carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #c8102e;
}

.brands-carousel-arrow.prev {
    left: -25px;
}

.brands-carousel-arrow.next {
    right: -25px;
}

/* Hide arrows on tablet and desktop, show only on mobile */
@media (min-width: 769px) {
    .brands-carousel-arrow {
        display: none !important;
    }
}

/* Mobile Carousel Functionality - Override grid layout */
@media (max-width: 1199px) {
    .brands-section .brands-carousel-container .brands-grid.brands-carousel-track {
        display: flex !important;
        overflow-x: auto !important;
        scroll-behavior: smooth !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
        padding: 0 15px !important;
        margin: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        grid-template-columns: none !important;
        max-width: none !important;
        justify-items: initial !important;
    }
    
    .brands-section .brands-carousel-container .brands-grid.brands-carousel-track::-webkit-scrollbar {
        display: none !important;
    }
    
    .brands-section .brands-carousel-container .brand-item {
        flex: 0 0 180px !important;
        height: 120px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-right: 0 !important;
        margin: 0 !important;
    }
}

/* Hide arrows only on mobile */
@media (max-width: 768px) {
    .brands-carousel-arrow {
        display: flex !important;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .brands-carousel-arrow.prev {
        left: 5px;
    }
    
    .brands-carousel-arrow.next {
        right: 5px;
    }
}


.brands-section > section,
.brands-section > section:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: var(--spacing-lg);
}


#page-wrapper > .container.brands-section,
body > .container.brands-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


#page-wrapper > .container.brands-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


@media (max-width: 900px) {
  .brands-section {
    margin-top: 0 !important;
  }
}

/* Brand Logos Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 700px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.brand-item img {
    max-width: 100%;
    height: auto;
}

.project-gallery .section-title, .team-section .section-title, .about-section .section-title {
    color: #111;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: block;
    padding-bottom: 0.25em;
    text-align: center;
    transition: color 0.2s;
}

/* REMOVED - section titles now use inline spans only */

.testimonials-section .section-title {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: block;
    padding-bottom: 0.25em;
    transition: color 0.2s;
}
@media (max-width: 768px) {
  /* Section Title Alignment */
  .testimonial-section h2.section-title {
    margin-right: auto;
    text-align: left !important;
  }

  /* REMOVED - section titles now use inline spans only */

  /* Content container alignment */
  .testimonial-compact-content {
    align-items: flex-start !important; /* Align all items to the left */
    text-align: left;
    width: 100%;
  }

  /* Quote and Author alignment */
  .testimonial-compact-quote,
  .testimonial-compact-author {
    text-align: left;
    padding-left: 0; /* Remove extra padding, parent has it */
    width: 100%;
  }

  /* Button alignment */
  .testimonial-compact-btn {
    display: block;
    margin-left: 0; /* Align with left edge of container */
    margin-right: auto;
    max-width: 220px; /* Set a max-width for the button */
    align-self: flex-start; /* Force left alignment in flex container */
  }

  .testimonial-compact-btn-container {
    justify-content: flex-start !important; /* Override desktop centering */
  }
}

/* DESKTOP STYLES: Center Testimonial Content */
@media (min-width: 769px) {
  /* Center the 'What People Say' header text */
  .testimonial-section h2.section-title {
    text-align: center !important;
  }

  /* Center the red underline for the header */
  /* REMOVED - section titles now use inline spans only */

  /* Center the content block (quote, author, button) */
  .testimonial-compact-content {
    align-items: center !important;
  }

  /* Center the quote and author text */
  .testimonial-compact-quote,
  .testimonial-compact-author {
    text-align: center !important;
  }

  /* Center the 'Get Started' button */
  .testimonial-compact-btn {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 12px 24px !important; /* Ensure regular button padding */
    font-size: 1rem !important; /* Ensure regular font size */
    max-width: 220px; /* Maintain max-width */
  }
}




/* Mobile styles for brand logos */
@media (max-width: 700px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem; /* Reduce gap on mobile */
    }
}

.brand-item img {
    max-width: 100%;
    height: auto;
}

.promo-message {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #0d3e5f !important;
    color: #fff !important;
    padding: 8px 0 6px 0;
    width: 100%;
    font-size: 0.98rem;
    gap: 0;
  }
  .promo-message .promo-desktop,
  .promo-message .promo-contact-link {
    display: none !important;
  }
  .promo-message .promo-mobile {
    display: inline !important;
    font-size: 1.08em;
    font-weight: 600;
  }
}

.testimonials .section-subtitle {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 auto 4rem;
    max-width: 700px;
    position: relative;
    z-index: 1;
}



/* === CONSOLIDATED TESTIMONIALS V2 === */
.t2-track {
    display: grid;
    gap: 1.5rem;
    padding: 1rem 1.5rem; /* Add horizontal padding */
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge */
}

.t2-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.t2-card {
    scroll-snap-align: start;
    width: 80%;
    max-width: 400px; /* Prevent cards from becoming too wide */
    background: #fff;
    border: 1px solid var(--border-color, #eee);
    border-radius: var(--border-radius-xl, 16px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 6px 16px rgba(13,62,95,0.08);
}

/* Tablet: 2-column layout */
@media (min-width: 768px) {
    .t2-track {
        grid-auto-flow: initial;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        padding: 1rem 0;
    }
    .t2-card {
        width: auto; /* Reset width for grid layout */
    }
}

/* Desktop: 3-column layout */
@media (min-width: 992px) {
    .t2-track {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Restore navy background for middle card */
    .t2-track > .t2-card:nth-child(2) {
        background-color: #0d3e5f;
        color: #fff;
    }

    .t2-track > .t2-card:nth-child(2) .t2-author,
    .t2-track > .t2-card:nth-child(2) .t2-quote {
        color: #fff;
    }
}

.t2-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.t2-stars {
    color: #f5b301;
    margin-bottom: 1rem;
}

.t2-quote {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--dark-gray, #555);
}

.t2-author {
    font-weight: bold;
    color: var(--primary-blue, #0d3e5f);
}




/* =Brand Logos Section
------------------------------------------------------------------*/
.brand-logos {
    padding: 5rem 0;
    background-color: #f9f9f9;
    text-align: center;
}



.brand-logos .section-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
}



.brand-logos .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}



.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}



.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}



.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(32, 97, 186, 0.15);
}



.logo-item img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}



.logo-caption {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    opacity: 0.9;
}



/* Responsive adjustments */
@media (max-width: 1024px) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }


    
    .logo-item {
        padding: 1.25rem 0.75rem;
    }


    
    .logo-item img {
        height: 50px;
    }


}



@media (max-width: 768px) {
    .brand-logos {
        padding: 3.5rem 0;
    }


    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 1.5rem;
    }


    
    .logo-item {
        padding: 1rem 0.5rem;
    }


    
    .logo-item img {
        height: 45px;
    }


    
    .logo-caption {
        font-size: 0.85rem;
    }


}



@media (max-width: 480px) {
  .testimonial-compact {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
  }

  .testimonial-avatar-img {
    margin-left: 0;
    margin-right: 0;
  }

  .testimonial-section .section-title {
    text-align: left;
    padding-left: 1rem; /* Align with button */
  }


    .logo-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        gap: 1rem;
    }


    
    .logo-item {
        padding: 1.25rem 1rem;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }


    
    .logo-item img {
        height: 40px;
        margin-right: 1rem;
        margin-bottom: 0;
    }


    
    .logo-caption {
        font-size: 0.9rem;
    }


}



/* =Header & Navigation
------------------------------------------------------------------*/
/* Add padding to body to account for fixed header */
body {
    padding-top: 140px;
}

/* Ensure main content is not hidden by fixed header/banner */
.main-page .section-header,
.service-content,
.showroom-page .section-header,
.about-page .section-header {
    padding-top: 40px;
    margin-top: 0;
}


/* Header Container */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Top Banner */
.top-banner {
    background-color: #0d3e5f;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
    width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Ensure site header stays below banner */
.site-header {
    position: relative;
    z-index: 1000;
    background: #fff;
}

.top-banner {
    position: relative;
    width: 100%;
}
.promo-message {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d3e5f;
    color: #fff;
    font-weight: 500;
    font-size: 0.98rem;
    padding: 8px 0 6px 0;
    border: none;
    position: relative;
    min-height: 42px;
}
.promo-message .promo-left {
    display: flex;
    align-items: center;
    gap: 0.7em;
    position: absolute;
    right: 24px;
    left: auto;
    top: 0;
    bottom: 0;
    height: 100%;
    justify-content: flex-end;
    text-align: right;
}
@media (max-width: 1024px) {
  .promo-message {
    justify-content: space-between;
    padding-left: 18px;
    padding-right: 18px;
  }
  .promo-message .promo-left {
    position: static;
    right: auto;
    left: auto;
    top: auto;
    bottom: auto;
    height: auto;
    justify-content: flex-end;
    text-align: right;
  }
  .promo-message .promo-center {
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: auto;
  }
}
.promo-message .promo-center {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.promo-message .promo-desktop {
    display: inline;
    font-size: 1.08em;
    font-weight: 600;
}
.promo-message .promo-mobile {
    display: none;
}
@media (max-width: 700px) {

  .promo-message {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #0d3e5f !important;
    color: #fff !important;
    padding: 8px 0 6px 0;
    width: 100%;
    font-size: 0.98rem;
    gap: 0;
    position: relative;
    min-height: 38px;
  }
  .promo-message .promo-left,
  .promo-message .promo-center {
    display: none !important;
  }
  .promo-message .promo-mobile {
    display: inline !important;
    font-size: 1.08em;
    font-weight: 600;
  }
}

.top-banner-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    width: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-align-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-banner-left {
    flex: 1 1 0;
}

.promo-message {
    flex: 2 1 0;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.promo-message span {
    padding: 4px 12px;
    border-radius: 4px;
    background: transparent;
    display: inline-block;
}

.top-banner-right {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@media (max-width: 700px) {

    .top-banner-flex {
        flex-direction: column;
        gap: 4px;
        padding: 6px 8px;
    }

    .promo-message {
        order: 1;
        flex: none;
        width: 100%;
        margin: 0 0 4px 0;
    }

    .top-banner-right {
        order: 2;
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .top-banner-left {
        display: none;
    }
}

.top-contact {
    color: white !important;
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
}

.top-contact:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.top-contact i {
    margin-right: 5px;
}

.top-divider {
    margin: 0 15px;
    opacity: 0.6;
    color: rgba(255,255,255,0.6);
}

.top-banner-right {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #666;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-blue);
}

/* Header Container */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
    transform: translateY(0) !important; /* Always show the header */
}

/* Hide promo message on mobile */
@media (max-width: 700px) {

    .promo-message { 
        display: none !important; 
    }
}


.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px;
    box-sizing: border-box;
}

.logo-img {
    max-width: 200px;
    height: 55px;
    object-fit: contain;
}



.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0 1rem;
    padding: 0;
    align-items: center;
    gap: 0.35rem;
}

.main-nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.8rem 2.2rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: 'Poppins', sans-serif;
    position: relative;


.main-nav a, .main-nav ul, .main-nav li {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    letter-spacing: 0.03em !important;
}

/* =Desktop Navigation Styles
-------------------------------------------------------------------*/

/* Desktop Navigation Container */
.desktop-nav {
    display: none; /* Hidden by default, shown on desktop */
}

@media (min-width: 993px) {
    .desktop-nav {
        display: block;
    }
    
    /* Hide mobile menu toggle on desktop */
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Navigation Menu */
    .desktop-nav .nav-menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Navigation Items */
    .desktop-nav .nav-item {
        position: relative;
    }
    
    /* Navigation Links */
    .desktop-nav .nav-link {
        color: var(--dark);
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        padding: 1rem 1.5rem;
        border-radius: 4px;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        font-family: 'Poppins', sans-serif;
        display: block;
        white-space: nowrap;
    }
    
    /* Navigation Link Hover */
    .desktop-nav .nav-link:hover {
        color: var(--primary-blue);
        background-color: rgba(13, 62, 95, 0.05);
    }
    
    /* Dropdown Menu Styles */
    .desktop-nav .has-dropdown {
        position: relative;
    }
    
    /* Dropdown Menu Container */
    .desktop-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.1);
        min-width: 280px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        list-style: none;
        margin: 0;
        padding: 0.5rem 0;
    }
    
    /* Show dropdown on hover */
    .desktop-nav .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Dropdown Items */
    .desktop-nav .dropdown-item {
        color: var(--dark);
        text-decoration: none;
        font-weight: 400;
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
        display: block;
        transition: all 0.2s ease;
        text-transform: none;
        letter-spacing: normal;
        border-left: 3px solid transparent;
    }
    
    /* Dropdown Item Hover */
    .desktop-nav .dropdown-item:hover {
        background-color: rgba(13, 62, 95, 0.05);
        border-left-color: var(--primary-blue);
        color: var(--primary-blue);
        transform: translateX(3px);
    }
    
    /* CTA Buttons */
    .desktop-nav .nav-cta .btn {
        margin-left: 0.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
    
    /* Primary CTA Button */
    .desktop-nav .btn-primary {
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
        color: white;
        border: none;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .desktop-nav .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(13, 62, 95, 0.3);
    }
    
    /* Secondary CTA Button */
    .desktop-nav .btn-secondary {
        background: transparent;
        color: var(--primary-red);
        border: 2px solid var(--primary-red);
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .desktop-nav .btn-secondary:hover {
        background: var(--primary-red);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
    }
    
    /* Installation Link Special Styling */
    .desktop-nav .has-dropdown > .nav-link::after {
        content: '▼';
        font-size: 0.7rem;
        margin-left: 0.5rem;
        transition: transform 0.2s ease;
    }
    
    .desktop-nav .has-dropdown:hover > .nav-link::after {
        transform: rotate(180deg);
    }
}

.nav-link, .installation-link {
    font-weight: 500 !important;
    text-transform: uppercase !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    letter-spacing: 0.03em !important;
}

.main-nav a:not(.btn):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 1rem;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn):hover:after {
    width: calc(100% - 2rem);
}

/* Navigation Menu */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 1.5rem;
}

.main-nav li {
    position: relative;
    margin: 0 0.75rem;
    white-space: nowrap;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.has-dropdown > a::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.has-dropdown.open > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    margin-top: 10px;
    padding: 10px 0;
    list-style: none;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-blue);
    padding-left: 25px;
}

/* Mobile dropdown styles */
@media (max-width: 991px) {
    .has-dropdown > a::after {
        margin-left: auto;
        padding-left: 10px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 500px;
        padding: 10px 0 10px 20px;
    }

    .dropdown-item {
        padding: 8px 15px;
    }

    .dropdown-item:hover {
        padding-left: 20px;
    }
}

.dropdown-item:focus {
    color: var(--primary-blue);
    background-color: rgba(13, 62, 95, 0.03);
    border-left-color: var(--primary-blue);
    padding-left: 25px;
}

.main-nav > ul > li > a {
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.03em;
    padding: 0.8rem 1.6rem;
    display: block;
    transition: background 0.2s, color 0.2s;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}



.main-nav > ul > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 3px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}



.main-nav > ul > li > a:hover,
.main-nav > ul > li > a:focus,
.main-nav > ul > li.current-menu-item > a {
    color: var(--secondary-color);
    text-decoration: none;
}



.main-nav > ul > li > a:hover::before,
.main-nav > ul > li > a:focus::before,
.main-nav > ul > li.current-menu-item > a::before {
    transform: scaleX(1);
}



/* Mobile Menu Toggle */

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}



/* Outline Button */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
}



.btn-outline:hover {
    background-color: var(--primary-color);
    color: white !important;
}



/* Button Sizes */
.btn-sm {
    padding: 6px 16px;
    font-size: 14px;
}



.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}



.mobile-menu-toggle:hover {
    background-color: var(--primary-color);
    color: white;
}



/* Responsive Navigation */
@media (max-width: 992px) {
    /* --- MOBILE ONLY: Installation menu item and subcategories --- */
    /* Force Installation submenu always visible and aligned on mobile */
    .main-nav .has-dropdown.open .dropdown-menu {
        max-height: 1000px !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        padding: 10px 0 10px 20px !important;
        box-shadow: none !important;
        background: #fff !important;
        left: 0 !important;
        position: static !important;
        margin: 0 !important;
    }

    .main-nav .installation-link {
        text-transform: none !important;
        font-weight: 400 !important;
        letter-spacing: normal !important;
        font-size: 1rem !important;
        color: #191919 !important;
        background: none !important;
        border: none !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
        padding: 12px 0 8px 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .main-nav > ul > li > a,
    .main-nav > ul > li > .installation-link {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-weight: 500 !important;
        width: 100% !important;
        display: block !important;
    }
    .main-nav > ul > li {
        text-align: center !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .main-nav > ul > li > a {
        display: block !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    .main-nav .has-dropdown .dropdown-menu .dropdown-item {
        text-align: center !important;
        padding-left: 0 !important;
        font-weight: 400 !important;
    }
    .main-nav .nav-cta {
        /* Remove left alignment so buttons stay centered */
        padding-left: 18px !important;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }
    .main-nav .nav-cta .btn {
        width: 92% !important;
        max-width: 260px !important;
        display: block !important;
        text-align: center !important;
        margin: 0 auto 12px auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .main-nav > ul > li.has-dropdown {
        text-align: left !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .main-nav .has-dropdown .dropdown-menu {
        display: block !important;
        position: static !important;
        box-shadow: none !important;
        padding-left: 24px !important;
        border-left: 2px solid #e5e5e5 !important;
        background: none !important;
        margin: 0 0 12px 0 !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
    }
    .main-nav .has-dropdown .dropdown-menu .dropdown-item {
        display: block !important;
        padding: 10px 0 10px 10px !important;
        color: #333 !important;
        font-size: 1rem !important;
        font-weight: 400 !important;
        text-transform: none !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        transition: background 0.2s !important;
    }
    .main-nav .has-dropdown .dropdown-menu .dropdown-item:hover {
        background: #f6f6f6 !important;
        color: #191919 !important;
    }


    
    .main-nav > ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md) 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    /* FIX: Show nav menu when open on mobile */
    .main-nav.open > ul,
    .main-nav.active > ul {
        display: flex !important;
        flex-direction: column;
    }


    
    .main-nav.active > ul {
        display: flex;
    }


    
    .mobile-menu-toggle {
        display: flex;
    }


    
    .main-nav > ul > li {
        width: 100%;
        text-align: center;
    }


    
    .main-nav > ul > li > a {
        padding: 1rem 2.2rem;
        display: block;
    }


    
    .main-nav > ul > li > a::before {
        display: none;
    }


    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }


    
    .top-bar .divider {
        display: none;
    }


    
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
    }


}



/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    padding: 0;
}

@media (max-width: 992px) {
  .site-header .container {
    position: relative;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 1100;
  }
  .logo {
    margin-right: auto;
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    max-width: 90vw;
    background: #0D2236;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 2px 0 16px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    padding-top: 60px;
  }
  .main-nav.open, .main-nav[aria-expanded="true"] {
    transform: translateX(0);
  }
}




.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}



.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}



.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}



.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}



.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background-color: var(--light-gray);
    outline: none;
}



.mobile-menu-toggle i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}



.mobile-menu-toggle[aria-expanded="true"] i.fa-bars {
    display: none;
}



.mobile-menu-toggle[aria-expanded="false"] i.fa-times {
    display: none;
}



/* Mobile Navigation */
@media (max-width: 991px) {
    .main-nav {
    /* Remove position: fixed, height, and full-screen background */
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    background: transparent; /* or inherit */
    padding: 0;
    box-shadow: none;
    transform: none;
    z-index: 1002;
    overflow: visible;
}

    .main-nav > ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust to match your header height */
        left: 0;
        width: 100vw;
        padding: 0;
        margin: 0;
        background: #fff;
        align-items: stretch;
        z-index: 1003;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .main-nav.active > ul {
        display: flex;
    }
    .main-nav.active {
        transform: translateY(0);
    }

@media (max-width: 700px) {

  .promo-message {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #0d3e5f !important;
    color: #fff !important;
    padding: 8px 0 6px 0;
    width: 100%;
    font-size: 0.98rem;
    gap: 0;
  }
  .promo-message .promo-desktop,
  .promo-message .promo-contact-link {
    display: none !important;
  }
  .promo-message .promo-mobile {
    display: inline !important;
    font-size: 1.08em;
    font-weight: 600;
  }
}


    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }



    .main-nav a {
        padding: 1.2rem 2.5rem;
        border-bottom: 1px solid var(--light-gray);
    }



    .main-nav a::before {
        display: none;
    }



    .mobile-menu-toggle {
        display: flex;
    }



    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #212529;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .mobile-menu-close {
        display: none;
        position: absolute;
        top: 18px;
        right: 24px;
        z-index: 2002;
        background: none;
        border: none;
        font-size: 2.1rem;
        color: #fff;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: background 0.2s;
    }
    .mobile-overlay.active .mobile-menu-close {
        display: block;
        background: rgba(13,62,95,0.92);
    }
    .mobile-menu-close:active, .mobile-menu-close:focus {
        background: #1a5a8a;
        outline: none;
    }
    .mobile-menu-close i {
        pointer-events: none;
    }


}



/* Sticky Header Behavior */
body.header-sticky .main-header {
    transform: translateY(0) !important;
}



/* Header CTA Button */
.header-cta {
    margin-left: var(--spacing-md);
}



@media (max-width: 768px) {
    .header-cta {
        display: none;
    }


}



/* Hero Section */
.hero {
    position: relative;
    background-color: var(--light);
    padding: 0;
    margin: 0;
    height: 36vh; /* Further reduced from 48vh */
    min-height: 280px; /* Further reduced from 340px */
    max-height: 400px; /* Further reduced from 510px */
    overflow: hidden;
    margin-top: 0; /* Removed margin as we have a fixed header */
    display: flex;
    align-items: center; /* Center content vertically */
}



.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 80vh; /* Reduced from 100vh for better mobile experience */
}

@media (max-width: 992px) {
    .hero-slider {
        min-height: 40vh; /* Further reduced for mobile */
    }
}



.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 80vh; /* Reduced from 100vh */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-attachment: fixed;
}

@media (max-width: 992px) {
    .hero-slide {
        min-height: 40vh; /* Further reduced for mobile */
    }
}



.hero-slide.active {
    opacity: 1;
    z-index: 1;
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 40px;
    color: var(--white);
    text-align: center;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
}



.hero-content h1 {
    font-weight: 700;
    margin: 0 0 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    font-size: 3.25rem;
    color: #fff;
    padding: 0 1rem;
}



.hero-content p {
    font-size: 1.25rem;
    margin: 0 0 2rem;
    max-width: 700px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-weight: 300;
    padding: 0 1rem;
    line-height: 1.6;
}



.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem auto 0;
    max-width: 90%;
}



.hero-buttons .btn {
    min-width: 180px;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}



.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border: none;
    color: var(--dark-color);
}



.hero-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(5px);
}



.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}



.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}



.hero-scroll:hover {
    opacity: 1;
    color: var(--secondary-color);
}



.hero-scroll i {
    display: block;
    font-size: 1.5rem;
    margin-top: 8px;
    animation: bounce 2s infinite;
}



@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Main Page Hero Adjustments for Mobile */
@media (max-width: 992px) {
    /* Homepage Hero */
    .index .hero {
        padding-top: 80px; /* Space for fixed header */
        min-height: calc(100vh - 80px); /* Adjust height to account for header */
    }
    
    .index .hero-content {
        padding-top: 20px;
    }
    
    .header-container, nav, header {
      border-top: none !important;
      background-image: none !important;
    }

    .about .page-hero {
        padding-top: 80px;
        min-height: 50vh;
        display: flex;
        align-items: center;
    }
    
    /* Blog Page Hero */
    .blog .page-hero {
        padding-top: 80px;
        min-height: 40vh;
        display: flex;
        align-items: center;
    }
    
    /* Showroom Page Hero */
    .showroom .page-hero {
        padding-top: 80px;
        min-height: 50vh;
        display: flex;
        align-items: center;
    }
    
    /* Installation Page Hero */
    .installation .page-hero {
        padding-top: 80px;
        min-height: 50vh;
        display: flex;
        align-items: center;
    }
}

/* Main Page Hero Adjustments for Mobile */
@media (max-width: 992px) {
    /* Homepage Hero */
    .index .hero {
        padding-top: 80px; /* Space for fixed header */
        min-height: calc(100vh - 80px); /* Adjust height to account for header */
    }
    
    .index .hero-content {
        padding-top: 20px;
    }
    
    .header-container, nav, header {
      border-top: none !important;
      background-image: none !important;
    }

    .about .page-hero {
        padding-top: 80px;
        min-height: 50vh;
        display: flex;
        align-items: center;
    }
    
    /* Blog Page Hero */
    .blog .page-hero {
        padding-top: 80px;
        min-height: 40vh;
        display: flex;
        align-items: center;
    }
    
    /* Showroom Page Hero */
    .showroom .page-hero {
        padding-top: 80px;
        min-height: 50vh;
        display: flex;
        align-items: center;
    }
    
    /* Installation Page Hero */
    .installation .page-hero {
        padding-top: 80px;
        min-height: 50vh;
        display: flex;
        align-items: center;
    }
}

/* Responsive Hero */
@media (max-width: 1200px) {
    .hero-content {
        margin-left: 10%;
        padding-right: 5%;
    }


}



@media (max-width: 992px) {
    .hero {
        height: 40vh; /* Reduced by 50% from original */
        min-height: 250px; /* Reduced by 50% from original */
    }


    
    .hero-content {
        margin: 0 auto;
        padding: 0 var(--spacing-lg);
        text-align: center;
        max-width: 90%;
    }


    
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1.25rem;
    }


    
    .hero-content p {
        font-size: 1.2rem;
        margin: 0 auto 2rem;
        align-content: center;
    }


    
    .hero-buttons {
        justify-content: center;
    }


}



@media (max-width: 768px) {
    .hero {
        padding: 100px var(--spacing-sm) 80px; /* Reduced top padding to account for fixed header */
        margin-top: 0; /* Reset margin-top as we're using padding for spacing */
    }
    
    .hero-content {
        padding-top: 20px; /* Add some space below the navigation */
    }


    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: var(--spacing-sm);
    }


    
    .hero p {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }


    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }


    
    .hero-buttons .btn {
        width: 100%;
    }


}



/* Services Section */
.services {
  background: #fff !important;
    padding: 0 0 1rem;
    background-color: var(--light-color);
}



.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 0;
}



.services h2 {
    text-align: center;
    font-size: 2.0rem;
    margin-bottom: 50px;
    position: relative;
}



.services .section-title {
    margin-bottom: var(--spacing-xxl);
}



.services .section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xxl);
    color: var(--medium-gray);
    font-size: 1.1rem;
    line-height: 1.7;
}



.services-grid {
    display: flex;
    gap: 30px;
    align-items: stretch; /* Ensures cards have the same height */
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}



@media (max-width: 1199px) {
    .services-grid {
        flex-wrap: wrap;
    }


}



@media (max-width: 767px) {
    .services-grid {
        flex-direction: column;
        max-width: 500px;
        margin: 0 auto;
    }


}



.service-card {
    background: #fff !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 62, 95, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(13, 62, 95, 0.05);
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1; /* Allows cards to grow and fill the space */
}



.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d3e5f, #c8102e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}



.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 62, 95, 0.15);
    border-color: rgba(13, 62, 95, 0.15);
}



.service-card:hover::before {
    transform: scaleX(1);
}



/* Service card images */
.service-card-img,
.service-card img,
.service-card .service-card-img,
.service-card .service-card-img img,
.service-card > img:first-child,
.service-card > div:first-child,
.service-card > div:first-child > img,
.no-bg {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    backface-visibility: hidden;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
}

/* Ensure image container has no background */

/* Utility: Float image for text wrapping */
.float-image {
  float: right;
  margin: 0 0 1em 1em;
  max-width: 40%;
  height: auto;
}
.float-image-left {
  float: left;
  margin: 0 1em 1em 0;
  max-width: 40%;
  height: auto;
}
.float-image-right {
  float: right;
  margin: 0 0 1em 1em;
  max-width: 40%;
  height: auto;
}

.service-card > div:first-child,
.service-card > .service-card-img {
    background: none !important;
    background-color: transparent !important;
}



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


body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}


#footer-placeholder, .main-footer {
    margin-bottom: 0 !important;
}

.main-footer {
    flex-shrink: 0;
}

section.brands-section,
section.final-cta {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove extra space below footer */
body > :last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ... */

.service-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: white;
}

/* ... */
.service-card h3 {
    margin-top: 0;
    color: #0d3e5f;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
    transition: color 0.3s ease;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
}



.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #c8102e;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}



.service-card:hover h3::after {
    width: 80px;
}



.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex: 1;
}



.service-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.checkmark-list li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.08em !important;
    font-size: 1.1rem;
    color: #222;
    line-height: 1.1 !important;
}

.residential-tile-services .checkmark-list {
    margin-left: 0 !important;
    margin-top: 0 !important;
    clear: none !important;
}

.residential-tile-services .checkmark-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
}

.checkmark-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c8102e !important;
    font-weight: bold;
    font-size: 1.2rem;
}



.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c8102e;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}



.service-card:hover .service-features li::before {
    transform: scale(1.2);
}



.service-card .btn {
    align-self: flex-start;
    margin-top: auto;
    transition: all 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding-bottom: 22px !important;
}



.service-card .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d3e5f, #1a6ea8);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}



.service-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 62, 95, 0.2);
}



.service-card .btn:hover::after {
    opacity: 1;
}



.service-card .btn:active {
    transform: translateY(1px);
}



.service-card:hover h3::after {
    width: 100%;
}



.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex: 1;
}



.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
}



.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c8102e;
    font-weight: bold;
}



.service-card-footer {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}



.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
}



.service-price small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--medium-gray);
    margin-top: 2px;
}



.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}



.service-link:hover {
    color: var(--secondary-dark);
    text-decoration: none;
}



.service-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    font-size: 0.9em;
}



.service-link:hover i {
    transform: translateX(5px);
}



/* Service Icons */
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
    font-size: 1.75rem;
    box-shadow: 0 10px 20px rgba(26, 58, 106, 0.2);
}



/* Service Categories */
.service-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: var(--spacing-xl);
}



.category-btn {
    padding: 0.5rem 1.25rem;
    background: var(--light-color);
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    color: var(--dark-gray);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}



.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}



.category-btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}



.category-btn-primary:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}



/* Responsive Services */
@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }


}



@media (max-width: 991px) {
    .services {
  background: #fff !important;
        padding: 0 0 1.5rem 0;
    }


    
    .services .section-title {
        margin-bottom: var(--spacing-lg);
    }


    
    .services .section-subtitle {
        margin-bottom: var(--spacing-xl);
    }


    
    .service-card {
        max-width: 450px;
        margin: 0 auto;
    }


}



@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }


    
    .service-card {
        max-width: 100%;
    }


    
    .service-card-image {
        height: 200px;
    }


    
    .service-card-content {
        padding: var(--spacing-md);
    }


    
    .service-card h3 {
        font-size: 1.4rem;
    }


    
    .service-features li {
        font-size: 0.9rem;
    }


    
    .category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }


}



/* Contact Section */

/* Contact Card Overlay Style */
.contact-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 62, 95, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(13, 62, 95, 0.1);
    transform: translateY(0);
    will-change: transform, box-shadow;
    max-width: 450px;
    margin: 0 auto;
    padding: 25px;
}
@media (max-width: 700px) {

    .contact-card {
        max-width: 100%;
        padding: 16px 4px;
        border-radius: 10px;
    }
}

@media (max-width: 700px) {

    .contact-card {
        padding: 24px 8px;
        border-radius: 10px;
    }
}

.contact-section {
    padding: 80px 0;
    /* background-color removed to prevent double background */
}

.contact h2 {
    text-align: center;
    font-size: 2.0rem;
    margin-top: 16px;
    margin-bottom: 20px;
    position: relative;
}
@media (max-width: 700px) {

  .contact h2 {
    margin-top: 8px;
    margin-bottom: 12px;
  }
}
}



/* .contact h2:after removed to eliminate top red underline */

/* Hide promo message in banner */
@media (max-width: 700px) {

  .promo-message {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #0d3e5f !important;
    color: #fff !important;
    padding: 8px 0 6px 0;
    width: 100%;
    font-size: 0.98rem;
  }
  .promo-message .promo-desktop,
  .promo-message .promo-contact-link {
    display: none !important;
  }
  .promo-message .promo-mobile {
    display: inline !important;
    font-size: 1.08em;
    font-weight: 600;
  }
}

/* Hide promo message in banner */
@media (max-width: 700px) {
  .promo-message {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #0d3e5f !important;
    color: #fff !important;
    padding: 8px 0 6px 0;
    width: 100%;
    font-size: 0.98rem;
  }
  .promo-message .promo-desktop,
  .promo-message .promo-contact-link {
    display: none !important;
  }
  .promo-message .promo-mobile {
    display: inline !important;
    font-size: 1.08em;
    font-weight: 600;
  }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.contact-info, .contact-form {
    max-width: 100%;
    box-sizing: border-box;
    background: transparent !important;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info h3, .contact-form h3 {
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.contact-info h3::after, .contact-form h3::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #c8102e;
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-info h3:hover::after, .contact-form h3:hover::after {
    width: 80px;
}




.contact-info h3, .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}



.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}



.contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}



.contact-info h4 {
    margin-top: 30px;
    font-size: 1.2rem;
    color: var(--primary-color);
}



/* Form Styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}



.form-group {
    margin-bottom: 20px;
    padding: 0 10px;
    flex: 1 1 100%;
}



.form-row .form-group {
    flex: 1 1 calc(50% - 20px);
    min-width: 200px;
}



.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}



.form-group .required {
    color: #e74c3c;
}



.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
}



.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}



.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}



.form-group textarea {
    min-height: 120px;
    resize: vertical;
}



/* Radio and Checkbox Styles */
.radio-group,
.checkbox-option {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}



.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
    position: relative;
    padding-left: 28px;
    user-select: none;
}



.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}



.radio-custom {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: var(--transition);
}



.radio-option:hover .radio-custom {
    border-color: var(--accent-color);
}



.radio-option input:checked ~ .radio-custom {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: inset 0 0 0 4px #fff;
}



.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
    user-select: none;
}



.checkbox-custom {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 3px;
    transition: var(--transition);
}



.checkbox-option:hover .checkbox-custom {
    border-color: var(--accent-color);
}



.checkbox-option input:checked ~ .checkbox-custom {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}



/* Form Actions */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}



.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}



.btn {
    position: relative;
    overflow: hidden;
}



.btn .btn-text,
.btn .btn-loading {
    transition: opacity 0.3s ease, transform 0.3s ease;
}



.btn .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}



.btn.is-loading .btn-text {
    opacity: 0;
    transform: scale(0.9);
}



.btn.is-loading .btn-loading {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}



.btn-secondary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 1px solid var(--primary-blue);
}



.featured-project.card-style .btn-secondary,
.featured-project.card-style .featured-project-text .btn-secondary,
.complete-installation-service .btn-secondary,
.complete-installation-service .featured-project-text .btn-secondary,
.cta-card .btn-secondary {
  background-color: var(--primary-blue) !important;
  color: var(--white) !important;
  border-color: var(--primary-blue) !important;
}

.featured-project.card-style .btn-secondary:hover,
.featured-project.card-style .featured-project-text .btn-secondary:hover,
.complete-installation-service .btn-secondary:hover,
.complete-installation-service .featured-project-text .btn-secondary:hover,
.btn-secondary:hover,
.cta-box .btn-secondary:hover,
.cta-card .btn-secondary:hover {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
    color: var(--white) !important;
    border-color: var(--primary-blue) !important;
    box-shadow: none !important;
}



/* Form Status */
.form-status {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}



.form-status.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid #2ecc71;
    display: block;
}



.form-status.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    display: block;
}



/* Error States */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e74c3c;
}



.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}



.form-group.has-error .error-message {
    opacity: 1;
}



/* Footer */
.home-footer-image-row + #footer-placeholder .main-footer {
    padding-top: 0 !important;
}

.main-footer {
    background-color: #0d3e5f; /* Matching button color */
    color: #fff;
    padding: 50px 0 0;
    font-family: 'Poppins', sans-serif;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 50%;
    transform: translateX(-50%);
    left: 0;
    right: 0;
    position: relative;
    box-sizing: border-box;
}
.testimonial-section {
    line-height: 1.6;
    position: relative;
    margin-top: 40px;
}



/* Brands Section */

@media (min-width: 769px) {
    .brands-section .section-header {
        text-align: center;
    }

    /* Brands section uses standard section-title styling */

    /* Brands section uses standard red line system */

    .brands-section .section-subtitle {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Brands section uses standard section padding */

/* Brands section uses standard section-title styling and red line system */


@media (max-width: 700px) {
    .brands-section {
        margin-bottom: 2rem;
        padding-left: 20px;
        padding-right: 20px;
        /* Remove card styling on mobile */
        border: none !important;
        border-radius: 0 !important;
        padding-top: 0 !important;
    }

    .brands-section .section-subtitle {
        text-align: left;
    }
}

/* Brand Logos Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

/* Mobile styles for brand logos */
@media (max-width: 700px) {
    .brands-grid {
        /* Reduce columns to prevent overflow */
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem; /* Reduce gap on mobile */
    }
}


.brand-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.06);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    min-width: 150px;
    min-height: 150px;
    margin: 0 12px 24px 12px;
    transition: box-shadow 0.2s;
}



.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: none;
}



.brand-item img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}



.brand-item:hover img {
    filter: none;
}



/* Footer Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 32px;
}



.footer-widget {
    padding: 0 15px;
    box-sizing: border-box;
}

/* Remove padding for Contact Us column to align .footer-contact */
.footer-widgets > .footer-widget:nth-child(3) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    /* Ensure no margin interferes */
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.footer-widgets > .footer-widget:nth-child(3) .footer-contact {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.footer-contact-debug {
    border: 2px solid #2196f3 !important; /* DEBUG: blue border */
    padding: 0 15px;
    box-sizing: border-box;
}



@media (max-width: 1200px) {
    .footer-widgets {
        max-width: 100%;
        padding: 0 30px;
    }


}



@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
        padding: 0 20px;
    }





@media (max-width: 768px) {
    .footer-widgets {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 0 15px;
    }


    
    /* First two widgets in first row */
    .footer-widget:first-child,
    .footer-widget:nth-child(2) {
        grid-row: 1;
        padding: 0 10px;
        margin-bottom: 20px;
    }


    
    /* Third and fourth widgets in second row */
    .footer-widget:nth-child(3),
    .footer-widget:last-child {
        grid-column: 1 / -1;
        width: 100%;
        padding: 0 10px;
    }


    
    /* Adjust widget title spacing */
    .footer-widget .widget-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }


}

}

.widget-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}



.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #fff;
}



.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}



.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}



.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}



.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}



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



.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    position: relative;
    font-size: 0.95rem;
}



.footer-menu a:hover {
    color: #fff;
    padding-left: 12px;
    font-weight: 500;
}



.footer-menu a::before {
    content: '→';
    color: #fff;
    margin-right: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    position: absolute;
    left: -12px;
}



.footer-menu a:hover::before {
    opacity: 1;
    left: 0;
}



.social-links {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
}



.social-links {
    margin-top: 20px;
}



.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
}



.social-links a:hover {
    background: #fff;
    color: #2061ba;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



.footer-newsletter {
    margin-top: 25px;
}



.footer-newsletter h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}



.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 100%;
}



.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}



.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}



.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}



.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(32, 97, 186, 0.2);
}


.btn-newsletter {
    background: #fff;
    color: #2061ba;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}



.btn-newsletter:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}



.footer-bottom {
    background: #0d3e5f;
    padding: 20px 0;
    color: #fff;
    font-size: 0.85rem;
    margin-top: 30px;
}



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



.footer-legal {
    display: flex;
    gap: 15px;
}



.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}



.footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}



/* Responsive Footer */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
    }


}



@media (max-width: 992px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        margin: 0 auto !important;
        justify-items: center;
    }


    
    .brands-section {
  background: #fff !important;
        padding: 50px 0;
    }

    .contact-section {
    padding: 80px 0;
    /* background-color removed to prevent double background */
}

    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    
    .footer-legal {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }


}



@media (max-width: 768px) {
    .brands-section .container,
    .services-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .brands-section {
        padding-left: 15px !important;
        padding-right: 25px !important;
    }

    .brands-section .section-subtitle {
        padding-left: 0 !important;
        padding-right: 1.5rem !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    .featured-project .featured-project-text h3,
    .featured-project .featured-project-text p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Legacy featured-project red line rule removed - using pages-clean.css universal system */
    
    body.index #services .section-header {
        padding-left: 30px !important;
        padding-right: 15px !important;
    }
    
    .featured-project .section-title {
        margin-bottom: 6px !important;
        position: relative;
        text-align: center !important;
    }
    
    /* Brands section uses standard section-title styling */
    /* Brands section uses standard red line system */
    
    @media (max-width: 700px) {
        .testimonials {
            margin-top: 0 !important;
            margin-bottom: 0 !important;
            padding-top: 8px !important;
            padding-bottom: 8px !important;
        }
        .brands-section {
            margin-top: 14px !important;
        }
        .featured-project {
            margin-bottom: 10px !important;
        }
    }
    .testimonials {
        margin-top: 40px !important;
    }
    
    .brands-section {
        margin-top: 30px !important;
    }
    
    .featured-project {
        margin-top: 40px !important;
    }
    
    body.index .services-grid {
        gap: 5px !important;
    }
    
    body.index .services-grid .service-card {
        margin: 0 !important;
    }

    .brands-section .brands-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding: 0 15px !important;
        margin: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .brands-section .brands-grid::-webkit-scrollbar {
        display: none !important;
    }


    
    .brand-item {
        height: 80px;
        padding: 8px;
        flex: 0 0 120px !important;
        min-width: 120px !important;
    }


    
    /* Brands section uses standard section-title font size and margins */


    
    .brands-section .section-subtitle {
        /* Uses standard section-subtitle font-size: 0.9rem */
        padding: 0 15px;
    }


}



@media (max-width: 576px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }


    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }


    
    .brand-item {
        height: 70px;
        padding: 12px;
    }


    
    .brands-section {
  background: #fff !important;
        padding: 40px 0;
        margin: 40px 0;
    }


    
    /* Brands section uses standard section-title font size and margins */


    
    .brand-item img {
        max-height: 35px;
    }


    
    .footer-legal {
        flex-direction: column;
        gap: 5px;
    }


    
    .footer-legal a {
        display: block;
        padding: 3px 0;
    }

.contact-section {
    padding: 80px 0;
    /* background-color removed to prevent double background */
}



/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }


    
    .logo {
        margin-bottom: 20px;
    }


    
    


    
    .main-nav li {
        margin: 10px 0;
    }


    
    .hero {
        padding: 80px 20px;
    }


    
    .hero h2 {
        font-size: 2rem;
    }


    
    .service-grid, .contact-grid {
        grid-template-columns: 1fr;
    }


    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }


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


}



/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

}



.fade-in:not(.no-animation) {
    animation: fadeIn 0.6s ease-out forwards;
}

.no-animation {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}



/* Footer Contact Left Align Fix */
.footer-contact {
    text-align: left !important;
    align-items: flex-start !important;
}
.footer-contact p {
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Footer Bottom Left Align Fix */
.footer-bottom {
    text-align: left !important;
    padding-left: 30px !important;
    margin-left: 0 !important;
    max-width: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}
@media (max-width: 700px) {

  .footer-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  /* Remove width: 100% so widgets share row */
  .footer-widget {
    width: auto;
  }
  /* Place Contact Us and Newsletter side by side in second row */
  .footer-widget:nth-child(3) {
    order: 2;
    grid-column: 1;
    grid-row: 2;
  }
  .footer-widget:nth-child(4) {
    order: 3;
    grid-column: 2;
    grid-row: 2;
  }
  .footer-widget:nth-child(2) {
    order: 1;
    grid-column: 2;
    grid-row: 1;
  }
  .footer-widget:nth-child(1) {
    order: 0;
    grid-column: 1;
    grid-row: 1;
  }
  .footer-bottom {
    padding-left: 15px !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-bottom .footer-legal {
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    margin-top: 0.5em;
    font-size: 1.1em;
  }
  .footer-bottom .footer-legal a {
    display: inline;
    margin-bottom: 0;
    font-size: inherit;
  }
}
.footer-bottom .footer-copyright,
.footer-bottom .footer-legal {
    justify-content: flex-start !important;
    text-align: left !important;
}
@media (max-width: 900px) {
    .footer-bottom {
        padding-left: 20px !important;
    }
    body.index .services-grid .service-card h3 {
        text-align: left !important;
    }
}

/* Utility Classes */

/* --- MOBILE MENU FIX: Slide-in, overlay, full-width CTA --- */

/* --- MOBILE HEADER & MENU FIXES (FINAL OVERRIDES) --- */

/* --- DESKTOP MENU RESTORATION (2024-06) --- */

body.index .brands-section > section,
body.index .brands-section > section:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* 2025-09-06: Force left-align on all service card headers (h3) on index for desktop and mobile (from site-fixes.md) */
body.index .services-grid .service-card h3 {
    margin-top: 0 !important;
    color: #0d3e5f !important;
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
    position: relative !important;
    padding-bottom: 12px !important;
    transition: color 0.3s ease !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}
body.index .services-grid .service-card-content p {
  text-align: left !important;
}
body.index .services-grid .service-features {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
body.index .services-grid .service-features li {
  text-align: left !important;
  width: 100% !important;
}


/* --- RESPONSIVE DESKTOP NAV (1100px-993px) --- */

/* Full-width gray band for Featured Project section */

.featured-project-content {
  background: #0d3e5f !important;
  border-radius: 18px;
  color: #fff !important;
}
.featured-project-content * {
  color: #fff !important;
}

/* Force both phone and 'View More Projects' buttons to match the blue in the screenshot */
.btn-outline.cta-phone-btn {
  background: #3987c9 !important;
  color: #fff !important;
  border: 2px solid #23609b !important;
  box-shadow: none !important;
}
.btn-outline.cta-phone-btn:hover, .btn-outline.cta-phone-btn:focus {
  background: #23609b !important;
  color: #fff !important;
}
.featured-project-content a.btn.btn-secondary[href="/pages/project-gallery.html"] {
  background: #8FBBE6 !important;
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
  transition: background 0.3s, box-shadow 0.3s;
}
.featured-project-content a.btn.btn-secondary[href="/pages/project-gallery.html"]:hover, 
.featured-project-content a.btn.btn-secondary[href="/pages/project-gallery.html"]:focus {
  background: #0C5298 !important;
  color: #fff !important;
}

.container.featured-project-container.no-bottom-margin {
  position: relative;
  z-index: 1;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}
.container.featured-project-container.no-bottom-margin::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #e9eced;
  z-index: -1;
}
.container.featured-project-container.no-bottom-margin .featured-project.card-style.commercial-portfolio-navy {
    padding-bottom: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0;
}
@media (max-width: 1100px) and (min-width: 993px) {
  .main-nav ul {
    gap: 0.5rem !important;
  }
  .main-nav ul > li {
    margin: 0 2px !important;
  }
  .main-nav .nav-link,
  .main-nav .nav-cta > a {
    padding: 6px 8px !important;
    font-size: 0.93rem !important;
    min-width: unset !important;
  }
  .main-nav .dropdown-menu .dropdown-item {
    font-size: 0.92rem !important;
    padding: 6px 12px !important;
  }
  .main-nav .nav-cta .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.93rem !important;
  }
}
@media (min-width: 993px) {
  .main-nav ul {
    gap: 8px;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }
  .main-nav ul > li {
    margin: 0 4px;
    padding: 0;
  }
  .main-nav .nav-link,
  .main-nav .nav-cta > a {
    padding: 8px 12px;
    font-size: 0.97rem;
    min-width: unset;
  }
  .main-nav .dropdown-menu {
    min-width: 180px;
    padding: 6px 0;
  }
  .main-nav .dropdown-menu .dropdown-item {
    padding: 7px 16px;
    font-size: 0.96rem;
  }
}
@media (min-width: 993px) {
  .site-header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    min-height: 80px;
    padding: 0 32px;
    position: relative;
  }
  .logo {
    display: block;
    margin-right: 32px;
    max-width: 220px;
  }
  .logo-img {
    display: block;
    max-width: 180px;
    height: 52px;
    object-fit: contain;
    margin: 0;
    padding: 0;
  }
  .main-nav {
    position: static;
    background: none;
    height: auto;
    width: auto;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    transform: none;
  }
  .main-nav > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  .main-nav > ul > li {
    width: auto;
    text-align: left;
    margin: 0 0.75rem;
    position: relative;
    white-space: nowrap;
  }
  .main-nav li {
    margin: 0 0.75rem;
    position: relative;
    white-space: nowrap;
  }
  .main-nav a {
    color: var(--dark);
    font-size: 1rem;
    padding: 0.8rem 2.2rem;
    border: none;
    background: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
  }
  .main-nav a:not(.btn):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 1rem;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
  }
  .main-nav a:not(.btn):hover:after {
    width: calc(100% - 2rem);
  }
  .has-dropdown > a::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s ease;
  }
  .has-dropdown.open > a::after,
  .has-dropdown:hover > a::after {
    transform: rotate(180deg);
  }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    margin-top: 10px;
    padding: 10px 0;
    list-style: none;
  }
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown-menu li {
    margin: 0;
    padding: 0;
  }
  .dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-blue);
    padding-left: 25px;
  }
  .main-nav .nav-cta {
    margin: 0 0.75rem;
    display: inline-flex;
    align-items: center;
    width: auto;
    flex-direction: row;
  }
  .main-nav .nav-cta .btn {
    width: auto;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    margin: 0 0 0 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.06em;
    box-shadow: 0 3px 10px rgba(32, 97, 186, 0.2);
  }
  .mobile-menu-toggle, .mobile-overlay {
    display: none !important;
  }
}


@media (max-width: 992px) {
  /* Hamburger icon always visible and styled */
  .mobile-menu-toggle {
    display: flex !important;
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 2001;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0D2236;
    border-radius: 3px;
    margin: 0 0 5px 0;
    transition: all 0.3s;
  }
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* Limit logo size on mobile */
  .site-header .container {
    position: relative;
    min-height: 64px;
    padding: 10px 12px;
    box-sizing: border-box;
  }
  .site-header .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: auto;
    height: auto;
    display: block;
  }
  .logo-img, .site-logo img {
    max-width: 200px !important;
    max-height: 48px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block;
    object-fit: contain;
  }
  .mobile-menu-toggle {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 2;
  }
  .logo-img, .site-logo img {
    max-width: 200px !important;
    max-height: 48px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block;
    object-fit: contain;
    /* vertical-align removed (not needed for block) */
  }

  /* Smoother, slower menu slide-in -- REMOVED to prevent unwanted mobile animation */
  /* .main-nav {
    
  } */
}

@media (max-width: 992px) {
  /* Mobile menu styles now controlled by header.html */
  .desktop-nav .main-nav {
    display: none !important;
  }
  
  .mobile-overlay .main-nav {
    /* Styles controlled by header.html - DO NOT override */
  }
  .main-nav.open,
  .main-nav.active,
  .main-nav[aria-expanded="true"] {
    display: flex !important;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1) !important;
    transform: translateX(0) !important;
  }
  .main-nav.open, .main-nav.active, .main-nav[aria-expanded="true"] {
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1) !important;
    transform: translateX(0) !important;
  }
  .main-nav > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .main-nav > ul > li {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .main-nav a {
    color: #fff;
    font-size: 1.15rem;
    padding: 1.2rem 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: none;
    text-transform: none;
    letter-spacing: 0.05em;
    transition: background 0.2s, color 0.2s;
  }
  .main-nav a:hover,
  .main-nav a:focus {
    background: rgba(255,255,255,0.04);
    color: #fff;
  }
  .main-nav .nav-cta {
    width: 100%;
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .main-nav .nav-cta .btn {
    width: 90%;
    font-size: 1.1rem;
    padding: 18px 0;
    margin-bottom: 12px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    box-shadow: 0 3px 10px rgba(32, 97, 186, 0.2);
  }
  .main-nav .nav-cta .btn-primary {
    background: #c8102e;
    border: none;
    color: #fff;
  }
  .main-nav .nav-cta .btn-outline {
    background: #2061ba;
    border: none;
    color: #fff;
  }
  .main-nav .nav-cta .btn-primary:hover {
    background: #a60d22;
  }
  .main-nav .nav-cta .btn-outline:hover {
    background: #174a8c;
  }
  /* Hide dropdown arrows, flatten dropdowns */
  .main-nav .dropdown-toggle { display: none; }
  .main-nav .dropdown-menu { position: static; background: none; box-shadow: none; display: block; }
  .main-nav .dropdown-item { color: #fff; padding-left: 2.5rem; }
  /* Overlay */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #212529 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1040;
  }
  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .main-nav,
  .main-nav * {
    color: #fff !important;
  }
  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  /* --- MOBILE MENU FINAL FIXES (OVERRIDES) --- */
@media (max-width: 992px) {
  .main-nav,
  .main-nav > ul,
  .main-nav .dropdown-menu,
  .main-nav .dropdown-item {
    background: transparent !important;
    box-shadow: none !important;
  }
  .main-nav .has-dropdown.open .dropdown-menu,
  .main-nav .dropdown-menu {
    background: transparent !important;
    box-shadow: none !important;
  }
  .main-nav,
  .main-nav *,
  .main-nav *:not(button):not(.btn):not([class*="btn-"]) {
    color: #fff !important;
  }
  /* Exclude buttons and links styled as buttons from being forced white */
  .main-nav button,
  .main-nav .btn,
  .main-nav [class*="btn-"] {
    color: initial !important;
  }
  /* Force subcategory dropdown-item to white, override all prior rules */
  .main-nav .dropdown-menu .dropdown-item {
    color: #fff !important;
  }
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex !important;
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 2001 !important;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0D2236;
    border-radius: 3px;
    margin: 0 0 5px 0;
    transition: all 0.3s;
  }
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  .logo-img, .site-logo img {
    max-width: 160px !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    max-width: 90vw;
    background: #0D2236 !important;
    z-index: 2050;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 2px 0 16px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    padding-top: 60px;
  }
  .main-nav.open, .main-nav[aria-expanded="true"] {
    transform: translateX(0);
  }
  .main-nav > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }
  .main-nav > ul > li {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .main-nav a {
    color: #fff;
    font-size: 1.15rem;
    padding: 1.2rem 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: none;
    text-transform: none;
    letter-spacing: 0.05em;
    transition: background 0.2s, color 0.2s;
  }
  .main-nav a:hover,
  .main-nav a:focus {
    background: rgba(255,255,255,0.04);
    color: #fff;
  }
  .main-nav .nav-cta {
    width: 100%;
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex !important;
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 2001 !important;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0D2236 !important;
    border-radius: 3px;
    margin: 0 0 5px 0;
    transition: all 0.3s;
  }
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  /* Mobile header: flex align logo and menu icon */
  .site-header .container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 16px;
    position: relative;
  }
  .logo-img {
    max-width: 180px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    object-fit: contain;
  }
  .mobile-menu-toggle {
    position: static !important;
    margin-left: 16px;
    z-index: 1100;
    align-self: center;
  }
  /* Unify and slow down menu slide-in */

/* --- HOMEPAGE SERVICE CARD EFFECTS FINAL OVERRIDE (2025-08-08) --- */
body.index .services-grid .service-card {
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(13,62,95,0.08) !important;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
  position: relative !important;
  border: 1px solid rgba(13,62,95,0.05) !important;
  z-index: 1 !important;
  max-width: 450px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
}
body.index .services-grid .service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,#0d3e5f,#c8102e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
  z-index: 2;
}
body.index .services-grid .service-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 40px rgba(13,62,95,0.15) !important;
  border-color: rgba(13,62,95,0.15) !important;
}
body.index .services-grid .service-card:hover::before {
  transform: scaleX(1) !important;
}
body.index .services-grid .service-card-img,
body.index .services-grid .service-card img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  background: none !important;
}
body.index .services-grid .service-card:hover .service-card-img {
  transform: scale(1.05) !important;
}
body.index .services-grid .service-card-content {
  padding: 25px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  z-index: 1 !important;
  background: #fff !important;
  flex-grow: 1; /* Ensures content area fills the card */
}
body.index .services-grid .service-card h3 {
  margin-top: 0 !important;
  color: #0d3e5f !important;
  font-size: 1.5rem !important;
  margin-bottom: 15px !important;
  position: relative !important;
  padding-bottom: 12px !important;
  transition: color 0.3s ease !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
}
body.index .services-grid .service-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  transform: none;
  width: 50px;
  height: 3px;
  background: #c8102e;
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}

body.index .services-grid .service-card:hover h3::after {
  width: 80px !important;
}
body.index .services-grid .service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #c8102e;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}
body.index .services-grid .service-card:hover .service-features li::before {
  transform: scale(1.2) !important;
}
body.index .services-grid .service-card .btn {
  align-self: flex-start !important;
  margin-top: auto !important;
  transition: all 0.3s ease, transform 0.2s ease !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;
}
body.index .services-grid .service-card .btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg,#0d3e5f,#1a6ea8);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.index .services-grid .service-card .btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(13,62,95,0.2) !important;
}
body.index .services-grid .service-card .btn:hover::after {
  opacity: 1 !important;
}
body.index .services-grid .service-card .btn:active {
  transform: translateY(1px) !important;
}
@media (max-width: 700px) {

  body.index .services-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 6vw !important;
  }
  body.index .services-grid .service-card {
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  body.index .services-grid .service-card-img,
  body.index .services-grid .service-card img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
}

/* Consistent vertical spacing for all major blocks on index page */
body.index .services-grid {
  display: flex !important;
  align-items: stretch !important; /* This will make all cards equal height */
  gap: 2.5rem !important;
  /* margin-bottom is handled by the parent .services section */
}

body.index .hero,
body.index .hero,
body.index .services,
body.index .service-content,
body.index .portfolio-teaser,
body.index .brands-section,
body.index .testimonials,
body.index .container > section,
body.index .container > div {
  margin-bottom: 2rem !important;
}

/* Override for specific sections with adjusted spacing */
body.index .container > .featured-project,
body.index .container > .cta-card,
body.index .container > .contact-section {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Utility class to remove bottom margin */
.no-bottom-margin {
    margin-bottom: 0 !important;
}

/* Homepage Section Vertical Margins (Final Fix) */
/* This rule ensures consistent vertical spacing for key homepage sections after removing the section-spacer div. */
body.index .container > .featured-project,
body.index .container > .cta-card {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

/* Specific fix for contact section - reduce excessive spacing */
body.index .container > .contact-section {
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
}

/* Override the contact section padding on homepage only */
body.index .contact-section {
    padding: 2rem 0 !important;
}

/* ===== Testimonials · Layout #2 ===== */

/* Section base — keep in your palette */
.testimonial-section { padding: 48px 0; background:#f7f8fb; text-align:center; }
.testimonial-section .section-title { margin-bottom: 24px; }

/* Controls (visible on mobile, hidden on desktop) */
.t2-controls { display:flex; justify-content:flex-end; gap:8px; margin-bottom:8px; }
.t2-btn {
  border:1px solid rgba(0,0,0,0.12); background:#fff; border-radius:8px;
  padding:8px 12px; cursor:pointer; font-weight:600;
}
.t2-btn:focus-visible { outline:2px solid #173c67; outline-offset:2px; }

/* Track — horizontal scroll "carousel" on mobile */
.t2-track {
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch; padding-bottom:8px;
}
.t2-track::-webkit-scrollbar { height:10px; }
.t2-track::-webkit-scrollbar-thumb { background:rgba(0,0,0,0.15); border-radius:6px; }

/* Card */
.t2-card {
  flex:0 0 85%;                   /* ~85% viewport width on mobile */
  scroll-snap-align:start;
  background:#fff;
  border:1px solid rgba(13,62,95,0.1);
  border-radius:16px;
  padding:32px 24px;
  text-align:center;              /* center all content */
  box-shadow: 0 8px 24px rgba(13,62,95,0.06);
  aspect-ratio: 1;                /* make cards square */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Alternating card colors */
.t2-card:nth-child(1) {
  background: #fff;
  color: #333;
}

.t2-card:nth-child(2) {
  background: #173c67;           /* dark blue */
  color: #fff;
  border-color: #173c67;
}

.t2-card:nth-child(3) {
  background: #fff;
  color: #333;
}

/* Text color adjustments for dark cards */
.t2-card:nth-child(2) .t2-quote {
  color: #fff;
}

.t2-card:nth-child(2) .t2-author {
  color: #fff;
}

/* Avatar centered */
.t2-avatar {
  width:72px; height:72px; border-radius:50%; object-fit:cover;
  display:block; margin:0 auto 12px; border:3px solid #e9eef5;
}

/* Stars row centered; use brand color */
.t2-stars {
  display:flex; justify-content:center; gap:6px; margin-bottom:12px;
  color:#f5b301;                   /* gold stars */
  font-size: 1rem;
}

/* Quote + author */
.t2-quote {
  margin:0 0 16px; color:#333; line-height:1.5; font-size:1rem; font-style:italic;
  text-align: center;
}
.t2-author {
  margin:0; font-weight:600; color:#173c67;
  text-align: center;
  font-size: 0.9rem;
}

/* CTA button under the set */
.t2-cta { display:block; width:100%; max-width:360px; margin:24px auto 0; }

/* ===== Testimonials · Desktop Grid (≥900px) ===== */
@media (min-width: 900px){

  /* 3-column grid for track */
  .t2-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
    padding-bottom: 0;
  }

  /* Card: square, structured with CSS Grid */
  .t2-card {
    aspect-ratio: 1 / 1;                        /* perfect square */
    display: grid;
    grid-template-rows: auto auto 1fr auto;     /* avatar, stars, quote, author */
    align-items: start;
    justify-items: center;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(13,62,95,0.12);
    box-shadow: 0 6px 16px rgba(13,62,95,0.08);
    text-align: left;
  }

  /* Avatar centered at top */
  .t2-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #e9eef5;
  }

  /* Stars row centered */
  .t2-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #f5b301;
  }

  /* Quote styling */
  .t2-quote {
    max-width: 60ch;              /* readable line length */
    margin: 0 auto 12px;
    font-size: 1rem;
    line-height: 1.5;
    font-style: italic;
  }

  /* Author */
  .t2-author {
    font-weight: 600;
    color: #173c67;
    margin-top: auto;
  }

  /* Middle card = dark background, light text */
  .t2-card:nth-child(2) {
    background: #173c67;
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 8px 24px rgba(23,60,103,0.18);
  }
  .t2-card:nth-child(2) .t2-stars { color: #ffd76a; }
  .t2-card:nth-child(2) .t2-author { color: #fff; }
}

body.index .testimonial-btn-container {
  text-align: center;
}

.testimonial-btn {
  margin-top: 2rem;
}

body.index .testimonials {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}
body.index .featured-project.card-style {
  margin-top: 1.5rem !important;
}
body.index .container > .featured-project.card-style {
  margin-top: 1.5rem !important;
}

body.index .brands-section {
  margin-top: 2.5rem !important;
  margin-bottom: 1.5rem !important;
}

@media (max-width: 700px) {
  body.index .testimonials,
  body.index .brands-section {
    margin-top: 1.2rem !important;
    margin-bottom: 1.2rem !important;
  }
  body.index .brands-section {
    margin-top: 2rem !important;
  }
}

body.index .container > *:last-child,
body.index .brands-section:last-child,
body.index .testimonials:last-child,
body.index .cta-card:last-child,
body.index .contact-section:last-child {
  margin-bottom: 0 !important;
}
  body.index .services-grid .service-card-img,
  body.index .services-grid .service-card img {
    height: 180px !important;
  }
  body.index .services-grid .service-card-content {
    padding: 16px 8px !important;
  }
  body.index .services-grid .service-card h3 {
    font-size: 1.18rem !important;
    padding-bottom: 8px !important;
  }
}
/* --- END HOMEPAGE SERVICE CARD EFFECTS FINAL OVERRIDE --- */

/* --- HOMEPAGE SERVICE CARD DESKTOP FINAL FORCE OVERRIDE (2025-08-13) --- */
@media (min-width: 701px) {
  body.index .services-grid .service-card {
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(13,62,95,0.08) !important;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    border: 1px solid rgba(13,62,95,0.1) !important;
    transform: translateY(0) !important;
    will-change: transform, box-shadow !important;
    max-width: 450px !important;
    margin: 0 auto 32px auto !important;
  }
  body.index .services-grid .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,#0d3e5f,#c8102e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
    z-index: 2;
  }
  body.index .services-grid .service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(13,62,95,0.15) !important;
    border-color: rgba(13,62,95,0.15) !important;
  }
  body.index .services-grid .service-card:hover::before {
    transform: scaleX(1) !important;
  }
  body.index .services-grid .service-card-img,
  body.index .services-grid .service-card img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    background: none !important;
  }
  body.index .services-grid .service-card:hover .service-card-img {
    transform: scale(1.05) !important;
  }
  body.index .services-grid .service-card-content {
    padding: 25px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 1 !important;
    background: #fff !important;
  }
  body.index .services-grid .service-card h3 {
    margin-top: 0 !important;
    color: #0d3e5f !important;
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
    position: relative !important;
    padding-bottom: 12px !important;
    transition: color 0.3s ease !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    text-align: left !important;
  }
  body.index .services-grid .service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px;
    height: 3px;
    background: #c8102e;
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
  }
  body.index .services-grid .service-card:hover h3::after {
    width: 80px !important;
  }
  body.index .services-grid .service-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  body.index .services-grid .service-features li {
    list-style: none !important;
    position: relative !important;
    padding-left: 26px !important;
    margin-left: 0 !important;
    color: #555 !important;
    font-size: 1.09em !important;
    line-height: 1.7 !important;
    transition: color 0.18s !important;
  }
  body.index .services-grid .service-features li::before {
    content: '✓';
    position: absolute !important;
    left: 0 !important;
    color: #c8102e !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    transition: transform 0.3s ease !important;
  }
  body.index .services-grid .service-card:hover .service-features li::before {
    transform: scale(1.2) !important;
  }
  body.index .services-grid .service-card .btn {
    align-self: flex-start !important;
    margin-top: auto !important;
    transition: all 0.3s ease, transform 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
  }
  body.index .services-grid .service-card .btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg,#0d3e5f,#1a6ea8);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  body.index .services-grid .service-card .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(13,62,95,0.2) !important;
  }
  body.index .services-grid .service-card .btn:hover::after {
    opacity: 1 !important;
  }
  body.index .services-grid .service-card .btn:active {
    transform: translateY(1px) !important;
  }
}

@media (max-width: 700px) {

  html body.index .services-grid .service-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  html body.index .services-grid .service-features li {
    list-style: none !important;
    position: relative !important;
    padding-left: 26px !important;
    margin-left: 0 !important;
    color: #555 !important;
  }
  html body.index .services-grid .service-features li::before {
    left: 0 !important;
    top: 2px !important;
    font-size: 1.1em !important;
    margin-right: 0 !important;
    font-weight: bold !important;
    color: #c8102e !important;
    position: absolute !important;
    transition: transform 0.3s ease !important;
  }
}

@media (min-width: 701px) {
  html body.index .services-grid .service-card {
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10) !important;
    transition: box-shadow 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  html body.index .services-grid .service-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
    transform: translateY(-6px) scale(1.02) !important;
    z-index: 2 !important;
  }
  html body.index .services-grid .service-card::before {
    content: "";
    display: block;
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e63946 0%, #fbb034 100%);
    opacity: 0.85;
    transition: height 0.25s cubic-bezier(.4,0,.2,1);
    z-index: 2;
  }
  html body.index .services-grid .service-card:hover::before {
    height: 12px;
    opacity: 1;
  }
  html body.index .services-grid .service-card h3 {
    position: relative;
    padding-bottom: 0.25em;
    font-weight: 700;
    font-size: 1.35rem;
    color: #222;
  }
  html body.index .services-grid .service-card h3::after {
    content: "";
    display: block;
    position: absolute;
    left: 0; bottom: 0;
    width: 32px;
    height: 3px;
    background: #e63946;
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(.4,0,.2,1);
    z-index: 2;
  }
  html body.index .services-grid .service-card:hover h3::after {
    width: 100%;
    background: linear-gradient(90deg, #e63946 0%, #fbb034 100%);
  }
  html body.index .services-grid .service-card-img {
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    will-change: transform;
  }
  html body.index .services-grid .service-card:hover .service-card-img {
    transform: scale(1.06);
  }
  html body.index .services-grid .service-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  html body.index .services-grid .service-features li {
    list-style: none !important;
    position: relative !important;
    padding-left: 26px !important;
    margin-left: 0 !important;
    color: #555 !important;
    font-size: 1.09em;
    line-height: 1.7;
    transition: color 0.18s;
  }
  html body.index .services-grid .service-features li::before {
    content: "\2714";
    color: #e63946;
    font-size: 1.1em !important;
    left: 0 !important;
    top: 2px !important;
    position: absolute !important;
    transition: transform 0.18s;
    font-weight: 700;
  }
  html body.index .services-grid .service-card:hover .service-features li::before {
    transform: scale(1.25);
  }
  html body.index .services-grid .service-card .btn-primary {
    background: linear-gradient(90deg, #0d3e5f 0%, #174c7e 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    min-width: 180px !important;
    max-width: 350px !important;
    width: 100%;
    padding: 13px 18px !important;
    font-size: 1.08rem !important;
    font-weight: 600 !important;
    margin: 2.2rem auto 2rem auto !important;
    box-shadow: 0 4px 18px rgba(13,62,95,0.08) !important;
    display: block !important;
    text-align: center !important;
    transition: background 0.2s, box-shadow 0.2s !important;
  }
  html body.index .services-grid .service-card .btn-primary:hover {
    background: linear-gradient(90deg,#174c7e 0%,#0d3e5f 100%) !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(13,62,95,0.12);
  }
}

  .mobile-menu-toggle {
    display: flex !important;
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 1100;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    padding: 0;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    margin: 0 0 5px 0;
    transition: all 0.3s;
  }
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
}

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


.mb-1 { margin-bottom: 1rem; }


.mb-2 { margin-bottom: 2rem; }


.mt-1 { margin-top: 1rem; }


.mt-2 { margin-top: 2rem; }


/* --- FORCE WHITE SUBCATEGORY FONT IN MOBILE MENU (AUG 2025) --- */
@media (max-width: 992px) {
  .main-nav .dropdown-menu .dropdown-item,
  nav.main-nav ul .dropdown-menu .dropdown-item,
  .main-nav ul .dropdown-menu .dropdown-item {
    color: #fff !important;
  }
}


/* Fix: Installation subcategories visible in mobile menu */

/* --- MOBILE MENU PERFECT CENTERING OVERRIDES (2025-08) --- */

body {
  background: #fff;
}

body.index #page-wrapper > section.hero.rebuilt-hero,
body.index #page-wrapper > section.hero.rebuilt-hero.rebuilt-hero,
section.hero.rebuilt-hero {
  min-height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url('../images/Bedrosians_DECHEDWHISM54M_DECHEDWHI54M_BedrosiansHedronRoomSceneHighRes_Edit.jpeg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #999 !important;
  overflow: hidden;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-top: none !important;
  border-bottom: none !important;
}

.rebuilt-hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  position: relative;
}
.rebuilt-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}


body.index #page-wrapper > section.hero.rebuilt-hero {
  border-top: none !important;
}


.rebuilt-hero .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  max-width: 95vw;
}

/* Targeted: Rebuilt Hero Subtitle Visual Weight Increase */
.rebuilt-hero .hero-content .subtitle {
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.32), 0 1px 0 #173c67;
  border-radius: 7px;
  padding: 0.18em 0.9em;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.rebuilt-hero .hero-buttons {
  margin-top: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rebuilt-hero .btn {
  font-size: 1.1rem;
  padding: 0.95em 2.2em;
}

@media (min-width: 700px) {
  .rebuilt-hero .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  body.index #page-wrapper > section.hero.rebuilt-hero {
    min-height: 45vh;
    background-image: url('../images/Bedrosians_DECHEDWHISM54M_DECHEDWHI54M_BedrosiansHedronRoomSceneHighRes_mobile.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #999 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .rebuilt-hero .hero-content {
    padding: 1.2rem;
    font-size: 1.04rem;
    max-width: 98vw;
  }
  .rebuilt-hero .hero-buttons {
    gap: 1.2rem;
  }
  .rebuilt-hero .btn,
  body.index #page-wrapper > section.hero.rebuilt-hero .btn {
    width: fit-content !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    padding-left: 1.5em !important;
    padding-right: 1.5em !important;
    display: block !important;
  }
    body.index #page-wrapper > section.hero.rebuilt-hero:first-child,
  body.index #page-wrapper > section.hero.rebuilt-hero {
    border-top: none !important;
  }
}


@media (max-width: 992px) {
  /* Center all top-level nav items */
  .main-nav > ul > li,
  .main-nav > ul > li.has-dropdown {
    text-align: center !important;
    width: 100% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  /* Center all top-level nav links */
  .main-nav > ul > li > a,
  .main-nav > ul > li > .installation-link {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    font-weight: 600 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Center the Installation link specifically */
  .main-nav .installation-link {
    font-size: 1.08rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    color: #191919 !important;
    background: none !important;
    margin-bottom: 0.1em !important;
  }
  /* Center dropdown menu and its items */
  .main-nav .has-dropdown.open .dropdown-menu {
    max-height: 1000px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: #fff !important;
    left: 0 !important;
    position: static !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
  }
  .main-nav .has-dropdown .dropdown-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto 12px auto !important;
    width: 100% !important;
    font-weight: 500 !important;
    color: #0D2236 !important;
    background: none !important;
    border-left: none !important;
    padding: 10px 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 992px) {
  .main-nav {
    padding-left: 6vw !important;
    padding-right: 6vw !important;
  }
  .main-nav > ul {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .main-nav .has-dropdown .dropdown-menu {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .main-nav .has-dropdown .dropdown-menu .dropdown-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 0.93rem !important;
    opacity: 0.92;
  }
}
}


/* Force sentence case for nav links in mobile menu */

/* --- FINAL MOBILE HEADER SPACING OVERRIDE (2025-08-07) --- */

/* HOMEPAGE HERO MOBILE IMAGE SWAP (2025-08-25) */
@media (max-width: 700px) {
  .index .hero {
    height: 24vh !important;
    min-height: 120px;
    max-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 8px 0 !important;
  }
  .index .hero-slide.active {
    background-image: url('../images/Emser_W94DIVIZE1012MO_DIVINE_ZEUS_hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
  @media (max-width: 700px) {
    .index .hero-slide.active {
      background-image: url('../images/Emser_W94DIVIZE1012MO_DIVINE_ZEUS_mobile.jpg') !important;
      background-size: contain !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
    }
  }
  .index .hero-content {
    padding: 0 10px;
    text-align: center;
  }
  .index .hero-content h1 {
    font-size: 2.1rem;
    margin-bottom: 0.8rem;
  }
  .index .hero-content .subtitle {
    font-size: 1rem;
    margin-bottom: 1.1rem;
    display: block;
  }
  .index .hero-buttons {
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.2rem;
  }
  .index .hero-buttons .btn {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    min-width: 160px;
  }
}


/* --- HOMEPAGE HERO OVERRIDE (2025-08-08) --- */
.index .hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.index .hero .hero-content,
.index .hero .hero-content h1,
.index .hero .hero-content .hero-buttons .btn {
    color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.45);
}
.index .hero .hero-buttons .btn-primary {
    background: var(--primary-blue, #2061ba);
    border: none;
    color: #fff !important;
}
.index .hero .hero-buttons .btn-outline {
    border: 2px solid #fff;
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}
.index .hero .hero-overlay {
    background: rgba(0,0,0,0.38) !important;
}

/* Remove global mobile margin/padding reset for headers/sections to allow intended spacing */

@media (max-width: 700px) {
  .section-title {
    margin-top: 1rem !important;
    margin-bottom: 1.2em !important;
    padding-bottom: 8px !important;
    line-height: 1.1 !important;
    position: relative !important;
  }
  
  /* Override negative margin rule that's hiding section titles */
  html body #page-wrapper .container .section-title,
  html body #page-wrapper .section-title,
  html body .main-page .section-title,
  html body .section-title,
  html body h2.section-title,
  html body h3.section-title,
  html body .section-title-navy,
  html body h2.section-title-navy,
  html body h3.section-title-navy,
  html body .service-content .section-title,
  html body section .section-title,
  html body .lvp-showroom-block .section-title,
  html body .navy-band-section .section-title,
  html body .complete-install-band .section-title,
  html body .container .section-title,
  html body .testimonials-section .section-title,
  html body .brands-section .section-title,
  html body #testimonials-title,
  html body .why-choose-us .section-title {
    margin-top: 1rem !important;
    margin-bottom: 1.2rem !important;
    padding-top: 0 !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
  }
  
  /* Ultra-specific overrides for the exact hidden elements */
  html body section#why h2.section-title,
  html body section h2#testimonials-title.section-title,
  html body section h3.section-title {
    margin-top: 1rem !important;
    margin-bottom: 1.2rem !important;
    padding-top: 0 !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 999 !important;
  }
  
  /* Services section title uses standard margins */
  #services .section-title {
    color: #0d3e5f !important;
    font-size: 1.3rem !important;
  }
  .section-subtitle {
    margin-bottom: 2.2em !important;
  }
  
  /* Ensure sections have proper mobile padding to prevent title cutoff */
  section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  /* Services section title styling only */
  body.index #services .section-header .section-title.section-title-navy {
    color: #0d3e5f !important;
    font-size: 1.3rem !important;
    text-align: center !important;
  }
  
  /* Legacy services red line rule removed - using pages-clean.css universal system */
  
  .navy-band-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .testimonial-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .cta-band {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}


@media (max-width: 992px) {
  .main-nav a,
  .main-nav > ul > li > ul li a {
    text-transform: none !important;
    letter-spacing: normal !important;
  }
}

@media (max-width: 992px) {
  .main-nav > ul > li > ul {
    background: transparent;
    padding: 0 0 0 16px;
  }
  .main-nav > ul > li > ul li a {
    color: #0D2236 !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0 8px 18px;
    display: block;
    background: none;
    border-left: 2px solid #e4e4e4;
  }
  .main-nav .installation-link {
    color: #191919 !important;
    font-weight: 600 !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 1.08rem !important;
    margin-bottom: 0.1em;
  }
  .main-nav > ul > li > ul li a:hover {
    color: #c8102e !important;
    background: none;
  }
}


/* --- FINAL HOMEPAGE HERO MOBILE GAP OVERRIDE (2025-08-08) --- */
@media (max-width: 700px) {

  body.index .hero,
  body.index .hero-slide {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }  
  body.index .hero-slide {
    top: 0 !important;
    position: static !important;
    border-top: none !important;
  }
}

/* --- FINAL SECTION-TITLE FONT SIZE LOCK (2025-08-08) --- */
.section-title {
  font-size: 2.5rem !important;
}
@media (max-width: 700px) {

  .section-title {
    font-size: 2.5rem !important;
  }
}

/* --- FINAL HOMEPAGE SERVICE CARD DESKTOP OVERRIDE (2025-08-11) --- */
@media (min-width: 992px) {
  body.index .services-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 32px !important;
    max-width: 1200px !important;
    margin: 0 auto 2.5rem auto !important;
  }
  body.index .services-grid .service-card {
    max-width: 370px !important;
    min-width: 370px !important;
    flex: 0 0 370px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(13, 62, 95, 0.08) !important;
    position: relative !important;
  }
  
  body.index .services-grid .service-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #0d3e5f, #c8102e) !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 2 !important;
  }
  
  body.index .services-grid .service-card-img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
  }
  
  body.index .services-grid .service-card-content {
    padding: 25px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
  }
  
  body.index .services-grid .service-card h3::after {
    transition: width 0.4s ease !important;
  }
  
  body.index .services-grid .service-features li::before {
    transition: transform 0.3s ease !important;
  }
  
  /* Desktop hover animations */
  body.index .services-grid .service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(13, 62, 95, 0.15) !important;
    border-color: rgba(13, 62, 95, 0.15) !important;
  }
  
  body.index .services-grid .service-card:hover::before {
    transform: scaleX(1) !important;
  }
  
  body.index .services-grid .service-card:hover .service-card-img {
    transform: scale(1.05) !important;
  }
  
  body.index .services-grid .service-card:hover h3::after {
    width: 80px !important;
  }
  
  body.index .services-grid .service-card:hover .service-features li::before {
    transform: scale(1.2) !important;
  }
}

@media (min-width: 701px) and (max-width: 991px) {
  body.index .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
    max-width: 900px !important;
    margin: 0 auto 2.5rem auto !important;
  }
  body.index .services-grid .service-card {
    max-width: 420px !important;
    min-width: 320px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
}

/* Desktop Services section title spacing */
@media (min-width: 992px) {
  /* Services section uses standard margins on desktop */
}

/* --- HOMEPAGE SERVICE CARDS --- */
@media (max-width: 700px) {
  body.index .services-grid {
    display: block !important;
    padding: 0 !important;
    margin: 0 auto 1.5rem auto !important;
    max-width: 100vw !important;
  }
  body.index .services-grid .service-card {
    width: calc(100vw - 2rem) !important;
    max-width: 450px !important;
    margin: 0 auto 2rem auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
  }
  body.index .services-grid .service-card-content {
    padding: 25px 25px 20px 25px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  body.index .services-grid .service-card .btn-primary {
    margin-top: auto !important;
    width: auto !important;
    min-width: 140px !important;
    max-width: 250px !important;
    font-size: 1.08rem !important;
    align-self: flex-start;
  }
}

/* --- MOBILE BUTTON STYLES --- */
@media (max-width: 768px) {
  .hero-buttons .btn,
  .service-card-content .btn,
  .featured-project-text .btn,
  .testimonial-btn-container .btn,
  .cta-buttons .btn,
  .btn-mobile-full-width {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}

/* --- GLOBAL MOBILE HEADER CENTERING (2025-08-28) --- */
@media (max-width: 768px) {
  h2.section-title,
  .section-title {
    text-align: center !important;
  }

  /* REMOVED - section titles now use inline spans only */
}

/* --- MOBILE LEFT-ALIGN RULE (2025-08-26) --- */
/* On mobile, left-aligns section headers and their underlines for better readability. */
@media (max-width: 700px) {
  body.index #services .section-title,
  body.index .portfolio-teaser .section-title,
  body.index .featured-project .section-title {
    display: block !important; /* Changed to block for proper centering */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Brands section uses standard section-title styling */

  /* Legacy red line rules removed - using pages-clean.css universal system */
  
  /* Brands section uses clean CSS red line system */
}


/* --- DEBUG: DESKTOP CHECKMARK ALIGNMENT TEST (2025-08-11) --- */
@media (min-width: 701px) {
  body.index .services-grid .service-features,
  html body.index .services-grid .service-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  body.index .services-grid .service-features li {
    list-style: none !important;
    position: relative !important;
    padding-left: 26px !important;
    margin-left: 0 !important;
    outline: none !important;
  }
  body.index .services-grid .service-features li::before,
  html body.index .services-grid .service-features li::before {
    content: '✓' !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    color: #c8102e !important;
    transition: none !important;
    z-index: 2 !important;
    background: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    text-align: left !important;
    display: inline !important;
    vertical-align: baseline !important;
  }
}
/* --- END DEBUG: DESKTOP CHECKMARK ALIGNMENT TEST --- */

/* --- FINAL ULTRA-SPECIFIC MOBILE CHECKMARK ALIGNMENT OVERRIDE (2025-08-11) --- */
@media (max-width: 700px) {

  body.index .services-grid .service-features li::before,
  html body.index .services-grid .service-features li::before {
    left: 0 !important;
    top: 2px !important;
    position: absolute !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    color: #c8102e !important;
    transition: transform 0.3s ease !important;
    z-index: 1 !important;
    background: none !important;
    box-shadow: none !important;
  }
  body.index .services-grid .service-features li {
    padding-left: 26px !important;
    margin-left: 0 !important;
  }
}
/* --- END FINAL ULTRA-SPECIFIC MOBILE CHECKMARK ALIGNMENT OVERRIDE --- */

/* Remove rebuilt-hero-overlay grey background on mobile only */
@media (max-width: 700px) {
  body.index .services-grid .service-card {
    width: 95vw !important;
    max-width: 450px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-inline: auto !important;
    float: none !important;
    align-self: center !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .services .service-card {
    width: 95vw !important;
    max-width: 450px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .services .section-title {
    margin-top: 2.2rem !important;
  }

  .rebuilt-hero-overlay {
    background: transparent !important;
  }
}


/* --- FORCE PURE WHITE MAIN BACKGROUND ON INDEX PAGE (2025-08-20) --- */
body.index, body.index #page-wrapper, body.index main, body.index .main-content {
  background: #fff !important;
}
/* --- END FORCE PURE WHITE MAIN BACKGROUND ON INDEX PAGE --- */

/* --- INSTALLATION PAGE SERVICE CARD CHECKMARK ALIGNMENT OVERRIDE (2025-08-11) --- */
@media (min-width: 701px) {
  body.main-page .services-grid .service-features,
  html body.main-page .services-grid .service-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  body.main-page .services-grid .service-features li {
    list-style: none !important;
    position: relative !important;
    padding-left: 26px !important;
    margin-left: 0 !important;
  }
  body.main-page .services-grid .service-features li::before,
  html body.main-page .services-grid .service-features li::before {
    content: '✓' !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    color: #c8102e !important;
    transition: none !important;
    z-index: 2 !important;
    background: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    text-align: left !important;
    display: inline !important;
    vertical-align: baseline !important;
  }
}
@media (max-width: 700px) {

  body.main-page .services-grid .service-features li::before,
  html body.main-page .services-grid .service-features li::before {
    content: '✓' !important;
    left: 0 !important;
    top: 2px !important;
    position: absolute !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    color: #c8102e !important;
    z-index: 3 !important;
    background: none !important;
    box-shadow: none !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    text-align: left !important;
    vertical-align: baseline !important;
  }
  body.main-page .services-grid .service-features,
  html body.main-page .services-grid .service-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  body.main-page .services-grid .service-features li {
    list-style: none !important;
    position: relative !important;
    padding-left: 26px !important;
    margin-left: 0 !important;
  }

  /* Installation page card effects for mobile */
  body.main-page .services-grid .service-card {
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10) !important;
    transition: box-shadow 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1) !important;
    position: relative !important;
    overflow: hidden !important;
    max-width: 100% !important;
    margin: 0 auto 24px auto !important;
    border: 1px solid rgba(13,62,95,0.11) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    will-change: transform, box-shadow !important;
    transform: translateY(0) !important;
    box-sizing: border-box !important;
  }
  body.main-page .services-grid .service-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
    transform: translateY(-6px) scale(1.02) !important;
    z-index: 2 !important;
  }
  body.main-page .services-grid .service-card::before {
    content: "";
    display: block;
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e63946 0%, #fbb034 100%);
    opacity: 0.85;
    transition: height 0.25s cubic-bezier(.4,0,.2,1);
    z-index: 2;
  }
  body.main-page .services-grid .service-card h3 {
    position: relative !important;
    color: #0d3e5f !important;
    font-weight: 700 !important;
    margin-bottom: 0.4em !important;
    font-size: 1.18em !important;
    letter-spacing: 0.01em !important;
    z-index: 2 !important;
  }
  body.main-page .services-grid .service-card h3::after {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    background: #e53935;
    margin-top: 7px;
    border-radius: 2px;
    opacity: 1;
    transition: width 0.2s;
    z-index: 2;
  }
  body.main-page .services-grid .service-card-img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 12px 12px 0 0 !important;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1) !important;
  }
  body.main-page .services-grid .service-card:hover .service-card-img {
    transform: scale(1.04) !important;
  }
  body.main-page .services-grid .service-features li::before {
    transition: transform 0.3s ease !important;
  }
  body.main-page .services-grid .service-card:hover .service-features li::before {
    transform: scale(1.2) !important;
  }
  body.main-page .services-grid .service-card .btn {
    align-self: flex-start !important;
    margin-top: auto !important;
    transition: all 0.3s ease, transform 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
  }
  body.main-page .services-grid .service-card .btn-primary {
    background: linear-gradient(90deg, #2061ba 0%, #0d3e5f 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(13,62,95,0.06) !important;
  }
  body.main-page .services-grid .service-card .btn-primary:hover {
    background: linear-gradient(90deg, #1a5a8a 0%, #2061ba 100%) !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 4px 16px rgba(13,62,95,0.13) !important;
  }
}

/* --- END INSTALLATION PAGE SERVICE CARD CHECKMARK ALIGNMENT OVERRIDE --- */

/* --- FINAL MOBILE OVERFLOW FIX FOR INSTALLATION SERVICE-FEATURES (2025-08-11) --- */
@media (max-width: 700px) {

  body.main-page .services-grid .service-features li {
    padding-left: 1.2em !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }
}
/* --- END FINAL MOBILE OVERFLOW FIX --- */

/* --- FINAL MOBILE CARD WIDTH & LEFT ALIGN FIX (2025-08-11) --- */
@media (max-width: 700px) {

  body.main-page .services-grid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  body.main-page .services-grid .service-card {
    max-width: 96vw !important;
    width: 96vw !important;
    margin: 2vw auto 24px auto !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.main-page .services-grid .service-card-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  body.main-page .services-grid .service-features {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  body.main-page .services-grid .service-features li {
    padding-left: 1.7em !important;
    text-align: left !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }
}
/* --- END FINAL MOBILE CARD WIDTH & LEFT ALIGN FIX --- */

/* --- INSTALLATION PAGE SERVICE CARD DESKTOP EFFECTS RESTORE (2025-08-11) --- */
@media (min-width: 701px) {
  body.main-page .services-grid .service-card {
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10) !important;
    transition: box-shadow 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1) !important;
    position: relative !important;
    overflow: visible !important;
    will-change: box-shadow, transform;
  }
  body.main-page .services-grid .service-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
    transform: translateY(-6px) scale(1.025);
    z-index: 2;
  }
  body.main-page .services-grid .service-card::before {
    content: '';
    display: block;
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 6px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #e21b3c 0%, #ff7e5f 100%);
    opacity: 1;
    transition: opacity 0.25s;
    z-index: 1;
  }
  body.main-page .services-grid .service-card h3 {
    position: relative;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #233144;
  }
  body.main-page .services-grid .service-card h3::after {
    content: '';
    display: block;
    width: 38px;
    height: 3px;
    background: #e21b3c;
    border-radius: 2px;
    margin-top: 7px;
    transition: width 0.25s;
  }
  body.main-page .services-grid .service-card:hover h3::after {
    width: 64px;
  }
  body.main-page .services-main .services-grid .service-card-img,
  body.main-page .services-main .services-grid .service-card img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 18px 18px 0 0 !important;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1) !important;
    background: none !important;
  }
  body.main-page .services-grid .service-card:hover .service-card-img {
    transform: scale(1.04);
  }
  body.main-page .services-grid .service-features li {
    list-style: none !important;
    position: relative !important;
    padding-left: 26px !important;
    margin-left: 0 !important;
  }
  body.main-page .services-grid .service-features li::before {
    content: '\2714';
    color: #e21b3c;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: bold;
    margin-right: 8px;
    line-height: 1;
    transform: scale(1);
    transition: transform 0.2s;
  }
  body.main-page .services-grid .service-features li:hover::before {
    transform: scale(1.2);
  }
  body.main-page .services-grid .btn-primary {
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%) !important;
    color: #fff !important;
    border-radius: 7px !important;
    border: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 32px !important;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  body.main-page .services-grid .btn-primary:hover {
    background: linear-gradient(90deg, #2a5298 0%, #1e3c72 100%) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(44,62,80,0.15);
    transform: translateY(-2px) scale(1.05);
  }
}
/* --- END INSTALLATION PAGE SERVICE CARD DESKTOP EFFECTS RESTORE --- */

/* --- INSTALLATION PAGE SERVICE CARD SIZING OVERRIDE (2025-08-11) --- */
@media (min-width: 701px) {
  body.main-page .services-grid .service-card {
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(13,62,95,0.08) !important;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    border: 1px solid rgba(13,62,95,0.1) !important;
    transform: translateY(0) !important;
    will-change: transform, box-shadow !important;
    max-width: 450px !important;
    margin: 0 auto 24px auto !important;
    box-sizing: border-box !important;
  }
  body.main-page .services-grid .service-card-img,
  body.main-page .services-grid .service-card img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 16px 16px 0 0 !important;
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
  }
  body.main-page .services-grid .service-card-content {
    padding: 25px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 1 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
}

/* --- HOMEPAGE CARD-STYLE, PORTFOLIO TEASER, FEATURED PROJECT (2025-08-11) --- */
.card-style {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(13,62,95,0.09), 0 1.5px 6px rgba(32,97,186,0.09);
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  position: relative;
  overflow: hidden;
}

/* Enforce global block spacing for commercial portfolio and service cards */
.featured-project,
.portfolio-teaser,
.service-card {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Unique Showroom Card Styling */
/* LOCKED: Showroom Card Width & Container - DO NOT REMOVE OR OVERRIDE */
.container > .featured-project.card-style.lvp-showroom-block {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.featured-project.card-style.lvp-showroom-block::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, #174c7e 0%, #e53935 100%);
  border-radius: 16px 16px 0 0;
  z-index: 2;
}
.featured-project.card-style.lvp-showroom-block .section-title.text-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  font-size: 2.1rem;
  margin-top: 0.5rem !important;
}
.featured-project.card-style.lvp-showroom-block .showroom-badge {
  display: inline-flex;
  align-items: center;
  background: #174c7e;
  color: #fff;
  border-radius: 50%;
  width: 2.2em;
  height: 2.2em;
  justify-content: center;
  font-size: 1.25em;
  box-shadow: 0 2px 8px rgba(32,97,186,0.12);
}
.featured-project.card-style.lvp-showroom-block .btn.btn-primary {
  background: linear-gradient(90deg, #e53935 0%, #174c7e 100%) !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-weight: 800 !important;
  font-size: 1.13rem !important;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 18px rgba(229,57,53,0.10), 0 1.5px 6px rgba(32,97,186,0.09);
  padding: 18px 38px !important;
  border: none !important;
  margin-top: 1.5rem !important;
  transition: background 0.18s, box-shadow 0.18s;
}
.featured-project.card-style.lvp-showroom-block .btn.btn-primary:hover,
.featured-project.card-style.lvp-showroom-block .btn.btn-primary:focus {
  background: linear-gradient(90deg, #174c7e 0%, #e53935 100%) !important;
  box-shadow: 0 8px 30px rgba(32,97,186,0.18) !important;
}
.featured-project.card-style.lvp-showroom-block .service-content-image-float img {
  border: 3px solid #e3f1ff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(32,97,186,0.10);
}

.portfolio-teaser {
  text-align: center;
}

/* === LVP Showroom Block: Stretch image on desktop === */

/* [2024-06-13] Targeted header/image spacing fix for .featured-project.card-style only */
.featured-project.card-style .section-title {
  margin-bottom: 2.2rem !important; /* Use spacing-lg or adjust as needed for visual separation */
}

@media (max-width: 700px) {
  .featured-project.card-style .section-title {
    margin-top: 0.5rem !important; /* Reduce excessive space above header on mobile */
  }
  .featured-project.card-style .featured-project-text {
    padding-left: 1rem !important; /* Normal, moderate left padding for mobile */
  }
}



body.page-tile .lvp-showroom-block .featured-project-content {
  display: block;
  position: relative;
  width: 100%;
  min-height: 1px;
}
body.page-tile .lvp-showroom-block .featured-project-image {
  float: left;
  width: 340px;
  max-width: 45%;
  margin-right: 2rem;
  margin-bottom: 1rem;
}
body.page-tile .lvp-showroom-block .featured-project-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(13,62,95,0.08);
  min-height: 180px;
}
body.page-tile .lvp-showroom-block .featured-project-text {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
body.page-tile .lvp-showroom-block .featured-project-text .btn {
  align-self: flex-start;
  margin-top: 1.2rem;
}
body.page-tile .lvp-showroom-block .showroom-block-buttons {
  margin-top: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 769px) {
  body.page-tile .lvp-showroom-block .service-content-text-wrap {
    overflow: hidden;
  }
  
  body.page-tile .lvp-showroom-block .showroom-block-buttons {
    float: left;
    width: calc(100% - 560px);
    margin-right: 20px;
    margin-top: 20px;
    margin-bottom: 0;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  body.page-tile .lvp-showroom-block .showroom-block-buttons .btn {
    width: auto !important;
    min-width: 160px !important;
    max-width: 180px !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }
}
body.page-tile .lvp-showroom-block .showroom-block-buttons .btn {
  padding: 12px 24px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 4px !important;
  min-width: 180px !important;
  width: auto !important;
  margin: 0 !important;
  display: inline-block !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
@media (max-width: 700px) {
  body.page-tile .lvp-showroom-block .showroom-block-buttons {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 1rem;
  }
  body.page-tile .lvp-showroom-block .showroom-block-buttons .btn {
    width: 100% !important;
    max-width: 280px !important;
    min-width: auto !important;
    margin: 0 auto !important;
    display: block !important;
    padding: 12px 24px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 4px !important;
    white-space: normal !important;
  }
}
.service-content-text-wrap {
  position: relative;
  width: 100%;
}

/* Fix Get Started button width on mobile and tablet */
@media (max-width: 700px) {
  .service-content-text-wrap .btn.btn-secondary {
    width: auto !important;
    max-width: 280px !important;
    display: block !important;
    margin: 20px auto 20px auto !important;
    text-align: center !important;
  }
  .commercial-tile-services.card-overlay .btn-primary {
    margin-bottom: 32px !important;
    display: block;
  }
}


.service-content-image-float {
  float: right;
  width: 540px;
  max-width: 55%;
  margin: 0 0 20px 20px;
  clear: none;
}

/* Ensure residential and commercial tile services images float properly */
.residential-tile-services .service-content-text-wrap {
  padding-bottom: 36px !important;
}

.residential-tile-services.card-overlay h3,
.commercial-tile-services.card-overlay h3 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  display: block;
}

.residential-tile-services .service-content-image-float {
  float: right !important;
  width: 540px !important;
  max-width: 55% !important;
  margin: 0 0 20px 20px !important;
  clear: none !important;
  display: block !important;
}

.residential-tile-services .service-content-image-float .residential-card-img {
  width: 100% !important;
  height: 400px !important;
  object-fit: cover !important;
  max-width: none !important;
  display: block !important;
}

.commercial-tile-services .service-content-image-float {
  float: right !important;
  width: 540px !important;
  max-width: 55% !important;
  margin: 0 0 20px 20px !important;
  clear: none !important;
  display: block !important;
}

.commercial-tile-services .service-content-image-float .commercial-card-img {
  width: 100% !important;
  height: 400px !important;
  object-fit: cover !important;
  max-width: none !important;
  display: block !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.service-content-image-float img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(13,62,95,0.08);
}

.service-content-image-float .image-caption {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .service-content-image-float {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    text-align: center;
  }
}

body.page-tile .lvp-showroom-block .showroom-block-buttons .btn {
  min-width: 170px;
  max-width: 240px;
  width: auto;
  margin: 0;
  display: inline-block;
}
@media (max-width: 900px) {
  body.page-tile .lvp-showroom-block .featured-project-image {
    width: 260px;
    max-width: 50%;
    margin-right: 1.2rem;
    margin-bottom: 1rem;
  }
  body.page-tile .lvp-showroom-block .showroom-block-buttons {
    gap: 1rem;
  }
}
@media (max-width: 700px) {
  body.page-tile .lvp-showroom-block .featured-project-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  body.page-tile .lvp-showroom-block .featured-project-image {
    float: none;
    width: 100%;
    max-width: 330px;
    margin: 0 auto 1rem auto;
    display: flex;
    justify-content: center;
  }
  body.page-tile .lvp-showroom-block .featured-project-text {
    width: 100%;
    overflow: visible;
  }
  body.page-tile .lvp-showroom-block .showroom-block-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
  }
  body.page-tile .lvp-showroom-block .showroom-block-buttons .btn {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
  }
}

.lvp-showroom-block .featured-project-image {
  flex: 1 1 45%; /* Match the block above for alignment */
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.lvp-showroom-block .featured-project-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.lvp-showroom-block .featured-project-text {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  margin-left: 0;
  padding-left: 0;
}
@media (max-width: 900px) {
  .lvp-showroom-block .featured-project-text {
    margin-left: 0;
  }
}

/* === Showroom Block: Responsive Button Layout === */
.lvp-showroom-block .showroom-block-buttons {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
  justify-content: flex-start;
  align-items: stretch;
}
.lvp-showroom-block .showroom-block-buttons .btn {
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 900px) {
  .lvp-showroom-block .featured-project-content {
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0;
    width: 100%;
  }
  .lvp-showroom-block .featured-project-image {
    width: 100%;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
  }
  .lvp-showroom-block .featured-project-text {
    width: 100%;
    text-align: left;
    align-items: flex-start;
    padding-left: 0;
    margin-left: 0;
  }
  .lvp-showroom-block .showroom-block-buttons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 1.1rem;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
  }
  .lvp-showroom-block .showroom-block-buttons .btn {
    width: 100%;
    max-width: 350px;
    margin-left: auto !important;
    margin-right: auto !important;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Remove any accidental stacking above image at other breakpoints for this block */
@media (max-width: 900px) {
  .lvp-showroom-block .featured-project-content > .featured-project-text,
  .lvp-showroom-block .featured-project-content > .showroom-block-buttons {
    order: unset;
  }
}



@media (max-width: 700px) {
  .lvp-showroom-block .showroom-block-buttons {
    gap: 8px;
    margin-top: 1rem;
  }
}

@media (max-width: 700px) {
  .lvp-showroom-block .featured-project-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .lvp-showroom-block .featured-project-image,
  .lvp-showroom-block .featured-project-text {
    width: 100%;
    min-width: 0;
    flex: unset;
  }
  .lvp-showroom-block .featured-project-image img {
    min-height: 180px;
    max-height: 280px;
  }
  .lvp-showroom-block .btn.btn-primary {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 90% !important;
    max-width: 320px !important;
  }
}


/* Always left-align text in showroom/install cards */
.featured-project.card-style .featured-project-text,
.complete-installation-service .featured-project-text {
  text-align: left !important;
  align-items: flex-start !important;
  padding-left: 16px;
}

@media (max-width: 700px) {
  .featured-project.card-style .featured-project-text .btn,
  .complete-installation-service .featured-project-text .btn {
    display: block;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 250px; /* Set a max-width for mobile buttons */
    width: 100%; /* Make button take full width of its container up to max-width */
  }

  .complete-installation-service .btn-secondary {
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
  }

  .complete-installation-service .btn-secondary:hover {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
  }


  .section-title {
    font-size: 1.75rem !important;
  }
}




@media (max-width: 700px) {

  .card-style {
    padding: 1.2rem 0.8rem 1.7rem 0.8rem;
    margin-bottom: 1.2rem;
  }
  .featured-project-content {
    flex-direction: column;
    gap: 1.1rem;
  }
  .featured-project-image img {
    min-height: 120px;
    max-height: 220px;
    border-radius: 8px;
  }
  .featured-project-text h3 {
    font-size: 1.18rem;
    margin-bottom: 0.7rem;
  }
}

/* --- Responsive Residential/Commercial Card Images (2025-08-19) --- */
@media (max-width: 900px) {
  .residential-card-img,
  .commercial-tile-services .commercial-card-img {
    max-width: 320px;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 600px) {
  .residential-card-img,
  .commercial-card-img {
    max-width: 220px;
  }
}

/* --- COMMERCIAL PORTFOLIO TIMELINE STYLES (2025-08-11) --- */

@media (max-width: 600px) {
  .commercial-tile-services .commercial-card-img {
    max-width: 220px !important;
    width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.project-timelin e {
  position: relative;
  margin: 0 auto 2.5rem auto;
  padding-left: 32px;
  max-width: 650px;
  border-left: 3px solid var(--primary-blue, #0d3e5f);
}
.timeline-entry {
  position: relative;
  margin-bottom: 2.2rem;
  padding-left: 18px;
}
.timeline-dot {
  position: absolute;
  left: -37px;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8102e 55%, #0d3e5f 100%);
  box-shadow: 0 2px 12px rgba(13,62,95,0.11);
  border: 3px solid #fff;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(.68,-0.55,.27,1.55);
}
.timeline-entry:hover .timeline-dot {
  transform: scale(1.18) rotate(-8deg);
  box-shadow: 0 6px 22px rgba(200,16,46,0.18);
}
body.commercial-portfolio-page .timeline-content {
  background: #0d3e5f !important;
  color: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(13,62,95,0.08) !important;
  padding: 2.2rem 2.2rem 1.7rem 2.2rem !important;
  margin-bottom: 2rem !important;
  position: relative;
}
body.commercial-portfolio-page .timeline-content .project-title,
body.commercial-portfolio-page .timeline-content .project-desc {
  color: #fff !important;
}
@media (max-width: 700px) {
  body.commercial-portfolio-page .timeline-content {
    padding: 1.1rem 0.9rem 1rem 0.9rem !important;
    border-radius: 10px !important;
    margin-bottom: 1.1rem !important;
  }
}

/* Company History Timeline - Navy styling to match commercial portfolio */
body.page-company-history .timeline-content {
  background: #0d3e5f !important;
  color: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(13,62,95,0.08) !important;
  padding: 2.2rem 2.2rem 1.7rem 2.2rem !important;
  margin-bottom: 2rem !important;
  position: relative;
}
body.page-company-history .timeline-content .project-title,
body.page-company-history .timeline-content .project-desc {
  color: #fff !important;
}
@media (max-width: 700px) {
  body.page-company-history .timeline-content {
    padding: 1.1rem 0.9rem 1rem 0.9rem !important;
    border-radius: 10px !important;
    margin-bottom: 1.1rem !important;
  }
}

/* About Page Timeline - Navy styling to match commercial portfolio */
/* Target about page specifically - all main-page timelines except installation */
body.main-page .timeline-content {
  background: #0d3e5f !important;
  color: #fff !important;
  border-radius: 16px !important;
  padding: 0.2rem 1.5rem 1.5rem 1.5rem !important;
  box-shadow: 0 6px 24px rgba(13,62,95,0.15) !important;
  margin-bottom: 2rem !important;
  position: relative;
}
body.main-page .timeline-content .project-title,
body.main-page .timeline-content .project-desc {
  color: #fff !important;
}
@media (max-width: 700px) {
  body.main-page .timeline-content {
    padding: 0.2rem 0.9rem 1rem 0.9rem !important;
    border-radius: 10px !important;
    margin-bottom: 1.1rem !important;
  }
}

/* Installation Timeline - Distinct modern step-based design */
/* Target installation timeline specifically with unique class */
.installation-timeline .timeline-content {
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%) !important;
  color: #2c3e50 !important;
  border: 2px solid #e74c3c !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(231, 76, 60, 0.12) !important;
  padding: 2.5rem 2.5rem 2rem 2.5rem !important;
  margin-bottom: 2.5rem !important;
  position: relative;
  transition: all 0.3s ease !important;
}
.installation-timeline .timeline-content:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(231, 76, 60, 0.18) !important;
  border-color: #c0392b !important;
}
.installation-timeline .timeline-content .project-title {
  color: #e74c3c !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  margin-bottom: 1rem !important;
  position: relative;
}
.installation-timeline .timeline-content .project-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 40px !important;
  height: 3px !important;
  background: #e74c3c !important;
  border-radius: 2px !important;
}
.installation-timeline .timeline-content .project-desc {
  color: #34495e !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
}
.installation-timeline .timeline-dot {
  background: #e74c3c !important;
  border: 4px solid #ffffff !important;
  box-shadow: 0 0 0 4px #e74c3c !important;
  width: 20px !important;
  height: 20px !important;
}
@media (max-width: 700px) {
  .installation-timeline .timeline-content {
    padding: 1.8rem 1.5rem 1.5rem 1.5rem !important;
    border-radius: 16px !important;
    margin-bottom: 2rem !important;
    border-width: 1px !important;
  }
  .installation-timeline .timeline-content .project-title {
    font-size: 1.25rem !important;
  }
  .installation-timeline .timeline-content .project-desc {
    font-size: 1rem !important;
  }
}

/* FAQ Accordion Styling */
.faq-accordion {
  max-width: 100%;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #e74c3c;
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.1);
}

.faq-question {
  background: linear-gradient(135deg, #173c67 0%, #2061ba 100%);
  color: white;
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  background: linear-gradient(135deg, #0d2a4a 0%, #1a4d8f 100%);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: white;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #e74c3c;
  background: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: #e74c3c;
  color: white;
}

.faq-answer {
  background: #f8f9fb;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 2rem;
}

.faq-answer p {
  margin: 0;
  color: #34495e;
  line-height: 1.6;
  font-size: 1rem;
}

/* Mobile FAQ Styling */
@media (max-width: 700px) {
  .faq-question {
    padding: 1.2rem 1.5rem;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
  
  .faq-icon {
    width: 25px;
    height: 25px;
    font-size: 1.2rem;
    margin-left: 0.8rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 1.5rem;
  }
  
  .faq-answer p {
    font-size: 0.95rem;
  }
}

.timeline-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.2rem 1.6rem 1.1rem 1.2rem;
  box-shadow: 0 1.5px 6px rgba(32,97,186,0.09);
  position: relative;
}
.project-title {
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 0.32rem;
  color: #0d3e5f;
}
.project-desc {
  font-size: 1.01rem;
  color: #222;
  margin-bottom: 0;
}
@media (max-width: 700px) {

  .project-timeline {
    padding-left: 20px;
    max-width: 98vw;
    border-left-width: 2px;
  }
  .timeline-dot {
    left: -23px;
    width: 15px;
    height: 15px;
  }
  .timeline-content {
    padding: 0.8rem 0.7rem 0.8rem 0.8rem;
    border-radius: 8px;
  }
  .project-title {
    font-size: 1.01rem;
  }
  .timeline-entry {
    margin-bottom: 1.3rem;
  }
}
@media (max-width: 500px) {
  .service-content .checkmark-list {
    column-count: 1 !important;
  }
}
@media (min-width: 501px) and (max-width: 700px) {
  .service-content .checkmark-list {
    column-count: 2 !important;
  }
}
@media (max-width: 700px) {

  body.main-page .services-main .services-grid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  body.main-page .services-main .services-grid .service-card {
    max-width: 96vw !important;
    width: 96vw !important;
    min-width: 0 !important;
    min-height: 480px !important;
    margin: 2vw auto 24px auto !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(13,62,95,0.08) !important;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    border: 1px solid rgba(13,62,95,0.1) !important;
    transform: translateY(0) !important;
    will-change: transform, box-shadow !important;
    z-index: 2 !important;
  }
  body.main-page .services-main .services-grid .service-card-img,
  body.main-page .services-main .services-grid .service-card img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 18px 18px 0 0 !important;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1) !important;
    background: none !important;
  }
}

/* END FINAL MOBILE INSTALLATION CARD SIZING OVERRIDE */
  body.main-page .services-grid .service-card-img,
  body.main-page .services-grid .service-card img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 16px 16px 0 0 !important;
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
  }
  body.main-page .services-grid .service-card-content {
    padding: 18px 12px 14px 12px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 1 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
  body.main-page .services-grid .service-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  body.main-page .services-grid .service-features li {
    list-style: none !important;
    position: relative !important;
    padding-left: 26px !important;
    margin-left: 0 !important;
    color: #555 !important;
    font-size: 1.09em !important;
    line-height: 1.7 !important;
    transition: color 0.18s !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }
  body.main-page .services-grid .service-features li::before {
    content: '\2714';
    color: #e21b3c;
    font-size: 1.2em;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.18em;
    line-height: 1;
    margin-right: 8px;
    transform: scale(1);
    transition: transform 0.2s;
  }
  body.main-page .services-grid .service-card:hover .service-features li::before {
    transform: scale(1.2);
  }
  body.main-page .services-grid .service-card h3 {
    position: relative !important;
    color: #222 !important;
    font-weight: 700 !important;
    margin-bottom: 0.4em !important;
    font-size: 1.18em !important;
    letter-spacing: 0.01em !important;
    z-index: 2 !important;
    padding-bottom: 9px !important;
    margin-top: 0 !important;
  }
  body.main-page .services-grid .service-card h3::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    background: #e21b3c;
    border-radius: 2px;
    margin-top: 7px;
    opacity: 1;
    transition: width 0.25s;
    z-index: 2;
  }
  body.main-page .services-grid .service-card .btn {
    align-self: flex-start !important;
    margin-top: auto !important;
    transition: all 0.3s ease, transform 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    font-size: 1.08em !important;
    padding: 11px 24px !important;
    border-radius: 7px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10) !important;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%) !important;
    color: #fff !important;
    border: none !important;
  }
  body.main-page .services-grid .service-card .btn:active {
    transform: translateY(1px) !important;
  }
  body.main-page .services-grid .service-card .btn:hover {
    background: linear-gradient(90deg, #1a5a8a 0%, #2061ba 100%) !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 4px 16px rgba(13,62,95,0.13) !important;
  }
  body.main-page .services-grid .service-card .btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg,#0d3e5f,#1a6ea8);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  body.main-page .services-grid .service-card .btn:hover::after {
    opacity: 1 !important;
  }
/* --- END INSTALLATION PAGE SERVICE CARD SIZING OVERRIDE --- */

/* --- HOMEPAGE SERVICE CARDS UNIVERSAL CENTERING (2025-08-XX) --- */
body.index .services-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 2.5rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 1200px;
}
body.index .services-grid .service-card {
  max-width: 450px !important;
  width: 100%;
  margin: 0 0 2.5rem 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
}

/* --- HOMEPAGE MOBILE: FORCE WHITE BACKGROUND + CARD CENTERING + NO HORIZ SCROLL (2025-08-XX) --- */
@media (max-width: 700px) {
  html, body, body.index, body.index #page-wrapper, body.index main, body.index .main-content {
    background: #fff !important;
    background-color: #fff !important;
  }
  html, body {
    min-height: 100vh !important;
    height: 100% !important;
    overflow-x: hidden !important;
  }
  body.index .services-grid {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }
  body.index #services .service-card {
    max-width: 450px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(13,62,95,0.08) !important;
    border: 1px solid rgba(13,62,95,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
  }
}



/* --- RESIDENTIAL TILE SERVICES CARD OVERLAY (tile.html) --- */
.residential-tile-services.card-overlay, .commercial-tile-services.card-overlay {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(13,62,95,0.11);
  border: 1px solid rgba(13,62,95,0.09);
  padding: 38px 36px 34px 36px;
  margin: 38px 0 48px 0;
  position: relative;
  display: block;
}

/* DESKTOP ONLY: Fix checklist wrap and stretch image for Residential Tile Installation card */
@media (min-width: 992px) {
  .residential-tile-services.card-overlay .residential-card-media-wrap {
    display: block !important;
    overflow: hidden !important;
  }
  .residential-tile-services.card-overlay .service-content-image-float {
    float: right !important;
    display: block !important;
    width: 340px !important;
    max-width: 38vw !important;
    min-width: 200px !important;
    margin: 0 32px 16px 0 !important;
    clear: none !important;
    background: none !important;
    text-align: left !important;
  }
  .residential-tile-services.card-overlay .residential-card-img {
    width: 100% !important;
    height: 350px !important;
    min-height: 240px !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 16px rgba(13,62,95,0.09) !important;
    object-fit: cover !important;
    display: block !important;
    background: #fff !important;
  }
  .residential-tile-services.card-overlay .residential-card-text,
  .residential-tile-services.card-overlay .service-content-text-wrap {
    display: block !important;
    overflow: visible !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .residential-tile-services.card-overlay ul.checkmark-list {
    margin-top: 0 !important;
    margin-bottom: 1.5em !important;
    padding-left: 0 !important;
    clear: none !important;
    position: static !important;
    float: none !important;
    display: block !important;
    width: auto !important;
    overflow: visible !important;
  }
  .residential-tile-services.card-overlay ul.checkmark-list li {
    display: list-item !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 0 0.5em 0 !important;
    clear: none !important;
    float: none !important;
  }
  .residential-tile-services.card-overlay ul.checkmark-list li::before {
    position: absolute !important;
    left: -1.5em !important;
    top: 0 !important;
    display: inline-block !important;
    width: 1.2em !important;
    height: 1.2em !important;
  }
  /* Style tile installation headers with navy blue text and red underline */
  .residential-tile-services.card-overlay h3,
  .commercial-tile-services.card-overlay h3 {
    color: #0d3e5f !important;
    position: relative !important;
    padding-bottom: 0.5em !important;
    font-weight: 700 !important;
  }
  .residential-tile-services.card-overlay h3::after,
  .commercial-tile-services.card-overlay h3::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: #c8102e !important;
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1) !important;
  }
  /* Fix checkmarks staying with list items */
  .residential-tile-services.card-overlay ul.checkmark-list,
  .commercial-tile-services.card-overlay ul.checkmark-list {
    list-style: none !important;
    padding-left: 1.5em !important;
    margin: 0 !important;
  }
  .residential-tile-services.card-overlay ul.checkmark-list li,
  .commercial-tile-services.card-overlay ul.checkmark-list li {
    position: relative !important;
    margin-bottom: 0.5em !important;
    padding-left: 0 !important;
  }
  .residential-tile-services.card-overlay ul.checkmark-list li::before,
  .commercial-tile-services.card-overlay ul.checkmark-list li::before {
    content: '✓' !important;
    position: absolute !important;
    left: -1.5em !important;
    top: 0 !important;
    color: #c8102e !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
  }
}



.residential-card-media-wrap, .commercial-card-media-wrap {
  display: block;
}
.residential-card-img, .commercial-card-img {
  display: block;
  max-width: 100% !important;
  width: 100% !important;
}
@media (max-width: 900px) {
  .residential-card-media-wrap, .commercial-card-media-wrap {
    flex-direction: column;
    gap: 18px;
  }
  .residential-card-img, .commercial-card-img {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px 0;
    border-radius: 13px;
  }
  .residential-card-text h3, .commercial-card-text h3 {
    font-size: 1.4rem;
    margin-bottom: 13px;
  }
}
@media (max-width: 600px) {
  .residential-tile-services.card-overlay, .commercial-tile-services.card-overlay {
    padding: 13px 2vw 15px 2vw;
    margin: 24px 0 32px 0;
    border-radius: 11px;
  }
  .residential-card-img, .commercial-card-img {
    border-radius: 9px;
  }
}
.residential-card-media-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
}
.residential-card-img {
  display: block;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 200px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(13,62,95,0.09);
  padding-right: 32px; /* Added for better spacing */
  margin-right: 0; /* Remove margin-right to avoid double spacing */
  margin-bottom: 0;
  object-fit: cover;
  flex-shrink: 0;
}
.residential-card-text {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.residential-card-text h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 2rem;
  color: #0d3e5f;
  font-weight: 700;
}
@media (max-width: 900px) {
  .residential-tile-services.card-overlay {
    padding: 22px 8vw 22px 8vw;
  }
  .residential-card-media-wrap {
    flex-direction: column;
    gap: 18px;
  }
  .residential-card-img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 16px auto;
    border-radius: 13px;
    display: block;
  }
  .residential-card-text h3 {
    font-size: 1.4rem;
    margin-bottom: 13px;
  }
  .commercial-card-img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 16px auto;
    border-radius: 13px;
    display: block;
  }
}
@media (max-width: 600px) {
  .residential-card-img,
  .commercial-card-img {
    max-width: 220px;
  }
}

@media (max-width: 600px) {
  .residential-tile-services.card-overlay {
    padding: 13px 2vw 15px 2vw;
    margin: 24px 0 32px 0;
    border-radius: 11px;
  }
  .residential-card-img {
    border-radius: 9px;
  }
}
.residential-tile-services.card-overlay {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(13,62,95,0.11);
  border: 1px solid rgba(13,62,95,0.09);
  padding: 38px 36px 34px 36px;
  margin: 38px 0 48px 0;
  position: relative;
  overflow: hidden;
  display: block;
}


body.index #page-wrapper > section:not(.hero),
body.index #page-wrapper > div,
body.index #page-wrapper > .container,
body.index #page-wrapper > section {
  background: #fff !important;
}

body.index #page-wrapper > section.hero {
  background: transparent !important;
}

/* --- COMMERCIAL TILE SERVICES CARD OVERLAY (tile.html) --- */
.commercial-tile-services.card-overlay {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(13,62,95,0.11);
  border: 1px solid rgba(13,62,95,0.09);
  padding: 38px 36px 34px 36px;
  margin: 38px 0 48px 0;
  position: relative;
  overflow: hidden;
  display: block;
}
.commercial-card-media-wrap {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 32px;
}
.commercial-card-img {
  display: block;
  max-width: 340px;
  width: 38vw;
  min-width: 200px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(13,62,95,0.09);
  padding-right: 32px; /* Added for better spacing */
  margin-left: 0; /* Remove margin-left to avoid double spacing */
  margin-bottom: 0;
  object-fit: cover;
  flex-shrink: 0;
}
.commercial-card-text {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.commercial-card-text h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 2rem;
  color: #0d3e5f;
  font-weight: 700;
}
@media (max-width: 900px) {
  .commercial-tile-services.card-overlay {
    padding: 22px 8vw 22px 8vw;
  }
  .commercial-card-media-wrap {
    flex-direction: column;
    gap: 18px;
  }
  .commercial-card-img {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px 0;
    border-radius: 13px;
  }
  .commercial-card-text h3 {
    font-size: 1.4rem;
    margin-bottom: 13px;
  }
}
@media (max-width: 600px) {
  .commercial-tile-services.card-overlay {
    padding: 13px 2vw 15px 2vw;
    margin: 24px 0 32px 0;
    border-radius: 11px;
  }
  .commercial-card-img {
    border-radius: 9px;
  }
}
/* --- END COMMERCIAL TILE SERVICES CARD OVERLAY --- */

/* --- Welcome Message Section --- */
.welcome-message-section {
    padding: 0;
}

/* Welcome message container: center header by default */
.welcome-message-content {
    padding: 40px;
    text-align: center; /* Center h2 and its ::after pseudo-element */
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* REMOVED - section titles now use inline spans only */

/* Welcome message paragraph: left-align text inside, but center the block */
.welcome-message-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 900px; /* Widen the paragraph for better fit */
    margin: 20px auto 0; /* Center the block and add top margin */
    text-align: center; /* Standard body text alignment */
}

/* Mobile overrides: left-align everything in the block */
@media (max-width: 700px) {
    .section-spacing {
        margin-top: 0;
    }

    .welcome-message-content p {
        margin-bottom: 0;
    }

    .welcome-message-content h2.section-title {
        margin-bottom: 1.5rem;
    }

    .services h2 {
        margin-bottom: 1.5rem;
    }

    .welcome-message-content {
        padding-left: 0;
        padding-right: 0;
    }

    /* Override text-center on the h2 and left-align the paragraph */
    .welcome-message-content .section-title,
    .welcome-message-content p {
        text-align: left;
    }

    /* Reduce title margins on mobile to fix gap */
    .welcome-message-content .section-title,
    .services h2 {
        margin-bottom: 1.2rem !important;
    }

    /* Center the h2's underline on mobile */
    /* REMOVED - section titles now use inline spans only */
}


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

/* FINAL OVERRIDE: Force installation card width on mobile */

/* --- STYLES MERGED FROM homepage-services-mobile-fix.css (2025-08-27) --- */
/* HOMEPAGE SERVICES SECTION: MATCH INSTALLATION PAGE CARDS & BUTTONS */
@media (max-width: 700px) {
  #services .service-card {
    width: calc(100vw - 2rem) !important;
    max-width: 450px !important;
    margin: 0 auto !important;
    padding: 0 !important; /* Remove outer padding, content will handle it */
    border-radius: 16px !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
  }
    #services .service-card .service-card-content {
    padding: 18px 22px 30px 22px !important; /* Increased bottom padding for more space below button */
    overflow-wrap: break-word;
    word-wrap: break-word;
    align-self: flex-start; /* Left-align button to match header (part of left-align rule) */
    display: flex;
    flex-direction: column;
  }
  #services .service-card .btn {
    width: auto !important;
    min-width: 140px !important;
    max-width: 250px !important;
    align-self: flex-start !important;
    margin-top: auto; /* Pushes button to bottom of flex container */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    font-size: 1.08rem !important;
    border-radius: 7px !important;
    padding: 13px 18px !important;
  }
}

/* --- HOMEPAGE SERVICE CARDS: DESKTOP LAYOUT FIX (2025-08-26) --- */
/* DO NOT MODIFY THESE STYLES. They are intentionally specific to override */
/* conflicting rules and resolve persistent layout issues. */
@media (min-width: 992px) {
  body.index #services .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
  }
  body.index #services .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  body.index #services .service-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important; /* Reset padding */
    margin: 0 !important; /* Reset margin */
  }
  body.index #services .service-card-content {
    padding: 20px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }
    body.index #services .service-card .btn-primary-services {
    margin-top: auto !important;
    align-self: flex-start !important;
    width: auto !important;
    min-width: 140px !important;
    max-width: 250px !important;
    font-size: 1.08rem !important;
    border-radius: 7px !important;
    padding: 13px 18px !important;
  }
}

/* --- DEFINITIVE WELCOME MESSAGE FIX (2025-08-27) --- */
.section-spacing {
    margin-top: 2rem;
}

.welcome-message-section .welcome-message-content h2.section-title {
    color: #000 !important; /* Force black color */
}

.navy-band-section .section-title {
    color: #fff !important;
    padding-bottom: var(--spacing-sm) !important;
    margin-bottom: 2.2rem !important;
}

/* REMOVED - section titles now use inline spans only */

.navy-band-section .section-subtitle {
    margin-top: 0 !important;
}

/* Mobile: Add space above Why Choose header */

/* Mobile: Extra space below section subtitle */
@media (max-width: 700px) {

  .section-title {
    margin-bottom: 1.2em !important;
  }
  .section-subtitle {
    margin-bottom: 2.2em !important;
  }
}

/* --- HOMEPAGE SERVICES GRID & CARD ALIGNMENT OVERRIDE --- */
/* This block provides a definitive, high-specificity override to fix layout issues. */

/* Desktop First: 3-column grid */
body.index #services .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
}

body.index #services .service-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; /* Ensure card stretches */
}

body.index #services .service-card .service-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important; /* Allow content to grow */
    padding: 25px !important;
}

body.index #services .service-card .btn {
    margin-top: auto !important; /* Push button to the bottom */
    align-self: flex-start !important;
}

/* Tablet: 2-column grid */
@media (max-width: 1024px) and (min-width: 701px) {
    body.index #services .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: 1-column grid */
@media (max-width: 700px) {
    body.index #services .services-grid {
        grid-template-columns: 1fr !important;
    }
}

#page-wrapper {
  padding-top: 90px !important;
}

@media (max-width: 700px) {
  #page-wrapper {
    padding-top: 78px !important;
  }
}
/* --- END UNIVERSAL FIX FOR HEADER OVERLAP --- */

/* --- Testimonial Section --- */
.testimonial-section {
    padding: 48px 0;
    background: #f7f8fb;
}

.t-card {
  text-align: left;
}

.t-card .testimonial-avatar-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0e0e0;
}

.t-card .t-quote,
.t-card .t-author {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.t-card .t-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  color: #333;
  margin-bottom: 12px;
}

.t-card .t-author {
  font-weight: 600;
  color: #173c67;
  margin: 0;
}

/* --- Testimonial Carousel (Mobile) --- */

.t-card .t-author {
  text-align: center;
}

.testimonial-btn {
  background-color: #173c67 !important;
  color: #fff !important;
  border: none !important;
  display: inline-block !important; /* Restore original display type */
  margin-top: 24px !important;
}

.testimonial-btn:hover {
  background-image: linear-gradient(to right, #173c67, #26508c) !important;
  color: #fff !important;
}

@media (max-width: 700px) {
  .t-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .t-track::-webkit-scrollbar {
    display: none;
  }

  .t-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 0 16px;
    box-sizing: border-box;
  }
}

@media (min-width: 701px) {
  .t-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow-x: visible;
  }

  .t-card {
    text-align: center;
    width: 100%;
    scroll-snap-align: none;
  }

  .t-author {
    text-align: center;
  }

  .testimonial-btn-container {
    text-align: center;
  }
}

/* --- End Testimonial Section --- */

/* --- Why Choose Us Section --- */
/* Flat band + spacing */
.section { padding: 24px 0; }
@media (min-width: 768px){ .section { padding: 48px 0; } }
.band-alt { background: #f7f8fb; } /* soft break, tweak to your palette */
.band-white { background: #ffffff; } /* explicit white background */
.band-strong { background: #0d3e5f; color: #ffffff; } /* navy blue band with white text */

/* Ensure services section has grey background */
#services.band-alt,
.services-section.band-alt {
  background: #f7f8fb !important;
}

/* Ultra-specific override for services section background */
body.index section#services.services.services-section.band-alt.no-bottom-margin.section {
  background-color: #e8e9ed !important;
  background: #e8e9ed !important;
}

/* CTA Band - Navy blue full-width background with constrained content */
.cta-band.band-strong {
  background: #0d3e5f !important;
  color: #ffffff !important;
  width: 100% !important;
}

/* Ultra-specific override for CTA section navy background */
section#cta.cta-band.band-strong.section {
  background-color: #0d3e5f !important;
  background: #0d3e5f !important;
}

.cta-band .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

.cta-band .section-title {
  color: #ffffff !important;
  text-align: center !important;
}

.cta-band p {
  color: #ffffff !important;
  text-align: center !important;
  opacity: 0.9;
}

.cta-band .cta-buttons {
  text-align: center !important;
  margin-top: 2rem !important;
}

/* CTA Button Styling - Get an Estimate (Light Blue) */
.cta-band .btn.btn-primary.cta-main-btn {
  background: linear-gradient(135deg, #4a90e2, #357abd) !important;
  border: none !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

.cta-band .btn.btn-primary.cta-main-btn:hover {
  background: linear-gradient(135deg, #357abd, #2968a3) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4) !important;
}

/* CTA Button Styling - Phone Number (Red) */
.cta-band .btn.btn-outline.cta-phone-btn {
  background: linear-gradient(135deg, #c8102e, #a00d26) !important;
  border: 2px solid #c8102e !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

.cta-band .btn.btn-outline.cta-phone-btn:hover {
  background: linear-gradient(135deg, #a00d26, #8a0b20) !important;
  border-color: #a00d26 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4) !important;
}

/* CTA Section Title Standard Margins */
.cta-band .section-title {
  margin-top: 1rem !important;
  margin-bottom: 1.5rem !important;
}


/* Mobile spacing between CTA buttons */
@media (max-width: 700px) {
  .cta-band .cta-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
  }
  
  .cta-band .btn {
    width: 100% !important;
    max-width: 280px !important;
  }
  
  /* Standard CTA title margins on mobile */
  section#cta.cta-band .cta-text .section-title {
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
    visibility: visible !important;
    color: #ffffff !important;
    font-size: 1.3rem !important;
  }
  
}

/* Headings */
.section-title { margin: 24px 0 12px; }
.section-title-navy { color: #0d3e5f !important; }
.section-subtitle { margin: 0 0 24px; color: #556; font-size: 0.9rem; }

/* Value props grid (no cards) */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px){
  .value-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.value-item {
  text-align: center;
}
.value-item i {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}
.value-item h3 {
  margin: 8px 0 6px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.value-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #334;
}
/* --- End Why Choose Us Section --- */

/* FINAL OVERRIDE: Standardize all section headers sitewide */
.section-title,
.project-gallery .section-title,
.team-section .section-title,
.about-section .section-title {
  font-size: 1.8rem !important;
}

/* Brands section uses standard section-title font size (1.3rem) */

/* --- Definitive Padding Fix for Services/Why Choose Us Gap --- */
@media (min-width: 768px) {
  body.index .services {
    padding-bottom: 2.5rem !important;
  }
  body.index .why-choose-us {
    padding-top: 3rem !important;
  }
}

/* General Mobile Styling */
@media (max-width: 700px) {
  h2 {
    text-align: center;
  }

  .btn {
    width: 100%;
    text-align: center;
    display: block; /* Ensure the button takes up the full width */
  }

  p {
    text-align: left;
  }
}
