/* Basic Reset & Global Styles */
:root {
    --primary-bg: #F5F0E8; /* Light beige from title cards */
    --text-dark: #333;
    --text-light: #fff;
    --accent-color: #D9534F; /* Example accent, similar to active nav link */
    --button-bg: #000; /* Black for buttons */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --pattern-bg: url('img/subtle-pattern.png'); /* Create or find a subtle pattern like in the title cards */
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-bg); 
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; text-align: center; }
h2 { font-size: 2.2rem; margin-top: 2rem; text-align: center; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-dark {
    background-color: var(--button-bg);
    color: var(--text-light);
}

.btn-dark:hover {
    background-color: #444;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Adjusted padding */
}

/* Style for the logo link to remove default anchor styling */
.logo-link {
    text-decoration: none;
    color: inherit; /* Inherit color from parent, or set explicitly if needed */
    display: inline-block; /* Or block, depending on desired layout behavior */
}

/* Ensure the .logo div itself doesn't have conflicting display properties
   that might interfere with the anchor wrapping it.
   The existing .logo styles should generally be fine. */
.logo {
    display: flex;
    align-items: center;
}



.logo img {
    height: 100px; /* Adjust as needed */
    margin-right: 10px;
}


.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem; /* Adjust to match images */
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-family: var(--font-body); /* OCR shows sans-serif for nav */
    font-weight: 700;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.header-contact {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.header-contact span {
    margin-right: 15px;
}

.header-contact i {
    margin-right: 5px;
}

.header-contact a i {
    font-size: 1.2rem;
    color: var(--text-dark);
}
.menu-toggle {
    display: none; /* Hidden by default, shown on small screens */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}


/* Page Sections */
.page-section {
    display: none; /* Hidden by default */
    padding: 40px 0;
    /* background-color: #fff; */ /* REMOVED or COMMENTED OUT */
    border-top: 5px solid #e9e2d9; /* Adjusted border for contrast on beige */
}
.page-section.active {
    display: block;
}
.page-section:first-child { /* No top border for the first section (Home) */
    border-top: none;
}

/* Title Card Sections (e.g. "Home", "About" title cards) */
/* These are not part of the SPA content, but visual breaks if you were doing multi-page */
/* For SPA, the section H2 serves this purpose */

/* Home Section */
#home {
    padding: 0; /* Remove padding for full-width hero */
}
.hero-slider {
    position: relative;
    height: 70vh; /* Adjust height as needed */
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slide.active-slide {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left; /* Match image */
    color: var(--text-light);
    padding: 20px;
    z-index: 10;
}
.hero-content h1 {
    font-size: 3.5rem; /* Adjust to match */
    color: var(--text-light); /* White text on dark hero */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
}
.hero-content .contact-us-hero {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1rem;
}

.home-intro { /* This is now the full-width beige background area */
    background-color: var(--primary-bg);
    padding-top: 60px;  /* Increased padding for better spacing */
    padding-bottom: 60px;
    /* display: flex, gap, align-items: center are removed from here and moved to the wrapper */
}

.home-intro-content-wrapper { /* New wrapper for the content within home-intro */
    width: 90%;
    max-width: 1100px; /* Or your standard container width */
    margin: 0 auto;
    display: flex;
    gap: 50px; /* Increased gap to give more space, especially with a larger image */
    align-items: center;
}

.home-intro-text {
    flex: 1; /* Text part will take 1 part of the available space */
}
.home-intro-text h2 {
    text-align: left;
    font-size: 2.5rem; /* Optional: slightly larger heading for this section */
    margin-bottom: 1.5rem;
}

.home-intro-image {
    flex: 1.5; /* Image part will take 1.5 parts, making its container larger than the text's */
}
.home-intro-image img {
    width: 100%; /* Make image fill its flex container fully */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.contact-us-generic { /* For the contact us button below hero-like sections */
    display: block;
    margin: 20px auto 30px auto;
}


/* About Section */
.about-hero {
    height: 60vh; /* Adjust */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    margin-bottom: 30px; /* Space before the Contact Us button */
}
.about-quote {
    background-color: rgba(245, 240, 232, 0.85); /* Semi-transparent beige */
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
}
.about-quote p {
    font-family: var(--font-heading);
    font-size: 1.8rem; /* Match quote style */
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0;
}
#about .container h2 { text-align: left; margin-top: 1rem;}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
    margin: 30px 0;
}
.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.value-item i {
    font-size: 2rem;
    color: var(--accent-color); /* Or a dedicated icon color */
    margin-bottom: 10px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.value-item span {
    font-weight: bold;
    font-size: 0.9rem;
}
.about-image-lower {
    margin-top: 30px;
}
.about-image-lower img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}


/* Experience Section */
.meal-types {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}
.meal-type {
    flex: 1;
    text-align: center;
    cursor: pointer;
}
.meal-type img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}
.meal-type:hover img {
    transform: scale(1.03);
}
.meal-type h3 {
    font-family: var(--font-body);
    font-weight: bold;
}
.meal-type h3 i {
    margin-left: 8px;
    color: var(--accent-color);
}
#experience .container > p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#experience .container > .btn-dark {
    display: block;
    width: fit-content;
    margin: 20px auto 40px auto;
}

.testimonial-slider {
    position: relative;
    max-width: 700px;
    margin: 30px auto;
    text-align: center;
    padding: 20px;
    background-color: var(--primary-bg);
    border-radius: 8px;
}
.testimonial-item {
    display: none;
}
.testimonial-item.active {
    display: block;
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    object-fit: cover;
}
.testimonial-item h4 {
    font-family: var(--font-body);
    font-weight: bold;
    margin-bottom: 10px;
}
.testimonial-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px; /* Prevent buttons sticking to edges */
}
.testimonial-nav button {
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
}
.testimonial-nav button:hover {
    background: rgba(0,0,0,0.6);
}

/* Uniqueness Section */
.uniqueness-content {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Align items to top */
    margin-bottom: 30px;
}
.uniqueness-text {
    flex: 1.2;
}
.uniqueness-text h2 { text-align: left;}
.uniqueness-image-main {
    flex: 1;
}
.uniqueness-image-main img {
    border-radius: 8px;
    max-height: 450px;
    object-fit: cover;
}
.uniqueness-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.uniqueness-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}


/* Career Section */
.career-container {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--primary-bg);
    padding: 40px; /* Add padding to container */
    border-radius: 8px;
}
.career-image {
    flex: 1;
}
.career-image img {
    border-radius: 8px;
    max-height: 500px;
    object-fit: contain; /* To show full figures */
}
.career-text {
    flex: 1.5;
}
.career-text h2 { text-align: left; }

/* Branches Section */
.branches-intro {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens if needed, before media query kicks in */
    gap: 40px;       /* Adjust gap between text and image as desired */
    align-items: center; /* Vertically aligns items if they have different heights */
    margin-bottom: 40px;
}

.branches-text {
    flex: 1 1 55%; /* flex-grow: 1, flex-shrink: 1, flex-basis: 55% (takes slightly more than half) */
    /* Or simply: flex: 1.5; if you prefer the ratio approach and the image is flex: 1; */
    /* Or: flex-basis: 550px; /* Example fixed basis */
    min-width: 300px; /* Prevent text block from becoming too narrow */
}

.branches-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.branches-image {
    flex: 1 1 40%; /* flex-grow: 1, flex-shrink: 1, flex-basis: 40% (takes slightly less than half) */
    /* Or simply: flex: 1; if the text is flex: 1.5; */
    /* Or: flex-basis: 400px; /* Example fixed basis */
    min-width: 280px; /* Prevent image block from becoming too narrow */
    /* The image will naturally be on the right because it comes after .branches-text in the HTML */
}

.branches-image img {
    width: 100%; /* Make image fill its flex container */
    height: auto; /* Maintain aspect ratio */
    max-height: 450px; /* Optional: constrain max image height */
    object-fit: cover;
    border-radius: 8px;
}

.branches-list-container {
    margin-top: 40px; /* More space above the table */
    /* background-color: var(--primary-bg); /* This should be inherited now if page is beige */
    /* If you want the table container to have a distinct card-like feel on the beige page, you can give it a background, e.g., white or a very light beige. */
    /* background-color: #fff; /* Example if you want the container white */
    padding: 30px;
    border-radius: 12px; /* Slightly more rounded corners for a softer look */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Softer shadow */
    max-width: 900px; /* Constrain width and center it */
    margin-left: auto;
    margin-right: auto;
}

.branches-list-container table {
    width: 100%;
    border-collapse: collapse; /* Keep this */
    margin-bottom: 20px;
    border-radius: 8px; /* Optional: round corners of the table itself */
    overflow: hidden; /* Important if you round table corners and want row backgrounds to follow */
}

.branches-list-container th,
.branches-list-container td {
    text-align: left;
    padding: 15px 20px; /* Slightly more padding */
    border-bottom: 1px solid var(--border-beige-separator); /* Use your defined separator color */
}

.branches-list-container th {
    background-color: var(--darker-beige); /* Header row with darker beige */
    color: var(--text-dark); /* Ensure text is readable */
    font-family: var(--font-body);
    font-weight: bold;
    border-bottom: 2px solid var(--text-dark); /* Stronger separator for header */
}

/* Striped Rows */
.branches-list-container tbody tr {
    background-color: var(--primary-bg); /* Default row color (regular beige) */
    transition: background-color 0.2s ease; /* Smooth hover effect */
}

.branches-list-container tbody tr:nth-child(even) {
    background-color: var(--darker-beige); /* Every even row gets darker beige */
}

.branches-list-container tbody tr:hover {
    background-color: #D1C8B9; /* A distinct hover color, adjust as needed */
}

/* Remove bottom border from the last row of the table if using row backgrounds */
.branches-list-container tbody tr:last-child td {
    border-bottom: none;
}

.branches-list-container .btn-dark { /* "Show on Map" button */
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
}
:root {
    --primary-bg: #F5F0E8; /* Light beige from title cards */
    --darker-beige: #E9E2D9; /* Example darker beige - adjust as needed */
    /* ... other variables ... */
    --border-beige-separator: #E0D9CF;
}

/* Contact Section */
#contact .container h2 { margin-bottom: 30px; }
.contact-map-area {
    position: relative;
    margin-bottom: 30px;
}
.map-image {
    width: 100%;
    height: 400px; /* Adjust as needed */
    object-fit: cover;
}
.head-office-info {
    position: absolute;
    top: 50%;
    right: 5%; /* Adjust positioning */
    transform: translateY(-50%);
    background-color: var(--primary-bg); /* CHANGED TO BEIGE */
    padding: 20px;
    border-radius: 8px;
    /* Consider adjusting shadow for beige background if needed */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Slightly adjusted shadow for better visibility on beige */
    width: 300px; /* Adjust width as needed */
    border: 1px solid var(--border-beige-separator); /* Optional: Add a subtle border for definition */
}
.head-office-info h3 { margin-top: 0;}

.contact-form-container {
    max-width: 800px;
    margin: 40px auto; /* Add margin for spacing */
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 8px;
}
.contact-form-container form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group-full {
    grid-column: 1 / -1; /* Span full width */
}
.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}
.recaptcha-placeholder {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
}
.recaptcha-placeholder input { width: auto; margin-right: 10px;}
.contact-form-container button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: center; /* Center button */
    padding: 12px 30px;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-links a {
    color: var(--text-light);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    /* Apply column layout to the wrapper now for home-intro */
    .home-intro-content-wrapper, 
    .career-container, 
    .branches-intro, 
    .uniqueness-content {
        flex-direction: column;
        /* text-align: center; for the container is fine if children handle their own text-align */
        text-align: center; /* If you want text within these to center */

    }
    
    .home-intro-text {
        text-align: center; /* Center text content when stacked */
    }
    .home-intro-text h2, /* This rule can now be more specific or merged */
    .career-text h2, 
    .branches-text h2, 
    .uniqueness-text h2 {
        text-align: center;
    }

    /* Adjust image/text blocks when stacked for home-intro */
    .home-intro-text, .home-intro-image {
        flex-basis: auto; /* Reset flex-basis for column layout */
        width: 100%; /* Take full width of the column's content area */
    }
    
    .home-intro-image {
        margin-top: 30px; /* Space between text and image when stacked */
        max-width: 500px; /* Optional: constrain max image width on mobile for aesthetics */
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure other images in similar layouts are also handled */
    .career-image, .branches-image, .uniqueness-image-main {
        margin-top: 20px; /* Keep existing rule if it works for them */
        width: 100%;    /* Or 80% if desired centering on mobile for these specific images */
        /* margin-left: auto; */ /* Only if width is less than 100% for these */
        /* margin-right: auto; */ /* Only if width is less than 100% for these */
    }
    .branches-text, .branches-image {
        flex-basis: 100%; /* Make them take full width when stacked */
        width: 100%;
        text-align: center; /* Center content of text block */
    }
    .branches-text h2 {
        text-align: center;
    }
    .branches-image {
        margin-top: 30px; /* Add space above the image when stacked */
        max-width: 450px; /* Optional: constrain image width on mobile */
        margin-left: auto;
        margin-right: auto;
    }
}


@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start; /* Align logo to left */
    }
    nav {
        width: 100%;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    nav.active {
       max-height: 300px; /* Adjust as needed */
    }
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px; /* Adjust */
        right: 20px;
    }
    .header-contact {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    .logo span { font-size: 1.3rem; }

    .hero-content h1 { font-size: 2.5rem; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    .meal-types {
        flex-direction: column;
    }
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .footer-container {
        flex-direction: column;
    }
    .social-links {
        margin-top: 10px;
    }
    .social-links a { margin: 0 8px;}
}