/* Shared styles for content pages: Catering, Weddings, Late Night Hype, Gallery */

.cp-main {
  --cp-accent: var(--color-gold-warm);
  --cp-accent-rgb: 220, 169, 89;
  background:
    radial-gradient(circle at 80% 14%, rgba(var(--cp-accent-rgb), 0.08), transparent 30rem),
    #0d0a04;
  color: #fff;
  padding-bottom: 60px;
  min-height: 100vh;
}

.cp-hero {
  /* The site header is position:absolute at top:4.5vh, height:11vh (see
     sections/header/header.css), so its bottom edge sits at 15.5vh — a
     value that scales with viewport height. A fixed pixel padding here
     (previously 140px) only clears the header on shorter viewports; on
     anything ~950px+ tall the eyebrow text renders under the header's
     bottom edge. Matching the same vh-based value (plus a fixed buffer)
     keeps clearance correct at every viewport height. */
  padding: 140px 20px 50px;
  padding-top: calc(15.5vh + 48px);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.cp-hero-featured {
  position: relative;
  isolation: isolate;
  max-width: min(1180px, calc(100% - 40px));
  min-height: 580px;
  padding: calc(15.5vh + 70px) clamp(24px, 7vw, 92px) 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(var(--cp-accent-rgb), 0.28);
  border-radius: 0 0 34px 34px;
  background-color: #120d08;
}

.cp-hero-featured::before,
.cp-hero-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cp-hero-featured::before {
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}

.cp-hero-featured::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 5, 2, 0.94) 0%, rgba(8, 5, 2, 0.66) 58%, rgba(8, 5, 2, 0.24) 100%),
    linear-gradient(0deg, rgba(8, 5, 2, 0.9) 0%, transparent 65%);
}

.cp-hero-featured h1,
.cp-hero-featured p {
  max-width: 720px;
  text-align: left;
}

.cp-hero-featured h1 {
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  letter-spacing: -0.035em;
}

.cp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.cp-hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.theme-catering .cp-hero-featured::before {
  background-image: url('/rich%20assets/slider_img_10.jpg');
  background-position: center 45%;
}

.theme-weddings .cp-main {
  --cp-accent: #e4b8a5;
  --cp-accent-rgb: 228, 184, 165;
}

.theme-weddings .cp-hero-featured::before {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 231, 215, 0.34), transparent 16rem),
    linear-gradient(125deg, #33231d 0%, #160d0b 50%, #51382f 100%);
}

.theme-weddings .cp-hero-featured::after {
  background:
    linear-gradient(90deg, rgba(16, 8, 6, 0.9), rgba(16, 8, 6, 0.3)),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, 0.025) 22px 23px);
}

.theme-late-night .cp-main {
  --cp-accent: #d684ff;
  --cp-accent-rgb: 214, 132, 255;
  background:
    radial-gradient(circle at 75% 10%, rgba(159, 56, 255, 0.19), transparent 32rem),
    #09050e;
}

.theme-late-night .cp-hero-featured::before {
  background:
    radial-gradient(circle at 75% 35%, rgba(230, 70, 255, 0.36), transparent 12rem),
    radial-gradient(circle at 88% 48%, rgba(56, 145, 255, 0.25), transparent 19rem),
    linear-gradient(135deg, #080411 5%, #25103c 60%, #09050e 100%);
}

.theme-late-night .cp-hero-featured::after {
  background:
    linear-gradient(90deg, rgba(7, 3, 12, 0.92), rgba(7, 3, 12, 0.25)),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(214, 132, 255, 0.05) 59px 60px);
}

.theme-gallery .cp-hero-featured::before {
  background-image: url('/rich%20assets/slider_img_11.jpg');
  background-position: center 42%;
}

/* The gallery header and hero are separate visual panels. Keep the header in
   normal document flow here so the hero starts beneath it instead of using
   the site-wide overlapping-header treatment. */
.theme-gallery .site-header {
  position: relative;
  top: auto;
  margin: 4.5vh auto 0;
}

.theme-gallery .cp-main {
  margin-top: 24px;
}

@media (max-width: 1023px) {
  .theme-gallery .site-header {
    margin-top: 15px;
  }

  .theme-gallery .cp-main {
    margin-top: 15px;
  }
}

.theme-packages .cp-main {
  --cp-accent: #f1cf8a;
  --cp-accent-rgb: 241, 207, 138;
}

.theme-packages .cp-hero-featured::before {
  background:
    radial-gradient(circle at 78% 36%, rgba(241, 207, 138, 0.24), transparent 15rem),
    linear-gradient(125deg, #0f0b07 0%, #2b1c0d 55%, #0f0b07 100%);
}

.theme-payment .cp-main {
  background:
    radial-gradient(circle at 50% 18%, rgba(224, 185, 115, 0.16), transparent 26rem),
    #0a0703;
}

.theme-payment .cp-level-card {
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.theme-legal .cp-main {
  background: linear-gradient(180deg, #100c07, #080603);
}

.theme-legal .cp-section {
  border-top: 1px solid rgba(224, 185, 115, 0.2);
}

.theme-legal .cp-section h2:not(:first-child) {
  margin-top: 38px;
}

@media (max-width: 1023px) {
  .cp-hero {
    /* Mobile header switches to fixed pixel sizing (top:15px, height:70px
       — see header.css's max-width:1023px block), so the vh-based value
       above would over-pad on tall phones. Match the mobile header's
       actual footprint instead. */
    padding-top: 120px;
  }

  .cp-hero-featured {
    min-height: 500px;
    padding: 128px 24px 48px;
    border-radius: 0 0 26px 26px;
  }
}

.cp-eyebrow {
  display: inline-block;
  color: var(--cp-accent, #dca959);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.cp-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 16px;
  color: #fff;
}

.cp-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cp-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 54px 20px;
}

.cp-section h2 {
  color: var(--cp-accent, #dca959);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.cp-section-sub {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
  max-width: 720px;
}

/* Service level cards */
.cp-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cp-level-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(var(--cp-accent-rgb, 220, 169, 89), 0.3);
  border-radius: 18px;
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cp-level-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--cp-accent-rgb, 220, 169, 89), 0.65);
}

.cp-level-card h3 {
  color: var(--cp-accent, #dca959);
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.cp-level-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.cp-pricing-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--cp-accent, #dca959);
  background: rgba(var(--cp-accent-rgb, 220, 169, 89), 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  border-radius: 4px;
}

/* Menu categories */
.cp-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.cp-menu-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
}

.cp-menu-category h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 12px;
  border-bottom: 1px solid rgba(var(--cp-accent-rgb, 220, 169, 89), 0.3);
  padding-bottom: 8px;
}

.cp-menu-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
}

.cp-menu-category li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  padding: 3px 0;
}

/* Tag pills (custom menu occasions) */
.cp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cp-tag {
  background: rgba(var(--cp-accent-rgb, 220, 169, 89), 0.1);
  border: 1px solid rgba(var(--cp-accent-rgb, 220, 169, 89), 0.35);
  color: var(--cp-accent, #dca959);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* CTA banner */
.cp-cta {
  text-align: center;
  padding: 40px 20px;
  margin: 20px auto 0;
  max-width: 700px;
}

.cp-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Late Night Hype hours badge */
.cp-hours-badge {
  display: inline-block;
  background: rgba(var(--cp-accent-rgb, 220, 169, 89), 0.15);
  border: 1px solid rgba(var(--cp-accent-rgb, 220, 169, 89), 0.55);
  color: var(--cp-accent, #dca959);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cp-empty-state {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* Gallery */
.theme-gallery .cp-section {
  max-width: 1220px;
}

.gallery-photo-section {
  padding-bottom: 32px;
}

.gallery-video-section {
  padding-top: 48px;
}

.gallery-section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.gallery-section-heading .cp-eyebrow {
  margin-bottom: 7px;
}

.gallery-section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.gallery-section-heading > p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.65;
}

.cp-gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin-bottom: 30px;
}

.cp-gallery-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cp-gallery-tab.active,
.cp-gallery-tab:hover,
.cp-gallery-tab:focus-visible {
  background: #dca959;
  color: #0d0a04;
  border-color: #dca959;
}

.cp-gallery-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cp-gallery-panel {
  display: none;
}

.cp-gallery-panel.active {
  display: block;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.gallery-photo-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
  background: #17120d;
}

.gallery-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-photo-card:hover img {
  transform: scale(1.035);
}

.gallery-photo-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 32px 16px 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  font-size: 0.88rem;
  font-weight: 600;
}

.theme-gallery .cp-empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 48px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(220, 169, 89, 0.09), transparent 18rem),
    rgba(255, 255, 255, 0.018);
  border-radius: 22px;
}

.theme-gallery .cp-empty-state p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.58);
}

.theme-gallery .cp-empty-state strong {
  color: #fff;
  font-size: 1.05rem;
}

.gallery-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
  color: #dca959;
  border: 1px solid rgba(220, 169, 89, 0.35);
  border-radius: 18px;
  background: rgba(220, 169, 89, 0.08);
}

.gallery-empty-icon svg {
  width: 28px;
  height: 28px;
}

.gallery-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-video-card {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  color: #fff;
  text-align: left;
  background: #17110c;
  border: 1px solid rgba(220, 169, 89, 0.2);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.gallery-video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 169, 89, 0.58);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.4);
}

.gallery-video-card:focus-visible {
  outline: 2px solid #dca959;
  outline-offset: 4px;
}

.gallery-video-preview {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.gallery-video-card:hover .gallery-video-preview {
  transform: scale(1.035);
}

.gallery-video-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 3, 2, 0.08) 30%, rgba(4, 3, 2, 0.88) 100%),
    linear-gradient(90deg, rgba(4, 3, 2, 0.22), transparent 65%);
}

.gallery-video-content {
  position: absolute;
  inset: auto 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 50px;
}

.gallery-video-category {
  color: #e0b973;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-video-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.18;
}

.gallery-play-icon {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #0a0500;
  background: linear-gradient(135deg, #f2d49a, #ae8741);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

.gallery-play-icon svg {
  width: 24px;
  height: 24px;
  margin-left: 2px;
}

.gallery-video-dialog {
  width: min(620px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #0b0805;
  border: 1px solid rgba(224, 185, 115, 0.32);
  border-radius: 24px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.75);
}

.gallery-video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.gallery-video-dialog-inner {
  padding: 18px;
}

.gallery-video-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 14px;
}

.gallery-video-dialog-header span {
  display: block;
  margin-bottom: 3px;
  color: #dca959;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-video-dialog-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
}

.gallery-video-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
}

#galleryVideoPlayer {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 120px);
  background: #000;
  border-radius: 14px;
}

@media (max-width: 800px) {
  .gallery-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-video-card {
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .cp-gallery-tabs {
    flex-wrap: nowrap;
    margin-right: -20px;
    padding-right: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cp-gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .cp-gallery-tab {
    flex: 0 0 auto;
  }

  .gallery-photo-grid {
    gap: 3px;
  }

  .gallery-video-content {
    inset: auto 14px 14px;
    padding-right: 0;
  }

  .gallery-video-category {
    font-size: 0.62rem;
  }

  .gallery-video-title {
    max-width: calc(100% - 40px);
    font-size: 0.98rem;
  }

  .gallery-play-icon {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }

  .gallery-play-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Location cards (Airbnb hospitality) */
.cp-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cp-location-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  height: clamp(310px, 32vw, 370px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(220, 169, 89, 0.25);
  background: linear-gradient(135deg, #201808 0%, #0d0a04 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.cp-location-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.45s ease, filter 0.3s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .cp-location-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 169, 89, 0.56);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38);
  }

  .cp-location-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-location-card,
  .cp-location-card img {
    transition: none;
  }
}

.cp-location-card .cp-location-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 22%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
}

.cp-location-card .cp-location-body {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.cp-location-card h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.2rem;
}

.cp-location-card span {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  line-height: 1.45;
}

.cp-location-card.cp-location-placeholder .cp-location-body {
  text-align: center;
  width: 100%;
}

.cp-location-card.cp-location-placeholder {
  align-items: center;
  justify-content: center;
}

.cp-location-card.cp-location-placeholder span {
  display: block;
  margin-top: 6px;
}

.as-location-add-btn {
  width: 100%;
  max-width: 210px;
  margin-top: 14px;
  padding: 9px 20px;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .cp-hero-featured {
    max-width: calc(100% - 24px);
  }

  .cp-hero-actions,
  .cp-hero-actions .btn {
    width: 100%;
  }

  .cp-location-card {
    height: 320px;
  }
}

.cp-package-price {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 12px 0 !important;
}

.cp-package-price.cp-package-quote {
  color: #dca959 !important;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
}

.cp-package-add-btn {
  padding: 9px 20px;
  font-size: 0.85rem;
}
