/* ========================================
   STAG & LION PUB — Editorial Style
   Palette: Terracotta + Sand
   ======================================== */

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

:root {
    --terracotta: #B85446;
    --terracotta-deep: #8B3A2E;
    --terracotta-light: #D4816F;
    --sand: #F5E6D3;
    --sand-light: #FBF5ED;
    --sand-mid: #E8D5C0;
    --cream: #FFF9F4;
    --charcoal: #1E1A17;
    --charcoal-soft: #3D352E;
    --warm-gray: #6B5E54;
    --warm-gray-light: #9A8D82;
    --white: #FFFFFF;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background-color: rgba(251, 245, 237, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(30, 26, 23, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--sand);
    transition: color 0.3s ease;
}

.nav.scrolled .nav-logo {
    color: var(--charcoal);
}

.nav-logo-icon {
    color: var(--terracotta-light);
}

.nav.scrolled .nav-logo-icon {
    color: var(--terracotta);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--sand);
    transition: color 0.3s ease;
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--charcoal-soft);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--terracotta-light);
    transition: width 0.3s ease;
}

.nav.scrolled .nav-links a::after {
    background-color: var(--terracotta);
}

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

.nav-cta {
    background-color: var(--terracotta) !important;
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background-color: var(--terracotta-deep) !important;
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--sand);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span {
    background-color: var(--charcoal);
}

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

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

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

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/5553518/pexels-photo-5553518.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 26, 23, 0.82) 0%,
        rgba(30, 26, 23, 0.65) 50%,
        rgba(139, 58, 46, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 24px;
    margin-left: 8%;
}

.hero-card {
    background: rgba(251, 245, 237, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 230, 211, 0.15);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
}

.hero-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.12;
    color: var(--sand);
    margin-bottom: 20px;
}

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

.hero-sub {
    font-size: 1.05rem;
    color: var(--sand-mid);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--terracotta-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 84, 70, 0.35);
}

.btn-ghost {
    background-color: transparent;
    color: var(--sand);
    border: 1.5px solid rgba(245, 230, 211, 0.4);
}

.btn-ghost:hover {
    border-color: var(--sand);
    background-color: rgba(245, 230, 211, 0.1);
    transform: translateY(-2px);
}

/* Floating Stat Cards */
.hero-stats {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.stat-card {
    background: rgba(251, 245, 237, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 230, 211, 0.15);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    min-width: 160px;
    opacity: 0;
    transform: translateX(20px);
}

.stat-card.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-card:nth-child(2).visible { transition-delay: 0.15s; }
.stat-card:nth-child(3).visible { transition-delay: 0.3s; }

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--terracotta-light);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--sand-mid);
    letter-spacing: 0.03em;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 100px 0;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.section-heading + p,
.menu-intro,
.visit-intro {
    font-size: 1.05rem;
    color: var(--warm-gray);
    line-height: 1.7;
    max-width: 560px;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    background-color: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 560/680;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.about-text p {
    color: var(--warm-gray);
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--sand-mid);
    color: var(--warm-gray-light);
    font-size: 0.9rem;
}

.about-signature svg {
    color: var(--terracotta);
    opacity: 0.6;
}

/* ========================================
   MENU
   ======================================== */
.menu {
    background-color: var(--sand);
}

.menu-header {
    text-align: center;
    margin-bottom: 64px;
}

.menu-header .menu-intro {
    margin: 0 auto;
}

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

.menu-category {
    background-color: var(--cream);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid var(--sand-mid);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 26, 23, 0.08);
}

.menu-cat-icon {
    width: 48px;
    height: 48px;
    background-color: var(--sand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    margin-bottom: 20px;
}

.menu-cat-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.menu-cat-desc {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.menu-list {
    list-style: none;
}

.menu-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--sand-mid);
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-list span:first-child {
    font-weight: 500;
    color: var(--charcoal-soft);
}

.menu-divider {
    flex: 1;
    height: 1px;
    background-color: var(--sand-mid);
}

.menu-note {
    font-size: 0.8rem;
    color: var(--warm-gray-light);
    white-space: nowrap;
}

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

/* ========================================
   ATMOSPHERE
   ======================================== */
.atmosphere {
    background-color: var(--cream);
}

.atm-header {
    text-align: center;
    margin-bottom: 48px;
}

.atm-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 16px;
    margin-bottom: 48px;
}

.atm-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.atm-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.atm-photo:hover img {
    transform: scale(1.04);
}

.atm-photo--tall {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
}

.atm-photo--wide {
    grid-column: 5 / 11;
    grid-row: 1 / 2;
}

.atm-photo--square {
    grid-column: 11 / 13;
    grid-row: 1 / 3;
}

.atm-photo:not(.atm-photo--tall):not(.atm-photo--wide):not(.atm-photo--square) {
    grid-column: 5 / 13;
    grid-row: 2 / 3;
}

.atm-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.atm-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal-soft);
}

.atm-feature svg {
    color: var(--terracotta);
    flex-shrink: 0;
}

/* ========================================
   VISIT
   ======================================== */
.visit {
    background-color: var(--charcoal);
    color: var(--sand);
}

.visit .section-eyebrow {
    color: var(--terracotta-light);
}

.visit .section-heading {
    color: var(--sand);
}

.visit .visit-intro {
    color: var(--warm-gray-light);
    margin-bottom: 40px;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit-detail {
    display: flex;
    gap: 16px;
}

.visit-icon {
    color: var(--terracotta-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 4px;
}

.visit-detail p {
    color: var(--sand-mid);
    font-size: 0.95rem;
    line-height: 1.6;
}

.visit-detail a {
    color: var(--sand);
    transition: color 0.3s ease;
}

.visit-detail a:hover {
    color: var(--terracotta-light);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
}

.visit-map iframe {
    filter: saturate(0.7) contrast(1.05);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--charcoal);
    border-top: 1px solid rgba(245, 230, 211, 0.08);
    padding: 56px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

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

.footer-brand p {
    color: var(--warm-gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a {
    color: var(--sand-mid);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-contact span {
    color: var(--warm-gray-light);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 230, 211, 0.08);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--warm-gray-light);
}

.footer-note {
    font-style: italic;
    opacity: 0.7;
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        margin-left: 0;
        padding: 0 32px;
    }
    
    .hero-stats {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        padding: 0 24px 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .stat-card {
        min-width: 140px;
    }
    
    .atm-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .atm-photo--tall,
    .atm-photo--wide,
    .atm-photo--square {
        grid-column: auto;
        grid-row: auto;
    }
    
    .atm-photo--tall {
        grid-column: 1 / -1;
    }
    
    .atm-photo--wide {
        grid-column: 1 / 3;
    }
    
    .atm-photo--square {
        grid-column: 1 / 3;
    }
    
    .atm-photo:not(.atm-photo--tall):not(.atm-photo--wide):not(.atm-photo--square) {
        grid-column: 1 / -1;
    }
    
    .atm-photo {
        height: 240px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background-color: rgba(251, 245, 237, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
        box-shadow: 0 8px 24px rgba(30, 26, 23, 0.1);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links a {
        color: var(--charcoal) !important;
        font-size: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-card {
        padding: 32px 24px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0 24px 20px;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .section {
        padding: 72px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrap {
        aspect-ratio: 4/3;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .atm-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .atm-photo--wide,
    .atm-photo--square,
    .atm-photo:not(.atm-photo--tall):not(.atm-photo--wide):not(.atm-photo--square) {
        grid-column: 1 / -1;
    }
    
    .atm-photo {
        height: 220px;
    }
    
    .atm-features {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .visit-map {
        min-height: 280px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
    
    .stat-card {
        opacity: 1;
        transform: none;
    }
    
    .atm-photo img,
    .about-image-wrap img {
        transition: none;
    }
}
