/* ========================================
   FONTS (Self-hosted for GDPR compliance)
   ======================================== */

/* Lato Font Family */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/public/assets/fonts/Lato-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/public/assets/fonts/Lato-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/public/assets/fonts/Lato-Bold.woff2') format('woff2');
}

/* Playfair Display Font Family */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/public/assets/fonts/PlayfairDisplay-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/public/assets/fonts/PlayfairDisplay-Bold.woff2') format('woff2');
}
/* ========================================
   CSS VARIABLES & GLOBAL STYLES
   ======================================== */
   :root {
    --primary-color: #5a7a6a;
    --secondary-color: #c9b79c;
    --background-color: #f4f1ea;
    --text-color: #333;
    --light-text-color: #f4f1ea;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 15px;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --focus-outline: 2px solid var(--secondary-color);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--secondary-color);
}

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

/* Utility Class for Screen Readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Error Message Styling */
.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #ffebee;
    border-left: 3px solid #d32f2f;
    border-radius: 4px;
    animation: errorFadeIn 0.3s ease;
}

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

.error {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2) !important;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

section {
    padding: 80px 0;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */
.cta-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    margin-left: 30px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(90, 122, 106, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    background-color: #4a6658;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 122, 106, 0.4);
}

.cta-button:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.cta-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   NAVIGATION
   ======================================== */
header {
    background: rgba(244, 241, 234, 0.95);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 5px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    flex-grow: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color var(--transition-speed) ease;
    position: relative;
    padding: 5px 0;
}

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

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

.nav-links a:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%) scale(1.25);
    z-index: -2;
    object-fit: cover;
    filter: blur(10px);
    opacity: 0;
    animation: videoFadeIn 1.5s ease-out forwards;
    /* Performance optimizations */
    will-change: opacity, filter;
}

@keyframes videoFadeIn {
    0% { filter: blur(10px); opacity: 0; }
    50% { filter: blur(3px); opacity: 0.7; }
    100% { filter: blur(0px); opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    opacity: 0;
    animation: overlayFadeIn 0.8s ease-out 0.3s forwards;
}

@keyframes overlayFadeIn {
    to { opacity: 1; }
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: contentFadeInUp 0.8s ease-out 0.5s forwards;
    z-index: 1;
    position: relative;
}

@keyframes contentFadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--light-text-color);
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: 1px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.hero-word {
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
    animation: wordFadeIn 0.8s ease-out forwards;
}

.hero-word:nth-child(1) { animation-delay: 0.7s; }
.hero-word:nth-child(2) { animation-delay: 0.9s; }

@keyframes wordFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-word:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: textFadeIn 0.8s ease-out 1.3s forwards;
}

@keyframes textFadeIn {
    to { opacity: 1; }
}

.hero .cta-button {
    background-color: transparent;
    border: 2px solid var(--light-text-color);
    opacity: 0;
    transform: translateY(20px);
    animation: buttonFadeIn 0.8s ease-out 1.5s forwards;
}

@keyframes buttonFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero .cta-button:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

/* ========================================
   PHILOSOPHY SECTION
   ======================================== */
.philosophy {
    background-color: #fff;
    padding: 100px 0;
    text-align: center;
}

.philosophy-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    text-align: left;
}

.philosophy-text {
    flex: 1;
    padding-bottom: 80px;
}

.philosophy-text h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.text-carousel {
    position: relative;
    min-height: 100px;
    margin-bottom: 30px;
}

.text-chunk {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #555;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    padding: 0 10px;
    box-sizing: border-box;
}

.text-chunk.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.text-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px 0;
    background-color: rgba(244, 241, 234, 0.5);
    border-radius: 10px;
    position: relative;
    z-index: 10;
}

.text-nav-btn {
    background: none;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
    padding: 0;
    margin: 0 10px;
}

.text-nav-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: scale(1.05);
}

.text-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.text-nav-btn:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.text-indicators {
    display: flex;
    gap: 8px;
    margin: 0 15px;
}

.text-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color var(--transition-speed) ease;
    cursor: pointer;
}

.text-indicators .indicator.active {
    background-color: var(--primary-color);
}

.philosophy-images {
    flex: 1;
    position: relative;
    height: 450px;
    min-height: 300px;
}

.main-image, .small-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.main-image {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.small-image {
    position: absolute;
    width: 60%;
    height: 50%;
    border-radius: var(--border-radius);
    bottom: -30px;
    right: -30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 5px solid #fff;
}

.philosophy-outro {
    max-width: 700px;
    margin: 0 auto;
}

.philosophy-outro p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.6;
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team {
    background-color: var(--background-color);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.team-bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 241, 234, 0.85);
}

.team .container {
    position: relative;
    z-index: 2;
}

.team-intro {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.team-intro p {
    font-size: 1.1rem;
    color: #555;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.team-member {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.team-member:hover, .team-member.active {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.team-member-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.team-member:hover .team-member-bg {
    transform: scale(1.05);
}

.team-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
}

.member-photo {
    display: block; /* Show the round portrait icons */
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed) ease;
    z-index: 3;
}

.team-member:hover .member-photo {
    transform: scale(1.1);
}

.team-member-content {
    position: relative;
    z-index: 2;
}

.team-member h4 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    margin-bottom: 5px;
    text-align: left;
}

.team-member .specialty {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: left;
    font-weight: 500;
}

.team-member .description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-bottom 0.5s ease;
}

.team-member:hover .description {
    max-height: 100px;
    margin-bottom: 20px;
}

.team-member .experience {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

.team-member .experience i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.team-member-actions {
    display: flex;
    justify-content: flex-start;
}

.team-member .book-btn {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    text-decoration: none;
    display: inline-block;
}

.team-member .book-btn:hover {
    background-color: #4a6658;
}

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

/* ========================================
   SERVICES & PRICING GALLERY
   ======================================== */
.services-pricing-gallery {
    background-color: #fff;
}

.gallery-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.gallery-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0); /* GPU acceleration */
}

.gallery-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--light-text-color);
    padding: 40px;
    text-align: center;
}

.gallery-slide-content h3 {
    font-size: 2.2rem;
    color: var(--light-text-color);
    margin-bottom: 10px;
}

.gallery-slide-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 10px;
}

.gallery-control {
    background-color: var(--primary-color);
    border: none;
    color: var(--light-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 50px;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
}

.gallery-control:hover {
    background-color: #4a6658;
    transform: translateY(-2px);
}

.gallery-control:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.gallery-indicators {
    text-align: center;
    margin-top: 20px;
}

.indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.indicator.active {
    background-color: var(--primary-color);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background-color: var(--background-color);
    padding: 100px 0;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    z-index: 2;
}

.map-placeholder-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 400px;
}

.map-placeholder-content i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.map-placeholder-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.map-placeholder-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.95;
}

.map-placeholder-content .cta-button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    margin-left: 0;
}

.map-placeholder-content .cta-button:hover {
    background-color: var(--background-color);
    transform: translateY(-2px);
}

/* Contact Info Card */
.contact-info-card {
    background-color: white;
    padding: 48px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
    font-family: var(--font-heading);
    text-align: left;
}

/* Contact Info Items */
.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 4px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.contact-info-item > div {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-value {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.contact-cta-button {
    margin-top: 8px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 16px 32px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 50px;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.contact-cta-button:hover {
    background-color: #4a6658;
    transform: translateY(-2px);
}

/* Contact Map Card */
.contact-map-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 500px;
    background-color: #f0f0f0;
}

.contact-map-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Map Consent Button */
.map-consent-button {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    margin-top: 20px;
}

.map-consent-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ========================================
   BOOKING MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    text-align: center;
    flex: 1;
    color: var(--primary-color);
}

.modal-header .close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-header .close:hover, .modal-header .close:focus {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-50%) scale(1.1);
    outline: none;
}

.calendar-placeholder {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    font-family: var(--font-body);
}

.calendar-header {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-nav button {
    background: none;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
    padding: 0;
}

.calendar-nav button:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: scale(1.05);
}

.month-year-select {
    display: flex;
    gap: 10px;
}

.month-year-select select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    color: var(--secondary-color);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.calendar-day:hover {
    background-color: #e9e9e9;
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: #ccc;
    cursor: default;
}

.calendar-day.other-month:hover {
    background-color: #f9f9f9;
    transform: none;
}

.calendar-day.available {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: bold;
}

.calendar-day.available:hover {
    background-color: #c8e6c9;
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.time-slots {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.time-slots h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.time-slot-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.time-slot {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.time-slot.selected {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    border-color: var(--secondary-color);
}

.time-slot.disabled {
    opacity: 0.45;
    pointer-events: none;
    background: #f2f2f2;
    color: #999;
    border-color: #e0e0e0;
}

#booking-confirmation-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#booking-confirmation-form .form-group {
    margin-bottom: 18px;
}

#booking-confirmation-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-color);
}

#booking-confirmation-form input[type="email"],
#booking-confirmation-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#booking-confirmation-form input[type="email"]:focus,
#booking-confirmation-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(90, 122, 106, 0.2);
    outline: none;
}

#booking-confirmation-form .cta-button {
    width: 100%;
    padding: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    margin-left: 0;
}

.booking-section {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

#confirmation-message {
    display: none;
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

#confirmation-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.close-confirmation {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.close-confirmation:hover {
    color: var(--text-color);
}

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

.confirmation-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.confirmation-icon i {
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

#confirmation-message h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#confirmation-message p {
    margin: 0 0 10px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.5;
}

.booking-form-container {
    transition: all 0.5s ease;
}

.booking-form-container.hide {
    opacity: 0;
    transform: translateY(20px);
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.confirmation-message-container {
    opacity: 0;
    transform: translateY(20px);
    height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.confirmation-message-container.show {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    padding: 20px 0;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    color: var(--light-text-color);
}

.legal-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.legal-links li {
    margin-bottom: 10px;
}

.legal-links a {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ========================================
   COOKIE BANNER & LEGAL MODALS
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    z-index: 3000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-right: 20px;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.cookie-btn.accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn.accept:hover {
    background-color: #4a6658;
}

.cookie-btn.reject {
    background-color: transparent;
    color: white;
    border: 1px solid #999;
}

.cookie-btn.reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cookie-btn.settings {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn.settings:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.legal-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.legal-modal.show {
    display: block;
}

.legal-modal .modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.legal-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-modal .modal-header h2 {
    margin: 0;
    text-align: left;
    color: var(--primary-color);
}

.legal-modal .close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
}

.legal-modal .close-modal:hover {
    color: var(--text-color);
}

.legal-modal .modal-body {
    padding: 30px;
    color: var(--text-color);
    line-height: 1.6;
}

.legal-modal .modal-body h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-modal .modal-body h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-modal .modal-body p {
    margin-bottom: 15px;
}

.legal-modal .modal-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-modal .modal-body a:hover {
    text-decoration: underline;
}

.cookie-options {
    margin: 30px 0;
}

.cookie-option {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.cookie-option p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.cookie-btn.save {
    background-color: var(--secondary-color);
    color: white;
}

.cookie-btn.save:hover {
    background-color: #b9a589;
}

.cookie-btn.accept-all {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn.accept-all:hover {
    background-color: #4a6658;
}

.modal-body {
    padding: 40px;
    text-align: center;
}

#successModal {
    z-index: 2100;
}

#successModal.show {
    animation: fadeIn 0.3s ease;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #4a6658;
    transform: translateY(-3px);
}

#backToTop:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 968px) {
    .philosophy-content {
        flex-direction: column;
    }
    .philosophy-images {
        height: 350px;
        margin-top: 30px;
        width: 100%;
    }
    .small-image {
        width: 50%;
        height: 40%;
        bottom: -15px;
        right: -15px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-info-card {
        padding: 32px 24px;
        gap: 24px;
    }
    
    .contact-info-card h3 {
        font-size: 1.5rem;
    }
    
    .contact-cta-button {
        width: 100%;
        text-align: center;
    }
    
    .contact-map-card {
        height: 350px;
    }
    .month-year-select {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links, header .cta-button {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(244, 241, 234, 0.98);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 15px;
    }
    .nav-links.active li {
        margin: 0;
    }
    .nav-links.active a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .nav-links.active a:last-child {
        border-bottom: none;
    }
    
    /* Mobile CTA button in menu */
    header .cta-button.mobile-only {
        display: block;
        margin: 20px 0 0 0;
        width: 100%;
        text-align: center;
    }
    
    nav {
        padding: 15px 20px;
    }
    
    .logo {
        margin-right: 20px;
    }
    
    /* Hero section */
    .hero-background {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .hero h1 {
        font-size: 3rem;
        line-height: 1.2;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
    
    .hero-word:hover {
        transform: translateY(-2px);
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    /* Philosophy section */
    .philosophy-images {
        height: 280px;
        width: 100%;
        margin: 20px auto;
    }
    
    .small-image {
        width: 45%;
        height: 35%;
        bottom: -10px;
        right: -10px;
    }
    
    .philosophy-text h3 {
        font-size: 1.8rem;
    }
    
    .text-chunk {
        font-size: 1rem;
    }
    
    .text-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .text-nav-btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* Other sections */
    .philosophy-outro p {
        font-size: 1.1rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    h2 {
        font-size: 2rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        height: 95vh;
        margin: 2.5% auto;
    }
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    .calendar-nav {
        order: 2;
    }
    .month-year-select {
        order: 1;
    }
    
    /* Modal close button */
    .modal-header .close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        right: 15px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
    }
    
    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Legal modals */
    .legal-modal .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .legal-modal .modal-body {
        padding: 20px;
    }

    /* Back to Top Button */
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   HIDE MOBILE ELEMENTS ON DESKTOP
   ======================================== */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    header, footer, .modal, .cookie-banner, #backToTop, .team-member-actions, .cta-button, .gallery-controls, .text-nav {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        background: #fff;
        color: #000;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
        background: none;
    }
    
    .hero-background, .hero-overlay {
        display: none;
    }
    
    .hero-content {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .hero h1, .hero p {
        color: #000;
        text-shadow: none;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .team-member, .gallery-slide {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    /* Contact section adjustments */
    .contact {
        padding: 60px 0;
    }
    
    .contact-info-item {
        gap: 12px;
    }
    
    .contact-info-item i {
        font-size: 1.2rem;
        width: 24px;
    }
    
    .contact-label, .contact-value {
        font-size: 0.9rem;
    }
}