/* Ayra Lagoon Resort - Design System */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600&family=Inria+Serif:wght@700&family=Inter:wght@500&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

* {
    box-sizing: border-box;
}

:root {
    --primary-color: #0F766E;
    --text-primary: #1F2933;
    --text-secondary: #4B5567;
    --text-muted: #6B7280;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --hero-overlay: rgba(4, 4, 4, 0.45);
    --nav-bg: rgba(255, 255, 255, 0.1);

    --ff-serif: 'Playfair Display', serif;
    --ff-sans: 'Poppins', sans-serif;
    --ff-accent: 'Inria Serif', serif;
}

body {
    font-family: var(--ff-sans);
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-serif);
    font-weight: 600;
}

/* Navbar styles */
.navbar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    transition: all 0.3s ease;
    width: 100%;
}

.navbar.scrolled {
    background: rgba(15, 118, 110, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    color: var(--white) !important;
    letter-spacing: 1px;
}

.navbar-brand strong {
    font-weight: 700;
}

.nav-link {
    font-family: var(--ff-serif);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 12px;
    text-transform: capitalize;
}

.btn-book-teal {
    font-family: var(--ff-sans);
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    transition: background 0.3s ease;
}

.btn-book-teal:hover {
    background-color: #0d615a;
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('../assets/img/hero_bg.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 180px;
    padding-bottom: 400px;
    /* Revert to original buffer for cards */
    overflow: hidden;
    width: 100%;
}

.hero-title {
    color: var(--white);
    font-family: var(--ff-serif);
    font-size: 3.9rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 4rem;
    text-transform: capitalize;
    text-align: center;
    padding: 0 20px;
}

/* Booking Bar */
.hero-booking-bar {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.15);
    padding: 0px;
    margin: 0 auto;
    position: relative;
    z-index: 50;
    margin-bottom: 50px;
}

.booking-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.booking-item:last-child {
    border-right: none;
}

.booking-item .booking-item-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-item .label {
    font-family: var(--ff-serif);
    font-weight: 600;
    font-size: 1.0rem;
    color: #1a1a1a;
}

.booking-item .label.selected-value {
    font-family: var(--ff-sans);
    font-weight: 400;
}

.booking-item .hidden-booking-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--ff-sans);
}

.booking-item .hidden-booking-input::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.btn-book-dark {
    font-family: var(--ff-sans);
    background-color: #1a1a1a;
    color: var(--white);
    border-radius: 10px;
    font-weight: 600;
    padding: 8px 25px;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-book-dark:hover {
    background-color: #d5d15c;
    transform: translateY(-1px);
}

/* Hero Bottom Cards */
.hero-bottom-cards {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 25px;
    width: 95%;
    max-width: 1000px;
    z-index: 10;
    padding-top: 80px;
}

.card-item {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-sm {
    height: 280px;
}

.card-lg {
    height: 340px;
}


#about {
    padding-top: 100px;
}


.section-padding {
    padding: 100px 0;
}

.section-subtitle {
    color: var(--primary-color);
    font-family: var(--ff-accent);
    /* Inria Serif */
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-family: var(--ff-serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: #2D3748;
    line-height: 1.25;
    margin-bottom: 3rem;
}

.section-title span.amp {
    font-style: italic;
    font-family: var(--ff-serif);
    opacity: 0.8;
}


.about-img {
    border-radius: 20px;
    width: 100%;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-read-more {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    padding: 10px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: #0d615a;
    color: white;
}


.room-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.room-body {
    padding: 15px 15px 25px;
    text-align: center;
}

.room-body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.room-body p.text-muted {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.room-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px !important;
}

.btn-view-details {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background-color: #0d615a;
    color: white;
}

/* Gallery Grid */
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    height: 220px;
}

/* Contact Section Styles */
.contact-info-col p {
    font-family: var(--ff-sans);
    font-size: 1.40rem;
    font-weight: 500;
    color: #4A5568;
}

#contact-form .form-control {
    background-color: #F7F9FA;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 0.95rem;
    color: #4A5568;
    box-shadow: none;
    max-width: 420px;
}

#contact-form {
    max-width: 420px;
}

#contact-form .form-control::placeholder {
    color: #718096;
}

#contact-form textarea.form-control {
    padding-top: 40px;
    text-align: center;
}

.btn-send-message {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-send-message:hover {
    background-color: #0d615a;
    color: white;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Facilities */
.facility-card {
    background: #FAFAF7;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid #f1f1f1;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.testimonial-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-info h5 {
    font-family: var(--ff-sans);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: #333;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0;
}

.testimonial-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 80px;
}

.testimonial-slider-container {
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
    position: relative;
}

#testimonial-grid {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.1rem;
}

.testimonial-stars i.empty {
    color: #E2E8F0;
}

/* Pagination Dots */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

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

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

/* Footer Styles */
footer {
    background: #0D766E;
    color: var(--white);
    padding: 50px;
    font-family: var(--ff-serif);
}

.footer-logo {
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
}

.footer-desc {
    font-family: var(--ff-sans);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 300px;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.footer-links li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--white);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--ff-sans);
    font-size: 1.1rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-contact p {
    font-family: var(--ff-sans);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.footer-icon {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1.5px solid rgba(255, 255, 255, 0.4);
    margin-top: 0px;
}

.footer-bottom p {
    font-family: var(--ff-sans);
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {

    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100%;
        overflow-x: hidden;
    }

    .row {
        margin-right: -15px;
        margin-left: -15px;
        width: auto;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .hero-title {
        font-size: 3rem;
        margin-top: 2rem;
    }

    .hero-bottom-cards {
        display: none;
    }

    .hero-booking-bar {
        width: 92% !important;
        max-width: 500px !important;
        padding: 10px;
        border-radius: 15px;
        margin-bottom: 30px;
    }

    .hero-booking-bar .row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .booking-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 12px 10px !important;
        width: 50% !important;
        height: 65px;
    }

   
    .hero-booking-bar .row>div:nth-child(1),
    .hero-booking-bar .row>div:nth-child(3) {
        border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .hero-booking-bar .row>div:last-child {
        width: 100% !important;
        border-bottom: none;
        padding: 10px !important;
        height: auto;
    }

    .hero-booking-bar .btn-book-dark {
        width: 100%;
        padding: 12px;
    }

    .about-content {
        padding-left: 0.75rem !important;
        margin-top: 2rem;
        text-align: center;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

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

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-info-col {
        text-align: center;
    }

    .contact-info-col .d-flex {
        justify-content: center;
    }
}

@media (max-width: 576px) {

    .hero .row {
        width: 100%;
        margin: 0;
    }

    .hero .row>* {
        padding: 8px;
    }

    .navbar-collapse {
        background: rgba(15, 118, 110, 1) !important;
        /* Solid Teal BG */
        padding: 20px;
        margin-top: 10px;
        border-radius: 10px;
        width: 100%;
    }

    .hero-title {
        font-size: 2.1rem;
        padding: 0 10px;
        width: 100%;
    }

    .hero-booking-bar {
        width: 95% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        margin: 10px auto !important;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }

    .booking-item {
        width: 50% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .booking-item .label {
        font-size: 0.95rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .footer-logo {
        font-size: 1.6rem;
        text-align: center;
    }

    .footer-desc {
        text-align: center;
        margin: 0 auto;
    }

    #testimonial-grid {
        display: flex;
        flex-wrap: nowrap;
        margin: 0;
        width: 100%;
    }

    #testimonial-grid>.col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 15px;
    }
}



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

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


.reveal-split .slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-split .slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-split.visible .slide-in-left,
.reveal-split.visible .slide-in-right {
    opacity: 1;
    transform: translate(0, 0);
}

.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

.stagger-delay-4 {
    transition-delay: 0.4s;
}


.btn-book-teal,
.btn-read-more,
.btn-view-details,
.btn-send-message {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-book-teal:hover,
.btn-read-more:hover,
.btn-view-details:hover,
.btn-send-message:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.3) !important;
}

.room-card,
.facility-card,
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover,
.facility-card:hover,
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

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

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 2;
}

.hero-title {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-booking-bar {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-bottom-cards .card-item {
    opacity: 0;
}

.hero-bottom-cards .card-item:nth-child(1) {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.hero-bottom-cards .card-item:nth-child(2) {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.hero-bottom-cards .card-item:nth-child(3) {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero-bottom-cards .card-item:nth-child(4) {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

.navbar {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}