/*
 * Complete Stylesheet for Cantón de Argovia Landing Page
 * Version: Elegant & Modern
 * Date: June 27, 2025
 */

:root {
    /* --- Color Palette --- */
    --primary-color: #006972; /* A deep, elegant teal */
    --secondary-color: #FFC107; /* A warm accent gold/yellow */
    --light-bg-color: #F8F9FA;
    --white-color: #FFFFFF;
    --dark-text-color: #212529;
    --body-text-color: #6C757D;
    --subtle-border-color: #E9ECEF;
    --font-family: 'Montserrat', sans-serif;

    /* --- Fluid Typography Variables using clamp() --- */
    /* clamp(MINIMUM_SIZE, PREFERRED_SIZE, MAXIMUM_SIZE) */
    --font-size-hero:     clamp(2.5rem, 1.5rem + 5vw, 4.0rem);
    --font-size-subtitle: clamp(1.1rem, 0.8rem + 1vw, 1.5rem);
    --font-size-h2:       clamp(1.325rem, 1.2rem + 1vw, 1.9rem);
    --font-size-h3:       clamp(1.3rem, 1.2rem + 1vw, 1.6rem);
    --font-size-body:     clamp(0.95rem, 0.9rem + 0.25vw, 1.0rem);
    --font-size-small:    clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: transparent;
    -webkit-tap-highlight-color: transparent
}

/* --- Base & General Styles --- */
body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--dark-text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

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

h2 {
    font-size: var(--font-size-h2);
    font-weight: 400;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color,  #FFC107);
    text-transform: uppercase;
    line-height: 1.5
}

section {
    padding: 80px 0;
    position: relative;
}

section p {
    font-size: var(--font-size-subtitle);
    line-height: 1.7;
    text-align: center
}

/* --- Top Navigation --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    z-index: 900;
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-container {
    margin: 0 18px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.nav-menu-button {
    display: none;
}

.mobile-menu-toggle {
    color: #ffffff
}

.nav-links {
    flex: 1;
}
.nav-links a {
    margin: 0 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0;
    height: 52px;
    line-height: 52px;
    display: inline-block;
    width: auto;
}
.nav-links a:hover {
    color: #8BC34A;
    box-shadow: inset 0px -3px #66952f
}
.centered-logo-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.centered-logo-wrapper img {
    height: 40px;
    display: block;
}
.top-nav.scrolled .centered-logo-wrapper {
    opacity: 1;
    pointer-events: auto;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: flex-end;
}
.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.user-link:hover {
    color: #66952f;
}
.user-link .c_icon {
    font-size: 24px !important;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.phone-link:hover {
    color: #8BC34A;
}
.phone-link .bmdc-icon {
    font-size: 20px !important;
}

/* Centered Logo Styling */
.centered-logo-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none; /* Make it non-interactive when invisible */
    transition: opacity 0.4s ease;
}
.centered-logo-wrapper img {
    height: 48px;
    display: block;
}

.top-nav.scrolled {
    background-color: #ffffff;
}

.top-nav.scrolled .mobile-menu-toggle, .top-nav.scrolled .nav-links a, .top-nav.scrolled .user-link, .top-nav.scrolled .phone-link {
    color: #000000!important
}

.top-nav.scrolled .centered-logo-wrapper {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1080px) {
    .nav-links { 
        display: none; 
    }
    .nav-menu-button { 
        display: flex; 
    }
    .user-link span { 
        display: none; /* Hide user name on mobile */
    }
}

/* --- Mobile Sidebar & Overlay --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #212529;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}
.mobile-sidebar.open {
    transform: translateX(0);
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
}
.sidebar-header h3 {
    color: var(--white-color);
    margin: 0;
}
.close-sidebar { cursor: pointer; color: var(--white-color); }
.sidebar-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.sidebar-links a {
    color: var(--white-color);
    text-decoration: none;
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* --- Section overlay --- */
.section-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgb(0 0 0 / 72%), rgba(0, 0, 0, 0.3)) }

/* --- Banner Section --- */
.banner {
    height: 100vh;
    background: url('/img/landing/banner-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: bottom;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white-color);
}

.banner-overlay {
    background: linear-gradient(to bottom, rgba(16, 95, 77, 0.84), rgba(255, 230, 112, 0.42))
}

.banner-content { z-index: 1; }
.banner-text {
    text-shadow: 0px 3px 4px #000000
}
.banner-logo { max-width: 150px; margin-bottom: 20px; }
.banner-title { font-size: var(--font-size-hero); margin: 0; font-weight:300; }
.banner-slogan { font-size: var(--font-size-subtitle); margin-top: 20px; margin-bottom: 20px}

.banner-language-switcher { position: absolute; bottom: 30px; right: 30px; z-index: 2; background-color: rgba(0,0,0,0.3); padding: 8px 12px; border-radius: 20px; backdrop-filter: blur(5px); }
.banner-language-switcher a, .banner-language-switcher span { color: var(--white-color); text-decoration: none; margin: 0 5px; font-weight: 500; transition: color 0.2s ease; }
.banner-language-switcher a.active { color: var(--secondary-color); font-weight: bold; }
.banner-language-switcher span { color: rgba(255,255,255,0.5); }

/* --- Announcement section --- */

.announcements-section {
    padding: 80px 0;
    overflow: hidden;
    background:url('/img/landing/section-announcements-bg.png');
    background-size: cover;
    background-color: #f3b402;
    background-position: center;
    background-attachment: fixed;
}

.announcements-section h2 {
    text-align: center;
    color: #000000
}

/* --- Carousel Styles --- */
.announcements-container {
    max-width: 900px; /* Set a max-width for the carousel for better viewing on large screens */
    margin: 0 auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 400px; /* Give the carousel a consistent height */
    object-fit: cover;
    display: block;
    filter: brightness(0.7); /* Darken image slightly to make text pop */
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white-color);
}

.carousel-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.carousel-caption p {
    font-size: 1rem;
    line-height: 1.6;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark-text-color);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: var(--white-color);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

@media (max-width: 640px) {
    .carousel-item img {
        height: 310px
    }
}

@media (max-width: 440px) {
    .carousel-item img {
        height: 240px
    }
}


/* --- Call to action --- */
.cta-section {
    background-size:cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
}

/* --- Reservations Section --- */
.reservations-section {
    background: url('/img/landing/section-reservation-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff
}

.reservation-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.reservation-content {
    flex: 1; /* Each column takes up equal space */
    
}

.reservation-content h2 {
    color: inherit;
}

.reservation-content p {
    color: inherit;
}

.reservation-form-wrapper {
    flex: 1;
    background-color: var(--white-color);
    border-radius: 16px;
    border: 1px solid var(--subtle-border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    width:100%
}

.reservation-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for date fields */
    gap: 20px;
}

.reservation-form .c_button {
    width: 100%;
    grid-column: 1 / -1
}

/* Make the last three fields span the full width */
.reservation-form > *:nth-child(n+3) {
    /*grid-column: 1 / -1;*/
}

.reservation-contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
.contact-method {
    padding: 20px;
    border: 1px solid var(--subtle-border-color);
    border-radius: 12px;
    background-color: var(--white-color);
    color: #000000
}
.contact-method .bmdc-icon {
    font-size: 36px !important;
    color: var(--primary-color);
}
.contact-method h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}
.contact-method a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}


@media (max-width: 600px) {
    .reservation-form {
        grid-template-columns: 1fr; /* Stack all form fields vertically on small screens */
    }
}

/* --- Features Section --- */
.features-section {
    overflow: hidden;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.feature-card {
    background: rgba(0, 106, 116, 0.04);
    border: 1px solid var(--subtle-border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.feature-icon-wrapper {
    margin: 0 auto 25px auto;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 105, 114, 0.2);
    color: var(--secondary-color)
}
.feature-card .bmdc-icon {
    font-size: 40px !important;
    color: var(--white-color);
}
.feature-card h3 {
    font-size: var(--font-size-h3);
    color: var(--dark-text-color);
    margin-bottom: 15px;
    font-weight: 700;
}
.feature-card p {
    color: var(--body-text-color);
    line-height: 1.7;
    font-size: var(--font-size-body);
}


/* --- Gallery Section --- */
.gallery-section {

}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.3s ease; }
.gallery-item img:hover { transform: scale(1.05); }

/* --- Reviews Section --- */
.reviews-section {
    background: url('/img/landing/section-reviews-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center
}

.reviews-section h2 {
    color: #ffffff
}

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.review-card { 
    background: rgba(255, 255, 255, 0.92); 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    border: 1px solid var(--subtle-border-color);
    backdrop-filter: blur(6px);
}
.review-rating { color: #FFC107; font-size: 1.4rem; }
.review-comment {
    font-size: 1rem;
    text-align: left
}
.review-author {
    color: var(--primary-color)
}

/* --- Contact Section --- */
.contact-section {
    background: url('/img/landing/section-contact-bg.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff;
}
.contact-section h2 { color: inherit }
.contact-wrapper { display: flex; align-items: center; gap: 60px; }
.contact-content { flex: 1; }
.contact-content p { color: inherit; }
.contact-form-wrapper {
    flex: 1; 
    background-color: rgba(250, 250, 250,  0.95);  
    border-radius: 16px; 
    border: 1px solid var(--subtle-border-color);
    backdrop-filter: blur(6px);
    width: 100%;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .c_textfield {
    width:100%
}

.contact-form .c_button {
    width: 100%;
}

.contact-form, .reservation-form {
    padding: 45px 24px 28px 24px;
    gap: 32px;
}

/* --- Footer Section --- */
.footer {
    background: url('/img/landing/section-footer-bg.png');
    background-color: var(--dark-text-color); 
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    color: var(--white-color); padding-top: 50px;
}
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-column a { color: #ccc; text-decoration: none; display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.footer-bottom { text-align: center; padding: 20px 0; margin-top: 30px; border-top: 1px solid #444; font-size: var(--font-size-small); }

.footer-column p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px
}

.footer-column h3 {
    margin-bottom: 10px
}

.language-select-wrapper {
    display: flex;
    gap: 12px
}

.section-wrapper {
    display: flex;
    align-items: center;
    gap: 60px
}

.section-wrapper-meta {
    flex: 1
}

.section-wrapper-content {
    flex: 1
}

@media (max-width: 992px) {
    section h2, section p {
        text-align: center !important
    }
    .section-wrapper {
        flex-direction: column !important; /* Stack the columns on top of each other */
        gap: 40px;
    }
    /* Use the 'order' property to change the visual stacking order on mobile */
    .section-wrapper-content {
        order: 1; /* This will appear first */
    }
    .section-wrapper-meta {
        order: 2; /* This will appear second */
    }

/* --- General Responsive Styles --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-menu-button { display: block; }

    .reservation-form {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .contact-section h2 {
        text-align: center;
    }
    .contact-content {
        text-align: center;
    }
}

@media (max-width: 380px) {
    section {
        padding: 60px 0; /* Reduce section padding on small screens */
    }

    .features-grid {
        gap: 20px; /* Reduce gap between cards for a tighter layout */
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr))
    }

    .feature-card {
        padding: 25px; /* Reduce padding inside cards */
    }
    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    .feature-card .bmdc-icon {
        font-size: 36px !important;
    }
}

