/* ================================
   Resort 88 — A Beach House Album
   ================================ */

:root {
  --navy: #0b2545;
  --deep: #13315c;
  --red: #c8102e;
  --red-soft: #e63946;
  --white: #ffffff;
  --cream: #fdf7eb;
  --sand: #f2e2b8;
  --sand-deep: #e6cf92;
  --ocean: #1b9aaa;
  --ocean-deep: #0b6e7f;
  --gold: #ffd166;
  --ink: #1a1a1a;
  --muted: #5a6170;
  --paper: #fffdf7;
  --shadow: 0 20px 60px rgba(11, 37, 69, 0.15);
  --shadow-soft: 0 8px 24px rgba(11, 37, 69, 0.10);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--muted); }
em { color: var(--red); font-style: italic; }
a  { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ocean-deep);
  margin-bottom: 12px;
}
.eyebrow.red  { color: var(--red); }
.eyebrow.blue { color: var(--navy); }
.eyebrow.white{ color: #fff; opacity: 0.9; }
.eyebrow.light{ color: rgba(255,255,255,0.9); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  letter-spacing: 0.02em;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-soft) 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(200, 16, 46, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(200, 16, 46, 0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.28); }

/* ================ NAV ================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(253,247,235,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(11,37,69,0.08);
  padding: 10px 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.nav.scrolled .brand { color: var(--navy); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.3);
}
.brand-text { font-family: 'Pacifico', cursive; font-size: 1.45rem; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: #fff; font-weight: 500; font-size: 0.95rem;
  position: relative;
}
.nav.scrolled .nav-links a { color: var(--navy); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--red);
  transition: width 0.25s ease;
}
.nav-links a:hover { text-decoration: none; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--red); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  transition: transform 0.2s;
}
.nav-cta:hover { text-decoration: none; transform: translateY(-2px); }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav { padding: 12px 20px; }
}

/* ================ HERO ================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
  padding: 140px 24px 180px;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -3;
  background-image: url('photos/white-party-group.jpg');
  background-size: cover;
  background-position: center 35%;
  filter: saturate(1.05);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.15); }
}
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(11,37,69,0.35) 0%, rgba(11,37,69,0.15) 40%, rgba(11,37,69,0.65) 100%),
    linear-gradient(120deg, rgba(200,16,46,0.2) 0%, rgba(27,154,170,0.15) 100%);
}

/* Fireworks */
.fireworks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fw {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  opacity: 0;
  box-shadow:
     0 -40px 0 -1px #ff5e5e,  0 40px 0 -1px #ff5e5e,
   -40px 0 0 -1px #ffd166, 40px 0 0 -1px #ffd166,
   -28px -28px 0 -1px #fff, 28px 28px 0 -1px #fff,
   -28px 28px 0 -1px #5da9ff, 28px -28px 0 -1px #5da9ff,
     0 -56px 0 -2px #ff5e5e, 0 56px 0 -2px #ff5e5e,
   -56px 0 0 -2px #ffd166, 56px 0 0 -2px #ffd166;
  animation: burst 3s ease-out infinite;
}
.fw1 { top: 16%; left: 10%; animation-delay: 0s; }
.fw2 { top: 26%; right: 12%; animation-delay: 0.8s; }
.fw3 { top: 10%; left: 48%; animation-delay: 1.6s; }
.fw4 { top: 33%; left: 26%; animation-delay: 2.2s; }
.fw5 { top: 20%; right: 34%; animation-delay: 1.2s; }
@keyframes burst {
  0%   { transform: scale(0.2); opacity: 0; }
  15%  { opacity: 1; }
  60%  { transform: scale(1.4); opacity: 0.85; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-content { max-width: 880px; position: relative; z-index: 2; }
.hero-title { margin-top: 8px; text-shadow: 0 4px 30px rgba(11,37,69,0.45); }
.hero-title .line { display: block; }
.hero-title .line:first-child {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-style: normal;
  font-family: 'Inter', sans-serif;
  margin-bottom: 4px;
}
.hero-title .script {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  background: linear-gradient(90deg, #ffd166 0%, #fff 50%, #ffb5b5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.15em;
  letter-spacing: 0;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  max-width: 580px;
  margin: 20px auto 32px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Waves */
.waves {
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 140px;
  z-index: 1;
}
.waves svg { width: 100%; height: 100%; display: block; }
.wave { fill: var(--cream); opacity: 0.9; transform-origin: center; }
.w1 { opacity: 0.5; animation: waveMove 9s ease-in-out infinite; }
.w2 { opacity: 0.75; animation: waveMove 13s ease-in-out infinite reverse; }
.w3 { opacity: 1; animation: waveMove 17s ease-in-out infinite; }
@keyframes waveMove {
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(-60px); }
}

/* ================ SECTIONS ================ */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head.light h2, .section-head.light p { color: #fff; }

.two-col {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 48px; } }

/* ================ POLAROID ================ */
.polaroid {
  background: var(--paper);
  padding: 14px 14px 46px;
  box-shadow: var(--shadow-soft);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  display: inline-block;
  margin: 0;
}
.polaroid::before {
  content: '';
  position: absolute; top: 8px; left: 50%;
  width: 40px; height: 10px;
  background: rgba(255,223,100,0.6);
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  pointer-events: none;
}
.polaroid:hover {
  transform: rotate(0) translateY(-4px) scale(1.02);
  box-shadow: var(--shadow);
  z-index: 2;
}
.poly-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #eee;
}
.poly-cap {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: var(--navy);
  text-align: center;
  padding-top: 12px;
  line-height: 1.2;
  position: absolute;
  bottom: 10px; left: 0; right: 0;
}

.polaroid.big {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.polaroid.big .poly-img { aspect-ratio: 4 / 3; }

.polaroid-stack {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 30px 20px 10px;
}
.polaroid-stack .polaroid {
  display: block;
  width: 100%;
}
.polaroid-stack .polaroid:first-child {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  z-index: 2;
}
.polaroid-stack .polaroid.big {
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* ================ TRADITIONS ================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

.tile-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(11,37,69,0.06);
}
.tile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.tile-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.tile-card:hover .tile-img { transform: scale(1.06); }
.tile-body { padding: 22px 24px 26px; }
.tile-body h3 { margin-bottom: 8px; }
.tile-body p { margin: 0; font-size: 0.95rem; }

/* ================ JULY 4 ================ */
.july4 {
  background: radial-gradient(circle at 10% 20%, #1a3a7a 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, #7a1a2e 0%, transparent 50%),
              linear-gradient(135deg, #0b2545 0%, #13315c 50%, #0b2545 100%);
  color: #fff; overflow: hidden;
}
.stars-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 70%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 85% 20%, #ffd166 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 80%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 75% 45%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 10% 60%, #ffd166 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 50% 10%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 95% 55%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes twinkle { 0%,100% { opacity: 0.4; } 50% { opacity: 0.85; } }
.stripes-bg {
  position: absolute; right: -100px; top: -50px;
  width: 420px; height: 120%;
  background: repeating-linear-gradient(
    -20deg,
    rgba(200,16,46,0.14) 0px,
    rgba(200,16,46,0.14) 28px,
    transparent 28px,
    transparent 56px);
  transform: rotate(10deg);
  pointer-events: none;
}

.july4 .container { position: relative; z-index: 2; }
.huge { font-size: clamp(3rem, 10vw, 7.5rem); letter-spacing: -0.02em; color: #fff; }
.num-250 {
  background: linear-gradient(90deg, #ffd166 0%, #ff6b6b 50%, #5da9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.lede { font-size: 1.15rem; color: rgba(255,255,255,0.85); }

.countdown {
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 640px;
}
.countdown > div {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px 10px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.countdown strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1;
}
.countdown span {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  display: block; margin-top: 8px;
}
.july-note {
  text-align: center;
  margin-top: 30px;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.7);
}

/* ================ GALLERY ================ */
.polaroid-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  padding: 20px 0;
}
.polaroid-wall .polaroid { width: 100%; }
@media (max-width: 860px) {
  .polaroid-wall { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
}
@media (max-width: 540px) {
  .polaroid-wall { grid-template-columns: 1fr; gap: 28px; }
}

.gallery-note { text-align: center; margin-top: 50px; color: var(--muted); font-size: 0.95rem; }

/* ================ SIGN-OFF ================ */
.signoff {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  text-align: center;
  padding: 100px 24px 120px;
}
.signoff-inner {
  max-width: 720px;
  margin: 0 auto;
}
.script-big {
  display: block;
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--navy);
  background: linear-gradient(90deg, var(--navy), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
  margin-bottom: 20px;
}
.signoff-line {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  margin: 24px auto;
  border-radius: 2px;
}
.signoff p {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ================ FOOTER ================ */
.foot {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 40px 0;
}
.foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand strong { color: #fff; display: block; font-size: 1.05rem; }
.foot-brand small { color: rgba(255,255,255,0.55); font-size: 0.8rem; }
.foot-legal { font-size: 0.85rem; margin: 0; }

/* ================ REVEAL ================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
