/* ============================================================
   Kitty O'Hara's Irish Pub — Global Styles
   ============================================================ */

:root {
  --gold: #d4af37;
  --gold-dim: rgba(212, 175, 55, 0.2);
  --green: #1b5e20;
  --green-dk: #0a1a0a;
  --dark: #0d0d0d;
  --dark2: #111;
  --dark3: #161616;
  --text-mute: rgba(255, 255, 255, 0.55);
  --text-sub: rgba(255, 255, 255, 0.4);
  --font-serif: "Playfair Display", serif;
  --font-sans: "Open Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

.playfair {
  font-family: var(--font-serif);
}

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Gold bar ── */
.gold-bar {
  height: 3px;
  background: linear-gradient(90deg, #1b5e20, var(--gold), #1b5e20);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 1001;
  padding: 0.75rem 0;
  background: transparent;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
nav.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(17, 17, 17, 0.96);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* For the fixed navbar when the user scrolls down */
.header-fixed {
    background-color: rgba(13, 13, 13, 0.95);  /* Dark background */
    backdrop-filter: blur(5px);  /* Blur effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* Shadow effect */
    padding: 0.5rem 2rem;  /* Adjust padding when fixed */
    transition: all 0.3s ease-in-out;  /* Smooth transition */
}

/* Optional: You can add additional styles for the navbar when it's not scrolled */
#navbar {
    transition: all 0.3s ease-in-out; /* Optional: smooth transition for default state */
}


.nav-link {
     letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    padding: .3rem 0;
    font-family: Open Sans, sans-serif;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
    position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  transform: scale(1);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transition:
    transform 0.3s,
    opacity 0.3s;
  border-radius: 2px;
}
.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  width: 100%;
  text-align: center;
  transition: color 0.2s;
}
.mobile-nav-link:hover {
  color: var(--gold);
}

/* ── Layout ── */
.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section-dark {
  background: var(--dark2);
}
.section-medium {
  background: #1a1a1a;
}
.section-green {
  background: linear-gradient(135deg, #071207, #0d2b0d, #071207);
}

/* ── Typography ── */
.section-label {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.section-title {
  color: #fff;
  margin-bottom: 1rem;
  font-family:
    Playfair Display,
    Georgia,
    serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}
.section-title span {
  color: var(--gold);
}
.section-divider {
  background: linear-gradient(90deg, #d4af37, #d4af374d);
  width: 60px;
  height: 3px;
  margin-bottom: 2rem;
}

/* ── Buttons ── */
.btn-primary {
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: #1b5e20;
  border: 2px solid #1b5e20;
  border-radius: 4px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
}

.btn-primary:hover {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--gold) 4d;
}

.btn-outline {
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: 0 0;
  border: 2px solid var(--gold);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-outline:hover {
  color: #111;
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--gold) 4d;
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1a0a, #1b5e20, #0d2d0d);
  overflow: hidden;
}
.hero-section::before {
  content: "";
  z-index: 1;
  background: radial-gradient(#1b5e204d, #000000b3 70%);
  position: absolute;
  inset: 0;
}
.hero-pattern {
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(45deg, var(--gold) 0 1px, #0000 1px 60px),
    repeating-linear-gradient(-45deg, var(--gold) 0 1px, #0000 1px 60px);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-badge {
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid #d4af3780;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  padding: .4rem 1.2rem;
  font-size: .7rem;
  font-weight: 600;
  display: inline-block;
}
.hero-title {
  font-family: var(--font-serif);
  text-shadow: 0 2px 20px #00000080;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}
.hero-title span {
  color: var(--gold);
  display: block;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

/* ── About ── */
.about-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.8;
}
.about-stat {
  background: #1b5e201a;
  border: 1px solid var(--gold) 33;
  border-radius: 8px;
  padding: 1.5rem;
}
.about-stat-label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff9;
  margin-top: 0.3rem;
  font-size: 0.8rem;
}

/* ── Poem ── */
.poem-section {
  background: linear-gradient(135deg, #070f07, #111);
}
.poem-container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.poem-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 2;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.poem-line {
  display: block;
}

/* ── Menu preview (Home) ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.menu-card {
  background: linear-gradient(145deg, #141414, #1a1a1a);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 12px;
  padding: 1.5rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.menu-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-3px);
}
.menu-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.menu-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.35rem;
}
.menu-card-desc {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.menu-card-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
}

/* ── Full Menu page ── */
.menu-page {
  background: var(--dark2);
  min-height: 100vh;
  padding-top: 5rem;
}
.menu-page-hero {
  background: linear-gradient(135deg, #0a1a0a, #1b5e20, #0a1a0a);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.page-hero .section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.menu-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 175, 55, 0.1),
    transparent 70%
  );
}
.menu-category {
  margin-bottom: 3rem;
}

.menu-category-title {
   color: var(--gold);
  border-bottom: 2px solid #d4af374d;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  font-family:
    Playfair Display,
    Georgia,
    serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
}
.menu-category-title:before {
  content: "";
  background: #1b5e20;
  border-radius: 2px;
  width: 4px;
  height: 1.4rem;
  display: inline-block;
}

.menu-items-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  display: grid;
}
.menu-item {
  background: #ffffff05;
  border: 1px solid #ffffff0f;
  border-radius: 8px;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 1rem;
  transition: all 0.2s;
  display: flex;
}
.menu-item:hover {
  background: #1b5e2014;
  border-color: #d4af3740;
}
.menu-item-name {
  color: #ffffffd9;
  font-size: 0.9rem;
}
.menu-item-price {
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ── Contact ── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-value {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}
.map-container {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--gold-dim);
  height: 400px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Testimonials ── */
.carousel-wrapper {
  position: relative;
}

/* ── Footer ── */
.footer {
  background: #070707;
  border-top: 1px solid var(--gold-dim);
  padding: 3rem 0;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 1rem;
}

/* ── Scroll to top ── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    background 0.2s;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  background: rgba(212, 175, 55, 0.25);
}

/* ── Scroll reveal ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: none;
}


.reveal { opacity: 0; transform: translateY(20px); transition: all 0.8s ease-out; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Page Hero (shared) ── */
.page-hero {
  background: linear-gradient(135deg, #0a1a0a, #1b5e20, #0a1a0a);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 175, 55, 0.1),
    transparent 70%
  );
  pointer-events: none;
}
.page-hero .container-main {
  position: relative;
  z-index: 1;
}

/* swiper slider */
/* Custom Swiper Pagination Styling to match var(--gold) */
.swiper-pagination {
  width: 100% !important;
}
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.2) !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 9999px !important; /* pill for active, round for inactive */
  opacity: 1 !important;
  transition: all 0.3s !important;
}

/* Active, previous, next bullets */
.swiper-pagination-bullet-active {
  background: var(--gold) !important;
  width: 20px !important;
  height: 8px !important;
  border-radius: 4px !important; /* pill shape */
  transform: scale(1) !important;
}

/* Optional: scale smaller inactive bullets */
.swiper-pagination-bullet:not(.swiper-pagination-bullet-active):not(
    .swiper-pagination-bullet-active-prev
  ):not(.swiper-pagination-bullet-active-next) {
  transform: scale(0.8);
}

/* Ensure slides match height */
.swiper-slide {
  height: auto !important;
}

.swiper-button-disabled {
      background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
    color: rgba(255, 255, 255, 0.18);
}

.testimonial-swiper {
  padding-bottom: 50px !important;
}

/* gallery mfg */
/* Custom Lightbox Animation */
.mfp-container {
  background: rgb(0 0 0 / 75%);
}

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: all 0.3s ease-out;
}
.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.9; /* Darker background */
}
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease-out;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: scale(1);
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
  transform: scale(0.9);
}
img.mfp-img {
  width: 100%;
  max-width: 90vw;
}

video.mfp-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
}

/* Style the Close and Arrow buttons */
.mfp-arrow-left:before,
.mfp-arrow-left:after {
  border-right-color: var(--gold) !important;
}
.mfp-arrow-right:before,
.mfp-arrow-right:after {
  border-left-color: var(--gold) !important;
}

/* Position the Close Button in the top right corner of the screen */
.mfp-close {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  width: 50px !important;
  height: 50px !important;
  line-height: 50px !important;
  text-align: center !important;
  padding: 0 !important;
  opacity: 1 !important;
  color: var(--gold) !important; /* Irish Gold theme */
  border-radius: 50% !important;
  font-size: 40px !important;
  cursor: pointer !important;
  transition:
    transform 0.2s ease,
    background 0.2s ease !important;
}

/* Hover effect for the close button */
.mfp-close:hover {
  background: rgba(212, 175, 87, 0.2) !important;
  transform: scale(1.1);
}

/* Ensure the button is above everything else */
.mfp-wrap {
  z-index: 9999 !important;
}

/* Hide the default hover text title 'Close (Esc)' */
.mfp-close:active {
  top: 20px !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .mfp-close {
    top: 10px !important;
    right: 10px !important;
    width: 44px !important;
    height: 44px !important;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .btn-primary,
  .btn-outline {
    padding: 0.75rem 1.3rem;
    font-size: 0.78rem;
  }
  .desktop-nav {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
  .about-two-col,
  .about-page-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .menu-items-grid {
    grid-template-columns: 1fr !important;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }
  .section {
    padding: 3rem 0;
  }
}
@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}
