/* === Theme Variables === */
:root {
    --primary-color: #007bff;
    --background-color: #f8f9fa; /* Unify with section background */
    --section-bg-color: #f8f9fa;
    --text-color: #333;
    --heading-color: #333;
    --header-bg-color: #fff;
    --header-text-color: #333;
    --header-link-color: #555;
    --footer-bg-color: #343a40;
    --footer-text-color: #fff;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-headings: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Basic Reset & Typography */
body {
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--header-bg-color);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding a {
    text-decoration: none;
}
.site-logo {
    max-height: 50px;
    width: auto;
    display: block;
}
.site-title-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--header-text-color);
    font-family: var(--font-headings);
}
.main-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--header-link-color);
    font-weight: 500;
    font-size: 1.2rem; /* Increased font size for better readability */
}
.main-nav a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101; /* Above the nav */
}

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

/* Main Content Sections */
main section {
    padding: 60px 0;
    text-align: center;
}

/* Hero Section */
.hero-section {
    background-color: var(--section-bg-color);
}
.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-headings);
    color: var(--heading-color);
}
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff; /* Assuming contrast is good, could be a variable too */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    font-family: var(--font-body);
}

/* Services Section */
.services-section {
    background-color: var(--background-color);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}
.service-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-info {
    padding: 1.1rem;
    background-color: var(--service-desc-bg-color, #ffffff);
}
.service-info h3 {
    margin-top: 0;
    font-family: var(--font-headings);
}
.service-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--background-color);
}
.contact-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.contact-intro {
    max-width: 700px;
    margin-bottom: 40px;
}
.contact-section a {
    color: var(--primary-color);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
    border-radius: 8px;
}
.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
}
.message.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.message.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.social-links {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}
.social-links .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}
.social-links .social-btn:hover {
    opacity: 0.85;
}
.social-btn.facebook {
    background-color: #1877F2;
}
.social-btn.whatsapp {
    background-color: #25D366;
}
.working-hours {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--section-bg-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.working-hours h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-headings);
    color: var(--heading-color);
}
.working-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.working-hours li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.working-hours li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-align: center;
    padding: 20px 0;
}
.footer-powered-by {
    text-align: center;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--section-bg-color);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    object-position: var(--focal-x, 50%) var(--focal-y, 50%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .main-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--header-bg-color, #fff);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100;
        padding-top: 60px; /* Space for header */
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav a {
        margin: 15px 0;
        font-size: 1.8rem;
    }

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

    .hamburger-box {
        width: 30px;
        height: 24px;
        display: inline-block;
        position: relative;
    }
    .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
        width: 30px;
        height: 3px;
        background-color: var(--header-link-color, #555);
        border-radius: 3px;
        position: absolute;
        transition: transform 0.2s ease-in-out;
    }
    .hamburger-inner {
        top: 50%;
        transform: translateY(-50%);
    }
    .hamburger-inner::before, .hamburger-inner::after {
        content: '';
        display: block;
    }
    .hamburger-inner::before { top: -10px; }
    .hamburger-inner::after { bottom: -10px; }

    .site-header .container {
        /* Ensure toggle is on the right */
        justify-content: space-between;
    }

    main section { padding: 40px 0; }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* For screen reader only */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    border: 0;
}

/* Styles for when a background image is active */
.has-background-image main section {
    /* The RGB values match --section-bg-color (#f8f9fa). Opacity is controlled by a variable. */
    background-color: rgba(248, 249, 250, var(--section-background-opacity, 0.92));
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 40px;
}
