:root {
  --sand: #F4EDE1;
  --foam: #F7FBFC;
  --ink: #14222A;
  --muted: rgba(20, 34, 42, 0.68);
  --sea: #1A6B7C;
  --lagoon: #2F9AA8;
  --gold: #E8B84A;
  --glass: rgba(247, 251, 252, 0.22);
  --line: rgba(20, 34, 42, 0.12);
  --max: 68rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.hero .site-nav {
  position: absolute;
  left: 0;
  right: 0;
  color: var(--foam);
}
.site-nav.is-scrolled {
  background: rgba(244, 237, 225, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  color: var(--ink);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-mark { width: 1.6rem; height: 1.6rem; }
.nav-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(20, 34, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta-secondary {
  background: transparent;
  color: inherit;
  border-color: rgba(247, 251, 252, 0.45);
}
.site-nav.is-scrolled .cta-secondary,
.band .cta-secondary,
.site-footer .cta-secondary {
  border-color: rgba(20, 34, 42, 0.22);
}
.cta-secondary:hover { border-color: var(--gold); color: var(--sea); }
.cta-sm { padding: 0.5rem 1.05rem; font-size: 0.9rem; }

.hero {
  position: relative;
  min-height: 100vh;
  color: var(--foam);
  isolation: isolate;
}
.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}
.hero-photo,
.hero-illustrated,
.hero-weather-canvas,
.hero-scrim {
  position: absolute;
  inset: 0;
}
.hero-photo {
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: kenBurns 28s ease-in-out infinite alternate;
}
.hero-illustrated {
  background:
    linear-gradient(180deg, #7ec8e3 0%, #3a9bc8 42%, #1a6b7c 70%, #e8d5b5 100%);
  opacity: 0;
}
.hero-stage[data-hero-style="illustrated"] .hero-photo { opacity: 0; }
.hero-stage[data-hero-style="illustrated"] .hero-illustrated { opacity: 1; }
.hero-stage[data-hero-style="photo"] .hero-photo { opacity: 1; }
.hero-stage[data-hero-style="photo"] .hero-illustrated { opacity: 0; }
.hero-photo, .hero-illustrated { transition: opacity 0.45s ease; }

.hero-illustrated svg { width: 100%; height: 100%; display: block; }
.hero-stage[data-mood="cloudy"] .hero-illustrated {
  background: linear-gradient(180deg, #8aa0b0 0%, #6e8194 45%, #4a5f73 70%, #c9b89a 100%);
}
.hero-stage[data-mood="partlyCloudy"] .hero-illustrated {
  background: linear-gradient(180deg, #7aa7c2 0%, #5a8aab 45%, #3a6b8a 70%, #e2d2b4 100%);
}
.hero-stage[data-mood="rainy"] .hero-illustrated {
  background: linear-gradient(180deg, #4a6f88 0%, #2f4a66 50%, #243950 75%, #b7a88c 100%);
}
.hero-stage[data-mood="storm"] .hero-illustrated {
  background: linear-gradient(180deg, #2a3340 0%, #1b222c 50%, #4a5565 80%, #8c7f6a 100%);
}
.hero-stage[data-mood="goldenHour"] .hero-illustrated {
  background: linear-gradient(180deg, #f4b183 0%, #e07a5f 40%, #1a6b7c 72%, #f0d5b0 100%);
}
.hero-stage[data-mood="night"] .hero-illustrated {
  background: linear-gradient(180deg, #0c1a22 0%, #152833 55%, #1a3344 78%, #243550 100%);
}

.hero-scrim {
  background: linear-gradient(180deg, rgba(12, 26, 34, 0.25) 0%, rgba(12, 26, 34, 0.15) 40%, rgba(12, 26, 34, 0.72) 100%);
  pointer-events: none;
}
.hero-copy {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7.5rem 1.5rem 3.5rem;
  max-width: 40rem;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero p.lede {
  color: rgba(247, 251, 252, 0.86);
  margin: 1.15rem 0 0;
  font-size: 1.08rem;
  max-width: 30rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.hero-weather {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(247, 251, 252, 0.28);
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  font-weight: 600;
}
.weather-chip strong { font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; }
.hero-style-toggle {
  display: inline-flex;
  margin-top: 1.1rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 251, 252, 0.28);
  background: rgba(12, 26, 34, 0.28);
}
.hero-style-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.hero-style-toggle button.is-active {
  background: var(--gold);
  color: var(--ink);
}
.featured-line {
  margin-top: 0.85rem;
  color: rgba(247, 251, 252, 0.78);
  font-size: 0.92rem;
  min-height: 1.4em;
}

main { padding-bottom: 2rem; }
.band { width: 100%; padding: 3.75rem 1.5rem; }
.band-inner { max-width: var(--max); margin: 0 auto; }
.band h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.answer {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
}
.band-alt {
  background: var(--foam);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(26, 107, 124, 0.12);
  box-shadow: 0 10px 28px rgba(20, 34, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(20, 34, 42, 0.08);
}
.rank-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  color: var(--sea);
  min-width: 1.4rem;
}
.rank-beach { flex: 1; min-width: 0; }
.rank-beach strong { display: block; font-weight: 600; }
.rank-beach small { color: var(--muted); font-size: 0.8rem; }
.score-ring {
  position: relative;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-track { fill: none; stroke: rgba(26, 107, 124, 0.14); stroke-width: 3; }
.score-ring-value { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.score-ring[data-label="Excellent"] .score-ring-value { stroke: var(--gold); }
.score-ring[data-label="Good"] .score-ring-value { stroke: var(--lagoon); }
.score-ring[data-label="Fair"] .score-ring-value { stroke: #b08968; }
.score-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.fineprint { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }
.section-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--sea);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 107, 124, 0.35);
}
.section-link:hover { color: var(--ink); }

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 720px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}
.feature {
  padding: 1.35rem 1.3rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(47, 154, 168, 0.18);
}
.feature .icon {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.7rem;
  color: var(--sea);
}
.feature h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.feature p { color: var(--muted); font-size: 0.98rem; }

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 640px) { .photo-mosaic { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .photo-mosaic { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.photo-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: #efe6d4;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-cap {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #fff;
}
.photo-chip {
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(20, 34, 42, 0.55);
  font-size: 0.7rem;
}
.photo-empty {
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px dashed rgba(26, 107, 124, 0.35);
  background: rgba(247, 251, 252, 0.7);
  color: var(--muted);
  max-width: 36rem;
}

.score-steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 720px) {
  .score-steps { grid-template-columns: repeat(3, 1fr); position: relative; }
}
.score-step {
  position: relative;
  padding-top: 0.4rem;
}
.score-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: var(--sea);
  color: var(--foam);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
}
.score-step h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  color: var(--sea);
  margin-bottom: 0.35rem;
}
.score-step p { color: var(--muted); font-size: 0.95rem; }

.faq-list { display: flex; flex-direction: column; gap: 0.65rem; max-width: 42rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  color: var(--ink);
}
.faq-panel { padding: 0 1.15rem 1.05rem; color: var(--muted); }
.faq-panel[hidden] { display: none; }

.cta-band {
  position: relative;
  text-align: center;
  padding: 4.5rem 1.5rem;
  color: var(--foam);
  overflow: hidden;
  background: var(--sea);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 26, 34, 0.25), rgba(12, 26, 34, 0.45)),
    url("/media/weather/sunny.jpg") center / cover no-repeat;
  z-index: 0;
}
.cta-band[data-mood="cloudy"]::before { background-image: url("/media/weather/cloudy.jpg"); }
.cta-band[data-mood="partlyCloudy"]::before { background-image: url("/media/weather/partly-cloudy.jpg"); }
.cta-band[data-mood="rainy"]::before { background-image: url("/media/weather/rainy.jpg"); }
.cta-band[data-mood="storm"]::before { background-image: url("/media/weather/storm.jpg"); }
.cta-band[data-mood="goldenHour"]::before { background-image: url("/media/weather/golden-hour.jpg"); }
.cta-band[data-mood="night"]::before { background-image: url("/media/weather/night.jpg"); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 0.65rem; }
.cta-band .answer {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  text-align: center;
  color: rgba(247, 251, 252, 0.86);
}
.cta-band .cta-secondary { color: var(--foam); }

.contact-wrap { max-width: 28rem; }
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
input, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--foam);
  color: var(--ink);
  font: inherit;
  margin-bottom: 1rem;
}
input::placeholder, textarea::placeholder { color: rgba(20, 34, 42, 0.4); }
button[type="submit"] {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.status { margin-top: 0.75rem; font-size: 0.9rem; text-align: center; color: var(--muted); }

.site-footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--sand);
  border-top: 1px solid var(--line);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.footer-links a { color: var(--sea); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s ease forwards;
}
.reveal-delay { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes kenBurns {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-delay, .reveal-delay-2, .photo-tile, .hero-photo {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .cta:hover, .rank-row:hover { transform: none; }
}
