/* Font Face - with font-display: swap for better performance */
@font-face {
    font-family: 'Copperplate Gothic Bold';
    src: url('./fonts/copperplategothic_bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary: #FFECCE;
    --secondary: #F8EEDF;
    --black: #000000;
    --white: #FFFFFF;
}

/* Base Reset - Minimal */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, .font-poppins {
    font-family: 'Poppins', system-ui, sans-serif;
}

.font-copperplate {
    font-family: 'Copperplate Gothic Bold', 'Cinzel', serif;
}

/* GPU-accelerated animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Navigation - GPU accelerated */
#navbar {
    will-change: background-color, padding, box-shadow;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Facility Card Hover - GPU accelerated */
.facility-card {
    transition: background-color 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

.facility-card:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reduce motion for accessibility */
@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;
    }
}

/* Custom Scrollbar - minimal */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--white);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e5d8c3;
}

/* Content visibility for below-fold content */
section:not(:first-of-type) {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Responsive - Mobile first */
@media (max-width: 768px) {
    .h-screen {
        height: 100vh;
        height: 100dvh;
    }
}

/* Print styles */
@media print {
    nav, .floating-wa, footer {
        display: none !important;
    }
}
