/* ============================================
   Kamat Express — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #065f46;
    color: #fefdf8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #d1fae5;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 24px rgba(6, 78, 59, 0.08);
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

/* Default state for reveal elements — always visible */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal:not(.revealed) {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Buttons & Links
   ============================================ */
a {
    text-decoration: none;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
    transition: color 0.2s ease;
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    color: #059669;
}

/* ============================================
   Gallery Hover
   ============================================ */
.gallery-img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* ============================================
   Form Styles
   ============================================ */
input, textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid rgba(6, 95, 70, 0.15);
    border-radius: 0.75rem;
    background: #fefdf8;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #1c1917;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

input::placeholder, textarea::placeholder {
    color: rgba(28, 25, 23, 0.4);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Success Message
   ============================================ */
.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 0.75rem;
    color: #065f46;
    font-weight: 500;
    margin-top: 1rem;
}

.form-success.show {
    display: flex;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    #hero {
        padding-top: 1rem;
    }

    .hero-image {
        height: 400px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-image {
        height: 500px !important;
    }
}

/* ============================================
   Focus Visible
   ============================================ */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, #gallery, .reveal {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
