/*
  Gusto Italian: Bottomless Brunch CSS
  Handles layout structure, sticky nav, masonry grid, and accordion.
  Visual styling inherited from design-system.css.
*/

/* --- 1. HERO --- */
.brunch-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ds-ivory);
}
.brunch-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 38, 61, 0.5); /* Navy overlay */
}
.brunch-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 40px;
}
.brunch-hero .ds-display {
  margin-bottom: 24px;
}
.brunch-hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* --- 2. STICKY NAV --- */
.brunch-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--ds-ivory);
  border-bottom: 1px solid rgba(8, 38, 61, 0.1);
  transition: box-shadow var(--ds-transition-fast);
}
.brunch-nav-wrapper.is-scrolled {
  box-shadow: 0 4px 20px rgba(8, 38, 61, 0.05);
}
.brunch-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.brunch-nav-links {
  display: flex;
  gap: 32px;
}
.brunch-nav-links a {
  font-family: var(--ds-font-sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--ds-navy);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--ds-transition-fast), color var(--ds-transition-fast);
}
.brunch-nav-links a:hover {
  opacity: 1;
  color: var(--ds-peach);
}

/* --- 3. ABOUT SPLIT --- */
.brunch-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.brunch-about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* --- 4. MENU PREVIEW --- */
.brunch-menu {
  background-color: var(--ds-sage);
}
.brunch-menu-header {
  text-align: center;
  margin-bottom: 80px;
}
.brunch-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
.brunch-menu-card {
  text-align: center;
}
.brunch-menu-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 24px;
}

/* --- 5. BOOKING CTA BLOCK --- */
.brunch-booking-block {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 160px 0;
  color: var(--ds-ivory);
  text-align: center;
}
.brunch-booking-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 38, 61, 0.7);
}
.brunch-booking-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

/* --- 6. MASONRY GALLERY --- */
.brunch-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  grid-auto-flow: dense;
}
.brunch-gallery-item {
  position: relative;
  overflow: hidden;
}
.brunch-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.brunch-gallery-item:hover img {
  transform: scale(1.05);
}

/* Specific masonry sizing based on 12-col grid */
.brunch-gallery-item:nth-child(1) { grid-column: span 8; grid-row: span 2; }
.brunch-gallery-item:nth-child(2) { grid-column: span 4; grid-row: span 1; }
.brunch-gallery-item:nth-child(3) { grid-column: span 4; grid-row: span 1; }
.brunch-gallery-item:nth-child(4) { grid-column: span 12; grid-row: span 1; aspect-ratio: 21/9; }

/* --- 7. FAQS (ACCORDION) --- */
.brunch-faqs {
  background-color: var(--ds-ivory);
}
.brunch-faqs-inner {
  max-width: 800px;
  margin: 0 auto;
}
.brunch-faqs-header {
  text-align: center;
  margin-bottom: 60px;
}


/* --- 8. FOOTER CTA --- */
.brunch-footer-cta {
  background-color: var(--ds-sage);
  text-align: center;
}
.brunch-footer-inner {
  max-width: 600px;
  margin: 0 auto;
}




/* --- RESPONSIVE --- */
@media (max-width: 980px) {
  .brunch-about-grid, .brunch-menu-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Task 1: Move image below text on mobile */
  .brunch-about-text-col { order: 1; padding-left: 0 !important; }
  .brunch-about-img-col  { order: 2; }

  .brunch-nav-links {
    display: none; /* Hide standard links on mobile to save space */
  }
  .brunch-gallery-item:nth-child(n) {
    grid-column: span 12;
    aspect-ratio: 4/3;
  }
}

/* Accordion icon rotation when open */
.brunch-accordion-btn.is-open .brunch-accordion-icon {
  display: inline-block;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.brunch-accordion-icon {
  transition: transform 0.3s ease;
  display: inline-block;
  flex-shrink: 0;
}

