/* ========== CUSTOM TAILWIND CONFIGURATION ========== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========== ROOT VARIABLES ========== */
:root {
    --coffee-brown: #4B2E05;
    --soft-cream: #F8F1E4;
    --sage-green: #A8BCA1;
    --warm-orange: #E78C4E;
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--soft-cream);
    color: #1f2937;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

/* ========== CUSTOM COLORS ========== */
.bg-coffee-brown { background-color: var(--coffee-brown); }
.bg-soft-cream { background-color: var(--soft-cream); }
.bg-sage-green { background-color: var(--sage-green); }
.bg-warm-orange { background-color: var(--warm-orange); }

.text-coffee-brown { color: var(--coffee-brown); }
.text-soft-cream { color: var(--soft-cream); }
.text-sage-green { color: var(--sage-green); }
.text-warm-orange { color: var(--warm-orange); }

/* ========== HERO PARALLAX EFFECT ========== */
.parallax-hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Mobile fallback for parallax */
@media (max-width: 768px) {
    .parallax-hero {
        background-attachment: scroll;
    }
}

/* ========== MENU CARD HOVER EFFECTS ========== */
.menu-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(75, 46, 5, 0.2);
}

.menu-card img {
    transition: transform 0.3s ease;
}

.menu-card:hover img {
    transform: scale(1.05);
}

/* ========== WHATSAPP FLOAT BUTTON ========== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 25px rgba(0, 0, 0, 0.4);
    background-color: #20ba5a;
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 100px;
    right: 30px;
    background-color: var(--coffee-brown);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background-color: var(--warm-orange);
    transform: translateY(-5px);
}

/* ========== TESTIMONIAL SLIDER ========== */
.testimonial-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* ========== STAR RATING ========== */
.star-rating {
    color: #FFD700;
    font-size: 1.2rem;
}

/* ========== SLIDER DOTS ========== */
.dot {
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

/* ========== IMAGE LOADING ANIMATION ========== */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--coffee-brown);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--warm-orange);
}

/* ========== SMOOTH SCROLL BEHAVIOR ========== */
html {
    scroll-behavior: smooth;
}

/* ========== BUTTON STYLES ========== */
button, .btn {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:focus, .btn:focus {
    outline: 2px solid var(--warm-orange);
    outline-offset: 2px;
}

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 640px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 80px;
        right: 20px;
    }
}

/* ========== ANIMATION KEYFRAMES ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== PRINT STYLES ========== */
@media print {
    .whatsapp-float,
    .back-to-top,
    nav,
    footer {
        display: none;
    }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========== SECTION SPACING ========== */
section {
    position: relative;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ========== HOVER EFFECTS ========== */
a {
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ========== FOCUS STATES FOR ACCESSIBILITY ========== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--warm-orange);
    outline-offset: 2px;
}

/* ========== LOADING STATE ========== */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ========== UTILITY CLASSES ========== */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(75, 46, 5, 0.15);
}

.shadow-custom-hover:hover {
    box-shadow: 0 15px 40px rgba(75, 46, 5, 0.25);
}

.gradient-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

/* ========== RESPONSIVE TEXT ========== */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* ========== iOS SAFARI FIXES ========== */
@supports (-webkit-touch-callout: none) {
    .parallax-hero {
        background-attachment: scroll;
    }
}

/* ========== DARK MODE SUPPORT (OPTIONAL) ========== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ========== HIGH CONTRAST MODE ========== */
@media (prefers-contrast: high) {
    .menu-card {
        border: 2px solid var(--coffee-brown);
    }
}

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