/* ============================================
   Wayside Tavern and Patio — Stylesheet
   Palette: Burgundy (#7B2D3B) + Blush (#FDF2F4)
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --burgundy: #7B2D3B;
    --burgundy-deep: #5C1F2C;
    --burgundy-light: #9A3D4E;
    --blush: #FDF2F4;
    --blush-mid: #F9E4E8;
    --blush-dark: #F5D0D8;
    --cream: #FFFAF8;
    --warm-gray: #6B5E60;
    --warm-gray-light: #9E8E90;
    --text-dark: #3D2C2E;
    --text-mid: #5C4A4C;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(123, 45, 59, 0.06);
    --shadow-md: 0 4px 20px rgba(123, 45, 59, 0.1);
    --shadow-lg: 0 8px 40px rgba(123, 45, 59, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    color: var(--text-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 242, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(253, 242, 244, 0.97);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--burgundy);
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text span:first-child {
    font-size: 0.7rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--warm-gray-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-mid);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--burgundy);
    background: var(--blush);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--burgundy);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blush) 0%, var(--cream) 50%, var(--blush-mid) 100%);
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(123, 45, 59, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 208, 216, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(123, 45, 59, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237B2D3B' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    max-width: 520px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blush);
    border: 1px solid var(--blush-dark);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--burgundy);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-headline em {
    color: var(--burgundy);
    font-style: italic;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.btn-secondary:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-burgundy {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn-burgundy:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn-white {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--blush);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.hero-detail-item svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

.hero-detail-item a {
    color: var(--burgundy);
    font-weight: 600;
    transition: var(--transition);
}

.hero-detail-item a:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

.hero-right {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--burgundy);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.15;
}

.hero-floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--burgundy);
}

.hero-floating-card svg {
    color: var(--burgundy);
}

/* ============================================
   Features
   ============================================ */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blush-dark);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--blush);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--burgundy);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================
   Split Section
   ============================================ */
.split-section {
    padding: 100px 0;
    background: var(--cream);
}

.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.split-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.split-image:hover img {
    transform: scale(1.03);
}

.split-content {
    padding: 20px 0;
}

/* ============================================
   Section Shared
   ============================================ */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blush);
    border: 1px solid var(--blush-dark);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-title--center {
    text-align: center;
}

.section-text {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 24px;
}

.section-text--center {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-text--light {
    color: rgba(255, 255, 255, 0.85);
}

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

/* ============================================
   Patio Features
   ============================================ */
.patio-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.patio-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-mid);
    font-weight: 500;
}

.patio-features li svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

/* ============================================
   Menu Section
   ============================================ */
.menu-section {
    padding: 100px 0;
    background: var(--white);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.menu-category {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.menu-category:hover {
    border-color: var(--blush-dark);
    box-shadow: var(--shadow-sm);
}

.menu-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--blush);
}

.menu-category-header svg {
    color: var(--burgundy);
}

.menu-category-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--warm-gray-light);
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--warm-gray-light);
    font-style: italic;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-section {
    padding: 100px 0;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-inner .section-tag {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.cta-inner .section-title {
    color: var(--white);
}

.cta-inner .section-text {
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail svg {
    color: var(--burgundy);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--warm-gray);
    margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--burgundy);
    font-weight: 600;
    transition: var(--transition);
}

.contact-detail a:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

.contact-map iframe {
    border-radius: var(--radius-lg);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 260px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 40px;
    }

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

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

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

    .footer-links {
        flex-direction: row;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 242, 244, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(123, 45, 59, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }

    .hero-left {
        max-width: 100%;
        text-align: center;
    }

    .hero-sub {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-details {
        align-items: center;
    }

    .hero-right {
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-image-wrapper img {
        height: 400px;
    }

    .hero-floating-card {
        left: 10px;
        bottom: 20px;
    }

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

    .split-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-image img {
        height: 320px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-map {
        min-height: 300px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-contact {
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .gallery-item img {
        height: 200px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
}

@media not all and (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
