/* ------------------------------------------------------------------
   The Delray Getaway site styles
   Palette sampled from the poster artwork.
------------------------------------------------------------------ */

:root {
  --bg: #231f20;
  --bg-deep: #1a1718;
  --ink: #f3ecdf;
  --ink-muted: rgba(243, 236, 223, 0.62);
  --ink-faint: rgba(243, 236, 223, 0.32);
  --line: rgba(243, 236, 223, 0.14);
  --yellow: #e4e86a;
  --orange: #f2a04a;
  --orange-deep: #e5713a;
  --pink: #e7417a;
  --teal: #7fc5c0;
  --grad-sun: linear-gradient(180deg, var(--yellow) 0%, var(--orange) 70%, var(--orange-deep) 100%);
  --radius: 6px;
  --header-h: 64px;
  --font-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Ambient sunset glow behind the poster + film grain, both very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 45% at 50% 38%, rgba(231, 65, 122, 0.20) 0%, rgba(242, 160, 74, 0.10) 40%, transparent 72%),
    var(--bg);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(35, 31, 32, 0.92), rgba(35, 31, 32, 0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .sun {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-sun);
  box-shadow: 0 0 14px rgba(242, 160, 74, 0.55);
}
.brand em { font-style: normal; color: var(--yellow); }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  transition: color .2s ease;
  padding: 6px 0;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 40px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.btn-primary {
  color: #1d1718;
  background: var(--grad-sun);
  box-shadow: 0 8px 28px rgba(242, 160, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(242, 160, 74, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary svg { width: 18px; height: 18px; }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(243, 236, 223, 0.28);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(228, 232, 106, 0.06);
}
.btn-sm { min-height: 44px; padding: 0 26px; font-size: 17px; letter-spacing: 0.12em; }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 48px) clamp(16px, 4vw, 40px) 40px;
}

.poster {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  background: var(--bg-deep);
  aspect-ratio: 9 / 16;
}
.poster img { width: 100%; height: 100%; object-fit: cover; }

.hero-copy {
  width: 100%;
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--yellow);
  opacity: 0.9;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  animation: title-in 1.4s cubic-bezier(.2,.7,.2,1) both;
}

/* Gradient lives on the inner text span so the sheen can sit above it */
.title-text {
  display: inline-block;
  background: linear-gradient(175deg, var(--yellow) 0%, var(--yellow) 22%, var(--orange) 58%, var(--orange-deep) 78%, var(--orange-deep) 100%);
  background-size: 100% 170%;
  background-position: 50% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-breathe 7s ease-in-out 1.4s infinite alternate;
}

/* A soft diagonal light that glides across the letters, then rests */
.title-sheen {
  position: absolute;
  inset: 0;
  display: inline-block;
  pointer-events: none;
  user-select: none;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 250, 235, 0.22) 47%,
    rgba(255, 250, 235, 0.55) 50%,
    rgba(255, 250, 235, 0.22) 53%,
    rgba(255, 255, 255, 0) 58%
  );
  background-size: 260% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 7.5s cubic-bezier(.45,.05,.3,1) 2s infinite;
}
@keyframes title-sheen {
  0%   { background-position: 130% 0; }
  38%  { background-position: -30% 0; }
  100% { background-position: -30% 0; }
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes title-breathe {
  from { background-position: 50% 0%; }
  to   { background-position: 50% 100%; }
}

/* The rest of the hero copy follows the title in, slightly later */
.hero-copy > :not(.hero-title) { animation: title-in 1.2s cubic-bezier(.2,.7,.2,1) .25s both; }
.poster { animation: poster-in 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes poster-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 44ch;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.details li { display: flex; align-items: center; justify-content: center; gap: 10px; }
.details .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  width: 100%;
}
.cta-row .btn { flex: 1 1 200px; max-width: 280px; }

/* Phones/tablets: the poster already carries the headline, so show only
   the essentials beneath it. The hidden copy stays in the DOM for SEO. */
@media (max-width: 899px) {
  .hero-copy .eyebrow, .hero-copy .hero-title, .hero-copy .hero-sub { display: none; }
  .hero-copy { gap: 22px; }
}
@media (max-width: 599px) {
  .site-header { padding: 0 16px; }
  .brand { font-size: 18px; gap: 8px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn) { font-size: 16px; }
  .site-nav .btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; letter-spacing: 0.1em; }
}

/* Desktop: poster on the left, copy + buttons on the right */
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    min-height: calc(100dvh - var(--header-h));
    padding-bottom: 48px;
  }
  .poster {
    max-width: none;
    width: auto;
    height: min(calc(100dvh - var(--header-h) - 80px), 860px);
    justify-self: end;
  }
  .hero-copy {
    justify-self: start;
    text-align: left;
    align-items: flex-start;
    max-width: 480px;
  }
  .details li { justify-content: flex-start; }
  .cta-row { justify-content: flex-start; }
}

/* ---------- Mobile sticky ticket bar ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(35, 31, 32, 0) 0%, rgba(35, 31, 32, 0.94) 35%);
  transform: translateY(110%);
  transition: transform .3s ease;
  pointer-events: none;
}
.sticky-cta .btn { width: 100%; pointer-events: auto; }
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- About page ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) clamp(16px, 4vw, 40px) 64px;
}
.page-header { margin-bottom: 36px; }
.page-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.92;
  position: relative;
  display: inline-block;
  animation: title-in 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.page-header > :not(.page-title), .fact-grid, .prose, .page-cta { animation: title-in 1.2s cubic-bezier(.2,.7,.2,1) .2s both; }
.page-lead {
  margin: 20px 0 0;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--ink);
}

.prose { color: var(--ink-muted); font-size: 17px; }
.prose p { margin: 0 0 1.25em; }
.prose h2 {
  margin: 2em 0 0.6em;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--yellow); border-bottom: 1px solid rgba(228, 232, 106, 0.35); }
.prose a:hover { border-bottom-color: var(--yellow); }

.fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 36px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
@media (min-width: 480px) { .fact-grid { grid-template-columns: 1fr 1fr; } }
.fact {
  background: rgba(26, 23, 24, 0.7);
  padding: 18px 20px;
}
.fact dt {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--yellow);
}
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--ink);
}

.page-cta {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px clamp(16px, 4vw, 40px) calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
}
.site-footer a:hover { color: var(--ink-muted); }
.site-footer .social { display: flex; gap: 16px; }

/* Leave room above the footer for the sticky bar on phones */
@media (max-width: 899px) {
  body.has-sticky .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Animations on this site are gentle fades and a slow color drift,
   so they are not gated behind the OS reduce-motion setting. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
