/* ==========================================================================
   AVIDA Confinement Care Centre - Main Stylesheet
   ========================================================================== */

/* Google Fonts: Montserrat & Playfair Display */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Brand Colors */
    --mother-pink: #ee2a7b;
    --baby-pink: #fee7e1;
    --warm-white: #fffaf8;
    --soft-cream: #fff5f2;
    --text-dark: #2f2f35;
    --muted-text: #6f6a70;
    --border-soft: #f3d6dc;
    --white: #ffffff;
    
    /* Gradients */
    --pink-gradient: linear-gradient(135deg, #ee2a7b 0%, #ff6b9e 100%);
    --soft-gradient: linear-gradient(135deg, #fffaf8 0%, #fee7e1 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(238, 42, 123, 0.05);
    --shadow-md: 0 4px 16px rgba(238, 42, 123, 0.08);
    --shadow-lg: 0 12px 32px rgba(238, 42, 123, 0.12);
    
    /* Typography */
    --font-family: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--muted-text);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--mother-pink);
    transition: var(--transition-base);
}

img, video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-soft {
    background-color: var(--soft-cream);
}

.bg-white {
    background-color: var(--white);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 3rem; }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.tagline {
    font-weight: 400;
    font-style: italic;
    color: var(--mother-pink);
    font-size: 1.2rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--mother-pink);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-text);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--pink-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--mother-pink);
    border: 2px solid var(--border-soft);
}

.btn-secondary:hover {
    background: var(--baby-pink);
    border-color: var(--mother-pink);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 48px;
    width: auto;
    border-radius: 0; /* Remove border-radius for logo */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mother-pink);
    transition: var(--transition-base);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--mother-pink);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: 40px; /* Reduced since header is sticky */
    padding-bottom: 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--soft-gradient);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-text);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}



/* ==========================================================================
   Trust Badges
   ========================================================================== */
.trust-badges {
    background: var(--white);
    padding: 3rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: var(--baby-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mother-pink);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.trust-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--border-soft);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--mother-pink);
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* ==========================================================================
   AVIDA Meaning Cards (New Grid Design)
   ========================================================================== */
.avida-meaning {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.meaning-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    width: calc(33.333% - 1.34rem);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    border-bottom: 4px solid var(--mother-pink);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 992px) {
    .meaning-card {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .meaning-card {
        width: 100%;
    }
}

.meaning-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.meaning-letter {
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 8rem;
    font-weight: 800;
    color: var(--baby-pink);
    opacity: 0.5;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}

.meaning-content {
    position: relative;
    z-index: 1;
}

.meaning-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--mother-pink);
}

.meaning-content p {
    margin-bottom: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    font-weight: 600;
    pointer-events: none;
}

/* ==========================================================================
   Video Players
   ========================================================================== */
.video-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
    aspect-ratio: 16/9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* ==========================================================================
   Accordion / FAQ
   ========================================================================== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
}

.accordion-icon {
    color: var(--mother-pink);
    transition: transform var(--transition-base);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.accordion-item.active .accordion-body {
    padding: 0 1.5rem 1.25rem;
    max-height: 500px;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control, .form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--mother-pink);
    box-shadow: 0 0 0 3px rgba(238, 42, 123, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check-input {
    margin-top: 0.25rem;
    accent-color: var(--mother-pink);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    /* New Palette overrides for footer */
    --footer-primary: #3B82F6;
    --footer-secondary: #94A3B8;
    --footer-tertiary: #1E293B;
    --footer-neutral: #0F172A;
    
    --muted-text: var(--footer-secondary);
    --text-dark: #ffffff;
    --border-soft: var(--footer-tertiary);
    
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08), transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(148, 163, 184, 0.08), transparent 35%),
        var(--footer-neutral);
    padding: 1.4rem 0 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0.6rem;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 0.55rem;
    /* Convert logo to white for dark background contrast */
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 1.02rem;
    margin-bottom: 0.65rem;
    color: var(--text-dark);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-links a {
    color: var(--muted-text);
    font-size: 0.96rem;
    line-height: 1.35;
}

.footer-links a:hover {
    color: var(--footer-primary);
}

.footer p {
    margin-bottom: 0.45rem;
    line-height: 1.45;
}

.social-links {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.social-icon {
    width: 34px;
    height: 34px;
    background: var(--footer-tertiary);
    color: var(--footer-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    transition: var(--transition-base);
}

.social-icon:hover {
    background: var(--footer-primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--muted-text);
    font-size: 0.82rem;
    width: 85%;
    margin: 0 auto;
}

.footer-bottom p {
    margin-bottom: 0.18rem;
}

.disclaimer {
    font-size: 0.74rem;
    margin-top: 0.1rem;
    color: #64748b;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    width: 85%;
    margin-bottom: 0;
    line-height: 1.25;
}

/* ==========================================================================
   Floating Elements & Mobile CTAs
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999;
    gap: 1rem;
}

.mobile-bottom-bar .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    
    .hero-title { font-size: 2.75rem; }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
    }
}

@media (max-width: 768px) {
    .header .nav-links, .header .btn-primary {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        z-index: 999;
        display: none;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .grid-2 { grid-template-columns: 1fr; }
    
    .meaning-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .mobile-bottom-bar {
        display: flex;
    }
    
    .footer {
        padding-bottom: 80px; /* Space for mobile bar */
    }
    
    .floating-whatsapp {
        bottom: 90px; /* Above mobile bar */
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.25rem; }
    .footer-grid {
        grid-template-columns: 1fr;
        width: 92%;
    }
    .footer-bottom,
    .disclaimer {
        width: 92%;
    }
    .section { padding: 3rem 0; }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .hero-diagonal-overlay {
        width: 100% !important;
        clip-path: none !important;
        background: rgba(255, 255, 255, 0.85) !important;
    }
}

@keyframes slideInLeftShape {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

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

/* ==========================================================================
   Editorial Design Utilities
   ========================================================================== */

.editorial-overlap {
    position: relative;
    padding-top: 2rem;
}

.editorial-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 200px;
    height: 200px;
    background: var(--baby-pink);
    border-radius: 50% 100% 30% 70% / 60% 40% 60% 40%;
    z-index: -1;
    opacity: 0.5;
    filter: blur(40px);
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.staggered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.staggered-item:nth-child(even) {
    transform: translateY(40px);
}

.editorial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border-bottom: 4px solid var(--mother-pink);
    transition: var(--transition-base);
    height: 100%;
}

.editorial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.section-accent {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--mother-pink);
    opacity: 0.1;
    font-size: 8rem;
    position: absolute;
    top: -2rem;
    right: 0;
    z-index: -1;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 992px) {
    .asymmetric-grid {
        grid-template-columns: 1fr;
    }
    .staggered-item:nth-child(even) {
        transform: none;
    }
    .section-accent {
        font-size: 4rem;
    }
}

/* ==========================================================================
   Modern UI Enhancements
   ========================================================================== */

/* Subtle radial glows for depth */
body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -2;
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.28;
}

body::before {
    top: -14rem;
    right: -10rem;
    background: rgba(238, 42, 123, 0.35);
}

body::after {
    bottom: -16rem;
    left: -10rem;
    background: rgba(255, 210, 233, 0.65);
}

/* Better default card polish */
.card,
.editorial-card,
.meaning-card,
.accordion-item,
.gallery-item {
    box-shadow: 0 10px 30px rgba(24, 28, 38, 0.06);
    border: 1px solid rgba(238, 42, 123, 0.1);
}

.card:hover,
.editorial-card:hover,
.meaning-card:hover,
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 42px rgba(24, 28, 38, 0.12);
}

/* Elevated sticky header */
.header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(27, 35, 55, 0.09);
}

/* Refined button transitions */
.btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: translateX(-120%);
    transition: transform 0.8s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

/* Modern icon treatment */
.trust-icon,
.social-icon,
.mobile-menu-btn,
.floating-whatsapp {
    transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
}

.trust-icon {
    position: relative;
    background: linear-gradient(145deg, #fff 0%, #ffe9f2 100%);
    border: 1px solid rgba(238, 42, 123, 0.18);
    box-shadow: 0 10px 20px rgba(238, 42, 123, 0.16);
}

.trust-icon i {
    color: var(--mother-pink);
}

.social-icon {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Slightly smoother gallery and media focus state */
.gallery-item img,
.card-img-top {
    transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img,
.card:hover .card-img-top {
    filter: saturate(1.06) contrast(1.02);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   AVIDA Experience Section (Pattern + Abstract)
   ========================================================================== */
.experience-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 8rem;
    background:
        radial-gradient(circle at 10% 10%, rgba(238, 42, 123, 0.08), transparent 38%),
        radial-gradient(circle at 90% 85%, rgba(255, 130, 181, 0.12), transparent 42%),
        linear-gradient(180deg, #fff9fb 0%, #fff6f9 100%);
}

.experience-section .container {
    position: relative;
    z-index: 3;
}

.experience-pattern,
.experience-orb {
    position: absolute;
    pointer-events: none;
}

.experience-pattern-grid {
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(238, 42, 123, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(238, 42, 123, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
    mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
    opacity: 0.45;
}

.experience-pattern-lines {
    z-index: 2;
    top: -20%;
    right: -8%;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    border: 1px solid rgba(238, 42, 123, 0.16);
    box-shadow:
        0 0 0 32px rgba(238, 42, 123, 0.09),
        0 0 0 72px rgba(238, 42, 123, 0.05),
        0 0 0 112px rgba(238, 42, 123, 0.03);
}

.experience-orb {
    z-index: 2;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    filter: blur(48px);
}

.experience-orb-left {
    left: -7rem;
    top: 25%;
    background: rgba(238, 42, 123, 0.16);
}

.experience-orb-right {
    right: -5rem;
    bottom: -2rem;
    background: rgba(255, 197, 223, 0.5);
}

.experience-heading {
    text-align: center;
    margin-bottom: 1rem;
}

.experience-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(238, 42, 123, 0.25);
    background: rgba(255, 255, 255, 0.8);
    color: var(--mother-pink);
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.experience-card {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(238, 42, 123, 0.15);
    backdrop-filter: blur(8px);
}

.experience-card .card-title {
    color: #2a2530;
}

@media (max-width: 768px) {
    .experience-pattern-lines {
        right: -50%;
        top: -10%;
        width: 24rem;
        height: 24rem;
    }

    .experience-orb-left,
    .experience-orb-right {
        width: 12rem;
        height: 12rem;
    }
}

/* ==========================================================================
   Hero Top-Right Hover Menu
   ========================================================================== */
.home-floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: 0;
    z-index: 1200;
}

.home-floating-header.scrolled {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border: 0 !important;
}

.home-floating-header::before,
.home-floating-header::after {
    content: none !important;
}

.home-floating-header .container {
    max-width: 100%;
    height: auto;
    justify-content: flex-end;
    padding: 0.6rem 0.85rem 0;
}

.home-floating-header .logo,
.home-floating-header .nav-links,
.home-floating-header .d-none-mobile {
    display: none !important;
}

.home-floating-header .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(30, 24, 36, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 10px 24px rgba(13, 18, 27, 0.22);
    transition: var(--transition-base);
}

.home-floating-header .mobile-menu-btn:hover {
    transform: translateY(-2px);
    background: rgba(30, 24, 36, 0.72);
}

.home-floating-header .mobile-menu {
    position: absolute;
    top: 62px;
    right: 0.85rem;
    width: 260px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(238, 42, 123, 0.16);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 16px 36px rgba(22, 25, 34, 0.2);
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1200;
}

.home-floating-header .mobile-menu.active {
    display: flex;
}

.home-floating-header .mobile-menu a {
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
}

.home-floating-header .mobile-menu a:hover {
    background: rgba(238, 42, 123, 0.1);
    color: var(--mother-pink);
}

@media (max-width: 991px) {
    .home-floating-header {
        position: sticky;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-sm);
    }

    .home-floating-header .logo {
        display: inline-flex !important;
    }

    .home-floating-header .mobile-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 80px);
        border-radius: 0;
        padding: 1.5rem;
        gap: 0.5rem;
        border: 0;
    }

    .home-floating-header .mobile-menu-btn {
        width: 46px;
        height: 46px;
    }
}

/* Home page only: WhatsApp icon on left */
.home-page .floating-whatsapp {
    left: 30px;
    right: auto;
}

@media (max-width: 768px) {
    .home-page .floating-whatsapp {
        left: 20px;
        right: auto;
    }
}

/* ==========================================================================
   Suites & Facilities (Homepage)
   ========================================================================== */
.suites-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(238, 42, 123, 0.1), transparent 36%),
        radial-gradient(circle at 92% 90%, rgba(255, 184, 216, 0.14), transparent 40%),
        #fff8fb;
}

.suites-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(238, 42, 123, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(238, 42, 123, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 78%);
    opacity: 0.5;
}

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

.suites-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(238, 42, 123, 0.24);
    color: var(--mother-pink);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.86);
    margin-bottom: 0.9rem;
}

.suites-gallery {
    gap: 1.5rem;
}

.suites-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 30px rgba(20, 26, 36, 0.12);
}

.suites-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 42%, rgba(17, 20, 29, 0.64) 100%);
    pointer-events: none;
}

.suites-card .gallery-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
    background: none;
    z-index: 3;
}

.suites-card .gallery-caption i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    transition: var(--transition-base);
}

.suites-card:hover .gallery-caption i {
    transform: translateY(-2px);
    background: rgba(238, 42, 123, 0.7);
}

.suite-type {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.suites-cta {
    gap: 0.55rem;
}

/* ==========================================================================
   Rooms Page Consistent Modern Style
   ========================================================================== */
.rooms-page .room-showcase-section {
    position: relative;
    overflow: hidden;
}

.rooms-page .room-showcase-section:nth-of-type(odd) {
    background:
        radial-gradient(circle at 12% 8%, rgba(238, 42, 123, 0.08), transparent 36%),
        #fff8fb;
}

.rooms-page .room-gallery {
    gap: 1.2rem;
}

.rooms-page .room-gallery .gallery-item {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 30px rgba(20, 26, 36, 0.12);
    overflow: hidden;
}

.rooms-page .room-gallery .gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(16, 20, 28, 0.36) 100%);
    pointer-events: none;
}

.rooms-page .room-showcase-section .section-title {
    margin-bottom: 0.85rem;
}

.rooms-page .room-showcase-section .btn.btn-secondary {
    border-color: rgba(238, 42, 123, 0.28);
    background: rgba(255, 255, 255, 0.9);
}

.rooms-page .facilities-modern {
    background:
        radial-gradient(circle at 90% 8%, rgba(238, 42, 123, 0.08), transparent 30%),
        #ffffff;
}

.rooms-page .facilities-modern .card {
    border-radius: 18px;
    border: 1px solid rgba(238, 42, 123, 0.12);
}

/* Services page wonderful highlight panel */
.services-wonderful-panel {
    background:
        radial-gradient(circle at 0% 0%, rgba(238, 42, 123, 0.12), transparent 46%),
        linear-gradient(145deg, #ffffff 0%, #fff4f8 100%);
    border: 1px solid rgba(238, 42, 123, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 34px rgba(28, 34, 44, 0.1);
    padding: 2rem;
    height: 100%;
}

.services-wonderful-panel h3 {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.services-wonderful-panel h3 i {
    color: var(--mother-pink);
    font-size: 1.1rem;
}

.services-wonderful-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.services-wonderful-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(238, 42, 123, 0.14);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.services-wonderful-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mother-pink);
    line-height: 1;
}

.services-wonderful-label {
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.45;
}

@media (max-width: 576px) {
    .services-wonderful-grid {
        grid-template-columns: 1fr;
    }
}

/* Rooms page image lightbox */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2500;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox-img {
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
}

.image-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

/* ==========================================================================
   Cross-Device Compatibility Enhancements
   ========================================================================== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
video {
    display: block;
}

/* Keep fixed UI clear on iOS safe areas */
.floating-whatsapp {
    bottom: calc(30px + env(safe-area-inset-bottom));
}

.home-floating-header .container {
    padding-top: calc(0.6rem + env(safe-area-inset-top));
}

/* Larger desktops / Apple Studio Display / 4K */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: clamp(3.4rem, 3vw, 4.6rem);
    }

    .section {
        padding: 6rem 0;
    }
}

/* Tablet optimization */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.2rem;
    }

    .hero-title {
        font-size: clamp(2.1rem, 5vw, 3rem);
    }

    .section-title {
        font-size: clamp(1.7rem, 3.6vw, 2.2rem);
    }

    .staggered-grid {
        gap: 1.6rem;
    }

    .editorial-card {
        padding: 2.2rem;
    }
}

/* Touch devices: prevent hover jitter and improve tap targets */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .mobile-menu-btn,
    .social-icon,
    .floating-whatsapp {
        min-height: 44px;
        min-width: 44px;
    }

    .gallery-item:hover img,
    .card:hover .card-img-top,
    .card:hover,
    .editorial-card:hover,
    .meaning-card:hover {
        transform: none;
        filter: none;
    }
}
