/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

 * {
    font-family: "Montserrat", sans-serif;
  }

  .font-display {
    font-family: "Playfair Display", Georgia, serif;
  }

  .font-jetbrains {
    font-family: "JetBrains Mono", ui-monospace, monospace;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem;
  }

  ::selection {
    background-color: #10b981;
    color: #ffffff;
  }

  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f3f4f6;
  }

  ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #10b981;
  }

  /* ===== Custom select arrow ===== */
  select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 15px 15px;
  }

  /* ===== Sortable table headers ===== */
  th a.sort_link {
    color: inherit;
    text-decoration: none;
  }

  th a.sort_link:hover {
    color: #065f46;
  }

  /* ===== Scroll reveal animations ===== */
  /* NOTE: no `transform` and no `will-change` may remain after the reveal —
     either would turn the element into the containing block for `position:
     fixed` descendants (e.g. lightboxes) and confine them to the section. */
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-reveal="left"] {
    transform: translateX(-32px);
  }

  [data-reveal="right"] {
    transform: translateX(32px);
  }

  [data-reveal="scale"] {
    transform: scale(0.94);
  }

  [data-reveal].reveal-visible {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: reduce) {
    [data-reveal] {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
    .animate-slow-zoom {
      animation: none !important;
    }
  }

  /* ===== Decorative motion ===== */
  @keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
  }

  .animate-slow-zoom {
    animation: slowZoom 20s ease-out forwards;
  }

  @keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(4deg); }
  }

  .animate-float-slow {
    animation: floatSlow 9s ease-in-out infinite;
  }

  .animate-float-slower {
    animation: floatSlow 13s ease-in-out infinite;
  }

  @keyframes shimmerLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }

  .shimmer-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: shimmerLine 3s ease-in-out infinite;
  }

  .font-display *,
  .font-jetbrains * {
    font-family: inherit;
  }

  /* ===== Homepage: hero ===== */
  .hero-backdrop {
    background:
      radial-gradient(55% 65% at 75% 25%, rgb(16 185 129 / 0.35), transparent 70%),
      radial-gradient(45% 55% at 10% 95%, rgb(52 211 153 / 0.12), transparent 70%),
      linear-gradient(165deg, #065f46 0%, #064e3b 55%, #053d2f 100%);
  }

  .bg-fresh {
    background:
      radial-gradient(70% 80% at 90% 10%, rgb(16 185 129 / 0.28), transparent 65%),
      radial-gradient(50% 60% at 0% 100%, rgb(52 211 153 / 0.10), transparent 70%),
      linear-gradient(150deg, #065f46 0%, #064e3b 60%, #053d2f 100%);
  }

  .hero-canvas {
    opacity: 0;
    transition: opacity 2.4s ease;
  }

  .hero-scene-ready .hero-canvas {
    opacity: 1;
  }

  .hero-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
  }

  @keyframes heroLineIn {
    from { transform: translateY(110%) rotate(2deg); }
    to { transform: none; }
  }

  @keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
  }

  .hero-line {
    display: inline-block;
    transform: translateY(110%);
    transform-origin: left bottom;
    animation: heroLineIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--d, 0) * 130ms + 250ms);
  }

  .hero-fade {
    opacity: 0;
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--d, 0) * 130ms + 250ms);
  }

  @keyframes scrollCue {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  .scroll-cue {
    animation: scrollCue 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }

  /* ===== Word-by-word reveal ===== */
  .reveal-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
  }

  .reveal-word > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 55ms);
  }

  .reveal-visible .reveal-word > span,
  .reveal-visible.reveal-word > span {
    transform: none;
  }

  /* ===== Odometer counters ===== */
  .odo-digit {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    vertical-align: top;
    line-height: 1;
  }

  .odo-strip {
    display: block;
    transform: translateY(0);
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .odo-strip > span {
    display: block;
    height: 1em;
  }

  /* ===== Line drawing ===== */
  [data-draw] [pathLength] {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .reveal-visible [data-draw] [pathLength],
  .reveal-visible[data-draw] [pathLength] {
    stroke-dashoffset: 0;
  }

  [data-scroll-progress] .scroll-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--p, 0));
  }

  /* ===== Bars ===== */
  [data-bar] {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 90ms + 200ms);
  }

  .reveal-visible [data-bar] {
    transform: scaleX(1);
  }

  /* ===== Staggered children ===== */
  [data-stagger] > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 70ms + 150ms);
  }

  .reveal-visible[data-stagger] > * {
    opacity: 1;
    transform: none;
  }

  /* ===== Marquee ===== */
  @keyframes marquee {
    to { transform: translateX(-50%); }
  }

  .marquee-track {
    display: flex;
    width: max-content;
    animation: marquee var(--duration, 60s) linear infinite;
    animation-direction: var(--direction, normal);
  }

  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }

  .marquee-skew {
    transform: skewX(calc(var(--sv, 0) * -10deg));
    transition: transform 0.2s linear;
  }

  /* ===== Program rows ===== */
  .program-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #064e3b, #065f46);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
  }

  .program-row:hover::before,
  .program-row:focus-within::before {
    transform: scaleY(1);
    transform-origin: top;
  }

  /* ===== Pointer spotlight + tilt ===== */
  [data-tilt] {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-tilt].is-tilting {
    transition: transform 0.12s linear;
  }

  .spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(16 185 129 / 0.18), transparent 60%);
  }

  .spotlight:hover::after {
    opacity: 1;
  }

  [data-magnetic] {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* ===== Animated underline ===== */
  .link-underline {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .link-underline:hover,
  .link-underline[aria-current="true"] {
    background-size: 100% 1px;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-line,
    .hero-fade,
    .scroll-cue,
    .marquee-track {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
      filter: none !important;
    }
    .reveal-word > span,
    [data-bar],
    [data-stagger] > *,
    .odo-strip {
      transition: none !important;
    }
    .reveal-word > span,
    [data-bar],
    [data-stagger] > * {
      opacity: 1 !important;
      transform: none !important;
    }
    [data-draw] [pathLength],
    [data-scroll-progress] .scroll-draw {
      stroke-dashoffset: 0 !important;
    }
  }

/* ===== Reservations ===== */
.reservation-header { display: flow-root; }
.reservation-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgb(6 78 59 / 0.1);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.75);
}
.reservation-navigation-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  color: #426658;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 160ms, color 160ms;
}
.reservation-navigation-link:hover { background: #e7f5ed; }
.reservation-navigation-link[aria-current="page"] { background: #064e3b; color: white; }
.reservation-button-primary, .reservation-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 23px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms, border-color 160ms;
}
.reservation-button-primary { background: #10b981; color: #052e24; border: 1px solid transparent; }
.reservation-button-primary:hover { background: #34d399; }
.reservation-button-secondary { background: white; color: #064e3b; border: 1px solid rgb(6 78 59 / 0.2); }
.reservation-button-secondary:hover { background: #effbf5; border-color: #059669; }
.reservation-catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.reservation-filter { border: 1px solid rgb(6 78 59 / 0.15); border-radius: 999px; padding: 10px 16px; font-size: 12px; font-weight: 500; cursor: pointer; }
.reservation-filter:hover { background: white; }
.reservation-filter[aria-pressed="true"] { background: #064e3b; color: white; border-color: #064e3b; }
.reservation-search { width: 100%; padding: 13px 16px; border: 1px solid rgb(6 78 59 / 0.18); border-radius: 12px; background: white; font-size: 13px; color: #064e3b; }
.reservation-search:focus { outline: 2px solid #10b981; outline-offset: 2px; }
.reservation-catalog-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid rgb(6 78 59 / 0.12); border-radius: 20px; background: white; transition: border-color 180ms, box-shadow 180ms; }
.reservation-catalog-card:hover { border-color: rgb(5 150 105 / 0.5); box-shadow: 0 10px 30px rgb(6 78 59 / 0.05); }
.reservation-catalog-card[hidden] { display: none; }
.reservation-category-label { max-width: 90%; font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #047857; }
.reservation-form-section { scroll-margin-top: 100px; min-width: 0; }
.reservation-form-section legend { float: left; width: 100%; margin-bottom: 24px; padding: 0; }
.reservation-form-section legend + * { clear: both; }
.reservation-choice { transition: border-color 160ms, background-color 160ms; }
.reservation-choice:has(input:checked) { background: #effbf5; border-color: #059669; box-shadow: inset 0 0 0 1px #059669; }
.reservation-choice:focus-within { outline: 2px solid #10b981; outline-offset: 2px; }
.reservation-form-step { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 12px; color: #426658; }
.reservation-form-step:hover { color: #047857; }
.reservation-form-step span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgb(6 78 59 / 0.2); font-size: 10px; }
@media (max-width: 639px) {
  .reservation-navigation-link { width: calc(50% - 3px); padding: 12px 7px; font-size: 11px; gap: 6px; }
  .reservation-catalog-card { padding: 23px; }
}

.availability-summary { list-style: none; }
.availability-summary::-webkit-details-marker { display: none; }

.reservation-catalog-media {
  display: block;
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  margin: -26px -26px 1.5rem;
  background: #e9f1ec;
  border-radius: 19px 19px 0 0;
}
.reservation-catalog-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reservation-catalog-photo-label {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: #064e3b;
  font-size: 0.65rem;
}
.reservation-catalog-media:focus-visible {
  outline: 3px solid #059669;
  outline-offset: 3px;
}

@media (max-width: 639px) {
  .reservation-catalog-media { margin-left: -23px; margin-right: -23px; }
}

.catalog-editor-panel { padding: 24px; border: 1px solid #e5e7eb; border-radius: 16px; background: white; }
.catalog-editor-preview { position: relative; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 12px; background: #f0f7f3; }
.catalog-editor-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #739187; font-size: 12px; }
.catalog-editor-empty span { font-size: 28px; }
.catalog-editor-empty[hidden] { display: none; }
.catalog-editor-file { display: block; width: 100%; min-width: 0; color: #6b7280; font-size: 12px; }
.catalog-editor-file::file-selector-button { padding: 9px 12px; margin-right: 10px; border: 1px solid #d1d5db; border-radius: 8px; background: white; color: #065f46; cursor: pointer; }
.catalog-editor-actions { padding: 18px 24px; border: 1px solid #e5e7eb; border-radius: 14px; background: white; }
