@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,300;0,400;0,700;1,400;1,700&family=Work+Sans:wght@300;400;500&display=swap');

/*
Theme Name: La Grange de Dourlers
Author: Antigravity
Description: Un thème sur mesure pour La Grange de Dourlers, compatible avec HBook.
Version: 1.0
Author URI: https://lagrangededourlers.fr
*/

:root {
    /* Colors - The Curated Estate Palette */
    --color-primary: #745b00;
    --color-primary-container: #f5c419;
    --color-secondary-green: #3a4a3a; /* The green from the 'Vos Avis' image */
    --color-surface: #fcf9f8;
    --color-on-surface: #1b1c1c;
    --color-surface-container-low: #f6f3f2;
    --color-surface-container-lowest: #ffffff;
    --color-outline-variant: rgba(209, 197, 172, 0.2);
    
    /* Typography */
    --font-headline: 'Epilogue', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 48px;
    --spacing-xxl: 80px;
}

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

body {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-headline);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Layout Utilities */
.container {
    width: 100%;
    padding: 0 var(--spacing-lg);
    margin: 0 auto;
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

/* Navigation - Updated Header Style */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    backdrop-filter: blur(20px);
    background: rgba(252, 249, 248, 0.9);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* Wider for desktop feel */
}

.logo {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.4rem;
    color: #2b3a2b;
    font-style: italic;
    display: flex;
    gap: 6px;
    letter-spacing: -0.02em;
}

.logo span {
    font-weight: 400; /* Matching 'de Dourlers' which is slightly thicker in the image */
}

/* Desktop Navigation Links */
.nav-links {
    display: none; /* Hidden on mobile by default */
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
}

.nav-links a {
    font-family: var(--font-headline);
    font-size: 0.95rem;
    color: #6b756b;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #2b3a2b;
}

.btn-reserve {
    background: #3a4a3a; /* Dark olive green from image */
    color: #ffffff;
    padding: 10px 24px;
    font-family: var(--font-headline);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-reserve:hover {
    background: #2b3a2b;
    opacity: 1;
}

/* Overlay Menu Adjustments */
.menu-links a {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    color: #2b3a2b;
}

.close-menu {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: none;
    border: none;
    font-family: var(--font-headline);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Hero Fullscreen Overlay Style */
.hero-fullscreen {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    isolation: isolate; /* Create new stacking context */
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Content is 2 */
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* Slight zoom for dramatic effect */
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2; /* Over image wrapper (z:1) */
}

.hero-tag {
    font-family: var(--font-headline);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: var(--spacing-md);
    display: block;
    color: var(--color-primary-container); /* Gold/Primary highlight */
}

.hero-fullscreen h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3); /* Subtle depth */
}

.hero-fullscreen .hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    color: #ffffff;
    opacity: 0.95;
    line-height: 1.4;
}

/* Image blocks with asymmetry */
.image-block {
    position: relative;
    margin: var(--spacing-xxl) 0;
}

.image-block img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 2px;
}

.image-caption {
    margin-top: var(--spacing-md);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-headline);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-surface-container-lowest);
}

.btn-secondary {
    border: 1px solid var(--color-outline-variant);
}

/* Layout Utilities - Grid System */
.grid-asymmetric {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.grid-item-6 {
    width: 100%;
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 var(--spacing-xxl);
    }
    
    .hero h1 {
        font-size: 6rem;
    }
    
    .grid-asymmetric {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: var(--spacing-lg);
    }

    .grid-item-6 {
        grid-column: span 6;
    }
}

/* Reviews Section Styles */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: var(--color-surface-container-lowest);
    padding: var(--spacing-lg);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
}

.review-card::before {
    content: 'G';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(0,0,0,0.05); /* Subtle Google G */
}

.stars {
    color: #fbbc04; /* Google Star Yellow */
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.review-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: var(--spacing-lg);
}

.review-author {
    font-family: var(--font-headline);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-author::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--color-primary);
}

.google-link {
    text-align: center;
    margin-top: var(--spacing-xl);
    font-family: var(--font-headline);
    font-weight: 500;
    color: var(--color-secondary-green);
    text-transform: none;
}

/* Booking Styles - [x] Define Booking Styles in style.css */
.booking-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-headline);
}

.booking-card {
    background: #fff;
    padding: var(--spacing-xl);
    border-radius: 8px;
    border: 1px solid var(--color-outline-variant);
}

.booking-form input, .booking-form select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--color-outline-variant);
    border-radius: 4px;
    font-family: var(--font-body);
}

.booking-form input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.booking-form .error {
    border-color: #ba1a1a;
}

/* Carousel Styles - Refined Horizontal Overlay Nav */
.carousel-container {
    position: relative;
    margin: var(--spacing-xl) 0;
    overflow: hidden;
    border-radius: 24px;
    height: 40vh; /* Better proportion */
}

@media (min-width: 1024px) {
    .carousel-container {
        height: 70vh; /* Taller for desktop */
    }
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav-overlay {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, background 0.2s ease;
    font-size: 1.5rem;
    color: var(--color-on-surface);
}

.carousel-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #1b1c1c;
    transform: scale(1.2);
}

/* FAQ / Accordion Styles - Premium Look */
.faq-section {
    margin: var(--spacing-xxl) 0;
    background-color: #f9f9f9; /* Subtle grey background for the whole section */
    padding: var(--spacing-xxl) 0;
}

.faq-title-area {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.faq-title-area h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1b1c1c;
    margin-bottom: var(--spacing-sm);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.faq-item {
    background: #ffffff;
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.1rem;
    color: #2b3a2b;
    cursor: pointer;
}

.faq-question::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2.5px solid var(--color-primary);
    border-bottom: 2.5px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-right: 10px;
}

.faq-item.active .faq-question::after {
    transform: rotate(-135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Large enough for content */
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
    padding: 0 var(--spacing-lg) var(--spacing-xl);
    color: #444;
    border-top: 1px solid #f0f0f0;
}

/* Booking System - Custom HBook Layout */
.booking-page-container {
    padding-top: var(--spacing-xxl);
    min-height: 80vh;
}

.booking-stepper {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
    position: relative;
    padding: 0 var(--spacing-lg);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 2;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-surface-container-low);
    color: var(--color-on-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--color-outline-variant);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.step-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.step.active .step-label {
    opacity: 1;
    color: var(--color-primary);
}

/* Booking Cards */
.booking-selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .booking-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.booking-card {
    background: var(--color-surface-container-lowest);
    border: 1px solid var(--color-outline-variant);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.booking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.booking-card.selected {
    border: 2px solid var(--color-primary);
}

.booking-card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.booking-card-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.booking-price {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-top: var(--spacing-sm);
    font-weight: 700;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-outline-variant);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-on-surface);
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.booking-step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.booking-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-summary-box {
    background: var(--color-surface-container-low);
    padding: var(--spacing-xl);
    border-radius: 12px;
    margin-top: var(--spacing-xl);
}

.booking-search-bar {
    background: #fff;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xxl);
}

@media (min-width: 1024px) {
    .booking-search-bar {
        grid-template-columns: repeat(4, 1fr);
        align-items: end;
    }
}

/* Fix for WordPress Admin Bar */
.admin-bar nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar nav {
        top: 46px;
    }
}

/* --- HBOOK CUSTOM INTEGRATION --- */
.hb-wrapper {
    font-family: inherit !important;
}
.hb-wrapper h1, .hb-wrapper h2, .hb-wrapper h3, .hb-wrapper h4, .hb-wrapper .hb-title {
    font-family: var(--font-headline) !important;
    color: var(--color-on-surface) !important;
}
.hb-wrapper .hb-btn, .hb-wrapper button, .hb-wrapper input[type="button"], .hb-wrapper input[type="submit"] {
    background-color: var(--color-primary) !important;
    color: var(--color-on-primary) !important;
    border-radius: 4px !important;
    font-family: var(--font-sans) !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    transition: opacity 0.3s ease !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
}
.hb-wrapper .hb-btn:hover, .hb-wrapper button:hover {
    opacity: 0.9 !important;
}
.hb-wrapper input, .hb-wrapper select, .hb-wrapper textarea {
    border-radius: 4px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    font-family: var(--font-sans) !important;
    background-color: transparent !important;
}
