:root {
     --primary-color: #3e2723; /* Dark Brown */
    --secondary-color: #5d4037; /* Medium Brown */
    --accent-color: #d7ccc8; 
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #fff;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Add padding to the top of the main content on sub-pages to account for fixed header */
.page-main {
    padding-top: var(--header-height);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; color: var(--primary-color); }
h3 { font-size: 1.5rem; color: var(--secondary-color); }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

section {
    padding: 60px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

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

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
}

/* Header */
#header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent; /* Transparent by default */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img { height: 50px; content: url('./3_White_logo_on_color1_143x71.jpg'); transition: all 0.3s ease; } #header.scrolled .logo img { content: url('./1_Primary_logo_143x71.jpg'); }

#header.scrolled .logo img {
    filter: none;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

#header.scrolled .nav-menu a {
    color: var(--text-color);
}

#header .header-btn {
    transition: background-color 0.3s, border-color 0.3s;
}

#header.scrolled .header-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

#header.scrolled .header-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#header.scrolled .nav-menu a:hover, .nav-menu a:hover {
    color: var(--secondary-color);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}
.nav-menu a:hover::after {
    width: 100%;
}

.arrow-down {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

li.dropdown:hover .arrow-down {
    transform: rotate(180deg);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 250px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: var(--text-color);
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}
.dropdown-menu li a::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.mobile-menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

#header.scrolled .mobile-menu-toggle div {
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;

    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(62, 39, 35, 0.7), rgba(93, 64, 55, 0.5));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .swiper-button-next, .hero .swiper-button-prev {
    color: var(--white);
    z-index: 3;
}

/* About Us Section */
.about-us {
    background-color: var(--light-gray);
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.values {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

/* Services Section */
.services {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    text-align: left;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(62, 39, 35, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* Partners Section */
.partners-section {
    background-color: var(--light-gray);
    text-align: center;
}
.partners-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
}
.partners-grid img {
    max-height: 60px;
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partners-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Partner Page Grid */
.partners-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.partner-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background-color: var(--white);
    aspect-ratio: 1 / 1; /* Make it square */
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 77, 64, 0.1);
}

.partner-card img {
    max-width: 100%;
    max-height: 80px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}
.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
}
.cta-section p {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--light-gray);
    padding-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}
.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    
}
footer h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
footer a {
    color: var(--light-gray);
    transition: color 0.3s;
}
footer a:hover {
    color: var(--accent-color);
}
footer ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #555;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Sub-page Specific Styles */
.page-header {
    background-color: var(--primary-color);
    padding: 40px 0;
    color: var(--white);
}
.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--white);
}

.owner-section .owner-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

.content-grid-reversed {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.values-grid {
    display: grid;
    gap: 30px;
}
.value-item-full h3 {
    margin-bottom: 0.5rem;
}
.value-item-full ul {
    list-style: disc;
    padding-left: 20px;
}

.service-details {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}
.service-details:last-child {
    margin-bottom: 0;
}
.service-details ul {
    list-style: disc;
    padding-left: 20px;
}
.service-details ul li {
    margin-bottom: 0.5rem;
}
.service-details p {
    margin-bottom: 0.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.contact-item {
    margin-bottom: 1.5rem;
}
.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}
.contact-item p {
    margin: 0;
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}
.contact-form button {
    width: 100%;
}
#form-status {
    margin-top: 1rem;
    font-weight: 600;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 36px;
    height: 36px;
}

/* Responsive */
@media(max-width: 992px) {
    .nav-menu {
        position: absolute;
        right: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - var(--header-height));
        padding: 40px 0;
        text-align: center;
        transition: right 0.4s ease-in-out;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        gap: 20px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a, #header.scrolled .nav-menu a {
        color: var(--text-color);
        font-size: 1.2rem;
    }
    
    .dropdown {
        position: static;
    }
    .dropdown-menu {
        position: static;
        display: none; /* Hidden by default */
        box-shadow: none;
        background-color: #f0f0f0;
        border-radius: 0;
        margin-top: 10px;
        min-width: unset;
        width: 100%;
    }
    .dropdown:hover .dropdown-menu {
        display: none; /* Disable hover opening on mobile */
    }
    .dropdown.active .dropdown-menu {
        display: block; /* Open with JS */
    }
    .dropdown-menu li a {
        padding: 15px;
        text-align: center;
    }
    .arrow-down {
        display: inline-block;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001; /* Above nav menu */
    }
    .header-btn {
        display: none;
    }
    
    /* Toggle animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    body.nav-open {
        overflow: hidden; /* Prevent scrolling when menu is open */
    }
}

@media(max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .content-grid, .content-grid-reversed {
        grid-template-columns: 1fr;
    }
    .content-grid-reversed .owner-text {
        order: 2;
    }
    .content-grid-reversed .owner-image {
        order: 1;
    }

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

    .partners-page-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}