/* ═══════════════════════════════════════
   Castle Inn — Public Stylesheet
   ═══════════════════════════════════════ */

:root {
    --bg:           #0e0b08;
    --green-deep:   #1a3a1a;
    --gold:         #c8993a;
    --red-castle:   #8b1a1a;
    --text:         #f0e6d3;
    --text-muted:   #a08060;
    --stone-border: #3a2a1a;
    --card-bg:      #151110;
    --card-hover:   #1a1510;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Pro', Georgia, serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: 18px;
    line-height: 1.7;
    position: relative;
}

/* Subtle grain overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    color: var(--gold);
    line-height: 1.3;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #daa94a;
}

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

address {
    font-style: normal;
    line-height: 1.8;
}

/* ─── Layout ─── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 750px;
}

.section {
    padding: 4rem 0;
}

.section + .section {
    border-top: 1px solid var(--stone-border);
}

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
}

.btn-primary:hover {
    background: #daa94a;
    color: var(--bg);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background: rgba(200, 153, 58, 0.1);
    color: #daa94a;
}

/* ─── Navigation ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--green-deep);
    border-bottom: 1px solid var(--stone-border);
    transition: background 0.3s;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

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

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

/* ─── Hero ─── */
.hero,
.dungeon-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(14, 11, 8, 0.4),
        rgba(14, 11, 8, 0.8)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--gold);
    text-shadow: 0 0 40px rgba(200, 153, 58, 0.3);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Section Headings ─── */
.section-heading {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0.75rem auto 0;
}

.section-heading-muted {
    color: var(--text-muted);
}

.section-heading-muted::after {
    background: var(--stone-border);
}

.page-title {
    font-size: 2.2rem;
    text-align: center;
    margin: 6rem 0 2.5rem;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 0.75rem auto 0;
}

.gold-rule {
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 2rem auto;
}

.section-link {
    text-align: center;
    margin-top: 1.5rem;
}

.link-arrow {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.link-arrow::after {
    content: ' \2192';
}

/* ─── Event Cards ─── */
.events-grid {
    display: grid;
    gap: 1.5rem;
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--stone-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.event-card:hover {
    border-color: var(--gold);
}

.event-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card-content {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem;
    background: var(--red-castle);
    border-radius: 6px;
    text-align: center;
    flex-shrink: 0;
}

.event-month {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.event-day {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.event-title {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.event-time {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.event-desc {
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0.85;
}

.events-grid-past .event-card {
    opacity: 0.6;
}

.past-events-toggle {
    text-align: center;
    margin-top: 2rem;
}

/* ─── Drink Cards ─── */
.drinks-category {
    margin-bottom: 3rem;
}

.category-heading {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--stone-border);
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.drink-card {
    background: var(--card-bg);
    border: 1px solid var(--stone-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.drink-card:hover {
    border-color: var(--gold);
}

.drink-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.drink-card-content {
    padding: 1rem 1.25rem;
}

.drink-name {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.drink-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.drink-price {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    font-weight: 600;
}

/* ─── Hours Widget ─── */
.hours-widget {
    max-width: 400px;
    margin: 0 auto;
}

.hours-title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid rgba(58, 42, 26, 0.5);
}

.hours-table td {
    padding: 0.5rem 0;
}

.hours-day {
    font-weight: 600;
    color: var(--text);
}

.hours-time {
    text-align: right;
    color: var(--text-muted);
}

.hours-today .hours-day,
.hours-today .hours-time {
    color: var(--gold);
}

.hours-closed {
    color: var(--red-castle);
}

.hours-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Dungeon Teaser (Homepage) ─── */
.dungeon-teaser {
    text-align: center;
}

.teaser-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.teaser-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--stone-border);
}

.teaser-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* ─── Dungeon Page ─── */
.dungeon-hero {
    min-height: 60vh;
}

.dungeon-story {
    max-width: 750px;
    margin: 0 auto;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--stone-border);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover img {
    border-color: var(--gold);
    transform: scale(1.02);
}

/* Halloween */
.halloween-section {
    text-align: center;
}

.halloween-heading {
    color: var(--red-castle);
}

.halloween-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.dungeon-cta {
    text-align: center;
    padding: 3rem 0;
}

/* ─── Find Us ─── */
.find-us-strip {
    background: var(--card-bg);
}

.find-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.find-us-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.find-us-map-large iframe {
    width: 100%;
    border-radius: 8px;
}

.find-us-contact h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.map-placeholder {
    background: var(--card-bg);
    border: 1px solid var(--stone-border);
    border-radius: 8px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Venue Badges */
.venue-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(200, 153, 58, 0.1);
    border: 1px solid var(--gold);
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

/* ─── About ─── */
.about-cta {
    text-align: center;
    padding-top: 2rem;
}

/* ─── WYSIWYG Content ─── */
.wysiwyg-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.wysiwyg-content p {
    margin-bottom: 1.25rem;
}

.wysiwyg-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.wysiwyg-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.wysiwyg-content ul,
.wysiwyg-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.wysiwyg-content a {
    text-decoration: underline;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
}

/* ─── Footer ─── */
.site-footer {
    background: var(--green-deep);
    border-top: 1px solid var(--stone-border);
    padding-top: 3rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.5fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-style: italic;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-contact address {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-link {
    color: var(--text-muted);
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--stone-border);
    padding: 1rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Lightbox ─── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--green-deep);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--stone-border);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(58, 42, 26, 0.3);
    }

    .section {
        padding: 2.5rem 0;
    }

    .page-title {
        margin-top: 5rem;
        font-size: 1.8rem;
    }

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

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

    .find-us-grid,
    .find-us-layout {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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