/* ============================================
   McDonald Avenue Diner — Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

::selection {
    background: #e04a2a;
    color: #FDF8F0;
}

/* --- Geometric Background Decorations --- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(224, 74, 42, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -150px;
}

.geo-circle--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle--1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(224, 74, 42, 0.07);
    top: 35%;
    left: 5%;
    transform: rotate(-15deg);
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

.geo-square--1 {
    width: 80px;
    height: 80px;
    background: rgba(212, 168, 67, 0.08);
    top: 60%;
    right: 8%;
    transform: rotate(30deg);
    border-radius: 8px;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(224, 74, 42, 0.12) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 20%;
    right: 15%;
    pointer-events: none;
}

/* --- Navigation --- */
.nav {
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(28, 25, 23, 0.06);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 30px rgba(28, 25, 23, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    display: block;
    background: #1C1917;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #1C1917;
    font-size: 0.938rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

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

.nav-link:hover {
    color: #e04a2a;
}

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

.nav-cta {
    text-decoration: none;
    background: #e04a2a;
    color: #FDF8F0;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 100px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(224, 74, 42, 0.3);
}

.nav-cta:hover {
    background: #c9351e;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(224, 74, 42, 0.4);
}

/* Mobile Menu */
.mobile-menu {
    background: rgba(253, 248, 240, 0.98);
    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    text-decoration: none;
    color: #1C1917;
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: #e04a2a;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #FDF8F0 0%, #fdf9ec 50%, #fdf0eb 100%);
    position: relative;
}

.hero-grid {
    position: relative;
    z-index: 10;
}

.hero-badge {
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-headline {
    letter-spacing: -0.02em;
}

.hero-subtitle {
    line-height: 1.7;
}

.hero-actions {
    gap: 16px;
}

/* Floating Cards */
.hero-card-stack {
    perspective: 1000px;
}

.hero-img-card {
    position: relative;
}

.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(28, 25, 23, 0.3) 100%);
    pointer-events: none;
}

.hero-img {
    display: block;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 8px 40px rgba(28, 25, 23, 0.12), 0 2px 8px rgba(28, 25, 23, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 20;
    animation: float 6s ease-in-out infinite;
}

.floating-card--1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.floating-card--2 {
    bottom: 15%;
    right: -20px;
    animation-delay: -2s;
}

.floating-card--3 {
    top: 50%;
    left: -50px;
    animation-delay: -4s;
}

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

.card-stat {
    gap: 14px;
}

.card-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-stat--accent .card-stat-icon {
    background: #e04a2a;
    color: #FDF8F0;
}

.card-stat--sand .card-stat-icon {
    background: #d4a843;
    color: #1C1917;
}

.card-stat:not(.card-stat--accent):not(.card-stat--sand) .card-stat-icon {
    background: #fce4d6;
    color: #e04a2a;
}

.card-stat-number {
    display: block;
    font-size: 0.938rem;
    font-weight: 700;
    color: #1C1917;
    line-height: 1.3;
}

.card-stat-label {
    display: block;
    font-size: 0.813rem;
    color: #1C1917/60;
    margin-top: 2px;
}

/* Scroll Indicator */
.hero-scroll {
    display: flex;
    justify-content: center;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #1C1917/30, transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: #e04a2a;
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e04a2a;
    color: #FDF8F0;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(224, 74, 42, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #c9351e;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(224, 74, 42, 0.4);
    color: #FDF8F0;
}

.btn-primary svg {
    transition: transform 0.2s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #1C1917;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    border: 2px solid rgba(28, 25, 23, 0.2);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: #e04a2a;
    color: #e04a2a;
    transform: translateY(-2px);
}

.btn-secondary svg {
    transition: transform 0.2s ease;
}

.btn-secondary:hover svg {
    transform: scale(1.1);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #1C1917;
    font-weight: 600;
    font-size: 0.938rem;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    border: 2px solid rgba(28, 25, 23, 0.15);
    transition: all 0.25s ease;
}

.btn-outline:hover {
    border-color: #e04a2a;
    color: #e04a2a;
    transform: translateY(-2px);
}

.btn-cream {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FDF8F0;
    color: #1C1917;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cream:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: #1C1917;
}

.btn-terracotta-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #FDF8F0;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    border: 2px solid rgba(253, 248, 240, 0.4);
    transition: all 0.25s ease;
}

.btn-terracotta-outline:hover {
    background: rgba(253, 248, 240, 0.1);
    border-color: #FDF8F0;
    color: #FDF8F0;
    transform: translateY(-2px);
}

/* --- Marquee --- */
.marquee-strip {
    position: relative;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 48px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(253, 248, 240, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Section Shared --- */
.section {
    position: relative;
    padding: 96px 0;
}

.section-header {
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e04a2a;
    background: rgba(224, 74, 42, 0.08);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-tag--light {
    color: #f49d7e;
    background: rgba(244, 157, 126, 0.15);
}

.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.063rem;
    line-height: 1.7;
}

/* --- Menu Cards --- */
.menu-grid {
    display: grid;
    gap: 24px;
}

.menu-card {
    background: white;
    border-radius: 24px;
    padding: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(28, 25, 23, 0.06);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(28, 25, 23, 0.1);
    border-color: transparent;
}

.menu-card-img {
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
}

.menu-card-img-inner {
    transition: transform 0.5s ease;
    display: block;
    width: 100%;
    height: 100%;
}

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

.menu-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e04a2a;
    background: rgba(224, 74, 42, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
    margin: 12px 16px 0;
}

.menu-card-tag--sand {
    color: #946a26;
    background: rgba(212, 168, 67, 0.12);
}

.menu-card-tag--dark {
    color: #1C1917;
    background: rgba(28, 25, 23, 0.08);
}

.menu-card-tag--accent {
    color: #FDF8F0;
    background: #e04a2a;
}

.menu-card-title {
    font-family: 'Fraunces', serif;
    margin: 14px 16px 0;
    line-height: 1.3;
}

.menu-card-desc {
    margin: 10px 16px 16px;
}

/* --- About --- */
.about-grid {
    position: relative;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 32px;
    overflow: hidden;
}

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

.about-img-secondary {
    border: 4px solid #FDF8F0;
}

.about-deco {
    position: absolute;
    pointer-events: none;
}

.about-deco--circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(224, 74, 42, 0.08);
    top: -30px;
    right: 60%;
}

.about-deco--dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.2) 2px, transparent 2px);
    background-size: 12px 12px;
    bottom: 20%;
    left: -20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-stat-number {
    font-family: 'Fraunces', serif;
}

.about-stat-label {
    font-size: 0.813rem;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
}

.gallery-img {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-img-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img-inner {
    transform: scale(1.06);
}

/* --- Visit --- */
.visit-grid {
    display: grid;
    gap: 48px;
}

.visit-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.visit-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(224, 74, 42, 0.08);
    color: #e04a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.visit-info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1C1917/50;
    margin-bottom: 4px;
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(28, 25, 23, 0.12);
}

/* --- CTA --- */
.cta-section {
    position: relative;
}

.cta-bg {
    background: linear-gradient(135deg, #e04a2a 0%, #c9351e 100%);
}

.cta-pattern {
    opacity: 0.06;
}

.cta-content {
    position: relative;
    z-index: 10;
}

/* --- Footer --- */
.footer {
    position: relative;
}

.footer-grid {
    display: grid;
    gap: 40px;
}

.footer-logo {
    display: block;
}

.footer-heading {
    font-family: 'Space Grotesk', sans-serif;
}

.footer-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .hero-card-stack {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .about-img-secondary {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item[style*="span 2"] {
        grid-column: span 1;
        grid-row: span 1;
    }

    .visit-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 4rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 5rem;
    }
}
