/* Reset & Variables */
:root {
    --bg-cream: #fbfbfb;
    /* Lighter white/cream from new design */
    --bg-dark: #261612;
    --accent-red: #A32818;
    /* Dark red from the text in new image */
    --text-dark: #2c1e16;
    --text-light: #ffffff;
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky navbar */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* =========================================
   Navbar Styles
========================================= */
.custom-navbar {
    padding: 20px 40px;
    width: 100%;
    background-color: var(--bg-cream);
    position: relative;
    z-index: 100;
}

.nav-container {
    /* max-width: 1400px; */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nav Left Logo */
.nav-left {
    display: flex;
    align-items: start;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--accent-red);
}

.brand-logo {
    height: 35px;
    /* Adjust size based on actual logo */
    object-fit: contain;
}

.brand-name {
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav Right Menu */
.nav-right {
    display: flex;
    justify-content: flex-end;
}

.menu-btn-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--accent-red);
    font-size: 16px;
    font-weight: 700;
    transition: opacity 0.3s;
}

.menu-btn-simple:hover {
    opacity: 0.7;
}

/* =========================================
   Hero Section Text
========================================= */
.hero-section {
    /* max-width: 1500px; */
    margin: 20px auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

.hero-text-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.hero-title h1 {
    color: var(--accent-red);
    font-size: 80px;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -2px;
}

.hero-desc {
    max-width: 400px;
    text-align: left;
}

.hero-desc p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.book-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-red);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.book-link:hover {
    opacity: 0.7;
}

/* =========================================
   Banner Slider & Overlays
========================================= */
.banner-wrapper.full-width {
    width: 100%;
    position: relative;
    padding: 0;
}

.banner-slider {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    border-radius: 40px;
}

.slides-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Gradient overlay for text readability */
.slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(163, 40, 24, 0.8) 0%, transparent 100%);
    pointer-events: none;
}

.slide picture,
.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Static Overlays */
.slider-overlay-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    /* Let clicks pass through to slider */
    z-index: 10;
}

/* Left overlay text */
.overlay-left p {
    color: white;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.overlay-left .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: white;
    color: var(--accent-red);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    vertical-align: middle;
}

/* Right Glassmorphism Blocks */
.overlay-right {
    display: flex;
    gap: 15px;
    pointer-events: auto;
    /* Allow interactions if needed */
}

.glass-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    color: white;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.avatars-box {
    align-items: flex-start;
}

.avatars-group {
    display: flex;
    margin-bottom: 8px;
}

.avatars-group img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: -10px;
}

.glass-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.glass-text {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.3;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 20px;
    border-radius: 10px;
}

/* =========================================
   About Section
========================================= */
.about-section {
    padding: 80px 40px;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.about-container {
    /* max-width: 1400px; */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    gap: 50px;
}

.about-content {
    flex: 0 0 45%;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 30px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #0056ff;
    /* Blue dot from image */
    border-radius: 50%;
}

.about-title {
    font-size: 45px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #111;
}

.about-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 35px;
}

.btn-dark {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s;
}

.btn-dark:hover {
    opacity: 0.8;
}

/* Gallery Right Side */
.about-gallery-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.about-gallery {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    width: 100%;
    /* Allow scrolling on mobile, but overflow hidden for desktop aesthetic */
}

.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.gallery-card.large {
    width: 300px;
}

.gallery-card.medium {
    width: 200px;
}

.gallery-card.small {
    width: 160px;
}

.img-wrapper {
    position: relative;
    width: 100%;
}

.gallery-card.large .img-wrapper {
    height: 380px;
}

.gallery-card.medium .img-wrapper {
    height: 250px;
}

.gallery-card.small .img-wrapper {
    height: 200px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.img-label {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-text {
    padding: 15px 5px;
}

.card-text h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #111;
}

.card-text p {
    font-size: 13px;
    color: #666;
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gallery-btn {
    background: white;
    border: 1px solid #eae5e0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.gallery-btn:hover {
    background: #f4f0ec;
}

.gallery-btn i {
    font-size: 10px;
}

/* =========================================
   Gallery Grid Section
========================================= */
.gallery-section {
    padding: 80px 40px;
    background-color: var(--bg-cream);
}

.gallery-container {
    /* max-width: 1400px; */
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 45px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: #111;
}

.section-desc {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.media-item {
    flex: 1 1 280px;
    /* Base width that can grow and shrink */
    height: 300px;
    /* Fixed height for perfectly straight rows */
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #e0e0e0;
    /* placeholder bg */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-item:hover img,
.media-item:hover video {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-overlay i {
    color: white;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Dynamic Chronological Sizing Logic */
/* Flex-grow ensures NO WHITESPACE is ever left behind, regardless of screen size! */
@media (min-width: 768px) {
    .media-item:nth-child(8n + 1) {
        flex-basis: 500px;
        /* Forces this item to be much wider naturally */
    }

    .media-item:nth-child(8n + 4) {
        flex-basis: 600px;
    }

    .media-item:nth-child(8n + 6) {
        flex-basis: 400px;
    }
}

/* =========================================
   Map Section
========================================= */
.map-section {
    padding: 80px 40px;
    background-color: var(--bg-cream);
}

.map-container {
    /* max-width: 1400px; */
    margin: 0 auto;
}

.map-wrapper {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    position: relative;
    border-radius: 40px;
    /* Matches banner radius */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating info card */
.map-info-card {
    position: absolute;
    top: 40px;
    left: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    pointer-events: none;
    /* Prevents card from blocking map interactions completely */
}

.map-info-card h3 {
    font-size: 24px;
    color: var(--accent-red);
    margin-bottom: 15px;
    font-weight: 700;
}

.map-info-card p {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-info-card i {
    color: var(--accent-red);
    width: 20px;
    text-align: center;
}

/* =========================================
   Footer Section
========================================= */
.custom-footer {
    padding: 60px 40px;
    background-color: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.footer-card {
    /* max-width: 1400px; */
    margin: 0 auto;
    background: #ffffff;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 50px;
}

.footer-brand {
    flex: 0 0 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    margin-bottom: 25px;
}

.footer-logo i {
    background: #111;
    color: white;
    width: 32px;
    height: 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 16px;
}

.footer-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #111;
    font-size: 18px;
    transition: opacity 0.3s;
}

.footer-socials a:hover {
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex: 1;
    justify-content: flex-end;
}

.link-column h4 {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 25px;
}

.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-column ul li {
    margin-bottom: 15px;
}

.link-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.link-column ul li a:hover {
    color: #111;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-copyright {
    font-size: 13px;
    color: #666;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #111;
    text-decoration: underline;
}

/* =========================================
   Extraordinary Aesthetic Animations
========================================= */

/* 1. Circle Expand Reveal */
.reveal-circle {
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-circle.active {
    clip-path: circle(150% at 50% 50%);
}

/* 2. 3D Origami Fold In */
.reveal-3d {
    opacity: 0;
    transform: perspective(1200px) rotateX(-45deg) translateY(100px) scale(0.9);
    transform-origin: top;
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-3d.active {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
}

/* 3. Curtain Wipe */
.reveal-wipe {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-wipe.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* 4. Text Skew Rise */
.reveal-text-rise {
    opacity: 0;
    transform: translateY(80px) skewY(5deg);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-text-rise.active {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
}

/* 5. Continuous Floating for Glass Items */
@keyframes floatGlass {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.float-active {
    animation: floatGlass 6s ease-in-out infinite;
}

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 1024px) {
    .hero-title h1 {
        font-size: 60px;
    }

    .hero-desc {
        max-width: 300px;
    }

    .banner-slider {
        height: 50vh;
        border-radius: 30px;
    }

    .slider-overlay-content {
        bottom: 30px;
        left: 30px;
        right: 30px;
    }

    /* Footer Mobile/Tablet */
    .footer-top {
        flex-direction: column;
        gap: 50px;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 60px;
    }

    .footer-brand {
        flex: 1;
    }
}

@media (max-width: 768px) {

    .custom-navbar {
        padding: 15px 20px;
    }

    .hero-section {
        padding: 15px 10px;
    }

    .hero-text-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero-title h1 {
        font-size: 45px;
    }

    .hero-desc {
        max-width: 100%;
    }

    .banner-slider {
        height: auto;
        min-height: 600px;
        border-radius: 20px;
    }

    .slider-overlay-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        bottom: 40px;
        left: 20px;
        right: 20px;
    }

    .overlay-right {
        flex-wrap: wrap;
        width: 100%;
    }

    .glass-box {
        flex: 1;
        min-width: calc(50% - 10px);
    }

    .about-section {
        padding: 40px 20px;
    }

    .about-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .about-gallery-wrapper {
        width: 100%;
        align-items: flex-start;
    }

    .about-gallery {
        overflow-x: auto;
        padding-bottom: 30px;
        justify-content: flex-start;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
    }

    .about-gallery::-webkit-scrollbar {
        display: none;
    }

    .menu-text {
        display: none;
    }

    /* Gallery Grid Mobile */
    .gallery-section {
        padding: 40px 20px;
    }

    .media-grid {
        gap: 10px;
    }

    .media-item {
        flex: 1 1 100%;
        height: 250px;
    }

    /* Map Section Mobile */
    .map-section {
        padding: 40px 20px;
    }

    .map-wrapper {
        border-radius: 20px;
        height: 50vh;
    }

    .map-info-card {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 20px;
    }

    /* Footer Mobile */
    .custom-footer {
        padding: 20px;
    }

    .footer-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 15px;
    }
}