/* ============================================================
   Life in Lisboa — Stylesheet
   Sections (top → bottom):
     1. Design tokens & base
     2. Top navigation
     3. Hero (logo + tagline)
     4. Image carousel
     5. About the Show
     6. Upcoming Dates + Buy Tickets
     7. Tile divider
     8. Featured Artists
     9. Venue (About Selva)
    10. Footer band
    11. Responsive breakpoints
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS & BASE
   ============================================================ */
:root {
  /* Brand colors (sampled from the Figma design) */
  --color-cream:        #FFF3E7;   /* page background */
  --color-blue-light:   #9CBEEA;   /* nav + venue band */
  --color-blue-deep:    #1A3FA0;   /* logo + headings */
  --color-blue-text:    #0F2A7F;   /* body text accents */
  --color-red:          #C5392E;   /* section titles */
  --color-orange:       #E58A3C;   /* CTA button */
  --color-navy:         #0B1F60;   /* bottom footer band */
  --color-white:        #FFFFFF;

  /* Type
     - body / artist / date-meta / about copy → Gambarino (Fontshare)
     - nav / labels / date number / CTA      → Montserrat (Google Fonts) */
  --font-body: 'Gambarino', Georgia, 'Times New Roman', serif;
  --font-ui:   'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Spacing */
  --container: 1100px;
  --gutter:    24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-blue-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }


/* ============================================================
   2. TOP NAVIGATION
   Sticky bar with 4 internal anchor links.
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-blue-light);
}

.site-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: center;
  gap: 80px;
}

.site-nav__link {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-blue-deep);
  transition: opacity 0.15s ease;
}

.site-nav__link:hover { opacity: 0.65; }


/* ============================================================
   3. HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 40px var(--gutter) 28px;
  background: var(--color-cream);
}

/* Logo is an image (Logo.png). Sized responsively via max-width. */
.hero__logo {
  margin: 0 0 18px;
  display: flex;
  justify-content: center;
}

.hero__logo img {
  width: 100%;
  max-width: 760px;
  height: auto;
}

/* Tagline + venue line — black, Montserrat, per design. */
.hero__tagline,
.hero__venue {
  margin: 6px 0 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  color: #000;
}

.hero__venue { margin-top: 4px; }


/* ============================================================
   4. IMAGE CAROUSEL
   Horizontal scroll-snap; 3 slides; clickable dots.
   ============================================================ */
.carousel {
  max-width: 1320px;
  margin: 24px auto 0;
  padding: 0 var(--gutter);
}

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;          /* Firefox */
}
.carousel__track::-webkit-scrollbar { display: none; }  /* Chrome/Safari */

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 12 / 5;
  background: repeating-conic-gradient(#E5E5E5 0% 25%, #F2F2F2 0% 50%) 50% / 60px 60px;
  /* checker pattern shown until you add an image src */
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: var(--color-blue-light);
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.carousel__dot.is-active { opacity: 1; transform: scale(1.15); }


/* ============================================================
   5. ABOUT THE SHOW
   ============================================================ */
.about {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 var(--gutter);
  text-align: left;
}

.about__body p {
  margin: 0 0 16px;
  font-size: 18px;
}

/* Shared section title style — Montserrat ExtraBold (800). */
.section-title {
  margin: 0 0 28px;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
}
.section-title--on-blue { color: #FFF3E7; }


/* ============================================================
   6. UPCOMING DATES + BUY TICKETS
   Horizontal scroller with arrow controls. Each card holds
   date / show name / venue / price.
   ============================================================ */
.dates {
  margin: 72px auto 0;
  padding: 0 var(--gutter);
  max-width: var(--container);
  position: relative;
}

.dates__scroller-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dates__scroller {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px;
  flex: 1;
  scrollbar-width: none;
}
.dates__scroller::-webkit-scrollbar { display: none; }

.date-card {
  flex: 0 0 calc((100% - 64px) / 3);   /* 3-up on desktop */
  scroll-snap-align: start;
  text-align: center;
  padding: 8px 0;
}

/* Date "8 JUN" – Montserrat, bold. */
.date-card__date {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 34px;
  color: var(--color-blue-deep);
  letter-spacing: 0.02em;
}

.date-card__name,
.date-card__venue,
.date-card__price {
  margin: 2px 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-blue-text);
}

/* Arrow buttons */
.dates__arrow {
  flex: 0 0 32px;
  width: 32px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--color-blue-light);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.dates__arrow:hover { color: var(--color-blue-deep); }
.dates__arrow svg { width: 28px; height: 28px; }

/* Disabled state: greyed out, no pointer events. */
.dates__arrow:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Buy tickets CTA */
.btn-buy {
  display: block;
  width: max-content;
  margin: 40px auto 0;
  padding: 14px 48px;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-buy:hover { filter: brightness(1.05); transform: translateY(-1px); }


/* ============================================================
   7. TILE DIVIDER (decorative)
   Single exported asset (Group 5.png) centered on the page.
   ============================================================ */
.tile-divider {
  display: flex;
  justify-content: center;
  margin: 64px auto;
  padding: 0 var(--gutter);
}

.tile-divider img {
  width: 100%;
  max-width: 560px;
  height: auto;
}


/* ============================================================
   8. FEATURED ARTISTS
   2x2 grid (desktop). Avatar + name + handle + bio.
   ============================================================ */
.artists {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.artists__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}

/* Second grid (revealed by "View More") sits below the first with a gap. */
.artists__grid--more { margin-top: 40px; }

/* `display: grid` above overrides the HTML `hidden` attribute, so restore it. */
.artists__grid[hidden] { display: none; }

.artist {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.artist__avatar {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: repeating-conic-gradient(#E5E5E5 0% 25%, #F2F2F2 0% 50%) 50% / 16px 16px;
}
.artist__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist__body { flex: 1; min-width: 0; }

.artist__name {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: #021F3E;
}

.artist__handle {
  display: inline-block;
  margin: 2px 0 8px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: #0A2C9A;
  text-decoration: none;
}
.artist__handle:hover { text-decoration: underline; }

.artist__bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.artists__view-more {
  display: block;
  margin: 48px auto 0;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue-deep);
  text-decoration: underline;
  text-underline-offset: 6px;
}


/* ============================================================
   9. VENUE (About Selva Comedy Cafe)
   Blue band; centered content.
   ============================================================ */
.venue {
  background: var(--color-blue-light);
  margin-top: 72px;
  padding: 40px var(--gutter) 56px;
  text-align: center;
  color: #021F3E;
}

.venue__stats {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 24px;
  color: #021F3E;
}

.venue__description {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 18px;
  color: #021F3E;
}

.venue__address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 16px;
  color: #0A2C9A;
}

.venue__pin {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* "Other Shows at Selva" sits on its own line below the address. */
.venue__other-shows {
  display: block;
  width: max-content;
  margin: 24px auto 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0A2C9A;
  text-decoration: underline;
  text-underline-offset: 6px;
}


/* ============================================================
   10. FOOTER BAND (decorative line at very bottom)
   ============================================================ */
.site-footer {
  height: 32px;
  background: var(--color-navy);
}


/* ============================================================
   11. RESPONSIVE BREAKPOINTS (Bootstrap-style)
      sm  ≤ 576px   (mobile)
      md  ≤ 768px   (large mobile / small tablet)
      lg  ≤ 992px   (tablet / small laptop)
   ============================================================ */

/* lg — ≤992px */
@media (max-width: 992px) {
  .site-nav__inner { gap: 48px; }
  /* 1-up below desktop so each card always fills the scroller and centers
     visually between the arrows (no orphaned card at end of scroll). */
  .date-card { flex: 0 0 100%; }
  .artists__grid { gap: 32px 40px; }
}

/* md — ≤768px */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-nav__inner { gap: 28px; padding: 14px var(--gutter); }
  .site-nav__link { font-size: 12px; letter-spacing: 0.14em; }

  .hero { padding-top: 28px; }
  .hero__logo { gap: 12px; }

  .about, .dates, .artists { margin-top: 56px; }
  .about__body p { font-size: 16px; }

  .artists__grid { grid-template-columns: 1fr; gap: 28px; }

  .tile-divider { gap: 20px; margin: 56px auto; }
  .tile-divider__tile { width: 48px; height: 48px; }

  .venue__description { font-size: 16px; }
}

/* sm — ≤576px */
@media (max-width: 576px) {
  .site-nav__inner {
    gap: 14px;
    justify-content: space-around;
    padding: 12px 12px;
  }
  .site-nav__link { font-size: 11px; letter-spacing: 0.12em; }

  .hero__logo { gap: 8px; }
  .hero__tagline, .hero__venue { font-size: 13px; }

  .date-card__date { font-size: 30px; }

  .btn-buy { padding: 12px 32px; font-size: 14px; }

  .tile-divider { gap: 14px; }
  .tile-divider__tile { width: 40px; height: 40px; }

  .artist { gap: 16px; }
  .artist__avatar { flex: 0 0 72px; width: 72px; height: 72px; }
}
