/* =========================================================
   Ocean Blue Spa Suites
   ========================================================= */

:root {
  --deep-tide: #0E3A4A;
  --ocean: #1F6F8B;
  --ocean-dark: #185A72;
  --sea-glass: #A9D6CF;
  --sea-glass-soft: #DCEFEC;
  --pearl: #F2F6F5;
  --white: #FFFFFF;
  --ink: #14262D;
  --muted: #4A6169;
  --brass: #B9925A;
  --brass-light: #E3CFA8;

  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 6px;
  --radius-m: 14px;
  --arch: 999px 999px var(--radius-s) var(--radius-s);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--pearl);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--ocean); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--deep-tide);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; max-width: 62ch; }

.lead { font-size: 1.2rem; color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--deep-tide); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--ocean);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--deep-tide);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 1.7em;
  border: 1.5px solid var(--bg);
  border-radius: 999px;
  background: var(--bg);
  color: var(--white);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --bg: var(--ocean); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--deep-tide); }
.btn-ghost:hover { background: var(--deep-tide); color: var(--white); --bg: var(--deep-tide); }
.btn-small { padding: .7em 1.25em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 246, 245, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-color: rgba(14, 58, 74, .08);
  box-shadow: 0 8px 30px -18px rgba(14, 58, 74, .35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height .3s var(--ease);
}
.is-scrolled .header-inner { height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--deep-tide);
}
.brand-logo {
  display: block;
  height: 54px;
  width: auto;
  transition: height .3s var(--ease);
}
.is-scrolled .brand-logo { height: 44px; }
.site-footer .brand-logo { height: 64px; }
@media (max-width: 420px) { .brand-logo { height: 46px; } }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-text span {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ocean);
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  position: relative;
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--ocean);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav ul a:hover::after,
.site-nav ul a.is-current::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar {
  position: absolute; left: 11px; right: 11px;
  height: 2px; background: var(--deep-tide); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-bar:nth-of-type(2) { top: 17px; }
.nav-toggle-bar:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(110px, 12vw, 160px);
  background:
    radial-gradient(1200px 600px at 85% 10%, var(--sea-glass-soft), transparent 60%),
    var(--pearl);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: var(--white);
  border: 1px solid rgba(31, 111, 139, .18);
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--deep-tide);
  margin-bottom: 28px;
  max-width: none;
}
.pulse {
  position: relative;
  width: 10px; height: 10px; border-radius: 50%;
  background: #2FA58A;
  flex: none;
}
.pulse::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #2FA58A;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: .6; }
  to   { transform: scale(3); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  max-width: 18ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The door */
.hero-door { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.door-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--arch);
  padding: 12px;
  background: var(--white);
  box-shadow: 0 40px 80px -40px rgba(14, 58, 74, .55);
}
.door-frame::before { /* soft halo behind the arch */
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: var(--arch);
  border: 1px solid rgba(31, 111, 139, .22);
  z-index: -1;
}
.door-slides {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--sea-glass-soft);
}
.door-slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s var(--ease), transform 7s linear;
}
.door-slides img.is-active { opacity: 1; transform: scale(1); }

.nameplate {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 12px 22px;
  border-radius: var(--radius-s);
  background: linear-gradient(135deg, var(--brass-light), var(--brass) 55%, #9C7743);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
  color: #3B2A12;
  font-family: var(--font-display);
  font-size: 1rem;
  white-space: nowrap;
}
.nameplate span {
  display: block;
  padding: 2px 10px;
  border: 1px solid rgba(59, 42, 18, .35);
  border-radius: 3px;
}

.door-dots {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 26px;
}
.door-dots button {
  width: 28px; height: 4px;
  padding: 0; border: 0; border-radius: 4px;
  background: rgba(14, 58, 74, .2);
  cursor: pointer;
  position: relative; overflow: hidden;
}
.door-dots button::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ocean);
  transform: scaleX(0); transform-origin: left;
}
.door-dots button[aria-selected="true"]::after { animation: fill 6s linear forwards; }
.door-dots.is-paused button[aria-selected="true"]::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
/* Enlarge tap area */
.door-dots button::before { content: ""; position: absolute; inset: -12px -4px; }

/* Waves */
.wave {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: clamp(60px, 9vw, 120px);
}
.wave-back { fill: var(--sea-glass); opacity: .55; animation: drift 12s ease-in-out infinite alternate; }
.wave-front { fill: var(--deep-tide); animation: drift 9s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translateX(-2%); }
  to   { transform: translateX(2%); }
}
.wave path { transform-box: fill-box; }
.wave { overflow: visible; }

/* Hero load sequence */
.load-in {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 150ms + 100ms);
}
.hero-door.load-in { transform: translateY(40px) scale(.97); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Be your own boss ---------- */
.boss {
  background: var(--deep-tide);
  color: var(--pearl);
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
  text-align: center;
}
.boss h2 {
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  margin-bottom: .3em;
}
.boss p { margin: 0 auto; font-size: 1.15rem; color: var(--sea-glass); }
.boss a {
  color: var(--white);
  text-decoration-color: var(--sea-glass);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.boss a:hover { color: var(--sea-glass); }

/* ---------- Amenities ---------- */
.amenities { padding: var(--section) 0; }

.amenities-intro {
  margin-bottom: clamp(64px, 8vw, 104px);
}
.intro-media img {
  width: 100%;
  aspect-ratio: 1425 / 386;
  min-height: 200px;
  object-fit: cover;
  object-position: 65% 50%;
  border-radius: var(--radius-m);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.intro-copy {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  column-gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.intro-copy h2 { grid-row: span 2; }
.intro-copy .callout { grid-column: 2; justify-self: start; }
.callout {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 20px;
  background: var(--sea-glass-soft);
  border-left: 3px solid var(--ocean);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--deep-tide);
}
.callout strong { font-weight: 600; }

.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(64px, 8vw, 104px);
}
.perk-img {
  border-radius: var(--arch);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 4 / 4.4;
  background: var(--sea-glass-soft);
}
.perk-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.perk:hover .perk-img img { transform: scale(1.05); }
.perk p { color: var(--muted); }

.included {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: var(--deep-tide);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.included-media img {
  width: 100%; height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.included-copy { padding: clamp(32px, 5vw, 64px); }
.included-copy h3 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 28px; }

.chips {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border: 1px solid rgba(169, 214, 207, .35);
  border-radius: 999px;
  color: var(--pearl);
  font-size: .97rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .25s;
  transition-delay: calc(var(--i, 0) * 55ms);
}
.chips li::before {
  content: "";
  width: 16px; height: 16px; flex: none;
  background: var(--sea-glass);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.included.is-visible .chips li { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about {
  padding: var(--section) 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--arch);
}
.about-copy .lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: var(--ocean);
}
.about-copy p:not(.lead) { color: var(--muted); }
.about-copy .btn { margin-top: 12px; }

/* ---------- Contact ---------- */
.contact { padding: var(--section) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-copy p:not(.lead) { color: var(--muted); }
.contact-media { margin-top: 32px; max-width: 340px; }
.contact-media img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  border-radius: var(--arch);
}

.contact-form {
  background: var(--white);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-m);
  box-shadow: 0 30px 70px -45px rgba(14, 58, 74, .5);
  border: 1px solid rgba(14, 58, 74, .06);
}
.field { margin-bottom: 18px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--deep-tide);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--pearl);
  border: 1.5px solid transparent;
  border-radius: var(--radius-s);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder { color: #8BA0A6; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--ocean);
  box-shadow: 0 0 0 4px rgba(31, 111, 139, .14);
}
.field.has-error input { border-color: #B4423A; background: #FBF1F0; }
.field-error { color: #B4423A; font-size: .88rem; margin: 6px 0 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 16px 0 0; font-weight: 500; min-height: 1.2em; }
.form-status.is-error { color: #B4423A; }

.form-success {
  text-align: center;
  padding: 48px 16px;
  animation: rise .7s var(--ease) both;
}
.form-success svg { width: 64px; height: 64px; margin: 0 auto 18px; display: block; }
.form-success svg circle { stroke: var(--sea-glass); }
.form-success svg path {
  stroke: var(--ocean);
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw .6s .3s var(--ease) forwards;
}
.form-success h3 { margin-bottom: .3em; }
.form-success p { margin: 0 auto; color: var(--muted); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--deep-tide);
  color: var(--sea-glass);
  padding: clamp(80px, 9vw, 110px) 0 40px;
  margin-top: 0;
}
.wave-top {
  top: -1px; bottom: auto;
  height: clamp(40px, 5vw, 70px);
}
.wave-top path { fill: var(--pearl); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.brand-light { color: var(--sea-glass); }
.brand-light .brand-text { color: var(--white); }
.brand-light .brand-text span { color: var(--sea-glass); }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.site-footer nav a { color: var(--pearl); text-decoration: none; }
.site-footer nav a:hover { color: var(--sea-glass); text-decoration: underline; text-underline-offset: 4px; }
.footer-meta { text-align: right; font-size: .92rem; }
.footer-meta p { margin: 0 0 4px; max-width: none; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.perk-grid .perk:nth-child(2) { transition-delay: .12s; }
.perk-grid .perk:nth-child(3) { transition-delay: .24s; }
.no-js .reveal, .no-js .chips li { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 22ch; }
  .hero-door { max-width: 360px; }
  .perk-grid { grid-template-columns: 1fr 1fr; }
  .perk:last-child { grid-column: 1 / -1; max-width: 520px; justify-self: center; }
  .included { grid-template-columns: 1fr; }
  .included-media img { min-height: 0; aspect-ratio: 16 / 9; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    background: var(--pearl);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 4px; }
  .site-nav ul a { font-family: var(--font-display); font-size: 2rem; color: var(--deep-tide); }
  .site-nav .btn-small { font-size: 1rem; padding: .9em 1.6em; }
  body.nav-open { overflow: hidden; }
  .brand { z-index: 2; position: relative; }
}

@media (max-width: 760px) {
  .intro-copy { grid-template-columns: 1fr; }
  .intro-copy h2 { grid-row: auto; }
  .intro-copy .callout { grid-column: 1; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 380px; }
  .contact-media { display: none; }
  .perk-grid { grid-template-columns: 1fr; }
  .perk:last-child { max-width: none; }
  .perk-img { aspect-ratio: 4 / 3.6; }
  .field-row { flex-direction: column; gap: 0; }
}

@media (max-width: 420px) {
  .availability { font-size: .85rem; }
  .hero-actions .btn { flex: 1; }
  .nameplate { font-size: .9rem; padding: 10px 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .load-in, .reveal, .chips li { opacity: 1 !important; transform: none !important; }
  .door-slides img { transform: none !important; }
}
