:root {
  --teal: #1b4d3e;
  --teal-deep: #12372c;
  --teal-soft: #2a6352;
  --cream: #f8f5ec;
  --cream-warm: #efe9db;
  --gold: #c5a059;
  --gold-soft: #d4b87a;
  --ink: #1a2e28;
  --ink-muted: rgba(26, 46, 40, 0.72);
  --foam: #b7d0c8;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: rgba(18, 55, 44, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(248, 245, 236, 0.08);
}

.header-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  transition: transform 0.5s var(--ease);
}

.header-brand:hover img {
  transform: scale(1.06);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.9;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: opacity 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 0.6rem;
    justify-content: center;
    padding-top: 0.9rem;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 0.85rem 1.1rem;
    flex-wrap: wrap;
  }

  .site-nav a {
    font-size: 0.72rem;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.08);
  animation: drift 28s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(18, 55, 44, 0.55) 0%,
      rgba(18, 55, 44, 0.35) 40%,
      rgba(18, 55, 44, 0.72) 100%
    ),
    radial-gradient(
      ellipse 70% 55% at 50% 42%,
      rgba(27, 77, 62, 0.15) 0%,
      rgba(18, 55, 44, 0.55) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(36rem, calc(100% - 2.5rem));
  padding: 5.5rem 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Live-toggle wrapper divs shouldn't affect hero layout — their children
   should behave as if they were direct flex items of .hero-content. */
.hero-content > [data-when] {
  display: contents;
}

.hero-logo {
  width: min(240px, 52vw);
  height: min(240px, 52vw);
  object-fit: contain;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
  animation: rise 1.1s var(--ease) both;
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  animation: rise 1.1s var(--ease) 0.12s both;
}

.hero-lede {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(248, 245, 236, 0.9);
  animation: rise 1.1s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: center;
  animation: rise 1.1s var(--ease) 0.32s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  background: var(--gold);
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(248, 245, 236, 0.4);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-ghost:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
}

.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(248, 245, 236, 0.45);
  border-radius: 12px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  opacity: 0.85;
  animation: rise 1.1s var(--ease) 0.6s both;
}

.scroll-cue span {
  width: 3px;
  height: 8px;
  background: var(--cream);
  border-radius: 2px;
  animation: drip 1.8s ease-in-out infinite;
}

/* ——— Coast ——— */
.coast {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
  background:
    linear-gradient(165deg, var(--cream) 0%, var(--cream-warm) 55%, #e8efe9 100%);
}

.coast-copy {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.coast-copy h2,
.notify h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  color: var(--teal-deep);
}

.coast-copy p,
.notify p {
  margin: 0;
  color: var(--ink-muted);
}

.coast-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.coast-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.coast-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

.shot {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.shot:hover img {
  transform: scale(1.04);
}

.shot-a {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 22rem;
}

.shot-b {
  min-height: 10.5rem;
}

.shot-c {
  min-height: 10.5rem;
}

.shot-d {
  display: none;
}

/* ——— Listings ——— */
.listings {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 60rem;
  margin: 0 auto;
}

.listings-intro {
  text-align: center;
  margin-bottom: 2.25rem;
}

.listings-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  color: var(--teal-deep);
}

.listing-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(18, 55, 44, 0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(18, 55, 44, 0.18);
}

.listing-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.listing-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.listing-card:hover .listing-card-media img {
  transform: scale(1.05);
}

.listing-card-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: var(--gold);
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.8rem;
}

.listing-card-body {
  padding: 1.5rem 1.75rem 1.85rem;
}

.listing-card-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.65rem;
  color: var(--teal-deep);
}

.listing-card-loc {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.listing-card-meta {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--teal-soft);
  letter-spacing: 0.02em;
}

.listing-card-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.listing-card:hover .listing-card-cta {
  border-color: var(--gold);
}

@media (min-width: 700px) {
  .listing-card {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }

  .listing-card-media {
    aspect-ratio: auto;
  }

  .listing-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ——— Notify ——— */
.notify {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
  background:
    linear-gradient(180deg, rgba(18, 55, 44, 0.78), rgba(18, 55, 44, 0.88)),
    url("assets/calm-water.jpg") center / cover no-repeat;
  color: var(--cream);
  text-align: center;
}

.notify-inner {
  max-width: 32rem;
  margin: 0 auto;
}

/* Contact page: .notify is the first thing on the page, sitting directly
   under the fixed header. Its normal clamp() padding can shrink below the
   header's height on narrower viewports, so guarantee a floor here that
   never does. */
.notify-page {
  padding-top: 8rem;
}

/* Sticky footer: .notify stretches to fill any leftover viewport height
   on short-content/tall-viewport pages, instead of leaving a gap of bare
   page background between it and the footer. */
.contact-main {
  display: flex;
  flex-direction: column;
}

.contact-main .notify-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notify .eyebrow {
  color: var(--gold-soft);
}

.notify h2 {
  color: var(--cream);
}

.notify p {
  color: rgba(248, 245, 236, 0.82);
  margin-bottom: 2rem;
}

.notify .btn-primary {
  margin-top: 0.25rem;
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.75rem 1.5rem 2.25rem;
  background: var(--teal-deep);
  color: rgba(248, 245, 236, 0.75);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.site-footer img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.35rem;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer .fine {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

/* ——— Motion ——— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes drip {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
}

@media (min-width: 800px) {
  .site-header {
    padding: 1.35rem 2.25rem;
  }

  .coast {
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    align-items: center;
    gap: 3.5rem;
    padding-inline: clamp(2rem, 6vw, 5rem);
  }

  .coast-copy {
    margin: 0;
    text-align: left;
  }

  .coast-gallery {
    grid-template-columns: 1.15fr 0.95fr 0.85fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.9rem;
    height: min(34rem, 70vh);
  }

  .shot-a {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 0;
  }

  .shot-b {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
  }

  .shot-c {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
  }

  .shot-d {
    display: block;
    grid-column: 3;
    grid-row: 1 / 3;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-photo,
  .hero-logo,
  .hero-title,
  .hero-lede,
  .hero-actions,
  .scroll-cue,
  .scroll-cue span,
  .shot img {
    animation: none !important;
    transition: none !important;
  }

  .hero-photo {
    transform: none;
  }
}
