/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #ff6b35;
    color: #fff;
}

/* ── Section Label ── */
.section-label {
    display: flex;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
    color: #2d2d2d;
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #2d2d2d;
}

.nav-link {
    position: relative;
}

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

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

/* ── Hero ── */
.hero-bg {
    transition: transform 8s ease;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.88) 0%,
        rgba(45, 45, 45, 0.75) 50%,
        rgba(26, 26, 26, 0.65) 100%
    );
}

.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-badge {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-bg {
    animation: heroZoom 20s ease infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.hero-btn-primary {
    position: relative;
    overflow: hidden;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ── About ── */
.about-grid {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-img-main {
    transition: transform 0.6s ease;
}

.about-img-secondary {
    transition: transform 0.6s ease;
}

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

.about-img-secondary:hover {
    transform: scale(1.03);
}

.about-features {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.about-features.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-feature {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-feature.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Menu Cards ── */
.menu-grid {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.menu-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-card-img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Specialties ── */
.specialties-grid {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.specialties-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.specialty-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.specialty-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Visit ── */
.visit-grid {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visit-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.visit-info {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.visit-info.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Contact ── */
.contact-grid {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Menu ── */
#mobile-menu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.mobile-nav-link:hover {
    padding-left: 12px;
}

/* ── Bar Animation ── */
#menu-icon.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#menu-icon.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

#menu-icon.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* ── Footer ── */
footer a {
    position: relative;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .about-img-secondary {
        width: 70%;
        bottom: -4px;
        right: -4px;
    }

    .about-badge {
        width: 180px;
        height: 70px;
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .font-display.text-4xl {
        font-size: 2.25rem;
    }
}

/* ── 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;
    }

    .hero-bg {
        animation: none;
    }

    .hero-content,
    .hero-badge,
    .hero-headline,
    .hero-subtitle,
    .hero-ctas {
        opacity: 1;
        transform: none;
    }

    .about-grid,
    .menu-grid,
    .specialties-grid,
    .visit-grid,
    .contact-grid {
        opacity: 1;
        transform: none;
    }

    .about-feature,
    .menu-card,
    .specialty-card,
    .visit-info {
        opacity: 1;
        transform: none;
    }
}
