:root {
  --black: #080808;
  --black-2: #10100f;
  --black-3: #181817;
  --gold: #c9a84c;
  --gold-lt: #e8c97a;
  --gold-dk: #9a7530;
  --white: #f5f0e8;
  --white-dim: #bbb19d;
  --line: rgba(201, 168, 76, 0.2);
  --ff-serif: "Cormorant Garamond", Georgia, serif;
  --ff-sans: "Montserrat", sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--ff-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 clamp(22px, 5vw, 64px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.62), transparent);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav.scrolled,
.nav:has(.nav-links.open) {
  border-bottom-color: var(--line);
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(14px);
}

.nav-logo,
.footer-logo {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-logo span,
.footer-logo span {
  margin-left: 5px;
  color: var(--white);
  font-size: 18px;
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

.nav-links a {
  color: var(--white-dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-links a:hover,
.contact-item:hover {
  color: var(--gold-lt);
}

.nav-cta,
.hero-btn,
.gallery-tab,
.form-submit {
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-cta {
  flex: 0 0 auto;
  padding: 12px 24px;
  color: var(--black);
  background: var(--gold);
  transition: background 0.25s;
}

.nav-cta:hover,
.form-submit:hover {
  background: var(--gold-lt);
}

.nav-burger {
  display: none;
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -2;
  background-image: url("assets/images/Bayshore_Drone-1.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.86), rgba(8, 8, 8, 0.38) 58%, rgba(8, 8, 8, 0.22)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.2), rgba(8, 8, 8, 0.76));
}

.hero-content {
  width: min(1040px, calc(100% - 44px));
  margin: 0 auto;
  padding: 150px 0 170px;
  animation: heroFadeIn 1s var(--ease) both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow,
.section-eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-headline,
.section-title,
.video-card-copy h3,
.contact-title {
  margin: 0;
  font-family: var(--ff-serif);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-headline {
  max-width: 820px;
  font-size: clamp(72px, 11vw, 152px);
}

.hero-headline em,
.contact-title em {
  color: var(--gold-lt);
  font-style: italic;
}

.hero-sub {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--white-dim);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 34px;
  color: var(--black);
  background: var(--gold);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.hero-btn.ghost {
  border: 1px solid rgba(245, 240, 232, 0.44);
  color: var(--white);
  background: rgba(8, 8, 8, 0.18);
}

.hero-btn:hover {
  background: var(--gold-lt);
  color: var(--black);
}

.hero-facts {
  position: absolute;
  right: clamp(22px, 5vw, 64px);
  bottom: 34px;
  left: clamp(22px, 5vw, 64px);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(245, 240, 232, 0.78);
}

.hero-facts span {
  padding: 10px 14px;
  border: 1px solid rgba(245, 240, 232, 0.18);
  background: rgba(8, 8, 8, 0.28);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro,
.gallery,
.contact-inner {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(36px, 7vw, 98px);
  padding: 112px 0;
}

.section-title {
  font-size: clamp(42px, 6vw, 76px);
}

.intro-copy p {
  margin: 0;
  color: var(--white-dim);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

.property-stats {
  display: grid;
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
}

.property-stats div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.property-stats dt {
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.property-stats dd {
  margin: 0;
  color: var(--white);
}

.video-showcase {
  padding: 112px clamp(22px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black-2);
}

.video-section-head,
.video-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.video-section-head {
  margin-bottom: 44px;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.video-side-grid {
  display: grid;
  gap: 18px;
}

.video-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black);
}

.video-card-featured {
  grid-template-rows: minmax(420px, 1fr) auto;
}

.video-frame {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #000;
}

.video-card-featured .video-frame {
  min-height: 520px;
}

.video-card-portrait .video-frame {
  min-height: 430px;
}

.video-player {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.video-card-portrait .video-player {
  object-fit: contain;
  background: #000;
}

.video-overlay-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: var(--white-dim);
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.1), rgba(8, 8, 8, 0.32) 70%);
  cursor: pointer;
}

.video-overlay-play.hidden {
  display: none;
}

.play-btn {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 24px;
  padding-left: 4px;
}

.video-overlay-play span:last-child {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.video-card-copy {
  padding: 22px;
}

.video-card-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.video-card-copy h3 {
  font-size: clamp(30px, 4vw, 44px);
}

.video-side-grid .video-card-copy h3 {
  font-size: 28px;
}

.video-card-copy p {
  margin: 12px 0 0;
  color: var(--white-dim);
  font-size: 14px;
  line-height: 1.7;
}

.gallery {
  padding: 112px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 44px;
}

.gallery-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-tab {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  color: var(--white-dim);
  background: transparent;
}

.gallery-tab.active,
.gallery-tab:hover {
  color: var(--black);
  background: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.gallery-card {
  position: relative;
  grid-column: span 4;
  min-height: 320px;
  overflow: hidden;
  border: 0;
  color: var(--white);
  background: var(--black-3);
  cursor: pointer;
}

.gallery-card:nth-child(10n + 1),
.gallery-card:nth-child(10n + 8) {
  grid-column: span 8;
  min-height: 520px;
}

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

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

.contact {
  padding: 112px 0;
  border-top: 1px solid var(--line);
  background: var(--black-2);
}

.contact-title {
  margin-bottom: 50px;
  font-size: clamp(42px, 6vw, 76px);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 38px;
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white-dim);
  font-size: 14px;
  transition: color 0.25s;
}

.contact-icon {
  color: var(--gold);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  padding: 17px 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.035);
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(187, 177, 157, 0.62);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-dk);
}

.form-submit {
  align-self: flex-start;
  min-height: 52px;
  padding: 16px 42px;
  color: var(--black);
  background: var(--gold);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px clamp(22px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-copy {
  margin: 0;
  color: var(--white-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 4, 0.97);
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 92vw;
  max-height: 90vh;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-info {
  color: var(--white-dim);
  font-family: var(--ff-serif);
  font-size: 20px;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  border: 0;
  color: var(--white-dim);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s;
}

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

.lightbox-close {
  top: 22px;
  right: 30px;
  font-size: 38px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    height: 70px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: block;
  }

  .nav-links.open {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.98);
  }

  .nav-links.open a {
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 780px;
  }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-content {
    padding-bottom: 190px;
  }

  .hero-facts {
    justify-content: flex-start;
  }

  .intro,
  .video-layout {
    grid-template-columns: 1fr;
  }

  .video-card-featured .video-frame {
    min-height: 420px;
  }

  .gallery-card,
  .gallery-card:nth-child(10n + 1),
  .gallery-card:nth-child(10n + 8) {
    grid-column: span 6;
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .nav-logo {
    font-size: 21px;
  }

  .nav-logo span {
    font-size: 16px;
  }

  .hero-content,
  .intro,
  .gallery,
  .contact-inner {
    width: min(100% - 32px, 1180px);
  }

  .hero-headline {
    font-size: clamp(62px, 19vw, 96px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-tabs {
    width: 100%;
  }

  .gallery-tab {
    flex: 1 1 calc(50% - 8px);
  }

  .gallery-card,
  .gallery-card:nth-child(10n + 1),
  .gallery-card:nth-child(10n + 8) {
    grid-column: span 12;
    min-height: 320px;
  }

  .form-row,
  .property-stats div {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 26px;
    transform: none;
  }
}
