:root {
  --dark: #0f0f0f;
  --light: #ffffff;
  --gray: #666;
  --accent: #dc2626;

  --max: 1200px;
  --pad: 5rem 1.5rem;
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: var(--max);
  margin: auto;
}

section {
  scroll-margin-top:40px;
}

.bg-light {
  background: #f7f7f7;
}

.grid {
  display: grid;
  gap: 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* ===== SIDEBAR (DESKTOP & MOBILE) ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--dark);
  color: white;
  padding: 2rem;
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sidebar .logo {
  display: block;
  margin-bottom: 3rem;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.sidebar .logo:hover {
  transform: scale(1.05);
}

.sidebar .logo img {
  width: 100%;
  height: auto;
  max-width: 120px;
}

.sidebar .nav {
  list-style: none;
  flex: 1;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar .nav li {
  margin-bottom: 0.5rem;
}

/* Sidebar navigation links */
.sidebar .nav a {
  position: relative;
  padding: 0.8rem 1rem;
  display: inline-block;
  color: #aaa;
  text-decoration: none;
  transition: all 0.25s ease;
  border-radius: 8px;
}

/* Left accent bar */
.sidebar .nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #dc2626, #ef4444);
  border-radius: 0 2px 2px 0;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover state */
.sidebar .nav a:hover {
  color: #fff;
  background: rgba(220, 38, 38, 0.1);
  padding-left: 2rem;
}

.sidebar .nav a:hover::before {
  height: 100%;
}

/* Active state */
.sidebar .nav a.active {
  color: #fff;
  font-weight: 600;
  background: rgba(220, 38, 38, 0.15);
}

.sidebar .nav a.active::before {
  height: 100%;
}

/* Sidebar social icons */
.sidebar-socials {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center;
}

.sidebar-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255, 255, 255);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 1.1rem;
}

.sidebar-socials a:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(248, 248, 248, 0.3);
}

/* Main content offset for desktop */
.main {
  margin-left: 260px;
  transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BURGER MENU (MOBILE) ===== */
.burger {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.burger:active {
  transform: scale(0.95);
}

/* ===== MOBILE OVERRIDES (≤ 900px) ===== */
@media (max-width: 900px) {

  /* Sidebar hidden by default on mobile */
  .sidebar {
    transform: translateX(-100%);
  }

  /* Sidebar visible when open */
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  }

  /* Show burger menu on mobile */
  .burger {
    display: block;
  }

  /* Full width main content on mobile */
  .main {
    margin-left: 0;
  }
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: none;
  z-index: 900;
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay.show {
  display: block;
  background: rgba(0, 0, 0, 0.4);
}

@media (min-width: 901px) {
  .overlay {
    display: none !important;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.75)),
    url("https://wolhwagalbi.ph/assets/hero.jpg") center center / cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-logo {
  max-height: 90px;
  width: auto;
  margin-bottom: 1.2rem;
  animation: fadeInDown 0.8s ease-out;
}

.hero-text {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--accent);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3);
}

/* Footer */
.footer {
  background: black;
  color: white;
  text-align: center;
  padding: 2rem;
}

.footer .socials {
  margin-top: 1rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.socials a {
  color: white;
  text-decoration: none;
  opacity: .8;
  transition: all 0.25s ease;
}

.socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  section {
    padding: 3rem 1.5rem;
  }
}

/* ===== ABOUT SECTION (copied behavior + layout) ===== */
.about {
  padding: 4.5rem 1.5rem;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2.25rem;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: linear-gradient(45deg, #dc2626, #ef4444);
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* enforce equal-width columns for balanced layout */
  gap: 2.5rem;
  align-items: stretch;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center text to balance with image */
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.75rem;
}

/* Menu item card styling */
.menu-grid .menu-item {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.menu-grid .menu-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Menu images with proper aspect ratio */
.menu-item .menu-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.menu-item .menu-image:hover {
  transform: scale(1.05);
}

/* Image modal for full-screen viewing */
.image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}



/* Responsive menu grid */
@media (max-width: 768px) {
    
    .hero {
        background-position: center top;
    }
    
    .hero-logo {
        max-width: 100%;
    }
    
    .hero-text {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .btn-primary {
        padding: 0.7rem 1.6rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.about-image img {
  width: auto;
  max-width: 100%;
  height: 100%; /* fill the column height so image matches text height */
  max-height: none; /* allow image to grow to match text height */
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* ===== EVENTS SECTION ===== */
#events {
  padding: 5rem 1.5rem;
  background: white;
}

#events h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2.25rem;
  position: relative;
}

#events h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: linear-gradient(45deg, #dc2626, #ef4444);
  border-radius: 2px;
}

.event-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-left-color: #ef4444;
}

.event-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image {
  transform: scale(1.05);
}

.event-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
}

.event-card .date {
  color: #666;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-card .date::before {
  content: '📅';
  font-size: 1rem;
}

.event-card p {
  color: #555;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
  font-size: 0.95rem;
}

.event-card button {
  margin-top: auto;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.event-card button:hover {
  background: #b91c1c;
  transform: scale(1.02);
}

#events .grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Scroll animation helper (used by JS observer) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .about {
    padding: 3rem 1.5rem;
  }
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
  }
}

@media (max-width: 480px) {
  .about-grid {
    display: block;
  }
  .about-text {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
  }
  .about-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
  }
}

#location .grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.location-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
}

.location-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.location-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reviews {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.reviews-title {
  font-size: 28px;
  margin-bottom: 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.review-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-stars {
  color: #f5b301;
  font-size: 18px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #555;
}

.review-author {
  font-weight: bold;
  font-size: 14px;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.google-logo {
  height: 35px;
}

.rating-info {
  text-align: left;
}

.rating-score {
  font-size: 24px;
  font-weight: bold;
  color: #222;
}

.rating-score span {
  font-size: 14px;
  font-weight: normal;
  color: #666;
}

.rating-stars {
  color: #f5b301;
  font-size: 18px;
  margin: 4px 0;
}

.rating-count {
  font-size: 13px;
  color: #777;
}
