* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Typography Scale - Desktop */
    --fs-h1: 4rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.5rem;
    --fs-body: 1.1rem;
    --fs-small: 0.9rem;
    --fs-btn: 1rem;
}

@media (max-width: 768px) {
    :root {
        /* Typography Scale - Mobile */
        --fs-h1: 2.5rem;
        --fs-h2: 1.8rem;
        --fs-h3: 1.3rem;
        --fs-body: 1rem;
        --fs-small: 0.85rem;
        --fs-btn: 0.95rem;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FCE4EC;
    /* Match banner background to avoid contrast when mobile nav hides */
    color: #4a4a4a;
    font-size: var(--fs-body);
    overflow-x: hidden;
}

/* Utility: visually hidden but accessible text for screen readers */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus-visible styles for better keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(44, 62, 80, 0.2);
    outline-offset: 3px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

/* Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 9999;
    opacity: 0.4;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Adjust based on navbar height */
}

.hidden {
    display: none !important;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #2c3e50;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #FCE4EC;
    color: #2c3e50;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    stroke: currentColor;
}

.scroll-to-top:hover svg {
    transform: translateY(-3px);
}

/* Mobile First Icon Logic */
.desktop-icon {
    display: none !important;
}

.mobile-icon {
    display: block !important;
}

@media (min-width: 1151px) {
    .desktop-icon {
        display: block !important;
    }

    .mobile-icon {
        display: none !important;
    }
}

@media (max-width: 1150px) {
    /* Body background remains pink (inherited) to avoid white gaps */

    /* Scroll to Top - Mobile Override */
    .scroll-to-top {
        bottom: 100px !important;
        width: 40px !important;
        height: 40px !important;
        background-color: rgba(255, 255, 255, 0.8) !important;
        color: #555 !important;
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-radius: 50%;
    }

    .scroll-to-top:hover {
        background-color: rgba(255, 255, 255, 0.9) !important;
        transform: none !important;
    }
}