/* ============================================
   High Plains Flower Truck — Zoom-Through Navigation
   ============================================ */

@font-face {
  font-family: 'Rye';
  src: url('RyeFont/Rye-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

/* Hide scrollbars globally while still allowing scroll */
*::-webkit-scrollbar {
  display: none;
}

* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Visually hidden but readable by search engines and screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --color-cream: #faf6f1;
  --color-sage: #7a8c6e;
  --color-sage-dark: #5c6b52;
  --color-earth: #8b7355;
  --color-charcoal: #2c2c2c;
  --color-warm-white: #f5efe6;
  --color-blush: #e8d5c4;
  --color-dust: #c9b99a;
  --nav-width: 160px;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--color-charcoal);
  background: var(--color-charcoal);
}

/* ---- Floating Navigation ---- */

.floating-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--nav-width);
  display: flex;
  align-items: center;
  z-index: 100;
  padding-left: 24px;
}

.floating-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.floating-nav .nav-link {
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s, transform 0.3s;
  display: block;
  position: relative;
  padding-left: 20px;
}

.floating-nav .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--color-cream);
  transition: width 0.3s;
  transform: translateY(-50%);
}

.floating-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.floating-nav .nav-link.active {
  color: var(--color-cream);
  font-weight: 500;
}

.floating-nav .nav-link.active::before {
  width: 12px;
}

/* ---- Zoom Viewport ---- */

#zoom-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#zoom-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ---- Sections (Zoom Layers) ---- */

/*
  Each section is oversized (inset: -80%) so the background extends
  well beyond the viewport. This prevents edges from appearing during
  the translateZ zoom transition. The content is repositioned inward
  to stay centered in the actual viewport.
*/
.zoom-section {
  position: absolute;
  inset: -80%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: opacity 300ms ease;
}

.zoom-section .section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.zoom-section .section-content {
  position: relative;
  z-index: 1;
  /* Offset inward to compensate for the oversized section */
  margin-left: calc(80vw + var(--nav-width) + 20px);
  margin-top: 0;
  width: 100vw;
  max-width: min(1000px, calc(100vw - var(--nav-width) - 80px));
  padding: 40px 0 40px 0;
}

/* Inactive sections are simply faded out */
.zoom-section.zoom-past,
.zoom-section.zoom-future {
  opacity: 0;
  pointer-events: none;
}

.zoom-section.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Section Backgrounds ---- */

/* Image on the element, dark overlay on ::after */
.home-bg {
  background: url('/Pictures/web/kellyKendell.jpg') center/contain no-repeat;
}

.about-bg {
  background: url('/Pictures/web/kellyKendell.jpg') center/contain no-repeat;
}

.location-bg {
  background: url('/Pictures/web/kellyKendell.jpg') center/contain no-repeat;
}

.contact-bg {
  background: url('/Pictures/web/kellyKendell.jpg') center/contain no-repeat;
}

.wedding-bg {
  background: url('/Pictures/kellyKendell.jpg') center/contain no-repeat;
}

.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
}

.home-bg::after {
  background:
    radial-gradient(ellipse at 60% 50%, transparent 20%, rgba(129, 141, 118, 0.067) 70%),
    linear-gradient(160deg, rgba(184, 207, 138, 0.074) 0%, rgba(12, 16, 10, 0.76) 100%);
}

.about-bg::after {
  background: linear-gradient(170deg, rgba(16, 20, 14, 0.348) 0%, rgba(12, 16, 10, 0.88) 100%);
}

.location-bg::after {
  background: linear-gradient(150deg, rgba(16, 16, 12, 0.8) 0%, rgba(12, 12, 8, 0.88) 100%);
}

.contact-bg::after {
  background: linear-gradient(180deg, rgba(16, 18, 12, 0.85) 0%, rgba(10, 12, 8, 0.92) 100%);
}

.wedding-bg::after {
  background: linear-gradient(180deg, rgba(16, 18, 12, 0.85) 0%, rgba(10, 12, 8, 0.92) 100%);
}

/* ---- Typography ---- */

h1 {
  font-family: 'Rye', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-cream);
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

h2 {
  font-family: 'Rye', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--color-cream);
  margin-bottom: 32px;
}

h3 {
  font-family: 'Rye', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-blush);
  margin-bottom: 8px;
}

p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

/* ---- HOME ---- */

.home-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, 600px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.35));
}

@media (max-width: 768px) {
  .home-logo {
    width: min(127vw, 500px);
  }
}

.home-hero {
  max-width: 650px;
}

.tagline {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 16px;
  font-weight: 400;
}

.subtitle {
  font-size: 17px;
  margin-top: 24px;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.55);
}

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-top: 40px; */
  margin-right: 30%;
  margin-left: 30%;
  padding: 14px 5px;
  border: 2px solid var(--color-sage);
  color: var(--color-cream);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.cta:hover {
  background: var(--color-sage);
  color: var(--color-cream);
}

/* ---- ABOUT ---- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card.has-image {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(106, 255, 213, 0.27);
  border-radius: 8px;
  overflow: hidden;
  /* Button reset */
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
  box-shadow: 5px rgba(106, 255, 213, 0.27)
}

.about-card.has-image:hover {
  border-color: rgba(106, 255, 213, 0.391);
  background: rgba(195, 251, 235, 0.122);
  transform: translateY(-7px);
  border: 2px solid rgba(43, 255, 195, 0.332);
}

.card-cta {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-sage, #b8c5a6);
  transition: transform 0.3s ease;
}

.about-card.has-image:hover .card-cta {
  transform: translateX(4px);
}

.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
  transition: transform 0.5s ease;
}

.about-card.has-image:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px 24px;
}

/* ---- LOCATION ---- */

.location-layout h2 {
  margin-bottom: 28px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.location-item {
  margin-bottom: 28px;
}

.location-item h3 {
  margin-bottom: 6px;
}

.schedule {
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-sage);
}

.map-frame {
  width: 100%;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-frame iframe {
  display: block;
  filter: grayscale(0.6) brightness(0.75) contrast(1.1);
}

/* ---- CONTACT ---- */

.contact-layout {
  max-width: 600px;
}

.contact-intro {
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--color-cream);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-sage);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-group select option {
  background: #2c2c2c;
  color: var(--color-cream);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-sage);
  color: var(--color-cream);
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: var(--color-sage-dark);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 1.5em;
}

.form-status.success {
  color: #a9c497;
}

.form-status.error {
  color: #d9a05b;
}

.contact-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Mobile Responsive
   ============================================ */

/* ---- Hamburger Toggle (mobile only, hidden by default) ---- */
.menu-toggle {
  display: none;
}

.menu-cutout {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --nav-width: 0px;
  }

  /* Hamburger button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    right: 16px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(229, 0, 0, 0.108);
    backdrop-filter: blur(3px) saturate(200%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 200;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
  }

  .menu-toggle-bar {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--color-cream, #f6efe4);
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.3s ease;
  }

  /* Animate to X when open */
  .menu-toggle.open .menu-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .menu-toggle.open .menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-toggle.open .menu-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* Glass panel nav — slides in from the right */
  .floating-nav {
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    width: 50vw;
    height: 100%;
    padding: 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + 80px);
    padding-right: 24px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    align-items: flex-start;
    justify-content: flex-end;

    /* Pastel semi-transparent glass — lighter */
    background: linear-gradient(
      135deg,
      rgba(255, 228, 235, 0.18) 0%,
      rgba(230, 240, 220, 0.15) 50%,
      rgba(220, 230, 245, 0.18) 100%
    );
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-left: 2px solid #C66A12;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);

    /* Hidden off-screen to the right by default */
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.4s ease,
      visibility 0.5s;
    z-index: 150;
  }

  .floating-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  /* Cutout — hidden off-screen right by default, peeks behind nav when open */
  .menu-cutout {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    width: 70vw;
    max-width: 340px;
    height: auto;
    z-index: 160;
    transform: translateX(110%) rotate(8deg);
    transform-origin: bottom right;
    box-shadow: #cf8713;
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.4s ease;
  }

  .floating-nav.open ~ .menu-cutout {
    transform: translateX(0) rotate(-8deg);
    opacity: 1;
  }

  .floating-nav ul {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 28px;
    width: 100%;
    padding: 0;
  }

  .floating-nav li {
    opacity: 0;
    transform: translateX(40px);
    transition:
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.5s ease;
    transition-delay: 0s;
  }

  /* When open, stagger each item in from right -> left */
  .floating-nav.open li {
    opacity: 1;
    transform: translateX(0);
    /* Last item (highest --i) animates in first, so items appear right-to-left */
    transition-delay: calc(0.18s + (4 - var(--i, 0)) * 0.07s);
  }

  .floating-nav .nav-link {
    padding: 10px 14px;
    font-size: 15px;
    letter-spacing: 2px;
    text-align: right;
    border-radius: 22px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  }

  .floating-nav .nav-link:hover,
  .floating-nav .nav-link:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(-4px);
  }

  .floating-nav .nav-link::before {
    display: none;
  }

  .floating-nav .nav-link.active {
    color: #C66A12;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.14);
  }

  .zoom-section .section-content {
    margin-left: 80vw;
    padding: 80px 16px 24px 16px;
    overflow-y: auto;
    max-height: 100vh;
    max-height: 100dvh;
    width: 100vw;
    max-width: 100vw;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .about-grid {
    gap: 24px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 140px;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .map-frame {
    height: 220px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-layout {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .floating-nav .nav-link {
    font-size: 14px;
    padding: 6px 4px;
    letter-spacing: 1.5px;
  }
}

/* ---- Scroll Hint (Home only) ---- */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse-hint 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.6; transform: translateX(-50%) translateY(4px); }
}

@media (max-width: 768px) {
  .scroll-hint {
    bottom: 100px;
  }
}

/* ============================================
   Detail Views (Weddings & Truck)
   ============================================ */

.detail-view {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: linear-gradient(
    135deg,
    #14121a 0%,
    #1e1c22 100%
  );
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.5s;
  overflow: hidden;
}

.detail-view.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.detail-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-hero {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 280px;
  overflow: hidden;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-view.open .detail-hero img {
  transform: scale(1);
}

/* ---- Carousel ---- */

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-view.open .carousel-slide.active img {
  transform: scale(1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(20, 18, 22, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-cream);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(20, 18, 22, 0.6);
  border-color: rgba(255, 255, 255, 0.55);
}

.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

@keyframes nudge-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

@keyframes nudge-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.carousel-btn--prev svg {
  animation: nudge-left 2.4s ease-in-out infinite;
}

.carousel-btn--next svg {
  animation: nudge-right 2.4s ease-in-out infinite;
}

.carousel-btn:hover svg {
  animation-play-state: paused;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  background: var(--color-cream);
  transform: scale(1.4);
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 18, 22, 0) 40%, rgba(20, 18, 22, 0.95) 100%);
  pointer-events: none;
}

.detail-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  color: var(--color-cream, #f6efe4);
}

.detail-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-sage, #b8c5a6);
  margin: 0 0 12px;
}

.detail-body h2 {
  font-family: 'Rye', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 24px;
  line-height: 1.1;
}

.detail-body > p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(246, 239, 228, 0.8);
  margin: 0 0 40px;
  max-width: 620px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-bottom: 48px;
}

.detail-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-cream, #f6efe4);
}

.detail-item p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246, 239, 228, 0.65);
  margin: 0;
}

.detail-cta {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-cream, #f6efe4);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.detail-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.detail-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.detail-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  color: rgba(246, 239, 228, 0.7);
  transition: color 0.3s ease;
}

.detail-social:hover {
  color: var(--color-cream, #f6efe4);
}

.detail-social-icon {
  display: block;
}

.detail-close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 20px);
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 310;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.detail-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.detail-close span {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--color-cream, #f6efe4);
  border-radius: 2px;
}

.detail-close span:nth-child(1) { transform: rotate(45deg); }
.detail-close span:nth-child(2) { transform: rotate(-45deg); }

/* Stagger the body content fade-in */
.detail-view .detail-body > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-view.open .detail-body > * {
  opacity: 1;
  transform: translateY(0);
}

.detail-view.open .detail-body > *:nth-child(1) { transition-delay: 0.25s; }
.detail-view.open .detail-body > *:nth-child(2) { transition-delay: 0.32s; }
.detail-view.open .detail-body > *:nth-child(3) { transition-delay: 0.39s; }
.detail-view.open .detail-body > *:nth-child(4) { transition-delay: 0.46s; }
.detail-view.open .detail-body > *:nth-child(5) { transition-delay: 0.53s; }

/* Prevent body scroll when a detail view is open */
body.detail-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .detail-hero {
    height: 38vh;
    min-height: 220px;
  }

  .detail-body {
    padding: 32px 20px 60px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }

  .detail-close {
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: 14px;
    width: 44px;
    height: 44px;
  }
}
