/* ==========================================================================
   Northpointe / Westpointe Retirement Community — 2026 stylesheet
   Design language: "Gulf Horizon" — warm sand, deep pine-tide, brass gold.
   ========================================================================== */

:root {
  /* Color tokens */
  --sand: #F5EFE3;
  --sand-deep: #EBE0CB;
  --tide: #1E3D3A;
  --tide-light: #2C5450;
  --tide-pale: #E7EFEC;
  --gold: #B8863E;
  --gold-light: #E3C880;
  --sea: #7FA098;
  --ink: #2B2620;
  --ink-soft: #55504A;
  --white: #FFFFFF;

  /* Type tokens */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  /* Layout tokens */
  --max-w: 1180px;
  --radius: 4px;
  --shadow-soft: 0 12px 32px rgba(30, 61, 58, 0.12);
  --shadow-card: 0 4px 18px rgba(43, 38, 32, 0.08);

  --space-1: 0.5rem;
  --space-2: 0.85rem;
  --space-3: 1.35rem;
  --space-4: 2.15rem;
  --space-5: 3.25rem;
  --space-6: 4.75rem;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--tide);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   Signature element — the horizon divider
   A thin gradient line with a rising "sun" mark, echoing the Gulf horizon
   at first light — used to open every major section on the page.
   ========================================================================== */

.horizon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto var(--space-4);
  max-width: 220px;
}

.horizon::before,
.horizon::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}

.horizon::after { background: linear-gradient(90deg, var(--gold-light), transparent); }

.horizon span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 14px;
  flex-shrink: 0;
}

.section--dark .horizon::before,
.section--dark .horizon::after { background: linear-gradient(90deg, transparent, var(--sea)); }
.section--dark .horizon span { background: var(--sea); }

/* ==========================================================================
   Skip link
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tide);
  color: var(--white);
  padding: 0.8em 1.4em;
  z-index: 999;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-2) 0;
  background: rgba(13, 26, 24, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-header.is-scrolled {
  background: var(--tide);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.6em 0;
  box-shadow: var(--shadow-soft);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 2px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { border-color: var(--gold-light); color: var(--gold-light); }

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--tide);
  background: var(--gold-light);
  padding: 0.55em 1.1em;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-call:hover, .nav-call:focus-visible {
  background: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  width: 42px;
  height: 38px;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(15,28,26,0.12) 0%, rgba(14,26,24,0.28) 55%, rgba(10,20,18,0.58) 100%),
              url('https://westpointeretirementcommunity.com/westpointefiles/profile1.jpg') center / cover no-repeat;
  color: var(--white);
}

.hero .container {
  position: relative;
  padding-top: calc(var(--space-6) + 2rem);
  padding-bottom: var(--space-5);
}

.hero-copy {
  display: inline-block;
  background: rgba(13, 26, 24, 0.46);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-3) calc(var(--space-3) - 0.3rem);
  margin-bottom: var(--space-3);
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-2);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  max-width: 15ch;
  margin-bottom: var(--space-2);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 46ch;
  color: rgba(255,255,255,0.95);
  margin-bottom: 0;
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  border: 1px solid rgba(227, 200, 128, 0.55);
  background: rgba(30, 61, 58, 0.35);
  backdrop-filter: blur(6px);
  padding: 0.85em 1.4em;
  border-radius: 999px;
  margin-top: var(--space-3);
}

.guarantee-badge .seal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-light);
}

.guarantee-badge .seal svg { width: 16px; height: 16px; }

.guarantee-badge span.text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(184, 134, 62, 0.35);
}
.btn--gold:hover, .btn--gold:focus-visible {
  background: var(--gold-light);
  color: var(--tide);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue .line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Generic section rhythm
   ========================================================================== */

.section {
  padding: var(--space-6) 0;
}

.section--tight { padding: var(--space-5) 0; }

.section--dark {
  background: var(--tide);
  color: rgba(255,255,255,0.92);
}
.section--dark h2, .section--dark h3 { color: var(--white); }

.section--pale { background: var(--tide-pale); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-5);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-top: var(--space-2);
}

.section--dark .section-head p { color: rgba(255,255,255,0.78); }

@media (min-width: 761px) {
  .section-head--snug h2 {
    font-size: clamp(1.7rem, 2.3vw, 2.15rem);
  }
}

/* ==========================================================================
   Welcome / intro
   ========================================================================== */

.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.welcome-copy h2 {
  margin-bottom: var(--space-3);
}

.welcome-copy p {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.welcome-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.welcome-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.welcome-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(0deg, rgba(15,28,26,0.75), transparent);
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

.welcome-figure { margin: 0; }

/* ==========================================================================
   Feature cards
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tide-pale);
  color: var(--tide);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.feature-card .icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ==========================================================================
   Banner (profile2 image + CTA)
   ========================================================================== */

.banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.banner-figure { margin: 0; position: relative; min-height: 340px; }
.banner-figure img { width: 100%; height: 100%; object-fit: cover; }
.banner-figure figcaption {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  color: var(--white);
  font-size: 0.78rem;
  font-style: italic;
  background: rgba(15,28,26,0.55);
  padding: 0.3em 0.7em;
  border-radius: 999px;
}

.banner-copy {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
}

/* ==========================================================================
   Contact cards
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--gold);
}

.contact-card h3 {
  color: var(--tide);
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
}

.contact-card address {
  font-style: normal;
  color: var(--ink-soft);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.contact-card .phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
  color: var(--tide);
  font-size: 1.05rem;
  padding-top: var(--space-1);
  border-top: 1px solid var(--sand-deep);
  margin-top: var(--space-1);
}

.contact-card .phone-link:hover,
.contact-card .phone-link:focus-visible { color: var(--gold); }

.contact-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-4);
  text-align: center;
}

.contact-lead .btn--gold { color: var(--white); }

/* ==========================================================================
   Directions / map
   ========================================================================== */

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: var(--space-4) 0 var(--space-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: var(--space-2);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
}

.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--gold-light); }

.footer-meta {
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.2em;
  justify-content: space-between;
}

.footer-meta a { color: var(--gold-light); }

/* Back to top */

#myBtn {
  display: none;
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  z-index: 99;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--tide);
  color: var(--gold-light);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.25s ease, transform 0.25s ease;
}

#myBtn:hover, #myBtn:focus-visible {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome-figure { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .banner { grid-template-columns: 1fr; }
  .banner-figure { min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { font-size: 16.5px; }

  .site-header .container { position: relative; }

  .nav-panel {
    display: none;
  }
  .nav-toggle { display: block; }

  .site-header.nav-open .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tide);
    padding: var(--space-2) var(--space-3) var(--space-3);
    gap: var(--space-1);
    box-shadow: var(--shadow-soft);
  }

  .site-header.nav-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    width: 100%;
  }

  .site-header.nav-open .nav-links a {
    display: block;
    text-align: center;
    padding: 0.75em 1em;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border-bottom: none;
  }

  .site-header.nav-open .nav-links a:hover,
  .site-header.nav-open .nav-links a:focus-visible {
    background: var(--gold-light);
    color: var(--tide);
  }

  .site-header.nav-open .nav-call {
    display: inline-flex;
    justify-content: center;
    margin-top: var(--space-1);
  }

  .hero { min-height: 92vh; align-items: flex-end; }
  .hero .container { padding-top: calc(var(--space-6) + 3.25rem); padding-bottom: var(--space-4); }
  .hero-eyebrow { margin-bottom: 0.6em; }

  .features-grid { grid-template-columns: 1fr; }

  .section { padding: var(--space-5) 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { flex-direction: column; gap: 0.3em; }

  .page-hero { min-height: 46vh; }
  .page-hero .container { padding-top: calc(var(--space-6) + 3.25rem); padding-bottom: var(--space-4); }
  .check-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Active nav link (current page)
   ========================================================================== */

.nav-links a[aria-current="page"] {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ==========================================================================
   Interior page hero (About, Amenities, Gallery, Contact)
   Shorter version of the homepage hero, same legibility panel treatment.
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero .container {
  position: relative;
  padding-top: calc(var(--space-6) + 2rem);
  padding-bottom: var(--space-5);
}

.page-hero-copy {
  display: inline-block;
  background: rgba(13, 26, 24, 0.46);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-3) calc(var(--space-3) - 0.3rem);
}

.page-hero .hero-eyebrow { margin-bottom: var(--space-1); }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 20ch;
  margin-bottom: 0;
}

/* ==========================================================================
   Prose article content (About / policy-style pages)
   ========================================================================== */

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: var(--space-3);
}

.prose h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  margin: var(--space-5) 0 var(--space-2);
}

.prose h3:first-child { margin-top: 0; }

.prose > .horizon:not(:first-child) {
  margin-top: var(--space-6);
}

.prose p {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.prose p + h2,
.prose .check-grid + p {
  margin-top: var(--space-4);
}

.prose strong { color: var(--ink); }

.prose u { text-decoration-color: var(--gold); text-underline-offset: 3px; }

.prose a:not(.btn) {
  color: var(--tide);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s ease;
}

.prose a:not(.btn):hover,
.prose a:not(.btn):focus-visible { color: var(--gold); }

.about-figure {
  margin: var(--space-4) 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-figure img { width: 100%; }

.about-figure figcaption {
  padding: 0.7em var(--space-2);
  background: var(--tide);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-style: italic;
}

.lede {
  font-size: 1.12rem !important;
  color: var(--ink) !important;
}

.subhead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--tide);
  margin: var(--space-4) 0 var(--space-2);
  font-weight: 600;
}

/* ==========================================================================
   Checklist grid (amenities / living-option items)
   ========================================================================== */

.check-grid {
  list-style: none;
  margin: var(--space-2) 0 var(--space-4);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em var(--space-3);
}

.check-grid--single { grid-template-columns: 1fr; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.check-item .tick {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  border-radius: 50%;
  background: var(--tide-pale);
  color: var(--tide);
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-item .tick svg { width: 11px; height: 11px; }

/* ==========================================================================
   Callout box (highlighted closing statement)
   ========================================================================== */

.callout {
  background: var(--tide);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
  margin: var(--space-5) 0 var(--space-3);
}

.callout p {
  color: var(--white) !important;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  max-width: 46ch;
  margin: 0 auto;
}

.callout-cta {
  margin-top: var(--space-3);
  text-align: center;
}

.callout-cta a {
  color: var(--gold-light) !important;
  border-bottom-color: var(--gold-light) !important;
  font-weight: 600 !important;
}

.callout-cta a:hover,
.callout-cta a:focus-visible {
  color: var(--white) !important;
  border-bottom-color: var(--white) !important;
}

/* ==========================================================================
   Resource links (PDF / external)
   ========================================================================== */

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: 999px;
  padding: 0.65em 1.2em;
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tide) !important;
  border-bottom: 1px solid var(--sand-deep) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.resource-link:hover, .resource-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold) !important;
}

.resource-link img { height: 18px; width: auto; display: block; }

@media (max-width: 600px) {
  .check-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Promise pills (headline commitments, e.g. Amenities intro)
   ========================================================================== */

.promise-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-4);
}

.promise-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--tide-pale);
  color: var(--tide);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65em 1.2em;
  border-radius: 999px;
}

.promise-pill .tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tide);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promise-pill .tick svg { width: 11px; height: 11px; }

/* ==========================================================================
   Floor-plan pricing cards
   ========================================================================== */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-3) 0 var(--space-4);
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.plan-card h3 {
  font-size: 1.02rem;
  color: var(--tide);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.plan-card .price {
  display: inline-block;
  background: var(--tide-pale);
  color: var(--tide);
  font-weight: 700;
  padding: 0.45em 1em;
  border-radius: 999px;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .plan-grid { grid-template-columns: 1fr; }
}

/* Smaller inline figure, e.g. a floor-plan diagram that doesn't need full width */
.about-figure--half {
  max-width: 420px;
}

/* ==========================================================================
   Gallery grid + lightbox
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-2);
  margin: var(--space-2) 0;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  background: var(--sand-deep);
}

.gallery-item:first-child {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,28,26,0.55) 0%, rgba(15,28,26,0) 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item .expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--tide);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .expand,
.gallery-item:focus-visible .expand {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item .expand svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item:first-child { grid-column: span 1; grid-row: span 1; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 18, 0.92);
  padding: var(--space-3);
}

.lightbox.is-open { display: flex; }

.lightbox-figure {
  max-width: 90vw;
  max-height: 82vh;
  margin: 0;
  text-align: center;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 74vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.lightbox-figure figcaption {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: var(--space-2);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover, .lightbox-close:focus-visible,
.lightbox-prev:hover, .lightbox-prev:focus-visible,
.lightbox-next:hover, .lightbox-next:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox-close { top: var(--space-3); right: var(--space-3); }
.lightbox-prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-3); top: 50%; transform: translateY(-50%); }

.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-prev { left: var(--space-2); }
  .lightbox-next { right: var(--space-2); }
  .lightbox-close { top: var(--space-2); right: var(--space-2); }
}

/* ==========================================================================
   404 page
   ========================================================================== */

.error-code {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0.15em;
}

.quicklink-card {
  display: block;
  text-decoration: none;
}

/* ==========================================================================
   Stand-alone zoomable figure (e.g. the amenities calendar image)
   ========================================================================== */

.zoom-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.zoom-trigger img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.zoom-trigger:hover img,
.zoom-trigger:focus-visible img {
  transform: scale(1.02);
}

.zoom-trigger .expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--tide);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.zoom-trigger:hover .expand,
.zoom-trigger:focus-visible .expand {
  opacity: 1;
  transform: translateY(0);
}

.zoom-trigger .expand svg { width: 15px; height: 15px; }