:root {
    --primary: #64746A;
    --primary-dark: #4D5A52;
    --primary-light: #9BA391;
    --secondary: #F79007;
    --dark: #17252A;
    --light: #F5F5F1;
    --accent: #D6CFC2;
    --google-blue: #4285F4;
    --google-red: #DB4437;
    --google-yellow: #F4B400;
    --google-green: #0F9D58;
    --gray-light: #f8f9fa; /* For backgrounds like GMB section */
    --gray: #e9ecef;       /* For borders or subtle dividers */
    --gray-dark: #6c757d;  /* For secondary text */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

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

a:hover {
    color: var(--secondary);
}

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

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(245, 245, 241, 0.95); /* --light with opacity */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(245, 245, 241, 0.98);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 40px;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px; /* Ensure visibility on smaller viewports */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://esprit-terroir.com/wp-content/uploads/2022/11/cropped-IMG_0811-scaled-3.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px; /* Account for fixed header */
}

.hero h1 {
    color: var(--light);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero .hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* About Section */
.about {
    background-color: var(--light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.about-img img {
    border-radius: 8px;
    transition: var(--transition);
}
.about-img:hover img {
    transform: scale(1.03);
}
.about-text h2::after { /* Specific to non-centered h2 */
    left: 0;
    transform: none;
}

/* Services Section */
.services {
    background-color: var(--accent);
    padding: 7rem 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.service-img {
    height: 250px;
    overflow: hidden;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.service-card:hover .service-img img {
    transform: scale(1.05);
}
.service-content {
    padding: 25px;
}
.service-content h3 {
    margin-bottom: 15px;
}
.service-content a {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
}
.service-content a svg {
    margin-left: 5px;
    transition: var(--transition);
}
.service-content a:hover svg {
    transform: translateX(5px);
}

/* Gallery Section */
.gallery {
    padding: 7rem 0;
}
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px; /* Fixed height for consistent look */
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay span {
    color: var(--light);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Google My Business Section */
.google-business {
    background-color: var(--gray-light);
    padding: 6rem 0;
}

.google-business .section-title p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0.5rem auto 0;
}


.google-business-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Give more space to info */
    gap: 40px;
    margin-bottom: 3rem;
    align-items: flex-start; /* Align items at the top */
}

.google-business-info {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.google-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.google-logo {
    height: 30px;
    margin-right: 20px;
}

.google-rating-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for rating elements */
}

.google-rating {
    font-size: 2.5rem;
    font-weight: 700;
    margin-right: 15px;
    color: var(--dark);
}

.rating-stars {
    display: flex;
    margin-right: 15px;
}

.rating-stars svg {
    color: var(--google-yellow);
    width: 20px;
    height: 20px;
    margin-right: 2px;
}

.review-count {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.google-business-data {
    display: grid;
    grid-template-columns: 1fr; /* Single column for contact and hours */
    gap: 30px;
}

.business-hours h3, .business-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.business-contact .contact-item {
    display: flex;
    align-items: flex-start; /* Align icon and text nicely */
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.business-contact .contact-item svg {
    margin-right: 10px;
    color: var(--primary);
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-top: 3px; /* Align icon with first line of text */
}
.business-contact .contact-item span {
    color: var(--dark);
}


.google-map {
    height: 100%;
    min-height: 450px; /* Ensure map has enough height */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray);
    font-size: 0.95rem;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    font-weight: 600;
    color: var(--dark);
}

.hours-item .time {
    color: var(--gray-dark);
}

.hours-item.today {
    background-color: rgba(15, 157, 88, 0.08); /* Lighter green */
    padding: 8px 10px;
    margin: -8px -10px; /* Counteract padding to maintain alignment */
    border-radius: 4px;
}
.hours-item.today .day {
    color: var(--google-green);
}
.hours-item.today .day::after {
    content: " (aujourd'hui)";
    font-weight: 400;
    font-size: 0.85em;
    color: var(--google-green);
}
.open-status {
    font-weight: bold;
    margin-top: 10px;
    font-size: 1rem;
}

/* Google Reviews Section Styling */
.google-reviews-section {
    margin-top: 4rem;
}

.google-reviews-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 2rem;
}

.loading-reviews, .no-reviews-message {
    grid-column: 1 / -1; /* Span all columns */
    text-align: center;
    padding: 30px 20px;
    color: var(--gray-dark);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}
.no-reviews-message p {
    margin-bottom: 15px;
}
.no-reviews-message a {
    color: var(--google-blue);
    font-weight: 600;
    text-decoration: underline;
}

.review-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* background-color set by JS */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.review-author {
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--dark);
}

.review-date {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.review-stars {
    display: flex;
    margin-bottom: 12px;
}

.review-stars svg.star-icon { /* Target SVGs inside .review-stars specifically */
    color: var(--google-yellow);
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

.review-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark);
    flex-grow: 1; /* Allows card to expand if content is long */
}

.google-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.google-actions .btn {
    min-width: 220px; /* Give buttons some width */
}

/* Map Info Window */
.map-info-window {
    padding: 10px;
    max-width: 300px;
    font-family: var(--font-body);
}
.map-info-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}
.map-info-address {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--dark);
}
.map-info-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.map-info-rating-score {
    font-weight: 600;
    margin-right: 8px;
    color: var(--dark);
}
.map-info-rating-stars svg {
    color: var(--google-yellow);
    width: 16px;
    height: 16px;
}
.map-info-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.map-info-button {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
    background-color: var(--primary-light);
    color: white !important; /* Override default link color */
    text-decoration: none;
    transition: var(--transition);
    border: none;
}
.map-info-button:hover {
    background-color: var(--primary);
    color: white !important;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: var(--light);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.faq-question {
    background-color: var(--primary-light);
    color: var(--light);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover {
    background-color: var(--primary);
}
.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--light);
    font-family: var(--font-body); /* FAQ question with body font */
    font-weight: 500;
}
.faq-question .icon {
    transition: var(--transition);
    color: var(--light);
}
.faq-answer {
    background-color: white; /* Slightly different from main bg for contrast */
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
    color: var(--dark);
}
.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px; /* Large enough for content */
}
.faq-item.active .faq-question .icon {
    transform: rotate(180deg);
}

/* CTA Section */
.cta {
    background-color: var(--primary);
    color: var(--light);
    text-align: center;
    padding: 5rem 0;
}
.cta h2 {
    color: var(--light);
    margin-bottom: 1.5rem;
}
.cta h2::after {
    background-color: var(--light); /* Adjust underline color for contrast */
}
.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
}
.cta .btn {
    background-color: var(--light);
    color: var(--primary);
}
.cta .btn:hover {
    background-color: var(--secondary);
    color: var(--light);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 4rem 0 2rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}
.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}
.footer h4 {
    color: var(--light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.2rem;
}
.footer h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--light);
    opacity: 0.8;
    transition: var(--transition);
}
.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--light);
    transition: var(--transition);
}
.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .menu {
        position: fixed;
        top: 0; /* Align with top of screen */
        right: -300px; /* Start off-screen */
        width: 280px;
        height: 100vh; /* Full height */
        background-color: var(--light);
        flex-direction: column;
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items vertically */
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition */
        z-index: 1000;
    }
    .menu.active {
        right: 0;
    }
    .menu li {
        margin: 20px 0; /* Increased spacing */
    }
    .menu a {
        font-size: 1.2rem; /* Larger font for easier tapping */
    }
    .hamburger {
        display: block;
        z-index: 1001; /* Ensure hamburger is above menu when closed */
        position: relative; /* For z-index to work as expected */
    }
    .hamburger.active span:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2){
        opacity: 0;
    }
    .hamburger.active span:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-container {
        grid-template-columns: 1fr;
    }
    .about-img {
        order: -1; /* Image on top on mobile */
        margin-bottom: 30px;
    }

    .google-business-container {
        grid-template-columns: 1fr;
    }
    .google-map {
        height: 350px; /* Adjust map height */
        margin-top: 30px; /* Space above map on mobile */
    }
    .google-business-data {
        grid-template-columns: 1fr; /* Ensure single column */
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    .services, .gallery, .google-business {
        padding: 5rem 0;
    }
    .hero-content {
        padding-top: 100px;
    }
    .hero .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .hero .btn {
        width: 100%;
        max-width: 280px; /* Slightly wider buttons */
        margin-bottom: 10px;
    }

    .reviews-container {
        grid-template-columns: 1fr; /* Single column for reviews */
    }

    .google-actions {
        flex-direction: column;
        align-items: center;
    }
    .google-actions .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-container > div {
        margin-bottom: 30px;
    }
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%); /* Center underline */
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    .navbar {
        padding: 15px 0;
    }
    .header.scrolled .navbar { /* Ensure padding is consistent when scrolled */
        padding: 15px 0;
    }
    .logo img {
        height: 40px;
    }
    .header.scrolled .logo img {
        height: 35px;
    }

    .google-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .google-logo {
        margin-bottom: 15px;
    }
    .google-rating-container {
        margin-bottom: 10px; /* Space below rating */
        flex-direction: column;
        align-items: flex-start;
    }
    .google-rating {
        margin-bottom: 5px;
    }
    .rating-stars {
        margin-right: 0;
        margin-bottom: 5px;
    }
    .hours-grid { /* From original contact section, not used now, but if re-purposed */
        grid-template-columns: 1fr;
    }
}
