/* ==========================================================================
   Joz Social Co — Location Pages (locations.css)
   Design-system compliant. All classes prefixed with loc-.
   ========================================================================== */

/* Hero uses homepage hero-grid-section classes from components.css */

/* ======================================================================
   SECTION 2: 2026 CALLOUT BANNER
   ====================================================================== */

.loc-callout-banner {
  background-color: var(--color-black);
  padding: var(--section-padding-md) 0;
  overflow: hidden;
  text-align: center;
  position: relative;
}

.loc-sparkler-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.loc-callout-banner .container,
.loc-callout-banner .loc-marquee,
.loc-callout-banner .loc-callout-body,
.loc-callout-banner .loc-callout-cta {
  position: relative;
  z-index: 1;
}

.loc-callout-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--type-3xl), 4vw, var(--type-5xl));
  font-style: italic;
  font-weight: var(--fw-regular);
  color: var(--color-gold);
  margin-bottom: var(--space-8);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
}

.loc-marquee {
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: var(--space-8);
  border-top: 1px solid rgba(245, 243, 239, 0.12);
  border-bottom: 1px solid rgba(245, 243, 239, 0.12);
  padding: var(--space-4) 0;
}

.loc-marquee-inner {
  display: inline-block;
  animation: loc-marquee-scroll 30s linear infinite;
  font-family: var(--font-body);
  font-size: var(--type-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

@keyframes loc-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loc-marquee-inner {
    animation: none;
  }
}

.loc-callout-body {
  max-width: 700px;
  margin: 0 auto var(--space-8);
  font-family: var(--font-body);
  font-size: var(--type-base);
  color: var(--text-on-dark-muted);
  line-height: var(--lh-body);
  padding: 0 var(--container-gutter);
}

.loc-callout-cta {
  display: inline-block;
}

/* ======================================================================
   SECTION 3: EVENTS WE SERVE
   ====================================================================== */

.loc-events-serve {
  background: var(--bg-sand-glow);
  padding: var(--section-padding-md) 0;
  overflow: hidden;
  position: relative;
}

.loc-events-serve-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.loc-events-serve-bg.active {
  opacity: 0.15;
}

.loc-events-serve > .container {
  position: relative;
  z-index: 1;
}

.loc-eyebrow-pill {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-black);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.loc-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.loc-section-header .eyebrow {
  margin-bottom: var(--space-3);
}

.loc-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--type-3xl), 4vw, var(--type-5xl));
  font-style: italic;
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-4);
}

.loc-section-header p {
  font-family: var(--font-body);
  font-size: var(--type-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--lh-body);
}

/* 3D Card Carousel */
.loc-carousel-viewport {
  position: relative;
  width: 100%;
  max-width: var(--container-xl);
  height: 480px;
  perspective: 1200px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  margin: 0 auto;
}

.loc-carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  max-width: 85vw;
  background: var(--bg-primary);
  border: 1px solid var(--color-beige);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  --drag: 0px;
}

.loc-carousel--center {
  transform: translate(calc(-50% + var(--drag)), -50%) translateZ(0) scale(1)
    rotateY(0deg);
  opacity: 1;
  z-index: 3;
  cursor: default;
}

.loc-carousel--left {
  transform: translate(calc(-130% + var(--drag)), -50%) translateZ(-200px)
    scale(0.85) rotateY(15deg);
  opacity: 0.5;
  z-index: 2;
  cursor: pointer;
}

.loc-carousel--right {
  transform: translate(calc(30% + var(--drag)), -50%) translateZ(-200px)
    scale(0.85) rotateY(-15deg);
  opacity: 0.5;
  z-index: 2;
  cursor: pointer;
}

.loc-carousel--hidden-left {
  transform: translate(calc(-180% + var(--drag)), -50%) translateZ(-400px)
    scale(0.7) rotateY(25deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.loc-carousel--hidden-right {
  transform: translate(calc(80% + var(--drag)), -50%) translateZ(-400px)
    scale(0.7) rotateY(-25deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.loc-carousel-arrows {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  position: relative;
  z-index: 10;
}

.loc-carousel-arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--color-beige);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--type-base);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.loc-carousel-arrow:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-muted);
}

.loc-event-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-black);
  border-radius: var(--radius-md);
  font-size: var(--type-xl);
  margin-bottom: var(--space-4);
}

.loc-carousel-card h3 {
  font-family: var(--font-display);
  font-size: var(--type-2xl);
  font-style: italic;
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-3);
}

.loc-carousel-card p {
  font-family: var(--font-body);
  font-size: var(--type-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

/* ======================================================================
   SECTION 4: VENUES WE KNOW
   ====================================================================== */

.loc-venues {
  background-color: var(--bg-primary);
  padding: var(--section-padding-md) 0;
}

.loc-venues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.loc-venue-card {
  background: var(--color-sand);
  border: 1px solid var(--color-beige);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.loc-venue-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.loc-venue-card-name {
  font-family: var(--font-display);
  font-size: var(--type-xl);
  font-style: italic;
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-1);
}

.loc-venue-card-location {
  font-family: var(--font-body);
  font-size: var(--type-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.loc-venue-card p {
  font-family: var(--font-body);
  font-size: var(--type-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.loc-venues-footer {
  text-align: center;
  margin-top: var(--space-12);
  font-family: var(--font-body);
  font-size: var(--type-base);
  color: var(--text-secondary);
}

.loc-venues-footer a {
  color: var(--color-gold-dark);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.loc-venues-footer a:hover {
  color: var(--color-black);
}

/* ======================================================================
   SECTION 5: EVENTS WE'VE DONE
   ====================================================================== */

.loc-past-events {
  background-color: var(--color-black);
  padding: var(--section-padding-md) 0;
}

.loc-past-events .loc-section-header h2 {
  color: var(--color-gold);
}

.loc-past-events .loc-section-header .eyebrow {
  color: var(--color-gold);
}

.loc-past-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.loc-past-event-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
}

.loc-past-event-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}

.loc-past-event-item:hover img {
  transform: scale(1.04);
}

.loc-past-event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(17, 17, 17, 0.85) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--radius-lg);
}

.loc-past-event-item:hover .loc-past-event-overlay {
  opacity: 1;
}

.loc-past-event-caption {
  font-family: var(--font-body);
  font-size: var(--type-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-ivory);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.loc-past-events-cta {
  text-align: center;
}

/* ======================================================================
   SECTION 6: WHY JOZ
   ====================================================================== */

.loc-why {
  background: var(--bg-sand-glow);
  padding: var(--section-padding-md) 0;
}

.loc-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.loc-why-left .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}

.loc-why-left h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--type-3xl), 4vw, var(--type-5xl));
  font-style: italic;
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-6);
}

.loc-why-left p {
  font-family: var(--font-body);
  font-size: var(--type-base);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.loc-why-right {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-8);
}

.loc-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.loc-why-item {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.loc-why-number {
  font-family: var(--font-display);
  font-size: var(--type-3xl);
  font-weight: var(--fw-regular);
  color: var(--color-gold);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}

.loc-why-item-content h4 {
  font-family: var(--font-display);
  font-size: var(--type-xl);
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-2);
  line-height: var(--lh-heading);
}

.loc-why-item-content p {
  font-family: var(--font-body);
  font-size: var(--type-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

/* ======================================================================
   SECTION 7: TESTIMONIALS
   ====================================================================== */

.loc-testimonials {
  background:
    radial-gradient(
      ellipse 800px 500px at 90% 15%,
      rgba(198, 169, 107, 0.4) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 700px 600px at 10% 85%,
      rgba(198, 169, 107, 0.35) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 600px 400px at 50% 50%,
      rgba(212, 188, 130, 0.15) 0%,
      transparent 60%
    ),
    var(--color-sand);
  padding: var(--section-padding-md) 0;
  overflow: hidden;
}

.loc-testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 220px;
}

.loc-testimonial-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  padding: 0 var(--container-gutter);
}

.loc-testimonial-slide.active {
  opacity: 1;
  position: relative;
}

.loc-testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(var(--type-xl), 2.5vw, var(--type-2xl));
  font-style: italic;
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--text-primary);
  margin: 0 0 var(--space-6);
  border: none;
  padding: 0;
}

.loc-testimonial-quote::before {
  content: "\201C";
  display: block;
  font-size: var(--type-5xl);
  color: var(--color-gold);
  line-height: 0.6;
  margin-bottom: var(--space-4);
}

.loc-testimonial-cite {
  font-family: var(--font-body);
  font-style: normal;
  display: block;
}

.loc-testimonial-name {
  font-family: var(--font-body);
  font-size: var(--type-base);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.loc-testimonial-event {
  font-family: var(--font-body);
  font-size: var(--type-sm);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
}

.loc-testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.loc-testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-beige);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast);
}

.loc-testimonial-dot.active {
  background: var(--color-gold);
}

/* ======================================================================
   SECTION 8: SERVICE AREA MAP
   ====================================================================== */

.loc-map-section {
  background-color: var(--bg-primary);
  padding: var(--section-padding-md) 0;
}

.loc-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.loc-map-text .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}

.loc-map-text h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--type-3xl), 4vw, var(--type-5xl));
  font-style: italic;
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-6);
}

.loc-map-text > p {
  font-family: var(--font-body);
  font-size: var(--type-base);
  color: var(--text-secondary);
  line-height: var(--lh-body);
  margin-bottom: var(--space-8);
}

.loc-area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.loc-area-pill {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: var(--type-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  white-space: nowrap;
}

.loc-map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 450px;
}

.loc-map-embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
}

/* ======================================================================
   SECTION 9: BOOKING CTA
   ====================================================================== */

.loc-booking-cta {
  background-color: var(--color-black);
  padding: var(--section-padding-lg) 0;
  text-align: center;
}

.loc-booking-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--type-3xl), 5vw, var(--type-5xl));
  font-style: italic;
  font-weight: var(--fw-regular);
  color: var(--color-ivory);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-6);
}

.loc-booking-cta-subhead {
  font-family: var(--font-body);
  font-size: var(--type-lg);
  color: var(--text-on-dark-muted);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: var(--lh-body);
}

.loc-booking-section .hero-ctas {
  margin-bottom: var(--space-8);
}

.loc-booking-cta-small {
  font-family: var(--font-body);
  font-size: var(--type-sm);
  color: var(--text-on-dark-muted);
  max-width: 500px;
  margin: var(--space-8) auto 0;
}

/* ======================================================================
   RESPONSIVE — TABLET (768px)
   ====================================================================== */

@media (max-width: 768px) {
  /* Events carousel */
  .loc-carousel-viewport {
    height: 420px;
  }

  .loc-carousel--left {
    transform: translate(calc(-120% + var(--drag)), -50%) translateZ(-150px)
      scale(0.85) rotateY(12deg);
  }

  .loc-carousel--right {
    transform: translate(calc(20% + var(--drag)), -50%) translateZ(-150px)
      scale(0.85) rotateY(-12deg);
  }

  /* Venues — horizontal scroll */
  .loc-venues-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    -webkit-overflow-scrolling: touch;
  }

  .loc-venue-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    transition: none;
  }

  .loc-venue-card:hover {
    transform: none;
  }

  /* Past events — horizontal scroll */
  .loc-past-events-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    -webkit-overflow-scrolling: touch;
  }

  .loc-past-event-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    aspect-ratio: 3 / 4;
  }

  .loc-past-event-item img {
    transition: none;
  }

  .loc-past-event-item:hover img {
    transform: none;
  }

  .loc-past-event-overlay {
    opacity: 1;
    transition: none;
  }

  /* Why section */
  .loc-why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .loc-why-right {
    border-left: none;
    border-top: 3px solid var(--color-gold);
    padding-left: 0;
    padding-top: var(--space-8);
  }

  /* Map section */
  .loc-map-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ======================================================================
   RESPONSIVE — MOBILE (480px)
   ====================================================================== */

@media (max-width: 480px) {
  .loc-area-pill {
    font-size: 0.6rem;
    padding: 3px var(--space-2);
    letter-spacing: var(--ls-wide);
  }

  .loc-carousel-viewport {
    height: 380px;
  }

  .loc-carousel-card {
    padding: var(--space-6);
  }

  .loc-carousel--left {
    transform: translate(calc(-115% + var(--drag)), -50%) translateZ(-120px)
      scale(0.8) rotateY(10deg);
    opacity: 0.3;
  }

  .loc-carousel--right {
    transform: translate(calc(15% + var(--drag)), -50%) translateZ(-120px)
      scale(0.8) rotateY(-10deg);
    opacity: 0.3;
  }

  .loc-venue-card {
    flex: 0 0 260px;
  }

  .loc-past-event-item {
    flex: 0 0 260px;
  }

  .loc-testimonial-carousel {
    min-height: 280px;
  }
}
