/* Google fonts import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* Variables */
:root {
    /* Brand Colors */
    --highlight-color: #8fbfbf;
    --background-color: #f2f2f2;
    --text-color: #000000;
    --card-color: #ffffff;

    /* Typography */
    --heading-font: 'Raleway', sans-serif;
    --paragraph-font: 'Open Sans', sans-serif;
    --paragraph-colour: #333333;

    /* Base font size */
    --font-xs: 0.875rem;
    /* 14px */
    --font-sm: 1rem;
    /* 16px */
    --font-md: 1.25rem;
    /* 20px */
    --font-lg: 1.5rem;
    /* 24px */
    --font-xl: 2rem;
    /* 32px */
    --font-xxl: 2.5rem;
    /* 40px */

    /* Font weights */
    --fw-light: 300;
    --fw-normal: 400;
    --fw-semibold: 600;
    --fw-bold: 700;


    /* Card Styling */
    --card-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    --card-border-radius: 6px;

    /* Button Styling */
    --button-hover-color: #8fbfbf;
    --button-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);

    /* Links */
    --active-link-color: #8fbfbf;
}

/* Background and text */
body {
    position: relative;
    line-height: 1.6;
    color: var(--paragraph-colour);
    font-family: var(--paragraph-font);
}

html,
body {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}



.section {
    padding: 6rem 0;
}


.section-dark {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(143, 191, 191, 0.502));
}

.light-bg {
    background-color: #8fbfbf80;
}

.dark-bg {
    background-color: var(--highlight-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    line-height: 1.4;
}

h1,
.h1 {
    font-size: var(--font-xxl);
    font-weight: var(--fw-bold);
    margin-bottom: 1.5rem;
}

h2,
.h2 {
    font-size: var(--font-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: 15px;
}

h2 {
    margin-bottom: 1rem;
}

h3 {
    font-size: var(--font-lg);
}

h4 {
    font-size: var(--font-md);
}

h5,
.h5 {
    font-size: var(--font-md);
    font-weight: var(--fw-semibold);
}

p {
    font-size: var(--font-sm);
    font-weight: var(--fw-normal);
    font-family: var(--paragraph-font);
    line-height: 1.6;
    margin-bottom: 1rem;
}

p,
li {
    line-height: 1.8;
    font-family: var(--paragraph-font);
}

a {
    color: var(--highlight-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1em;
}

ul li {
    font-family: var(--paragraph-font);
    font-size: var(--font-sm);
}

/* Nav and footer styles */

/* Custom offcanvas nav */

/* For Dynamic navbar visibliity */

#mainNavbar {
    opacity: 1;
    visibility: visible;
    display: flex;
    background-color: #456262;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease-in-out, visibilty 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.nav-item .nav-link {
    margin-right: 80px;
    color: white;
    font-weight: var(--fw-bold);
}

.navbar .navbar-nav .nav-link.active {
    color: var(--active-link-color);
}

.navbar .navbar-nav .nav-link:hover {
    color: var(--active-link-color);
    text-decoration: none;
}

.scrolled-navbar {
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.5s ease-in-out, visibilty 0.5s ease-in-out, transform 0.5s ease-in-out;
}

body.scrolled-past-hero #mainNavbar {
    opacity: 0;
    visibility: hidden;
    display: none;
}

body.scrolled-past-hero .scrolled-navbar {
    display: flex;
    opacity: 1;
    visibility: hidden;
}


.custom-navbar {
    position: fixed;
    width: 100%;
    background-color: #456262;
    top: 0;
    left: 0;
    padding: 15px 0;
    box-shadow: none;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.navbar-contact-icons.hidden-on-offcanvas {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}



/* Navbar Scrolled State */
.custom-navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.custom-navbar .navbar-left-elements .custom-navbar .navbar-contact-icons {
    padding: 0;
    margin: 0;
}

.custom-navbar .menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: var(--font-xl);
    font-weight: var(--fw-bold);
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease-in-out;
}

.custom-navbar .menu-btn:hover {
    color: var(--highlight-color);
}

.custom-navbar .navbar-contact-icons a {
    color: white;
    font-size: var(--font-lg);
    padding: 15px;
    margin-left: 80px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.custom-navbar .navbar-contact-icons a:hover {
    color: var(--highlight-color);
}

.custom-navbar .navbar-left-elements {
    display: flex;
    align-items: center;
}

.offcanvas {
    position: fixed;
    top: 0;
    left: -400px;
    visibility: visible;
    width: 400px;
    height: 100vh;
    background-color: #456262;
    color: white;
    padding: 20px;
    z-index: 2000;
    transition: left 0.3s ease-in-out;
}

.offcanvas-header h4 {
    font-size: var(--font-lg);
    font-weight: var(--fw-bold);
    color: var(--highlight-color);
    margin-bottom: 20px;
}

.offcanvas-header img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: block;
    margin-right: 20px;
}

.offcanvas .close-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: var(--font-lg);
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.offcanvas .close-btn:hover {
    color: var(--highlight-color);
    transform: rotate(90deg);
}

.offcanvas-links {
    list-style: none;
    padding: 0;
}

.offcanvas-links li {
    margin: 15px 0;
    font-size: var(--font-md);
    font-weight: var(--fw-semibold);
    opacity: 0;
    transform: translateX(-50px);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.offcanvas-links li a:hover {
    color: var(--highlight-color);
}

.offcanvas.show .offcanvas-links li {
    opacity: 1;
    transform: translateX(0);
}

.offcanvas-contact {
    font-weight: var(--fw-bold);
}

/* Add a staggered delay to links showing on menu */
.offcanvas.show .offcanvas-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.offcanvas.show .offcanvas-links li:nth-child(2) {
    transition-delay: 0.2s;
}

.offcanvas.show .offcanvas-links li:nth-child(3) {
    transition-delay: 0.3s;
}

.offcanvas.show .offcanvas-links li:nth-child(4) {
    transition-delay: 0.4s;
}

.offcanvas.show .offcanvas-links li:nth-child(5) {
    transition-delay: 0.5s;
}

.offcanvas-links a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    visibility: hidden;
    opacity: 0;
    transition: opacity, 0.3s ease-in-out;
    z-index: 999;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
    padding-right: 17px;
}

.footer {
    padding: 20px 0;
    background-color: #456262;
}

.footer .row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
    color: #ffffff;
}

.footer a {
    display: inline-block;
    margin: 10px;
    font-family: var(--paragraph-font);
    color: #ffffff;

}

.footer i {
    font-size: 40px;
    margin: 20px auto;
    color: #ffffff;
}

.footer h3 {
    font-weight: var(--fw-bold);
    color: #ffffff;
}

.footer #dev-info a {
    font-size: var(--font-xs);
    color: #ffffff;
}

/* Alt header styles (hero) */

.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(143, 191, 191, 0.8), rgba(0, 0, 0, 0.6)),
        url("../images/new_logo.png");
    background-size: cover;
    background-position: center;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    color: white;
    max-width: 600px;
    padding: 20px;
    margin: auto;
}

.hero-content h1 {
    margin-top: 50px;
    font-size: var(--font-xxl);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--highlight-color);
}

.hero-content h2 {
    font-size: var(--font-xxl);
    font-weight: var(--fw-bold);
    color: var(--highlight-color);
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: var(--font-md);
    margin-bottom: 15px;
    line-height: 1.8;
    font-weight: var(--fw-semibold);
}


#hero-section .btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero-section .btn-container a {
    background-color: var(--highlight-color);
    color: black;
    border: 2px solid var(--highlight-color);
    font-size: var(--font-lg);
    font-weight: var(--fw-bold);
    width: 60%;
    max-width: 300px;
    padding: 15px 30px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease;
    text-decoration: none;
    margin-bottom: 15px;
}

#hero-section .btn-container a:hover {
    background-color: white;
    text-decoration: none;
    color: black;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

#hero-section .btn-container a i {
    font-size: var(--font-lg);
}

/* Card styling */
.card {
    background-color: var(--card-color);
    box-shadow: var(--card-shadow);
    border-radius: var(--card-border-radius);
    text-align: center;
}

.card:hover {
    box-shadow: var(--button-shadow);
}

/* Benefits section styling and animations */


#benefits-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#katy {
    width: 100%;
    height: auto;
    max-width: 450px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- Intro Section Styling --- */

#intro-section .container .row {
    padding-top: 20px;
    padding-bottom: 20px;
}

#intro-section .lead {
    font-size: var(--font-lg);
    color: var(--text-color);
    font-weight: var(--fw-bold);
    margin-bottom: 25px;
}

#intro-section .mission-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

#intro-section .mission-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    font-weight: var(--fw-semibold);
}

#intro-section .mission-list li i {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: var(--font-lg);
    color: var(--text-color);
}

#intro-section .col-lg-7,
#intro-section .col-md-6 {
    padding: 20px;
}

.schedule-hero {
    position: relative;
    background: radial-gradient(circle at center, rgba(143, 191, 191, 0.7), rgba(0, 0, 0, 0.6)),
        url("../images/schedule.webp");
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.schedule-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-divider {
    width: 100%;
    height: 2px;
    background-color: var(--highlight-color);
    margin: 0 auto;
}

.schedule-hero-content {
    position: relative;
    color: white;
    max-width: 600px;
    padding: 20px;
    margin: auto;
}

.schedule-hero-content h1 {
    font-size: var(--font-xxl);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--highlight-color);
}

.schedule-hero-content p {
    font-size: var(--font-lg);
    margin-bottom: 15px;
    line-height: 1.8;
}

.schedule-hero-content .btn-container a {
    background-color: var(--highlight-color);
    color: black;
    border: 2px solid var(--highlight-color);
    font-size: var(--font-lg);
    font-weight: var(--fw-bold);
    width: 60%;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease;
}

.schedule-hero-content .btn-container a:hover {
    background-color: white;
    text-decoration: none;
    color: black;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.eco-hero {
    position: relative;
    background: radial-gradient(circle at center, rgba(143, 191, 191, 0.8), rgba(0, 0, 0, 0.7)),
        url("../images/Purdy\ and\ Fig.webp");
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.eco-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.eco-hero-content {
    position: relative;
    color: white;
    max-width: 600px;
    padding: 20px;
    margin: auto;
}

.eco-hero-content h1 {
    font-size: var(--font-xxl);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--highlight-color);
}

.eco-hero-content p {
    font-size: var(--font-lg);
    margin-bottom: 15px;
    line-height: 1.8;
}

.eco-hero-content .btn-container a {
    background-color: var(--highlight-color);
    color: black;
    border: 2px solid var(--highlight-color);
    font-size: var(--font-lg);
    font-weight: var(--fw-bold);
    width: 60%;
    padding: 15px 30px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease;
}

.eco-hero-content .btn-container a:hover {
    background-color: white;
    text-decoration: none;
    color: black;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.professional-hero {
    position: relative;
    background: radial-gradient(circle at center, rgba(143, 191, 191, 0.6), rgba(0, 0, 0, 0.5)),
        url("../images/Professional.webp");
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.professional-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.professional-hero-content {
    position: relative;
    color: white;
    max-width: 600px;
    padding: 20px;
    margin: auto;
}

.professional-hero-content h1 {
    font-size: var(--font-xxl);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--highlight-color);
}

.professional-hero-content p {
    font-size: var(--font-lg);
    margin-bottom: 15px;
    line-height: 1.8;
}

.professional-hero-content .btn-container a {
    background-color: var(--highlight-color);
    color: black;
    border: 2px solid var(--highlight-color);
    font-size: var(--font-lg);
    font-weight: var(--fw-bold);
    width: 60%;
    padding: 15px 30px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease;
}

.professional-hero-content .btn-container a:hover {
    background-color: white;
    text-decoration: none;
    color: black;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: var(--font-xxl);
    color: var(--highlight-color);
    margin-bottom: 20px;
    display: block;
}

.schedule-hero-content p strong,
.eco-hero-content p strong,
.professional-hero-content p strong {
    color: var(--highlight-color);
}


/* Button styling */
.btn {
    background-color: var(--highlight-color);
    color: var(--text-color);
    border: none;
    width: 250px;
    margin-bottom: 10px;
}

.btn-secondary {
    background-color: grey;
    border: none;
}

.btn:hover {
    background-color: #ffffff;
    box-shadow: var(--button-shadow);
    color: var(--highlight-color);
    font-weight: 600;
}



.modal-footer .btn-primary:hover {
    background-color: var(--button-hover-color);
    color: var(--text-color);
    text-decoration: none;
}

.modal-footer .btn-secondary:hover {
    background-color: #6d6c6c;
    color: white;
}

/* Services page */

.services-hero {
    position: relative;
    background: radial-gradient(circle at center, rgba(143, 191, 191, 0.6), rgba(0, 0, 0, 0.5)), url("../images/service_hero_img.webp");
    background-size: cover;
    background-position: center;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.services-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.services-hero-content {
    position: relative;
    color: white;
    max-width: 600px;
    padding: 20px;
    margin: auto;
    margin-top: 50px;
}


.services-hero h1 {
    font-size: var(--font-xxl);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--highlight-color);
}

.services-hero p {
    font-size: var(--font-lg);
    margin-bottom: 15px;
    line-height: 1.8;
}

.services-hero .btn-container a {
    background-color: var(--highlight-color);
    color: white;
    border: 2px solid var(--highlight-color);
    font-size: var(--font-lg);
    font-weight: var(--fw-bold);
    width: 60%;
    padding: 15px 30px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease;
}

.services-hero .btn-container a:hover {
    background-color: white;
    text-decoration: none;
    color: var(--highlight-color);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}



.services-container {
    padding: 100px;
    text-align: center;
}

.services-container .btn-container .btn {
    background-color: white;
    color: var(--text-color);
    border: 2px solid;
    font-size: var(--font-md);
    font-weight: var(--fw-bold);
    width: 40%;
    padding: 6px 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease;
}

.services-container .btn-container .btn:hover {
    background-color: white;
    text-decoration: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.services-container p {
    font-size: var(--font-md);
}

.services-container ul li {
    font-size: var(--font-md);
}

.services-container ul {
    padding-left: 0;
    margin-left: 0;
}





#services h3 {
    text-align: center;
    font-size: var(--font-xxl);
}

#services h4 {
    font-size: var(--font-xl);
    text-align: center;
}

#services ul li {
    margin: 20px;
}

.modal-dialog {
    max-width: 90%;
}

.modal-body p,
.modal-body ul li {
    font-size: var(--font-sm);
}

.modal-body h4 {
    font-size: var(--font-md);
}

.modal-body {
    background-color: var(--background-color);
}

.modal-body .modal-body-text h2 {
    font-size: var(--font-lg);
    font-weight: var(--fw-bold);
}

/* Products page */
.products-hero {
    position: relative;
    background-image: url("../images/optimized/eco_home-480w.webp");
    background-size: cover;
    background-position: center;
    height: 606px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    z-index: -1;
}

.products-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.purdyandfig-hero {
    position: relative;
    background: radial-gradient(circle at center, rgba(143, 191, 191, 0.6), rgba(0, 0, 0, 0.5)), url("../images/purdy_fig_logo.webp");
    background-size: cover;
    background-position: center;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    z-index: -1;
}

.purdyandfig-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.rituals-hero {
    position: relative;
    background: radial-gradient(circle at center, rgba(143, 191, 191, 0.6), rgba(0, 0, 0, 0.5)), url("../images/rituals_logo.webp");
    background-size: cover;
    background-position: center;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    z-index: -1;
}

.rituals-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.asevi-hero {
    position: relative;
    background: radial-gradient(circle at center, rgba(143, 191, 191, 0.6), rgba(0, 0, 0, 0.5)), url("../images/asevi_logo.webp");
    background-size: cover;
    background-position: center;
    height: 625px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    z-index: -1;
}

.asevi-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}


/* Animations for Product cards */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Image slider */

.image-slider {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    height: 400px;
}

.slider-container {
    display: flex;
    white-space: nowrap;
    height: 400px;
    align-items: center;
}

.slider-img {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
    object-fit: cover;
    opacity: 1;
    visibility: visible;
}


.prev-btn-img,
.next-btn-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.prev-btn-img {
    left: 10px;
}

.next-btn-img {
    right: 10px;
}

.prev-btn-img svg,
.next-btn-img svg {
    width: 24px;
    height: 24px;
}

.prev-btn-img:hover,
.next-btn-img:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* slider dot styling */

.image-dots {
    position: absolute;
    background-color: black;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    /* Pull it back by half its width to truly center */
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    z-index: 10;
}

.image-dots button {
    background-color: white;
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.image-dots button.active {
    background-color: #717171;
}

.image-dots button:hover {
    background-color: #999;
    transform: scale(1.1);
}






/* Contacts Page */

/* Contact page - Optimized responsive background */
.contact-hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.contact-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-hero {
    position: relative;
    background: none; /* Remove CSS background image */
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    z-index: 2;
}

.contact-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    color: white;
    max-width: 600px;
    padding: 0;
    margin: auto;
    z-index: 3; /* Above overlay and image */
}

.contact-hero-content h1 {
    font-size: var(--font-xxl);
    color: var(--highlight-color);
}

.contact-hero-content h2 {
    font-size: var(--font-xxl);
    color: var(--highlight-color);
}


.contact-hero-content a {
    font-size: var(--font-xl);
    color: white;
}

.contact-container {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 50%;
    position: relative;
    z-index: 3; /* Above overlay and image */
    height: 50%;
    padding: 30px;
    border-radius: 15px;
}

/* Reviews section */

#reviews-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

#reviews-section h2 {
    font-size: var(--font-xxl);
    font-weight: var(--fw-bold);
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

#reviews-section p {
    font-size: var(--font-md);
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* reviews-corousel */

.reviews-carousel {
    max-width: 100%;
}

.carousel-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    min-width: 80%;
    min-height: 250px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    position: absolute;
    text-align: center;
    width: 100%;
    height: 100%;
    left: 1px;
    padding: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide .testimonial-text:first-of-type {
    font-size: var(--font-lg);
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
    /* The main quote */
}

.carousel-slide .testimonial-text:last-of-type {
    font-size: var(--font-xs);
    color: #777;
    font-weight: var(--fw-light);
    /* The client name and info */
}






/* Facebook reviews slider */

/* Media Queries */


@media (max-width: 1140px) {

    .navbar-nav {
        display: none;
    }

    .navbar-collapse.show .navbar-nav {
        display: block;
        text-align: center;
    }
}


@media (max-width: 768px) {

    #mainNavbar {
        opacity: 0;
        visibility: hidden;
        display: none;
    }

    .scrolled-navbar {
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    .modal-dialog {
        max-width: 95%;
    }

    .modal-footer .btn {
        margin: auto;
    }

    .services-hero p {
        font-size: var(--font-md);
        margin-top: 25px;
    }

    .services-hero .btn-container a {
        font-size: var(--font-md);
        padding: 8px;
        margin-top: 50px;
    }

    .services-hero-content {
        padding: 0;
        margin: auto;
    }

    .services-container {
        padding: 18px;
    }

    #domestic_clean h3 {
        font-size: var(--font-xxl);
    }

    #domestic_clean p {
        font-size: var(--font-md);
    }

    #domestic_clean h4 {
        font-size: var(--font-xl);
    }

    #domestic_clean ul li {
        font-size: var(--font-md);
        margin: 15px;
    }


    #domestic_clean .btn-container .btn {
        margin: auto;
        min-width: 60%;
    }

    #domestic_clean .btn-container {
        margin: 10px;
    }

    #ironing_service h3 {
        font-size: var(--font-xxl);
    }

    #ironing_service p {
        font-size: var(--font-md);
    }

    #ironing_service h4 {
        font-size: var(--font-xl);
    }

    #ironing_service ul li {
        font-size: var(--font-md);
        margin: 15px;
    }

    #ironing_service .btn-container .btn {
        margin: auto;
        min-width: 60%;
    }

    #ironing_service .btn-container {
        margin: 10px;
    }

    #eot_clean h3 {
        font-size: var(--font-xxl);
    }

    #eot_clean p {
        font-size: var(--font-md);
    }

    #eot_clean h4 {
        font-size: var(--font-xl);
    }

    #eot_clean ul li {
        font-size: var(--font-md);
        margin: 15px;
    }

    #eot_clean .btn-container .btn {
        margin: auto;
        min-width: 60%;
    }

    #eot_clean .btn-container {
        margin: 10px;
    }

    #deep_clean h3 {
        font-size: var(--font-xxl);
    }

    #deep_clean p {
        font-size: var(--font-md);
    }

    #deep_clean h4 {
        font-size: var(--font-xl);
    }

    #deep_clean ul li {
        font-size: var(--font-md);
        margin: 15px;
    }

    #deep_clean .btn-container .btn {
        margin: auto;
        min-width: 60%;
    }

    #deep_clean .btn-container {
        margin: 10px;
    }

    #photo-section h1 {
        font-size: var(--font-xl);
    }

    #photo-section p {
        font-size: var(--font-md);
    }

    .slider-img {
        max-width: 100%;
    }

    #intro-section .col-lg-5,
    #intro-section .col-md-6 {
        margin-bottom: 20px;
    }

    #intro-section .col-lg-7,
    #intro-section .col-md-6 {
        padding: 20px;
    }

    #intro-section .lead {
        font-size: var(--font-xl);
    }

    #intro-section p {
        font-size: var(--font-sm);
    }

    #intro-section .mission-list {
        padding-left: 0;
    }

    #intro-section .mission-list li {
        font-size: var(--font-sm);
    }

    .hero {
        padding: 40px 0;
    }

    .hero-content {
        padding: 10px;
    }

    .hero-content h1 {
        font-size: var(--font-xl);
    }

    .hero-content h2 {
        font-size: var(--font-md);
    }

    .hero-content p {
        font-size: var(--font-sm);
    }

    #hero-section .btn-container a {
        width: 90%;
        margin-bottom: 10px;
    }

    .custom-navbar .navbar-brand-logo img {
        height: 45px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .custom-navbar .menu-btn {
        font-size: var(--font-lg);
        margin-right: 10px;
        margin-left: 10px;
    }

    .row {
        display: flex;
        /* flex-direction: column-reverse; */
        align-items: center;
        text-align: center;
    }

    .image-slider {
        margin-bottom: 20px;
    }

    #benefits-section .row {
        flex-direction: column;
    }

    .col-md-6 {
        width: 100%;
    }

    .col-12 {
        width: 100%;
    }

    #contact-container .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .btn-container {
        display: flex;
        flex-direction: column;
        margin: auto;
    }

    .footer .row {
        flex-direction: column;
        align-items: center;
    }

    .footer .col-md-4 {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .hero {
        height: 500px;
    }

    .hero-content {
        padding: 10px;
    }

    .schedule-hero {
        min-height: 450px;
        padding: 20px;
    }

    .schedule-hero-content {
        max-width: 90%;
    }

    #katy {
        height: 200px;
        width: 200px;
    }

    .contact-container {
        min-width: 95%;
    }

    .contact-hero {
        min-height: 600px; /* Reduce height on mobile */
    }

    .contact-hero-content h1 {
        font-size: var(--font-xl);
    }

    .contact-hero-content h2 {
        font-size: var(--font-xl);
    }

    .contact-hero-content a {
        font-size: var(--font-lg);
        margin-left: 0;
    }

    .custom-navbar {
        width: 100%;
        height: 10%;
    }

    .custom-navbar .navbar-contact-icons a {
        display: none;
    }

    .custom-navbar .menu-btn {
        font-size: var(--font-xxl);
        font-weight: var(--fw-bold);
    }

    .custom-navbar .menu-btn span {
        display: none;
    }


    .offcanvas h4 {
        font-size: var(--font-lg);
    }

    .offcanvas-links li {
        font-size: var(--font-md);
    }

}

@media (max-width: 480px) {

    .modal-footer .btn {
        margin-bottom: 10px;
    }

    .services-hero h1 {
        font-size: var(--font-xl);
    }

    .services-hero p {
        font-size: var(--font-sm);
    }

    .services-hero .btn-container a {
        font-size: var(--font-md);
        padding: 8px;
    }

    .services-hero-content {
        padding: 0;
        margin-top: 90px;
    }

    .services-container {
        padding: 18px;
    }

    #domestic_clean h3 {
        font-size: var(--font-xl);
    }

    #domestic_clean p {
        font-size: var(--font-sm);
    }

    #domestic_clean h4 {
        font-size: var(--font-lg);
    }

    #domestic_clean ul li {
        font-size: var(--font-sm);
        margin: 15px;
    }

    #domestic_clean .btn-container a {
        margin: auto;
        min-width: 80%;
    }

    #domestic_clean .btn-container .btn {
        margin: auto;
        min-width: 80%;
    }

    #domestic_clean .btn-container {
        margin: 10px;
    }

    #ironing_service h3 {
        font-size: var(--font-xl);
    }

    #ironing_service p {
        font-size: var(--font-sm);
    }

    #ironing_service h4 {
        font-size: var(--font-lg);
    }

    #ironing_service ul li {
        font-size: var(--font-sm);
        margin: 15px;
    }

    #ironing_service .btn-container a {
        margin: auto;
        min-width: 80%;
    }

    #ironing_service .btn-container .btn {
        margin: auto;
        min-width: 80%;
    }

    #ironing_service .btn-container {
        margin: 10px;
    }

    #eot_clean h3 {
        font-size: var(--font-lg);
    }

    #eot_clean p {
        font-size: var(--font-sm);
    }

    #eot_clean h4 {
        font-size: var(--font-lg);
    }

    #eot_clean ul li {
        font-size: var(--font-sm);
        margin: 15px;
    }

    #eot_clean .btn-container a {
        margin: auto;
        min-width: 80%;
    }

    #eot_clean .btn-container .btn {
        margin: auto;
        min-width: 80%;
    }

    #eot_clean .btn-container {
        margin: 10px;
    }

    #deep_clean h3 {
        font-size: var(--font-xl);
    }

    #deep_clean p {
        font-size: var(--font-sm);
    }

    #deep_clean h4 {
        font-size: var(--font-lg);
    }

    #deep_clean ul li {
        font-size: var(--font-sm);
        margin: 15px;
    }

    #deep_clean .btn-container a {
        margin: auto;
        min-width: 80%;
    }

    #deep_clean .btn-container .btn {
        margin: auto;
        min-width: 80%;
    }

    #deep_clean .btn-container {
        margin: 10px;
    }

    #benefits-section .benefit-icon {
        font-size: var(--font-xl);
    }

    #benefits-section h1 {
        font-size: var(--font-lg);
    }

    #benefits-section p {
        font-size: var(--font-sm);
    }

    #benefits-section .btn {
        font-size: var(--font-sm);
        width: 80%;
    }

    #photo-section .gallery-text {
        margin-bottom: 0;
    }

    #photo-section h1 {
        font-size: var(--font-xl);
    }

    #photo-section p {
        font-size: var(--font-sm);
        text-align: center;
    }

    .image-slider {
        max-width: 80%;
    }

    .image-dots {
        bottom: 22%;
        gap: 4px;
    }

    #intro-section .col-lg-5,
    #intro-section .col-md-6 {
        margin-bottom: 20px;
    }

    #intro-section p {
        font-size: var(--font-xs);
    }

    #intro-section .mission-list li {
        font-size: var(--font-xs);
    }

    #hero-section .hero-content h1 {
        margin-top: 0;
        padding-top: 0;
        font-size: var(--font-lg);
        font-weight: var(--fw-bold);
    }

    #hero-section .hero-content h2 {
        font-size: var(--font-sm);
        font-weight: var(--fw-bold);
    }

    #hero-section .hero-content p {
        font-size: var(--font-xs);
        font-weight: var(--fw-bold);
    }

    #hero-section .hero-content .btn-container {
        margin-top: 60px;
    }

    #reviews-section h2 {
        font-size: var(--font-xl);
    }

    #reviews-section p {
        font-size: var(--font-sm);
        padding: 20px;
    }

    #reviews-section .testimonial-text {
        text-align: center;
        padding: 5px;
        margin-right: 50px;
    }

    .carousel-container {
        min-height: 320px;
    }

    .carousel-slide {
        left: 20px;
        padding: 0;
    }

    .contact-container {
        padding: 5px;
    }

    .contact-hero-content h1 {
        font-size: var(--font-lg);
    }

    .contact-hero-content h2 {
        font-size: var(--font-lg);
    }

    .contact-hero-content a {
        font-size: var(--font-xs);
        margin-left: 0;
    }

    .custom-navbar .navbar-contact-icons a {
        display: none;
    }

    .custom-navbar {
        width: 100%;
        height: 10%;
    }

    .custom-navbar .menu-btn {
        font-size: var(--font-xl);
        font-weight: var(--fw-bold);
    }

    #offcanvas-menu .offcanvas-contact {
        font-size: 0.8rem;
    }

    .offcanvas {
        width: 80%;
    }

    .offcanvas h4 {
        font-size: var(--font-md);
    }

    .offcanvas-links li {
        font-size: var(--font-sm);
        text-align: center;
    }

}

/* Responsive Background Images */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-hero {
        background-image: url("../images/optimized/eco_home-768w.webp");
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .products-hero {
        background-image: url("../images/optimized/eco_home-1024w.webp");
    }
}

@media (min-width: 1201px) {
    .products-hero {
        background-image: url("../images/optimized/eco_home.webp");
    }
}

/* Preload critical images for better performance */
@media (prefers-reduced-motion: no-preference) {
    body::before {
        content: '';
        display: none;
        background-image: 
            url("../images/optimized/Katy_pic-480w.webp"),
            url("../images/optimized/client_photo_1-480w.webp");
    }
}

