/* ========================================
   MEIE PUBI - Main Stylesheet
   Premium dark pub aesthetic
   ======================================== */

/* Fonts loaded via <link> in HTML for performance */

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

/* ---- Smooth scrolling & selection ---- */
html { scroll-behavior: smooth; }
::selection { background: #ffd172; color: #1a1c14; }

/* ---- Base ---- */
body {
    background-color: #141610;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(90,61,37,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(90,61,37,0.05) 0%, transparent 40%);
    color: #d4c8a0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 15px;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: #ffd172;
    text-decoration: none;
    transition: color 0.25s, opacity 0.25s;
}
a:hover {
    color: #ffe4a0;
}

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #ffd172;
    margin-bottom: 15px;
}

/* ---- Layout ---- */
.wrapper {
    max-width: 1060px;
    margin: 0 auto;
    position: relative;
}

/* ---- Top Bar ---- */
.top-bar {
    background: linear-gradient(to right, #1e201a, #2a2d22, #1e201a);
    border-bottom: 1px solid #3a3d32;
    padding: 10px 0;
    font-size: 12px;
    color: #a09878;
    letter-spacing: 0.5px;
}
.top-bar .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.top-bar a {
    color: #ffd172;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
}
.top-bar a:hover { color: #fff; }

/* ---- Header ---- */
.site-header {
    background: linear-gradient(160deg, #3b2a1a 0%, #5a3d25 40%, #4a3220 70%, #3b2a1a 100%);
    border-left: 5px solid #2a1d10;
    border-right: 5px solid #2a1d10;
    position: relative;
    overflow: hidden;
}
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 6px),
        linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, #2a1d10, #8b6914, #ffd172, #8b6914, #2a1d10);
    z-index: 3;
}

.header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 35px;
    min-height: 320px;
}

/* Logo / Paper note */
.logo-area {
    flex: 0 0 380px;
    position: relative;
}
.logo-area .paper-bg {
    background: linear-gradient(155deg, #faf3e4 0%, #f0e4cc 40%, #e8d8b8 100%);
    border-radius: 2px;
    padding: 20px 25px 25px;
    box-shadow:
        4px 4px 20px rgba(0,0,0,0.5),
        -1px -1px 3px rgba(255,255,255,0.1),
        inset 0 0 40px rgba(0,0,0,0.03);
    position: relative;
    transform: rotate(-1.5deg);
    transition: transform 0.4s ease;
}
.logo-area .paper-bg:hover {
    transform: rotate(0deg);
}
/* Pins */
.logo-area .paper-bg::before,
.logo-area .paper-bg::after {
    content: '';
    position: absolute;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #aaa 0%, #777 40%, #555 70%, #444 100%);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.3);
}
.logo-area .paper-bg::before { left: 16px; }
.logo-area .paper-bg::after { right: 16px; }

.logo-area .logo-img {
    display: block;
    max-width: 300px;
    margin: 0 auto 5px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.15));
}
.logo-area h1 {
    font-family: 'Lobster', Georgia, cursive;
    font-size: 54px;
    color: #2a1d10;
    text-align: center;
    margin-bottom: 2px;
    line-height: 1.1;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}
.logo-area .tagline {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color: #7a6040;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 2px;
}

/* Slider */
.header-slider {
    flex: 1;
    margin-left: 30px;
    border: 5px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 0 25px rgba(0,0,0,0.4),
        0 0 60px rgba(255,209,114,0.05),
        inset 0 0 30px rgba(0,0,0,0.3);
    max-height: 270px;
}
.header-slider img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
}
.slider-container {
    position: relative;
    overflow: hidden;
}
.slider-container .slides {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-container .slide {
    min-width: 100%;
}
.slider-dots {
    text-align: center;
    padding: 10px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    margin-top: -40px;
    position: relative;
    z-index: 5;
}
.slider-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    margin: 0 5px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.slider-dots .dot:hover {
    background: rgba(255,209,114,0.5);
}
.slider-dots .dot.active {
    background: #ffd172;
    box-shadow: 0 0 8px rgba(255,209,114,0.5);
}

/* ---- Navigation ---- */
.main-nav {
    background: linear-gradient(to bottom, #3d3428 0%, #2c2318 50%, #3d3428 100%);
    border-top: 1px solid #5a4a30;
    border-bottom: 1px solid #5a4a30;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.main-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b6914, transparent);
}
.main-nav::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b6914, transparent);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}
.main-nav li {
    position: relative;
}
.main-nav li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 30%;
    height: 40%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #5a4a30, transparent);
}
.main-nav a {
    display: block;
    padding: 15px 28px;
    color: #c8a860;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: #ffd172;
    transition: all 0.3s;
}
.main-nav a:hover,
.main-nav a.active {
    color: #ffd172;
    text-decoration: none;
}
.main-nav a:hover::after,
.main-nav a.active::after {
    left: 20%;
    right: 20%;
}

/* Dropdown */
.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a2419;
    border: 1px solid #5a4a30;
    min-width: 220px;
    z-index: 100;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
.main-nav li.has-dropdown:hover .dropdown { display: block; }
.main-nav .dropdown li + li::before { display: none; }
.main-nav .dropdown a {
    padding: 10px 18px;
    font-size: 12px;
    border-bottom: 1px solid #3a3226;
}

/* ---- Content Area ---- */
.content-area {
    display: flex;
    gap: 0;
    padding: 30px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Paper content block */
.paper-content {
    background: linear-gradient(170deg, #f8f0dc 0%, #f0e4cc 30%, #ebe0c4 100%);
    color: #3d3933;
    padding: 35px 40px 50px;
    border-radius: 2px;
    box-shadow:
        0 2px 15px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.5);
    position: relative;
    min-height: 400px;
}
/* Curled corner */
.paper-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(315deg, #141610 48%, transparent 49%, #e0d4b8 50%);
    filter: drop-shadow(-2px -2px 3px rgba(0,0,0,0.1));
}

.paper-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 34px;
    color: #2a1d10;
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
}
.paper-content h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #8b6914, #ffd172, transparent);
    border-radius: 2px;
}
.paper-content h3 {
    font-size: 22px;
    color: #5a3d25;
    margin-top: 25px;
}
.paper-content p {
    margin-bottom: 16px;
    text-align: justify;
    line-height: 1.8;
}
.paper-content a {
    color: #5a3d25;
    text-decoration: none;
    border-bottom: 1px dashed #c8b080;
    transition: all 0.3s;
}
.paper-content a:hover {
    color: #8b6914;
    border-bottom-color: #8b6914;
}

/* Content images */
.content-image {
    float: left;
    margin: 5px 25px 15px 0;
    border: 4px solid #e0d4b8;
    box-shadow: 3px 3px 12px rgba(0,0,0,0.15);
    max-width: 200px;
    transition: transform 0.3s;
}
.content-image:hover { transform: rotate(1deg) scale(1.02); }

.content-image-right {
    float: right;
    margin: 5px 0 15px 25px;
    border: 4px solid #e0d4b8;
    box-shadow: 3px 3px 12px rgba(0,0,0,0.15);
    max-width: 250px;
    transition: transform 0.3s;
}
.content-image-right:hover { transform: rotate(-1deg) scale(1.02); }

/* ---- Sidebar ---- */
.sidebar {
    flex: 0 0 310px;
    margin-left: 28px;
}

/* Blackboard */
.blackboard {
    background: linear-gradient(155deg, #2a3a28 0%, #1c2c1c 40%, #223222 100%);
    border: 6px solid #5a3d25;
    border-radius: 2px;
    padding: 22px 18px;
    margin-bottom: 22px;
    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.25),
        inset 0 0 100px rgba(0,0,0,0.1),
        0 4px 15px rgba(0,0,0,0.4);
    position: relative;
}
/* Chalk rail */
.blackboard::before {
    content: '';
    position: absolute;
    bottom: -10px; left: 5%; right: 5%;
    height: 6px;
    background: linear-gradient(to bottom, #6a5540, #8b7355, #6a5540);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.blackboard h3 {
    font-family: 'Oswald', sans-serif;
    color: #ffd172;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 10px;
}
.blackboard h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 30%; right: 30%;
    height: 1px;
    background: rgba(255,209,114,0.3);
}
.blackboard p, .blackboard li {
    color: #c0d0c0;
    font-size: 13px;
    line-height: 1.7;
}
.blackboard ul {
    list-style: none;
    padding-left: 0;
}
.blackboard ul li {
    margin-bottom: 8px;
    padding-left: 14px;
    position: relative;
}
.blackboard ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #ffd172;
    font-size: 11px;
    opacity: 0.6;
}
.blackboard a {
    color: #90c090;
}

/* Join Us button */
.join-us-btn {
    display: block;
    text-align: center;
    margin-bottom: 22px;
}
.join-us-btn a {
    display: block;
    background: linear-gradient(to bottom, #6a4a2a, #5a3d25, #4a3018);
    color: #ffd172;
    padding: 14px 30px;
    border-radius: 3px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid #8b6914;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.join-us-btn a:hover {
    background: linear-gradient(to bottom, #8b6914, #7a5c12, #6a4e10);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 15px rgba(139,105,20,0.4);
    transform: translateY(-1px);
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 30px 0 10px;
    padding-top: 30px;
    border-top: 1px solid #d8c8a0;
    clear: both;
}
.service-item {
    text-align: center;
    padding: 20px 8px 15px;
    border-radius: 4px;
    background: rgba(90,61,37,0.04);
    border: 1px solid transparent;
    transition: all 0.3s;
}
.service-item:hover {
    background: rgba(90,61,37,0.08);
    border-color: #d8c8a0;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.service-icon-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 50%;
    border: 3px solid #e0d4b8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.service-item:hover .service-icon-img {
    transform: scale(1.08);
}
.service-item h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #5a3d25;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.service-item p {
    font-size: 12px;
    color: #8a7d6b;
    text-align: center;
    line-height: 1.5;
}

/* ---- Footer ---- */
.site-footer {
    background: linear-gradient(to bottom, #171914, #0e100c);
    border-top: 1px solid #3a3d32;
    padding: 40px 0 0;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #8b6914, #ffd172, #8b6914, transparent);
}
.footer-inner {
    display: flex;
    gap: 40px;
    padding: 0 25px 35px;
}
.footer-col {
    flex: 1;
}
.footer-col h3 {
    font-family: 'Oswald', sans-serif;
    color: #ffd172;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2d22;
}
.footer-col p, .footer-col li {
    font-size: 13px;
    color: #787868;
    line-height: 2;
}
.footer-col ul {
    list-style: none;
}
.footer-col a {
    color: #c8a860;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: #ffd172;
}

.footer-bottom {
    background: #0a0c08;
    text-align: center;
    padding: 15px;
    font-size: 11px;
    color: #444;
    letter-spacing: 0.5px;
}
.footer-bottom a {
    color: #666;
    margin: 0 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.footer-bottom a:hover {
    color: #ffd172;
}
.footer-nav {
    margin-bottom: 8px;
}

/* ---- Menu Page ---- */
.menu-section {
    margin-bottom: 35px;
}
.menu-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: #5a3d25;
    border-bottom: none;
    padding-bottom: 10px;
    margin-bottom: 15px;
    position: relative;
}
.menu-section h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: repeating-linear-gradient(to right, #c8b080, #c8b080 4px, transparent 4px, transparent 8px);
}
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dotted #d8c8a0;
    transition: background 0.2s;
}
.menu-item:hover {
    background: rgba(90,61,37,0.04);
}
.menu-item-name {
    font-weight: normal;
    color: #3d3933;
    flex: 1;
    padding-right: 10px;
}
.menu-item-price {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    color: #5a3d25;
    white-space: nowrap;
    font-size: 15px;
}
.menu-item-desc {
    font-size: 12px;
    color: #8a7d6b;
    font-style: italic;
    margin-top: 2px;
    margin-bottom: 5px;
}

.menu-daily {
    background: linear-gradient(135deg, #5a3d25, #6a4a2a);
    color: #ffd172;
    padding: 18px 25px;
    border-radius: 4px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(139,105,20,0.3);
}
.menu-daily strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* ---- Gallery / Masonry ---- */
.gallery-grid {
    columns: 3;
    column-gap: 16px;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4));
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover::after {
    opacity: 1;
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.gallery-item img {
    display: block;
    width: 100%;
    transition: transform 0.6s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* ---- Contact ---- */
.contact-info {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
}
.contact-details {
    flex: 1;
    min-width: 280px;
}
.contact-map {
    flex: 1;
    min-width: 280px;
}
.contact-details dt {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    color: #5a3d25;
    margin-top: 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.contact-details dd {
    margin-left: 0;
    padding: 4px 0;
    font-size: 15px;
}

/* ---- Kodukord ---- */
.rules-list {
    counter-reset: rules;
    list-style: none;
    padding: 0;
}
.rules-list li {
    counter-increment: rules;
    padding: 14px 0 14px 50px;
    border-bottom: 1px solid #e0d4b8;
    position: relative;
    line-height: 1.7;
    transition: background 0.2s;
}
.rules-list li:hover {
    background: rgba(90,61,37,0.04);
}
.rules-list li::before {
    content: counter(rules);
    position: absolute;
    left: 0;
    top: 12px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #5a3d25, #8b6914);
    color: #ffd172;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ---- Audio Player ---- */
.audio-section {
    text-align: center;
    padding: 40px 0;
}
.audio-section audio {
    width: 100%;
    max-width: 500px;
    margin: 25px auto;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.paper-content { animation: fadeInUp 0.6s ease-out; }
.blackboard { animation: fadeInUp 0.6s ease-out 0.15s both; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .content-area {
        flex-direction: column;
        padding: 20px 10px;
    }
    .sidebar {
        flex: none;
        margin-left: 0;
        margin-top: 20px;
    }
    .header-inner {
        flex-direction: column;
        min-height: auto;
        padding: 20px;
    }
    .logo-area {
        flex: none;
        margin-bottom: 20px;
    }
    .header-slider {
        margin-left: 0;
    }
    .footer-inner {
        flex-direction: column;
        gap: 25px;
    }
    .gallery-grid {
        columns: 2;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav a {
        padding: 12px 16px;
        font-size: 12px;
    }
    .main-nav li + li::before {
        display: none;
    }
    .gallery-grid {
        columns: 1;
    }
    .contact-info {
        flex-direction: column;
    }
    .logo-area h1 {
        font-size: 38px;
    }
    .paper-content {
        padding: 25px 20px 40px;
    }
}
