/* === Custom Styles for Donuts 4 U === */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* === Hero Section === */
.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    opacity: 0;
    animation: heroImageIn 1.5s ease-out forwards;
}

@keyframes heroImageIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(123, 45, 59, 0.82) 0%,
        rgba(79, 29, 42, 0.75) 50%,
        rgba(61, 37, 46, 0.70) 100%
    );
}

.hero-title {
    opacity: 0;
    animation: heroTitleIn 1s ease-out 0.4s forwards;
}

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

.hero-subtitle {
    opacity: 0;
    animation: heroSubIn 1s ease-out 0.7s forwards;
}

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

.hero-badge {
    opacity: 0;
    animation: heroBadgeIn 1s ease-out 0.2s forwards;
}

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

.hero-ctas {
    opacity: 0;
    animation: heroCtasIn 1s ease-out 1s forwards;
}

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

.hero-btn-primary {
    background: linear-gradient(135deg, #7B2D3B 0%, #9a3547 100%);
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #c43354 0%, #d94f6e 100%);
}

/* === Navbar === */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* === Card Hover Effects === */
.card-hover {
    transform: translateY(0);
}

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

/* === Scroll Reveal === */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* === Mobile Menu === */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* === Decorative Doughnut Pattern === */
.donut-pattern {
    background-image: radial-gradient(circle, rgba(123, 45, 59, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #F2A8B0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* === Selection === */
::selection {
    background: #F2A8B0;
    color: #3A161D;
}

/* === Focus Styles === */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #F2A8B0;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* === Mobile Menu Transition === */
#mobileMenu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

/* === Map Container === */
iframe {
    filter: saturate(0.85) contrast(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* === Pulse animation for CTA === */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(123, 45, 59, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(123, 45, 59, 0); }
}

.hero-btn-primary {
    animation: softPulse 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-btn-primary {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}
