/* LBI Luxury Rentals — Coastal quiet luxury */

:root {
  --navy: #0b1f33;
  --navy-soft: #143049;
  --sand: #e8e0d4;
  --sand-deep: #d4c9b8;
  --gold: #c4a35a;
  --gold-hover: #d4b56e;
  --white: #fafaf8;
  --ink: #1a1a1a;
  --ink-muted: #5a5a56;
  --glass: rgba(11, 31, 51, 0.72);
  --glass-light: rgba(250, 250, 248, 0.12);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, calc(100% - 3rem));
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:focus-visible,
.nav a:focus-visible,
.text-link:focus-visible,
.brand:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-soft);
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

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

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 31, 51, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: min(1200px, calc(100% - 2.5rem));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  min-width: 0;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--gold) 0 28%, transparent 30%),
    linear-gradient(160deg, transparent 45%, var(--sand) 45% 55%, transparent 55%);
  opacity: 0.9;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.65);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.nav a {
  color: rgba(250, 250, 248, 0.82);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.header-cta {
  padding: 0.7rem 1.1rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(250, 250, 248, 0.25);
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  padding: calc(var(--header-h) + 2rem) 0 0;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 28s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.45) 0%, rgba(11, 31, 51, 0.25) 40%, rgba(11, 31, 51, 0.78) 100%),
    radial-gradient(ellipse at 50% 20%, transparent 0%, rgba(11, 31, 51, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 3rem));
  margin: 0 auto auto;
  text-align: center;
  padding-top: clamp(3rem, 12vh, 8rem);
  animation: rise-in 1s var(--ease) both;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.75);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.hero-title-line {
  display: block;
  color: rgba(250, 250, 248, 0.92);
}

.hero-title-accent {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.hero-lede {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 300;
  color: rgba(250, 250, 248, 0.85);
}

.search-dock {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 2rem));
  margin: clamp(2.5rem, 8vh, 5rem) auto 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.9fr auto;
  gap: 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(250, 250, 248, 0.12);
  animation: rise-in 1.1s var(--ease) 0.15s both;
}

.search-field {
  padding: 1rem 1.25rem;
  border-right: 1px solid rgba(250, 250, 248, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-field label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
}

.search-field select {
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C4A35A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right center;
  border: none;
  padding: 0.15rem 1.25rem 0.15rem 0;
  color: var(--white);
  cursor: pointer;
}

.search-field select option {
  color: var(--ink);
  background: var(--white);
}

.search-submit {
  align-self: stretch;
  margin: 0;
  border-radius: 0;
  padding-inline: 1.75rem;
}

/* Sections */

.section {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
}

.section-copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head .section-copy {
  margin-top: 0.85rem;
}

.about {
  background:
    linear-gradient(180deg, var(--sand) 0%, #f3eee6 100%);
  text-align: center;
}

.about .section-copy {
  margin-inline: auto;
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Properties */

.properties {
  background: var(--white);
}

.filter-status {
  margin: -1.5rem 0 1.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.property-card {
  background: var(--white);
  border: 1px solid rgba(11, 31, 51, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.3s ease;
  cursor: default;
}

.property-card:hover,
.property-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 31, 51, 0.1);
}

.property-card.is-hidden {
  display: none;
}

.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

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

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

.property-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.35rem 0.65rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.property-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.property-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
}

.property-meta {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.property-blurb {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin-bottom: 1rem;
}

.amenity-list li {
  font-size: 0.75rem;
  color: var(--navy-soft);
  position: relative;
  padding-left: 0.7rem;
}

.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.property-rate {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(11, 31, 51, 0.08);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
}

.property-rate span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Communities */

.communities {
  background: var(--navy);
  color: var(--white);
}

.communities .section-title {
  color: var(--white);
}

.communities .section-copy {
  color: rgba(250, 250, 248, 0.7);
}

.community-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(250, 250, 248, 0.12);
}

.community-strip li {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(250, 250, 248, 0.12);
  border-right: 1px solid rgba(250, 250, 248, 0.12);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.community-strip li:nth-child(4n) {
  border-right: none;
}

.community-strip li:hover {
  background: rgba(196, 163, 90, 0.12);
  color: var(--gold);
}

/* Buyers */

.buyers {
  background: linear-gradient(180deg, #f3eee6 0%, var(--white) 100%);
}

.buyers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.buyers-panel {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border-left: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(11, 31, 51, 0.05);
}

.buyers-panel h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--navy);
}

.buyers-panel p {
  margin: 0;
  color: var(--ink-muted);
}

/* Attractions */

.attractions {
  background: var(--white);
}

.attraction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 2rem;
}

.attraction-item {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(11, 31, 51, 0.1);
}

.attraction-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
}

.attraction-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Contact */

.contact {
  background:
    linear-gradient(135deg, var(--navy) 0%, #16324d 55%, #1a3a55 100%);
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-copy {
  color: rgba(250, 250, 248, 0.72);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-details {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.contact-details li {
  display: grid;
  gap: 0.3rem;
}

.contact-details span {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-details a {
  color: rgba(250, 250, 248, 0.9);
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: var(--gold);
}

.contact-form {
  background: rgba(250, 250, 248, 0.04);
  border: 1px solid rgba(250, 250, 248, 0.12);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(250, 250, 248, 0.18);
  background: rgba(11, 31, 51, 0.35);
  color: var(--white);
  border-radius: 2px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(250, 250, 248, 0.4);
}

.form-note {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--gold);
}

/* Footer */

.site-footer {
  background: #071420;
  color: rgba(250, 250, 248, 0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}

.footer-sub {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.subscribe label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subscribe-row {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
}

.subscribe-row input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(250, 250, 248, 0.15);
  background: rgba(250, 250, 248, 0.04);
  color: var(--white);
  border-radius: 2px;
}

.footer-copy {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 250, 248, 0.08);
  font-size: 0.8rem;
}

/* Reveal on scroll */

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

/* Responsive */

@media (max-width: 980px) {
  .property-grid,
  .attraction-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-strip li:nth-child(4n) {
    border-right: 1px solid rgba(250, 250, 248, 0.12);
  }

  .community-strip li:nth-child(2n) {
    border-right: none;
  }

  .search-dock {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    border-right: 1px solid rgba(250, 250, 248, 0.12);
  }

  .search-field:nth-child(2n) {
    border-right: none;
  }

  .search-field:nth-child(n + 3),
  .search-submit {
    border-top: 1px solid rgba(250, 250, 248, 0.12);
  }

  .search-submit {
    grid-column: 1 / -1;
    padding: 1.1rem;
  }
}

@media (max-width: 820px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    justify-self: end;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(11, 31, 51, 0.97);
    border-bottom: 1px solid rgba(250, 250, 248, 0.08);
  }

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

  .nav a {
    padding: 0.95rem 1.5rem;
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .nav a.is-active,
  .nav a:hover {
    border-left-color: var(--gold);
    border-bottom-color: transparent;
    background: rgba(196, 163, 90, 0.08);
  }

  .buyers-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .property-grid,
  .attraction-grid,
  .community-strip {
    grid-template-columns: 1fr;
  }

  .community-strip li {
    border-right: none;
  }

  .search-dock {
    grid-template-columns: 1fr;
  }

  .search-field {
    border-right: none;
    border-bottom: 1px solid rgba(250, 250, 248, 0.12);
  }

  .search-field:nth-child(2),
  .search-field:nth-child(3) {
    border-top: none;
  }

  .subscribe-row {
    flex-direction: column;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    transform: none;
  }
}
