/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Montserrat:wght@200;300;400;500;600;700&family=Pinyon+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Dynamic height adjustment for mobile browsers */
body {
    height: 100dvh;
    /* Fix height to viewport */
    min-height: 100dvh;
    background-color: #F9F7F2;
    /* Cream background matching Tailwind config */
    overflow: hidden;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    overscroll-behavior: none;
    /* Disable bounce/pull-to-refresh */
    touch-action: pan-y;
    /* Only allow vertical scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

html {
    font-size: 17px; /* Bump from default 16px to scale all text up */
    overflow-x: hidden;
    /* Prevent horizontal scroll on html too */
    overscroll-behavior: none;
    touch-action: pan-y;
}

/* Prevent zoom on all elements */
* {
    touch-action: manipulation !important;
}

/* Prevent zoom on input focus (iOS) */
input,
textarea,
select {
    font-size: 16px !important;
}

/* Custom visual styles */
@layer utilities {
    .bg-watercolor {
        background-image: linear-gradient(rgba(249, 247, 242, 0.85), rgba(249, 247, 242, 0.7)), url('https://images.unsplash.com/photo-1517430553904-803271295325?q=80&w=1974&auto=format&fit=crop');
        background-size: cover;
        background-position: center;
    }

    .dark .bg-watercolor {
        background-image: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.85)), url('https://images.unsplash.com/photo-1517430553904-803271295325?q=80&w=1974&auto=format&fit=crop');
    }

    .luxury-line {
        background: linear-gradient(to bottom, transparent, #c5a059 15%, #c5a059 85%, transparent);
    }
}

/* Card Shadow from user request */
.ios-card-shadow {
    box-shadow: 0 4px 20px -2px rgba(45, 62, 51, 0.05);
}

/* Navigation Indicator */
.nav-item-active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #C5A059;
    /* Accent gold color */
}

/* Material Symbols specific settings from user request */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.active-icon {
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Footer Apolo Studios */
.footer-apolo {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(45, 62, 51, 0.45);
    text-align: center;
    padding-top: 40px;
    padding-bottom: 20px;
    width: 100%;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-apolo:hover {
    color: #C5A059;
}

.dark .footer-apolo {
    color: rgba(255, 255, 255, 0.3);
}

/* Falling Petals Animation */
.petals-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    background: radial-gradient(ellipse at center, #C5A059 0%, rgba(197, 160, 89, 0.3) 70%, transparent 100%);
    border-radius: 50% 0 50% 0;
    opacity: 0.5;
    animation: petalFall linear infinite, petalSway ease-in-out infinite;
}

.petal:nth-child(even) {
    background: radial-gradient(ellipse at center, #D4A98A 0%, rgba(212, 169, 138, 0.3) 70%, transparent 100%);
    border-radius: 0 50% 0 50%;
    opacity: 0.4;
}

.petal:nth-child(3n) {
    background: radial-gradient(ellipse at center, #E8D5B7 0%, rgba(232, 213, 183, 0.3) 70%, transparent 100%);
    opacity: 0.35;
}

.petal-sm {
    width: 6px;
    height: 6px;
    opacity: 0.3;
}

.petal-lg {
    width: 14px;
    height: 14px;
    opacity: 0.25;
}

@keyframes petalFall {
    0% {
        top: -20px;
        transform: rotate(0deg);
    }
    100% {
        top: 100%;
        transform: rotate(720deg);
    }
}

@keyframes petalSway {
    0%, 100% {
        margin-left: 0;
    }
    25% {
        margin-left: 30px;
    }
    50% {
        margin-left: -10px;
    }
    75% {
        margin-left: 20px;
    }
}