/* ========================================
   Kauai Partea — Custom Styles
   Fresh & Airy · Pastel Tones · Navy + Gold
======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-navy-900: #0a1628;
    --color-navy-800: #1e3a5f;
    --color-navy-700: #2c4a6e;
    --color-gold-500: #d4a574;
    --color-gold-400: #e2b88a;
    --color-gold-300: #f0c9a0;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-navy-900);
    background-color: var(--color-stone-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Navbar Scroll Effect --- */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
}

/* --- Hero Section --- */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-stone-50), transparent);
    pointer-events: none;
}

/* --- Section Spacing --- */
section {
    position: relative;
}

/* --- Card Hover Effects --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-gold-500);
    outline-offset: 2px;
}

/* --- Scroll Reveal Animations (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

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

::-webkit-scrollbar-track {
    background: var(--color-stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-navy-800);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-navy-700);
}

/* --- Selection Color --- */
::selection {
    background-color: var(--color-gold-400);
    color: var(--color-navy-900);
}

/* --- Mobile Menu Animation --- */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* --- Form Input Transitions --- */
input,
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* --- Image Hover Zoom --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Responsive Typography --- */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

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