/* Product card image fix */
.product-image {
    width: 100%;
    display: block;
    border-radius: 8px 8px 0 0;
    box-shadow: var(--box-shadow);
}

:root {
    --primary-color: #0F3D3E;
    /* Deep teal green */
    --secondary-color: #1B5E20;
    /* Forest green */
    --accent-color: #66BB6A;
    /* Fresh green accent */
    --text-color-light: #FFFFFF;
    /* White */
    --text-color-dark: #2F2F2F;
    /* Dark charcoal */
    --highlight-color: #E8F5E9;
    /* Soft green tint */
    --box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);
    --font-family: 'Roboto', sans-serif;
}

/* Skip to Content Link for Keyboard Accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-color);
    color: var(--text-color-dark);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Active Navigation Indicator */
nav ul li a.active-nav {
    background-color: transparent;
    color: var(--text-color-light);
    box-shadow: none;
}

/* Enhanced Focus Indicators for Accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

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

.back-to-top i {
    font-size: 24px;
}

/* Header Styles */
header .nav-wrapper {
    background: linear-gradient(135deg, #0f3d3e 0%, #1b5e20 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    min-height: 70px;
}

/* Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 1200;
}

header .nav-wrapper .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

header .brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 18px;
}

nav ul.right {
    margin-left: auto;
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

nav ul li {
    display: inline-flex;
}

nav ul li a {
    color: var(--text-color-light);
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 30px;
    transition: background-color 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94), color 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: transparent;
    color: var(--text-color-light);
    transform: none;
    box-shadow: none;
    outline: none;
    outline-offset: 0;
}

nav ul li a:focus-visible {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

nav ul li a:active {
    background-color: transparent;
    color: var(--text-color-light);
    transform: none;
    box-shadow: none;
    outline: none;
}

nav ul li a.active-nav {
    /* background-color: transparent; */
    color: var(--text-color-light);
    box-shadow: none;
    font-weight: 700;
}

/* Logo Styling */
.brand-logo img.logo-img {
    height: 64px;
    max-width: 100%;
    vertical-align: middle;
    margin: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo .brand-text {
    color: var(--text-color-light);
    font-family: var(--font-family);
    font-weight: 800;
    letter-spacing: 0.4px;
    font-size: 18px;
    white-space: nowrap;
}

.brand-logo img.logo-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.form-container label {
    font-size: 50px;
    margin-bottom: 5rem;
}

/* Services Grid */
/* Services Grid (reverted to original Materialize row/col layout) */

/* Responsive Design */
@media screen and (max-width: 992px) {
    .nav-wrapper .container {
        justify-content: center;
        position: relative;
        height: 64px;
        min-height: 64px;
    }

    .brand-logo.left {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        margin-right: 0;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .brand-logo.left img.logo-img {
        height: 48px;
        max-height: 48px;
        object-fit: contain;
        display: block;
        margin-top: 0;
        margin-bottom: 0;
    }

    .brand-logo .brand-text { display: inline-block; font-size: 16px; }
}

    .sidenav-trigger { display: inline-flex; align-items: center; }
    .sidenav-trigger.right { right: 18px; left: auto; top: 16px; }
    .sidenav-trigger i.material-icons { font-size: 48px; line-height: 1; }
}

@media (min-width: 993px) {
    header .nav-wrapper .container { padding-left: 0; }
    header .brand-logo { justify-content: flex-start; padding-right: 24px; }
    nav ul li a { transition: none; border-radius: 0; box-shadow: none; }
    nav ul li a:hover,
    nav ul li a:focus {
        background-color: transparent;
        color: var(--text-color-light);
        transform: none;
        box-shadow: none;
        border: none;
        outline: none !important;
        outline-offset: 0 !important;
        border-radius: 0;
    }
    nav ul li a:active {
        background-color: transparent;
        color: var(--text-color-light);
        transform: none;
        box-shadow: none;
        border: none;
        outline: none !important;
        outline-offset: 0 !important;
        border-radius: 0;
    }
}

    nav ul li a.active-nav {
        background-color: transparent;
        color: var(--text-color-light);
        box-shadow: none;
        font-weight: 700;
        border: none;
    }


@media (max-width: 768px) {
    nav ul {
        display: none;
        /* Hide nav links on mobile */
    }

    .sidenav-trigger {
        display: inline-flex;
        align-items: center;
    }
}

/* Footer Enhancements */
.page-footer {
    background: linear-gradient(135deg, #0f3d3e 0%, #134c2c 100%);
    padding-top: 36px;
    box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.12);
}

.page-footer h5 {
    font-family: var(--font-family);
    font-weight: 800;
    letter-spacing: 0.4px;
}

.page-footer ul li a {
    color: #c8e6c9;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.page-footer ul li a:hover,
.page-footer ul li a:focus {
    color: var(--accent-color);
    transform: translateX(4px);
}

.btn,
.btn-large,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-footer p i {
    vertical-align: middle;
    margin-right: 8px;
}

.page-footer .container .row {
    margin-bottom: 12px;
}

.page-footer .contact {
    color: #e0f2f1;
    line-height: 1.7;
}

.page-footer .contact a {
    color: #e0f2f1;
    text-decoration: none;
}

.page-footer .contact a:hover,
.page-footer .contact a:focus {
    color: var(--accent-color);
}

.footer-copyright {
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer .container {
        text-align: center;
    }

    .page-footer ul li a {
        display: inline-block;
    }
}

/* Hamburger Menu Positioning */
.sidenav-trigger.right {
    position: absolute;
    right: 18px;
    top: 16px;
    z-index: 1001;
}

.sidenav-trigger { display: none; }

@media (max-width: 992px) {
    .sidenav-trigger { display: inline-flex; align-items: center; }
    .sidenav-trigger.right { right: 18px; top: 16px; left: auto; }
    .sidenav-trigger i.material-icons { font-size: 48px; line-height: 1; }
}
