/* --- VARIABLES --- */
:root {
    --gold: #d4af37;       /* The "Lambert" Gold */
    --green: #152216;      /* Dark Irish Green */
    --dark: #111111;       /* Almost Black */
    --white: #ffffff;
    --gray: #f9f9f9;
    --font-head: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- RESET & BASE --- */

/* Screen Reader / SEO Only Class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: #666;
    line-height: 1.7;
    background: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); font-weight: 700; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
img { max-width: 100%; height:auto; }

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(21, 34, 22, 0.95); /* Dark Green Translucent */
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding: 15px 0;
    transition: 0.3s;
}

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

.nav-logo { height: 50px; width: auto; } /* Small logo for sticky nav */

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    color: var(--white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}
.nav-links a:hover { color: var(--gold); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; color: var(--gold); font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../image/harp.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content img { width: 500px; margin-bottom: 20px; }
.hero-content h2 { color: var(--gold); font-size: 1.2rem; letter-spacing: 3px; text-transform: uppercase; margin-top: 10px;}
.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: var(--white); animation: bounce 2s infinite; font-size: 2rem;
}

@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);} 40% {transform: translateX(-50%) translateY(-10px);} 60% {transform: translateX(-50%) translateY(-5px);} }

/* --- SECTIONS GENERAL --- */
section { padding: 100px 0; background: var(--white); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; position: relative; display: inline-block; }
.section-title h2::after {
    content: ''; display: block; width: 60px; height: 3px; background: var(--gold);
    margin: 15px auto 0;
}
.section-title p { color: #888; font-style: italic; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- ABOUT SECTION --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text { position: relative; z-index: 2; }
.knot-bg {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); /* Centers it perfectly vertically and horizontally */
    width: 350px; /* Made it slightly larger so it fills the space better */
    opacity: 0.08; /* Softened the opacity just a touch so text remains highly readable */
    z-index: -1; /* Ensures it stays behind the text */
    pointer-events: none;
}

/* New Slideshow Rules */
.about-image { 
    position: relative; 
    height: 450px; /* Locks the box size so the page doesn't jump */
    width: 100%;
    box-shadow: 20px 20px 0 var(--gold);
    background: #222; /* Fallback color while loading */
}

.about-image img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures photos fill the box without squishing */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth fade effect */
}

.about-image img.slide.active {
    opacity: 1;
}

/* Make it look good on mobile */
@media (max-width: 768px) {
    .about-image { height: 300px; }
}
/* --- PARALLAX SEPARATOR --- */
.parallax-sep {
    padding: 120px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../image/harp.webp');
    background-attachment: fixed;
    background-size: cover;
    text-align: center;
    color: var(--white);
}
.parallax-sep h3 { color: var(--white); font-size: 2rem; margin-bottom: 20px; }
.btn {
    display: inline-block; padding: 12px 30px; border: 2px solid var(--gold);
    color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-weight: bold;
}
.btn:hover { background: var(--gold); color: var(--dark); }

/* --- FEATURED ITEMS --- */
.featured-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
    max-width: 900px;
    margin: 0 auto;
}
.featured-card { 
    display: flex; 
    flex-direction: column; 
    background: var(--gray); 
    border-radius: 4px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    transition: transform 0.3s;
}
.featured-card:hover {
    transform: translateY(-5px);
}
.featured-img { 
    width: 100%; 
    height: 300px; 
    object-fit: cover; 
}
.featured-content { 
    padding: 30px; 
    text-align: center; 
    border-bottom: 4px solid var(--gold);
}
.featured-content h3 { 
    color: var(--green); 
    font-size: 1.6rem; 
    margin-bottom: 15px; 
}
.featured-content p { 
    color: #444; 
}

/* --- MENU SECTION --- */
#menu .container { max-width: 1200px; width: 95%; margin: 0 auto; }

.menu-tabs { display: flex; justify-content: center; margin-bottom: 50px; flex-wrap: wrap; gap: 15px;}
.tab-btn {
    background: transparent; border: none; font-family: var(--font-head);
    font-size: 1.2rem; cursor: pointer; color: #888; padding: 10px 20px;
    border-bottom: 2px solid transparent; transition: 0.3s;
}
.tab-btn.active, .tab-btn:hover { color: var(--gold); border-bottom: 2px solid var(--gold); }

/* The new HTML Text Menu Styles */
.menu-category-section { 
    display: none; 
    animation: fadeIn 0.4s ease-in-out; 
}
.menu-category-section.active { 
    display: block; 
}
.menu-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px 60px; /* Vertical gap, Horizontal gap */
}
/* Subcategories (Spans across both columns) */
.menu-subheader {
    grid-column: 1 / -1; 
    margin-top: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 1.5rem;
}
.menu-item { 
    border-bottom: 1px dotted #ccc; 
    padding-bottom: 15px; 
}
.menu-item-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
    margin-bottom: 8px; 
}
.menu-item-name { 
    font-family: var(--font-head); 
    color: var(--green); 
    font-size: 1.3rem; 
    font-weight: 700; 
}
.menu-item-price { 
    font-weight: bold; 
    color: var(--gold); 
    font-size: 1.1rem; 
}
.menu-item-desc { 
    color: #555; 
    font-size: 0.95rem; 
    line-height: 1.6; 
}
/* --- MENU BADGES & GIFS --- */
.item-badge {
    background: var(--gold);
    color: #111;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: bold;
    position: relative;
    top: -2px; /* Nudges it up perfectly inline with the text */
}

.item-gif {
    height: 22px; /* Keeps the gif small and neat */
    vertical-align: middle;
    margin-left: 10px;
    position: relative;
    top: -2px;
}

/* Custom Animated "NEW" Badge */
.item-badge.new-item {
    background: #8b0000; /* Deep Tavern Red */
    color: var(--gold);
    border: 1px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* Mobile Adjustments for the Menu */
@media (max-width: 768px) {
    .menu-grid { grid-template-columns: 1fr; gap: 30px; }
    .tab-btn { font-size: 1rem; padding: 8px 15px; }
}

/* --- NEWS SECTION --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Optimized News Card Styling */
.news-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden; /* Clips the image corners to the card's radius */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.news-card-img {
    width: 100%;
    height: 220px; /* Fixed height for a clean grid */
    object-fit: cover; /* Prevents the 'Coming Soon' or 'St. Pats' art from stretching */
    display: block;
}

.news-card-body {
    padding: 20px;
    flex-grow: 1;
}

/* Ensure the date stays on top of the text, not the image */
.news-date {
    background: var(--gold);
    color: var(--dark);
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    border-radius: 2px;
}

/* Mobile Tweak: Reduce image height on small screens */
@media (max-width: 480px) {
    .news-card-img {
        height: 180px;
    }
}

.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.news-date {
    position: relative;
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 2px 10px;
    font-size: 0.75rem;
    margin-bottom: 10px;
    top: 0; right: 0; /* Override previous absolute positioning */
}
.news-card h3 { font-size: 1.2rem; margin-bottom: 15px; margin-top: 10px; }

/* --- CONTACT / FOOTER --- */
#contact {
    background: #111;
    color: #888;
    padding: 80px 0 0 0; /* Padding top only */
}

/* This container now limits the width to match the rest of the site */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px; 
    margin: 0 auto;    /* Centers the block on the screen */
    background: #151515;
    box-shadow: 0 0 20px rgba(0,0,0,0.5); /* Adds depth */
}

.contact-info {
    padding: 50px;
    background: #1a1a1a;
}

.contact-item { margin-bottom: 30px; }
.contact-item h4 {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    display: inline-block;
    padding-bottom: 5px;
}

.social-icons a {
    color: var(--white);
    /* font-size: 1.2rem;  <-- REMOVED (doesn't affect SVGs) */
    margin-right: 20px;
    transition: 0.3s;
    display: inline-flex; /* Ensure icons align nicely */
}

/* ADDED: Control icon size */
.social-icons svg {
    width: 22px;
    height: 22px;
}

.social-icons a:hover { color: var(--gold); transform: scale(1.1); }

.map-container {
    width: 100%;
    min-height: 100%; /* Ensures it fills the height of the left side */
}
.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Fallback height for mobile */
    filter: grayscale(100%) contrast(1.2);
    border: none;
}

.footer-bar {
    background: #000;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.8rem;
    color: #555;
    margin-top: 60px; /* Space between map grid and bottom copyright */
    border-top: 1px solid #222;
}

/* Mobile fix for the map */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .map-container { height: 300px; }
    .contact-info { padding: 30px; }
}

/* --- ANIMATIONS & MEDIA --- */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: #111; flex-direction: column; padding: 20px; text-align: center; }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-content img { width: 200px; }
	
	/* FIX FOR IPHONE BACKGROUND ZOOM BUG */
    .hero, .parallax-sep {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}