/*
Theme Name: Montfort Resort
Theme URI: https://montfortretreat.com
Author: Antigravity
Author URI: https://antigravity.ai
Description: A luxury resort theme for Montfort Retreat, Munnar. Custom built with Bootstrap 5 and GSAP.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: montfort-resort
Tags: resort, luxury, bootstrap, custom-theme
*/

:root {
    --primary-green: #2d5a27;
    --gold-accent: #c8a97e;
    --light-cream: #f8f5f0;
    --dark-text: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

.font-heading {
    font-family: var(--font-heading) !important;
}

.font-body {
    font-family: var(--font-body) !important;
}

/* Typography & Utilities */
.text-gold {
    color: var(--gold-accent) !important;
}

.bg-gold {
    background-color: var(--gold-accent) !important;
}

.text-green {
    color: var(--primary-green) !important;
}

.bg-green {
    background-color: var(--primary-green) !important;
}

.bg-cream {
    background-color: var(--light-cream) !important;
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--gold-accent);
    margin: 1rem auto 0;
}

.invisible-on-load {
    opacity: 0;
}

/* Components */
.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    padding: 0.8rem 2rem;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #234720;
    border-color: #234720;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: 0;
    padding: 0.8rem 2rem;
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.btn-book-header {
    background-color: var(--gold-accent);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
}

.btn-book-header:hover {
    background-color: var(--primary-green);
    color: var(--white) !important;
}

@media (max-width: 991px) {
    .btn-book-header {
        background-color: var(--gold-accent) !important;
    }
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
    border-radius: 0;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

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

/* Navigation */
.navbar {
    transition: all 0.4s ease;
    padding: 1.5rem 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
}

@media (max-width: 991px) {
    .navbar {
        background: #ffffff !important;
        padding: 0.8rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar .bi-list {
        color: var(--primary-green) !important;
    }

    .navbar .nav-link {
        color: var(--dark-text) !important;
    }
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.0rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white) !important;
    text-align: center;
}

.navbar-brand small {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 4px;
    opacity: 0.8;
    margin-top: 4px;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--white) !important;
    opacity: 1;
}

.btn-book-header {
    background-color: var(--white);
    border: 1px solid var(--white);
    color: var(--dark-text);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-book-header:hover {
    background-color: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--white);
}

.hero-pre-title {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-title-large {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 3rem;
}

.btn-hero-pill {
    background-color: white;
    color: black;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-hero-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .navbar {
        background: #1a1a1a;
    }

    .hero-title-large {
        font-size: 2.5rem;
    }
}

.site-header {
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}

.site-header.header-hide {
    transform: translateY(-100%);
}

.navbar.scrolled {
    background: var(--white);
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    color: var(--white);
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-green);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.navbar.scrolled .nav-link {
    color: var(--dark-text) !important;
}

.nav-link:hover {
    color: var(--gold-accent) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    background-color: black;
}

.heroSwiper .swiper-slide {
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    /* Default handled by inline style or template */
    animation: kenburns 30s infinite alternate ease-in-out;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 6px;
    background: var(--white);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 2rem;
    font-weight: bold;
}

.swiper-button-next,
.swiper-button-prev {
    transition: all 0.3s;
    opacity: 0.7;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.1);
}



/* ACF Video Hero (YouTube) */
.acf-video-hero {
    position: relative;
    min-height: var(--acf-video-hero-min-height-desktop, 520px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #000;
    background-image: var(--acf-video-hero-bg-desktop);
    background-size: cover;
    background-position: center;
}

.acf-video-hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.acf-video-hero__iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.acf-video-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.acf-video-hero__content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.acf-video-hero__inner {
    max-width: 720px;
}

.acf-video-hero__title {
    font-size: clamp(2.25rem, 3vw, 3.5rem);
    margin-bottom: 1.25rem;
}

.acf-video-hero__description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.acf-video-hero--text-light {
    color: var(--white);
}

.acf-video-hero--text-dark {
    color: var(--dark-text);
}

.acf-video-hero--align-center .acf-video-hero__inner {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media (max-width: 767px) {
    .acf-video-hero {
        min-height: var(--acf-video-hero-min-height-mobile, 420px);
        background-image: var(--acf-video-hero-bg-mobile, var(--acf-video-hero-bg-desktop));
    }

    .acf-video-hero--fallback-mobile .acf-video-hero__iframe {
        display: none;
    }

    .acf-video-hero__fallback-slider {
        display: block !important;
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .acf-video-hero__fallback-slider .swiper-slide {
        width: 100%;
        height: 100%;
    }

    .fallback-slide-img {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }
}

.acf-video-hero__fallback-slider {
    display: none;
}

/* Facility Card */
.facility-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    transition: background 0.3s;
}

.facility-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.facility-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold-accent);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stars {
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: #151515;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
    font-size: 0.9rem;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--gold-accent);
}




/* Animations */
@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    section,
    .site-footer {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .site-header {
        overflow: visible !important;
        width: 100%;
        max-width: 100%;
    }

    .container,
    .container-fluid {
        overflow: visible;
    }

    @media (max-width: 767px) {
        .row {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        .container,
        .container-fluid {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }
    }

    #hero,
    .heroSwiper .swiper-slide {
        height: 60vh !important;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 4px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse .nav-link {
        color: var(--dark-text) !important;
    }
}

/* --- Extracted from Front Page --- */

/* About Section Hover */
.hover-bg-dark:hover {
    background-color: var(--dark-text) !important;
    color: var(--white) !important;
    border-color: var(--dark-text) !important;
}

.hover-text-white:hover {
    color: var(--white) !important;
}



.hover-gold:hover {
    color: var(--gold-accent) !important;
    border-color: var(--gold-accent) !important;
}

/* Gallery Items */
.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

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

/* Video Gallery Helper */
.videoSwiper {
    padding-bottom: 3rem;
    /* Space for pagination */
}

.videoSwiper .swiper-slide {
    height: auto;
    transition: transform 0.3s ease;
}

.videoSwiper .swiper-slide:hover {
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form-minimal .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 10px 0;
    margin-bottom: 2rem;
    box-shadow: none;
}

.contact-form-minimal .form-control:focus {
    border-color: var(--dark-text);
    box-shadow: none;
}

.btn-submit-pill {
    background-color: #e0ac69;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 40px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-submit-pill:hover {
    background-color: #d49b55;
    transform: translateY(-2px);
}

/* Hero Video Section */
.hero-video-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-video-section {
        height: 450px !important;
        min-height: 450px !important;
        align-items: flex-end;
        padding-bottom: 50px;
    }

    .hero-video-section .hero-title-large {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .hero-video-section .hero-pre-title,
    .hero-video-section .hero-subtitle {
        display: none !important;
    }

    .hero-video-section .mt-5 {
        margin-top: 1rem !important;
    }
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

@media (max-width: 767px) {
    .video-background {
        display: none;
    }
}

.video-foreground {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-foreground iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.77vh;
}

@media (max-width: 768px) {
    .video-foreground iframe {
        min-width: calc(177.77vh * 450 / 100);
        width: calc(177.77vh * 450 / 100);
        height: 450px;
        min-height: 450px;
    }
}

@media (min-aspect-ratio: 16/9) {
    .video-foreground iframe {
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-foreground iframe {
        width: 177.77vh;
    }
}

.hero-video-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

.hero-video-section .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

/* Hero Mask Bottom Effect */
.hero-mask-edge {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url('images/mask-bottom.png');
    background-size: 100% 100%;
    background-position: bottom center;
    background-repeat: no-repeat;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-mask-edge {
        height: 40px;
    }
}

/* Redesigned Site Footer */
/* Redesigned Site Footer */
.site-footer {
    background-color: #1a1a1a !important;
    padding-top: 60px;
    overflow: visible;
}

.footer-mask-edge {
    position: absolute;
    top: -40px;
    /* Overlap the section above */
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url('images/mask-bottom.png');
    background-size: 100% 100%;
    background-position: bottom center;
    background-repeat: no-repeat;
    z-index: 5;
    pointer-events: none;
    transform: scaleY(-1);
    /* Flip vertically to match white section above */
}

@media (max-width: 768px) {
    .footer-mask-edge {
        height: 40px;
        top: -20px;
    }
}

.footer-logo img {
    max-width: 120px !important;
    height: auto;
}

.footer-menu {
    border-bottom: 0;
    margin-bottom: 0;
}

.footer-menu .menu-item {
    list-style: none;
    position: relative;
}

.footer-menu .menu-item+.menu-item::before {
    content: "|";
    position: absolute;
    left: -1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
    line-height: 1;
}

@media (max-width: 768px) {
    .footer-menu .menu-item+.menu-item::before {
        display: none;
    }
}

.footer-menu .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    padding: 0.5rem 0 !important;
    transition: color 0.3s;
}

.footer-menu .nav-link:hover {
    color: var(--gold-accent) !important;
}

.footer-contact-row {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.contact-icon,
.social-icon {
    width: 45px;
    height: 45px;
    background-color: #c8a97e;
    /* Gold color from image */
    color: #1a1a1a !important;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.3s, background-color 0.3s;
}

.social-icon:hover {
    background-color: #ffffff;
    transform: translateY(-5px);
}

.border-start-md {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.border-end-md {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {

    .border-start-md,
    .border-end-md {
        border: none !important;
    }
}

.letter-spacing-2 {
    letter-spacing: 2px;
}


.footer-navigation .footer-menu {
    gap: 1.5rem !important;
}

.footer-contact-row .fs-5 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.site-footer .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Custom Mask Image Utility */
.custom-mask-image {
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    /* Uses CSS variable for URL to allow dynamic setting via inline style */
    -webkit-mask-image: var(--mask-url);
    mask-image: var(--mask-url);
}

/* Cream Form Styles */
.cream-form {
    background: #fff7ed;
    padding: 25px;
    border-radius: 12px;
    max-width: 520px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.cream-form label {
    font-weight: 600;
    display: block;
    margin: 14px 0 6px;
    color: #4a3b2a;
}

.cf-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #e4d6bf;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
}

.cf-input:focus {
    outline: none;
    border-color: #c9a66b;
}

.pax-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cf-submit {
    margin-top: 18px;
    width: 100%;
    padding: 13px;
    background: #c9a66b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.cf-submit:hover {
    background: #b89254;
}