/* === 1. Global Reset and Variables === */
:root {
    --color-primary: #949212;
    /* Vibrant Purple (Main logo color) */
    --color-primary-dark: #646311;
    /* Deepest Purple/Black for text/dark hover */
    --color-secondary: #FF9F1C;
    /* Gold/Orange accent */
    --color-whatsapp: #25d366;
    /* WhatsApp Green */
    --color-call: #FF9F1C;
    /* Matches Gold accent */
    --color-text-dark: #2A0A4A;
    /* Readable dark text */
    --color-text-light: #595959;
    /* Lighter text */
    --color-background-light: #F8F8F8;
    /* Light gray background */
    --color-white: #ffffff;
    --spacing-large: 90px;
    --spacing-medium: 45px;
    --spacing-small: 20px;
    --border-radius: 12px;
    --shadow-subtle: 0 4px 12px rgba(42, 10, 74, 0.08);
    --shadow-hover: 0 6px 18px rgba(42, 10, 74, 0.15);
    --nav-height: 90px;
}

/* === Global Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* === Utility Classes === */
/* .container { */
/* max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-small);
} */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-small);
    /* ADD THIS line */
    width: 100%;
    /* ADD THIS line - ensures padding doesn't push the max width out */
    min-width: 0;
}

.section {
    padding: var(--spacing-large) 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: var(--spacing-small);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-medium);
}

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

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
    justify-content: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

/* === Links and Logos === */
a {
    text-decoration: none;
    color: var(--color-primary);
}

a:hover {
    color: var(--color-primary-dark);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-primary-dark);
    transition: color 0.3s ease;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    font-weight: 700;
    margin-right: 10px;
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.5);
}

.navbar .logo .business-name {
    color: var(--color-text-dark);
}

.footer .logo .business-name {
    color: var(--color-white);
}

/* === Horizontal Rule === */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0;
    opacity: 0.5;
}

/* === 2. Header and Navigation === */
.header {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    padding: 0 10px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-subtle);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: var(--color-text-dark);
    font-weight: 600;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--color-primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 50px;
}

.nav-links li a:hover::after {
    width: 70%;
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    /* Hidden by default on large screens */
    font-size: 1.8em;
    cursor: pointer;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

/* === Hero Section === */
.hero {
    flex-grow: 1;
    /* NOTE: Update the image path here to match your file structure */
    background: url('..//images/IMG-20251030-WA0006.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* REDUCED OPACITY: Changed from 0.75 to 0.50 as requested */
    background-color: rgba(231, 198, 9, 0.5);
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
}

.hero-content h1 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-content .tagline {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* === 3. Section Styling === */

/* About Us */
.about-us {
    display: flex;
    align-items: center;
    gap: var(--spacing-medium);
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.about-image-container {
    flex: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.5s ease;
}

.about-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

/* Services */
.services {
    background-color: var(--color-background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-small);
    margin-bottom: var(--spacing-medium);
}

.service-card {
    background-color: var(--color-white);
    padding: var(--spacing-small);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border-bottom: 4px solid var(--color-primary);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.service-icon {
    font-size: 3em;
    color: var(--color-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--color-secondary);
    transform: rotateY(180deg);
}

.service-card h3 {
    margin-bottom: 8px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.9em;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Vision & Mission */
.vision-mission-preview {
    background-color: var(--color-white);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-medium);
}

.vision-card,
.mission-card {
    padding: var(--spacing-medium);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, border-left 0.3s ease;
    border-left: 5px solid var(--color-primary);
}

.vision-card {
    background-color: #f1e6ff;
    /* Very light purple */
}

.mission-card {
    background-color: #fff9e6;
    /* Very light gold */
    border-left: 5px solid var(--color-secondary);
    /* New gold secondary border */
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.vision-card h3,
.mission-card h3 {
    font-size: 1.8em;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.read-more {
    font-weight: 600;
    transition: margin-left 0.3s ease;
}

.read-more:hover {
    margin-left: 5px;
    text-decoration: underline;
}

/* Core Values */
.core-values {
    background-color: var(--color-background-light);
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-small);
}

.value-item {
    background-color: var(--color-white);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-subtle);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    flex-basis: 180px;
    text-align: center;
}

.value-item:hover {
    background-color: var(--color-primary);
    /* New purple background on hover */
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    color: var(--color-white);
}

.value-icon {
    font-size: 2em;
    color: var(--color-primary);
    /* New purple icon */
    transition: color 0.3s ease;
}

.value-item:hover .value-icon {
    color: var(--color-secondary);
    /* Gold icon on hover */
}

.value-item h4 {
    font-weight: 600;
}

/* Site Locations */
.site-locations {
    background: linear-gradient(rgba(218, 204, 17, 0.9), rgba(223, 226, 9, 0.9)), url('https://via.placeholder.com/1920x600?text=Subtle+Map+Background') no-repeat center center/cover;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-locations .section-title,
.site-locations .section-subtitle {
    color: var(--color-white);
    position: relative;
}

.locations-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: var(--spacing-medium);
}

.locations-list span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.locations-list span:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    cursor: default;
}

/* Gallery */
.gallery-grid {
    display: grid;
    gap: 10px;

    /* Sets up a responsive grid that defaults to 2 columns on tablets and 1 on mobile,
        but aims for 4 on larger screens for better arrangement. */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    /* Maintains a fixed, clean aspect ratio for all rows (e.g., 4:3) */
    grid-auto-rows: 187.5px;
}

/* --- Arrangement Rules (Masonry Effect) --- */
/* These special spanning rules only apply on larger screens (992px+)
    to create an elegant, visually "arranged" flow without breaking mobile view. */
@media (min-width: 992px) {

    /* Force 4 columns on larger screens for tight arrangement */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 200px;
        /* Slight height increase for desktop 4-column layout */
    }

    /* Spanning rules to create an attractive, non-uniform arrangement */
    .gallery-grid .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-grid .gallery-item:nth-child(3) {
        grid-row: span 2;
    }

    .gallery-grid .gallery-item:nth-child(5) {
        grid-column: span 2;
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    min-height: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* FAQ Section (Accordion) */
.faq {
    background-color: var(--color-background-light);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--color-white);
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    border-left: 5px solid var(--color-secondary);
    /* Gold accent border */
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.accordion-item.active {
    border-left-color: var(--color-primary);
    /* Primary purple active border */
}

.accordion-header {
    width: 100%;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-primary-dark);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content p {
    padding: 0 25px 18px 25px;
    color: var(--color-text-light);
}

/* Reviews */
.reviews {
    background-color: var(--color-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-small);
}

.review-card {
    background-color: var(--color-background-light);
    padding: var(--spacing-medium);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.star-rating {
    color: var(--color-secondary);
    /* Gold for stars */
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.reviewer-name {
    font-weight: 600;
    color: var(--color-primary-dark);
    display: block;
    margin-top: 10px;
}

/* Contact Section (Get in Touch) */
.contact {
    background-color: var(--color-primary-dark);
    /* Deep purple/black background */
    color: var(--color-white);
    text-align: center;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact .section-title {
    color: var(--color-white);
    font-size: 2.8em;
}

.contact-highlight {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: var(--spacing-medium);
}

.contact-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: var(--spacing-small);
    flex-wrap: wrap;
    max-width: 900px;
    width: 100%;
}

.contact-btn {
    flex-grow: 1;
    flex-basis: 250px;
    font-size: 1.1em;
    padding: 15px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
}

.btn-whatsapp:hover {
    background-color: #1ed155;
}

.btn-email {
    background-color: var(--color-primary);
    /* New primary purple */
    color: var(--color-white);
}

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

.btn-call {
    background-color: var(--color-call);
    /* New gold */
    color: var(--color-primary-dark);
    /* Text is now deep purple/black for contrast */
}

.btn-call:hover {
    background-color: #e58a00;
    /* Darker gold */
}

/* === 4. Footer === */
.footer {
    background-color: #1a1a1a;
    /* Very dark gray for contrast */
    color: var(--color-white);
    padding-top: var(--spacing-medium);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-medium);
    padding-bottom: var(--spacing-medium);
}

.footer-brand .logo-circle {
    background-color: var(--color-primary);
    /* New primary purple */
    box-shadow: none;
}

.footer-content h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-secondary);
    /* Gold line */
    padding-bottom: 5px;
    display: inline-block;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: #ccc;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease, margin-left 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--color-secondary);
    /* Gold hover link */
    margin-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--color-secondary);
    /* Gold icons */
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    font-size: 1.5em;
    color: var(--color-secondary);
    /* Gold social icons */
    margin-right: 15px;
}

.social-icons a:hover {
    color: var(--color-white);
}

.footer-bottom {
    background-color: #000;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
}

/* === 5. Responsive Design (Media Queries) === */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3em;
    }

    .about-us {
        flex-direction: column;
        text-align: center;
    }

    .about-image-container {
        order: -1;
        max-width: 80%;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    /* Mobile Menu Implementation */
    .nav-links {
        position: fixed;
        top: 90px;
        /* Adjusted based on navbar height */
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
        padding-top: 40px;
    }

    .nav-links.active {
        transform: translateX(0);
        box-shadow: var(--shadow-hover);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links li a {
        font-size: 1.5em;
        padding: 15px;
        display: block;
    }

    /* HAMBURGER FIX: This rule ensures the hamburger displays on mobile */
    .hamburger {
        display: block;
    }

    /* Change hamburger to 'X' */
    .hamburger.active i::before {
        content: "\f00d";
        /* Font Awesome 'X' icon */
    }

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

    /* Resetting desktop grid rules for tablet */
    .gallery-grid .gallery-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-grid .gallery-item:nth-child(3) {
        grid-row: span 1;
    }

    .gallery-grid .gallery-item:nth-child(5) {
        grid-column: span 1;
    }

    .gallery-grid .gallery-item:nth-child(5) {
        grid-row: span 1;
    }

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

    .contact-buttons-wrapper {
        flex-direction: column;
        /* Stack buttons on mobile */
    }

    .contact-btn {
        width: 100%;
        flex-basis: auto;
    }

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

    .footer-content h4 {
        margin: 20px 0 10px;
    }
}

/* Refinements for small mobile devices (e.g., screens under 576px) */
@media (max-width: 576px) {

    /* Global Spacing and Fonts */
    :root {
        --spacing-large: 60px;
        /* Reduced from 90px */
        --spacing-medium: 30px;
        /* Reduced from 45px */
    }

    /* Section Titles */
    .section-title {
        font-size: 2em;
        /* Reduced from 2.5em */
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5em;
        /* Reduced from 4em */
    }

    .hero-content .tagline {
        font-size: 1.2em;
        /* Reduced from 1.5em */
    }

    /* Navbar & Logo */
    .navbar-inner {
        padding: 0 15px;
        /* Adjust padding for better space */
    }

    .logo {
        font-size: 0.7em;
        /* Slight reduction */
    }

    .logo-circle {
        width: 35px;
        /* Smaller logo circle */
        height: 35px;
        font-size: 1em;
        margin-right: 8px;
    }

    /* About Section */
    .about-image-container {
        max-width: 100%;
        /* Image takes full width now */
    }

    /* Services Grid */
    .services-grid {
        /* Forces a single column on very small devices if minmax allows it */
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-brand,
    .footer-links,
    .footer-contact {
        padding: 0 var(--spacing-small);
        /* Add padding to prevent content hugging the edge */
    }

    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr;
        /* Forces single column reviews */
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

/* Additional check for extremely narrow phones (less than 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        /* Tighten container padding further */
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .contact .section-title {
        font-size: 2em;
    }
}


/* === 4. Footer === */
/* ... (existing code) ... */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-medium);
    padding-bottom: var(--spacing-medium);
    /* ADD THIS to ensure grid items don't overflow */
    min-width: 0;
}

/* Add this small fix to your @media (max-width: 768px) block: */
@media (max-width: 768px) {

    /* ... (existing code) ... */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        /* ADD THIS: Forces content inside grid to wrap */
        overflow: hidden;
    }

    /* ... (rest of 768px block) ... */
}

