:root {
    color-scheme: light;
    --color-sage: #7ca67e;
    --color-sage-deep: #5a7d5c;
    --color-pink: #fce4ec;
    --color-pink-flower: #f8bbd0;
    --color-sand: #fbfbf8;
    --color-text: #2d362e;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --radius: 32px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Force light mode variables even if system is in dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --color-sand: #fbfbf8;
        --color-text: #2d362e;
        --glass-bg: rgba(255, 255, 255, 0.7);
        --glass-border: rgba(255, 255, 255, 0.8);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    background-color: var(--color-sand) !important;
    color: var(--color-text) !important;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: var(--color-sand) !important;
    /* Warm, stable background gradient instead of heavy blobs */
    background-image: 
        radial-gradient(at 0% 0%, rgba(124, 166, 126, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(248, 187, 208, 0.2) 0px, transparent 50%) !important;
    background-attachment: fixed;
    color: var(--color-text) !important;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

/* BACKGROUNDS - simplified for performance */
.liquid-bg {
    display: none; /* Removed heavy blur blobs */
}

.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999; /* Above content */
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -20px;
    background: var(--color-pink-flower);
    border-radius: 150% 0 150% 0;
    opacity: 0;
    -webkit-animation: falling linear forwards;
    animation: falling linear forwards;
    will-change: transform, opacity;
}

/* Ensure content is below petals but interactive */
.section, footer {
    position: relative;
    z-index: 10;
}

nav {
    z-index: 1000; /* Above everything */
}

@-webkit-keyframes falling {
    0% {
        -webkit-transform: translateY(0vh) translateX(0) rotate(0deg);
        transform: translateY(0vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% {
        -webkit-transform: translateY(105vh) translateX(150px) rotate(720deg);
        transform: translateY(105vh) translateX(150px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes falling {
    0% {
        transform: translateY(0vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(105vh) translateX(150px) rotate(720deg);
        opacity: 0;
    }
}

/* NAVIGATION (DOCK) */
nav {
    position: sticky;
    top: 20px;
    margin: 0 auto;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 12px 35px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: var(--shadow);
    width: max-content;
    max-width: 95%;
    margin-bottom: 20px;
}

.nav-logo {
    height: 45px;
    width: auto;
}

nav a {
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: 0.3s;
}

nav a:hover {
    opacity: 1;
}

/* Fix for auto-detected or explicit phone/email links on mobile */
a[href^="tel"], a[href^="mailto"] {
    color: inherit !important;
    text-decoration: none !important;
}

/* DOCK COLORS */
.glow-pink {
    color: var(--color-text) !important;
}

.glow-sage {
    color: var(--color-sage-deep) !important;
}

.galery-glow {
    color: #ad1457 !important;
    font-weight: 800;
}

/* LAYOUT */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 80px 0;
}

/* HERO / ABOUT */
.hero-about {
    padding-top: 60px;
    /* Reduced because nav is now sticky and takes space */
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-style: italic;
    color: var(--color-sage-deep);
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-text p {
    margin-bottom: 20px;
    color: var(--color-text) !important;
    opacity: 0.7;
}

.hero-image-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    background-color: white; /* Prevent transparent gaps */
}

.hero-image-wrap img {
    width: 100%;
    display: block;
}

/* GLASS CARD */
.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow);
    position: relative;
    color: var(--color-text) !important;
}

/* GRID */
.points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.point-card {
    text-align: center;
    padding: 40px 25px;
}

.point-card i {
    color: var(--color-sage);
    margin-bottom: 20px;
}

.point-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--color-sage-deep);
}

/* MAP CONTAINER */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    margin: 40px 0;
    border: 6px solid white;
    box-shadow: var(--shadow);
}

/* PRICING */
.pricing-list {
    list-style: none;
    margin: 30px 0;
}

.pricing-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-box {
    margin-top: 40px;
    text-align: center;
    background: var(--color-sage);
    color: white;
    padding: 25px;
    border-radius: 24px;
    font-size: 2.2rem;
    box-shadow: 0 10px 20px rgba(124, 166, 126, 0.2);
}

/* GALLERY (MASONRY) */
.gallery-grid {
    column-count: 3;
    column-gap: 25px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 25px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.4s;
}

.gallery-item img {
    width: 100%;
    display: block;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 20px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    cursor: pointer;
}

/* UTILS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.flower-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    color: var(--color-pink-flower);
    z-index: 5;
    animation: sway 4s infinite ease-in-out;
}

.flower-tr {
    top: -15px;
    right: -15px;
}

.flower-bl {
    bottom: -15px;
    left: -15px;
    animation-delay: -2s;
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(-10deg) scale(1);
    }

    50% {
        transform: rotate(10deg) scale(1.1);
    }
}

/* --- MOBILE OPTIMIZATION --- */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 25px;
    }

    .section {
        padding: 50px 0;
    }

    /* STABLE MOBILE NAV */
    nav {
        top: 10px;
        padding: 10px 20px;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 25px;
    }

    .nav-logo {
        height: 35px;
        flex-basis: 100%;
        margin-bottom: 5px;
        object-fit: contain;
    }

    nav a {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    /* HERO STACKED */
    .hero-about {
        grid-template-columns: 1fr;
        padding-top: 40px;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-image-wrap {
        max-width: 95%;
        margin: 0 auto;
        border-radius: 24px;
    }

    /* GRIDS */
    .points-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 15px;
    }

    .gallery-item {
        margin-bottom: 15px;
    }

    .glass-card {
        padding: 35px 20px;

    }

    .pricing-list li {
        font-size: 0.9rem;
    }

    .price-box {
        font-size: 1.8rem;
    }

    .map-container {
        height: 350px;
        margin: 30px 0;
        border-width: 4px;
    }

    .contact-details li {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .gallery-grid {
        column-count: 1;
    }

    nav {
        width: 95%;
        gap: 10px;
    }

    nav a {
        font-size: 0.6rem;
    }

    .nav-logo {
        height: 30px;
    }
}