/* =================================================================
   THE PUB — Tavern theme
   Fonts: Alfa Slab One (signage) · Playfair Display (headings)
          Lora (body) · Caveat (chalk accents)
   ================================================================= */

:root {
    --wood-darkest: #160d06;
    --wood-dark: #211309;
    --wood: #34200f;
    --wood-light: #4a2f18;
    --wood-rail: #5e3d20;

    --ale: #e8a33d;        /* amber ale */
    --ale-deep: #c8852b;   /* deep amber */
    --ale-glow: #f4be63;
    --brass: #d4af37;      /* brass fittings */
    --foam: #f6ecd2;       /* head of the pint */
    --burgundy: #8a2f2a;   /* wine red */
    --bottle: #20342a;     /* bottle-green chalkboard */
    --bottle-dark: #16241c;

    --cream: #f1e2c2;      /* primary text */
    --parchment: #d9c6a0;  /* muted text */
    --muted: #a8916c;

    --serif: 'Playfair Display', Georgia, serif;
    --body: 'Lora', Georgia, serif;
    --sign: 'Alfa Slab One', cursive;
    --chalk: 'Caveat', cursive;

    --radius: 14px;
    --shadow: 0 18px 50px rgba(0,0,0,.55);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    color: var(--cream);
    background: var(--wood-darkest);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ---------------- Tavern ambience / backgrounds ---------------- */
.bg-wood {
    position: fixed; inset: 0; z-index: -3;
    background:
        repeating-linear-gradient(90deg,
            rgba(0,0,0,.22) 0px, rgba(0,0,0,.22) 2px,
            transparent 2px, transparent 7px),
        repeating-linear-gradient(0deg,
            rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px,
            transparent 1px, transparent 160px),
        linear-gradient(135deg, #2a1810 0%, #1b0f08 45%, #24140b 100%);
    background-size: 220px 100%, 100% 160px, 100% 100%;
}
.bg-vignette {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background: radial-gradient(ellipse at 50% 8%, rgba(232,163,61,.10), transparent 55%),
                radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.6), transparent 60%),
                radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,.55) 100%);
}
.bg-lamp {
    position: fixed; z-index: -2; width: 520px; height: 520px; border-radius: 50%;
    filter: blur(90px); opacity: .35; pointer-events: none;
    animation: flicker 6s ease-in-out infinite;
}
.bg-lamp-1 { top: -120px; left: -80px; background: radial-gradient(circle, var(--ale), transparent 70%); }
.bg-lamp-2 { bottom: -160px; right: -100px; background: radial-gradient(circle, var(--burgundy), transparent 70%); animation-delay: 2s; }
.bg-smoke {
    position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
    background: radial-gradient(circle at 20% 30%, rgba(255,235,200,.04), transparent 25%),
                radial-gradient(circle at 80% 70%, rgba(255,235,200,.03), transparent 25%);
}
@keyframes flicker {
    0%,100% { opacity: .35; } 45% { opacity: .42; } 55% { opacity: .28; } 70% { opacity: .4; }
}

/* ---------------- Navbar ---------------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px 0; transition: all .35s ease;
    background: linear-gradient(180deg, rgba(20,11,5,.85), rgba(20,11,5,0));
}
.navbar.scrolled {
    padding: 10px 0;
    background: linear-gradient(180deg, rgba(20,11,5,.97), rgba(26,15,8,.93));
    border-bottom: 2px solid rgba(212,175,55,.35);
    box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.nav-container {
    max-width: 1240px; margin: 0 auto; padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-mug { color: var(--ale); font-size: 1.5rem; filter: drop-shadow(0 0 8px rgba(232,163,61,.5)); }
.logo-text {
    font-family: var(--sign); font-size: 1.55rem; color: var(--foam);
    letter-spacing: .5px; text-shadow: 0 2px 0 #000, 0 0 18px rgba(232,163,61,.25);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
    color: var(--parchment); text-decoration: none; font-weight: 500; font-size: .95rem;
    padding: 9px 14px; border-radius: 9px; transition: all .25s ease; white-space: nowrap;
}
.nav-link i { margin-right: 6px; color: var(--brass); font-size: .85em; }
.nav-link:hover { color: var(--foam); background: rgba(212,175,55,.12); }
.nav-cta {
    background: linear-gradient(180deg, var(--ale), var(--ale-deep));
    color: #2a1607 !important; font-weight: 700;
    box-shadow: 0 4px 0 #8f5e1b, 0 8px 18px rgba(0,0,0,.4);
}
.nav-cta i { color: #2a1607; }
.nav-cta:hover { background: linear-gradient(180deg, var(--ale-glow), var(--ale)); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ale); border-radius: 3px; transition: .3s; }

/* ---------------- Hero ---------------- */
.hero {
    min-height: 100vh; display: flex; align-items: center; gap: 40px;
    max-width: 1240px; margin: 0 auto; padding: 120px 28px 80px;
    position: relative; flex-wrap: wrap;
}
.hero-content { flex: 1 1 480px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--chalk); font-size: 1.35rem; color: var(--ale-glow);
    border: 1px dashed rgba(232,163,61,.5); border-radius: 40px;
    padding: 4px 18px; margin-bottom: 26px; background: rgba(0,0,0,.25);
}
.badge-dot { width: 9px; height: 9px; border-radius: 50%; background: #6fae5a; box-shadow: 0 0 10px #6fae5a; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero-title { margin-bottom: 22px; }
.title-pre {
    display: block; font-family: var(--serif); font-style: italic; font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 1.9rem); color: var(--parchment); margin-bottom: 6px;
}
.title-accent {
    display: block; font-family: var(--sign);
    font-size: clamp(3.4rem, 9vw, 6.6rem); line-height: .95; color: var(--foam);
    text-shadow: 0 4px 0 #000, 0 6px 0 var(--ale-deep), 0 10px 30px rgba(232,163,61,.4);
    letter-spacing: 1px;
}
.hero-desc { font-size: 1.18rem; color: var(--parchment); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
    font-family: var(--serif); font-weight: 700; font-size: 1.02rem;
    padding: 15px 30px; border-radius: 12px; cursor: pointer; transition: all .22s ease;
    border: 0;
}
.btn i { font-size: .95em; }
.btn-primary {
    background: linear-gradient(180deg, var(--ale-glow), var(--ale-deep));
    color: #2a1607; box-shadow: 0 5px 0 #8f5e1b, 0 12px 26px rgba(0,0,0,.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #8f5e1b, 0 16px 30px rgba(0,0,0,.5); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #8f5e1b; }
.btn-secondary {
    background: rgba(0,0,0,.3); color: var(--foam);
    border: 2px solid rgba(212,175,55,.55); box-shadow: 0 5px 18px rgba(0,0,0,.35);
}
.btn-secondary:hover { background: rgba(212,175,55,.14); border-color: var(--brass); transform: translateY(-2px); }
.btn-accent {
    background: linear-gradient(180deg, #a23b35, var(--burgundy)); color: var(--foam);
    box-shadow: 0 5px 0 #531b18, 0 12px 26px rgba(0,0,0,.45);
}
.btn-accent:hover { transform: translateY(-2px); }

.hero-stats { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--sign); font-size: 2.4rem; color: var(--ale); line-height: 1; text-shadow: 0 2px 0 #000; }
.stat-label { font-family: var(--chalk); font-size: 1.15rem; color: var(--parchment); }
.stat-divider { width: 2px; height: 44px; background: linear-gradient(180deg, transparent, rgba(212,175,55,.5), transparent); }

/* hanging pub sign */
.hero-visual { flex: 1 1 360px; display: flex; justify-content: center; }
.pub-sign { position: relative; padding-top: 46px; animation: swing 7s ease-in-out infinite; transform-origin: top center; }
@keyframes swing { 0%,100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.sign-chain { position: absolute; top: 0; width: 4px; height: 50px; background: repeating-linear-gradient(180deg, var(--brass) 0 6px, #7a5e1e 6px 12px); }
.sign-chain-l { left: 22%; transform: rotate(14deg); transform-origin: top; }
.sign-chain-r { right: 22%; transform: rotate(-14deg); transform-origin: top; }
.sign-board {
    width: min(420px, 80vw); padding: 26px; text-align: center;
    background: linear-gradient(160deg, #3a2415, #24150b);
    border: 6px solid var(--wood-rail); border-radius: 18px;
    box-shadow: inset 0 0 0 2px rgba(212,175,55,.35), var(--shadow);
    position: relative;
}
.sign-board::before, .sign-board::after {
    content: ''; position: absolute; top: -16px; width: 16px; height: 16px;
    border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--brass), #6b5018);
    box-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.sign-board::before { left: calc(22% - 6px); }
.sign-board::after { right: calc(22% - 6px); }
.sign-logo { width: 100%; max-width: 320px; height: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.6)); }
.sign-est { display: block; margin-top: 10px; font-family: var(--chalk); font-size: 1.3rem; color: var(--ale-glow); }

.hero-scroll {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    color: var(--brass); font-size: 1.3rem; animation: bob 2s ease-in-out infinite; opacity: .8;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------------- Sections ---------------- */
.section { padding: 100px 0; position: relative; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 60px; opacity: 0; transform: translateY(24px); transition: all .7s ease; }
.section-header.visible { opacity: 1; transform: none; }
.section-tag {
    display: inline-block; font-family: var(--chalk); font-size: 1.4rem; color: var(--ale-glow);
    letter-spacing: 1px; margin-bottom: 8px;
}
.section-tag i { margin-right: 8px; }
.section-title {
    font-family: var(--sign); font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--foam);
    text-shadow: 0 3px 0 #000, 0 5px 18px rgba(0,0,0,.5); margin-bottom: 16px;
}
.section-desc { font-size: 1.12rem; color: var(--parchment); }
.section-title::after {
    content: ''; display: block; width: 90px; height: 4px; margin: 18px auto 0;
    background: linear-gradient(90deg, transparent, var(--brass), transparent); border-radius: 4px;
}

/* About cards = beer coasters / wood panels */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.about-card {
    background: linear-gradient(160deg, rgba(74,47,24,.55), rgba(33,19,9,.7));
    border: 1px solid rgba(212,175,55,.22); border-top: 3px solid var(--ale);
    border-radius: var(--radius); padding: 36px 30px; text-align: center;
    box-shadow: var(--shadow); opacity: 0; transform: translateY(28px);
    transition: all .6s ease;
}
.about-card.visible { opacity: 1; transform: none; }
.about-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.5); }
.card-icon {
    width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.9rem; color: #2a1607;
    background: radial-gradient(circle at 35% 30%, var(--ale-glow), var(--ale-deep));
    box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 0 0 3px rgba(255,255,255,.15);
}
.about-card h3 { font-family: var(--serif); font-size: 1.45rem; color: var(--foam); margin-bottom: 12px; }
.about-card p { color: var(--parchment); }

/* Features = chalkboard specials board */
.section-board { padding: 90px 0; }
.board {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.04), transparent 60%),
        linear-gradient(160deg, var(--bottle), var(--bottle-dark));
    border: 14px solid #3a2415;
    border-radius: 18px;
    box-shadow: inset 0 0 60px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.05), var(--shadow);
    padding: 56px 40px; position: relative; opacity: 0; transform: scale(.98);
    transition: all .7s ease;
}
.board.visible { opacity: 1; transform: none; }
.board::after {
    content: ''; position: absolute; inset: 14px; border: 1px dashed rgba(246,236,210,.18);
    border-radius: 8px; pointer-events: none;
}
.board-header { text-align: center; margin-bottom: 42px; }
.board-tag { font-family: var(--chalk); font-size: 1.5rem; color: var(--ale-glow); display: block; }
.board-title { font-family: var(--sign); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--foam); text-shadow: 1px 1px 0 rgba(0,0,0,.6); margin: 4px 0; }
.board-sub { font-family: var(--chalk); font-size: 1.35rem; color: var(--parchment); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.feature-card {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    background: rgba(0,0,0,.25); border: 1px solid rgba(246,236,210,.14);
    border-radius: 10px; color: var(--foam); font-family: var(--serif); font-weight: 600;
    opacity: 0; transform: translateY(16px); transition: all .5s ease;
}
.feature-card.visible { opacity: 1; transform: none; }
.feature-card i { color: var(--ale); font-size: 1.3rem; width: 28px; text-align: center; }
.feature-card:hover { background: rgba(232,163,61,.14); border-color: rgba(232,163,61,.45); transform: translateY(-3px); }

/* Community CTA cards = framed bar signs */
.community-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.cta-card {
    background: linear-gradient(160deg, rgba(74,47,24,.5), rgba(33,19,9,.72));
    border: 2px solid rgba(212,175,55,.28); border-radius: var(--radius);
    padding: 34px 28px; text-align: center; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(28px); transition: all .6s ease;
}
.cta-card.visible { opacity: 1; transform: none; }
.cta-card:hover { transform: translateY(-6px); border-color: var(--brass); }
.cta-icon {
    width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.8rem; color: var(--ale-glow);
    background: rgba(0,0,0,.3); border: 1px solid rgba(212,175,55,.35);
}
.cta-card h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--foam); margin-bottom: 12px; }
.cta-card p { color: var(--parchment); margin-bottom: 24px; }
.cta-card .btn { width: 100%; justify-content: center; }

/* ---------------- Footer ---------------- */
.footer {
    border-top: 3px solid rgba(212,175,55,.3); padding: 40px 0;
    background: linear-gradient(180deg, rgba(20,11,5,.5), rgba(20,11,5,.95));
}
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.footer-brand .logo-text { font-size: 1.5rem; }
.footer-brand .logo-text i { color: var(--ale); margin-right: 6px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 6px; font-style: italic; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--parchment); text-decoration: none; transition: color .2s; }
.footer-links a i { color: var(--brass); margin-right: 6px; }
.footer-links a:hover { color: var(--ale); }

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 68px; right: 14px; left: 14px;
        flex-direction: column; align-items: stretch; gap: 6px;
        background: linear-gradient(180deg, rgba(26,15,8,.99), rgba(20,11,5,.99));
        border: 2px solid rgba(212,175,55,.35); border-radius: 14px; padding: 14px;
        box-shadow: var(--shadow);
        max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: all .3s ease;
    }
    .nav-links.active { max-height: 560px; opacity: 1; pointer-events: auto; padding: 14px; }
    .nav-link { padding: 12px 14px; }
    .hero { text-align: center; padding-top: 110px; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-badge { font-size: 1.15rem; }
}
@media (max-width: 520px) {
    .hero-stats { gap: 14px; }
    .stat-divider { display: none; }
    .board { padding: 40px 20px; border-width: 10px; }
    .section { padding: 70px 0; }
}
