:root {
    --bg: #f7f2e9;
    --surface: #ffffff;
    --primary: #1a3a5a;
    --secondary: #4b8b75;
    --accent: #e37e24;
    --text: #1f2937;
    --muted: #586170;
    --border: #d8c9b5;
}

body {
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--muted) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-surface { background-color: var(--surface) !important; }

.border-primary { border-color: var(--primary) !important; }
.border-accent { border-color: var(--accent) !important; }

.bg-primary\/10 { background-color: rgba(26, 58, 90, 0.1) !important; }
.bg-secondary\/10 { background-color: rgba(75, 139, 117, 0.1) !important; }
.bg-accent\/10 { background-color: rgba(227, 126, 36, 0.1) !important; }

#whatsapp-float span {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#whatsapp-float:hover span {
    opacity: 1;
}

section {
    scroll-margin-top: 90px;
}

/* Header States */
.header-scrolled {
    background: rgba(26, 58, 90, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    height: 70px;
}

.header-scrolled nav > div {
    height: 70px;
}

.header-scrolled a,
.header-scrolled .nav-link {
    color: #f8fafc !important;
}

.header-scrolled .nav-link::after {
    background-color: var(--accent);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Scroll Animations */
.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Product Cards */
.product-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover {
    transform: translateY(-8px);
}

/* FAQ Accordion */
.faq-item {
    animation: slideIn 0.3s ease-out;
}

.faq-item.active .faq-answer {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

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

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* WhatsApp Animation */
@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#whatsapp-float:hover span {
    opacity: 1;
}

/* Mobile Menu Transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

/* Enhanced Card Hover Effects */
.group:hover .group-hover\:scale-x-100 {
    transform: scaleX(1);
}

/* Google Reviews Styling */
.google-review-card {
    transition: all 0.3s ease;
}

.google-review-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Review Entrance Animation */
.review-entrance {
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Star Ratings */
.star-rating {
    display: inline-flex;
    gap: 0.25rem;
}

.star-rating svg {
    color: #fbbf24;
}

/* Review Timestamp */
.review-timestamp {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
}

/* Google Maps Link */
.google-maps-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Smooth Link Transitions */
a {
    transition: all 0.3s ease;
}

/* Button Hover Effects */
button, [role="button"] {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Enhanced Shadow Effects */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
