:root {
  --bg: #f4efe6;
  --bg-alt: #fbf8f2;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #1d2a3a;
  --muted: #5c6776;
  --brand: #0e406f;
  --brand-strong: #0a2f51;
  --accent: #cf9f62;
  --line: rgba(14, 64, 111, 0.16);
  --shadow: 0 20px 60px rgba(17, 35, 58, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1140px, calc(100% - 2.5rem));
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #ffffff 0%, var(--bg) 34%, #f1e6d7 100%);
  line-height: 1.65;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  background: #fff;
  color: var(--brand-strong);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  z-index: 1000;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 242, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 4.25rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.65rem, 1.6vw, 1.35rem);
  padding-block: 0.6rem;
}

.brand {
  color: var(--brand-strong);
  text-decoration: none;
  font-family: "IBM Plex Serif", "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--brand-strong);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 16px;
  flex-shrink: 0;
}

.nav-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 0;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.site-header.is-nav-open .nav-toggle-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.is-nav-open .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.48rem, 1.08vw, 1rem);
  padding: 0.2rem 0;
  padding-inline-start: clamp(0.4rem, 1.25vw, 1.3rem);
}

.site-nav a {
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.72rem, 1.02vw, 0.86rem);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--brand);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(14, 64, 111, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 3px rgba(17, 35, 58, 0.06);
}

@media (max-width: 1040px) {
  .nav-wrap {
    flex-wrap: nowrap;
    align-items: center;
    min-height: 0;
    padding-block: 0.5rem;
    gap: 0.75rem;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    box-sizing: border-box;
    flex: none;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    padding-inline-start: 0;
    border-top: 1px solid transparent;
    background: rgba(251, 248, 242, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(17, 35, 58, 0.08);
    transition: max-height 0.32s ease, padding 0.32s ease, border-color 0.2s ease, box-shadow 0.25s ease;
    z-index: 10;
    min-height: 0;
  }

  .site-header.is-nav-open .site-nav {
    max-height: min(28rem, calc(100vh - 4.5rem));
    padding: 0.45rem max(1.35rem, env(safe-area-inset-left, 0px)) 0.4rem max(1.35rem, env(safe-area-inset-right, 0px));
    border-top-color: var(--line);
  }

  .site-nav a {
    white-space: normal;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(14, 64, 111, 0.1);
    font-size: 0.95rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 11px;
  }
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.56rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover:not(.is-active) {
  color: var(--text);
  background: rgba(14, 64, 111, 0.07);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-btn.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 47, 81, 0.22);
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 26, 43, 0.75) 12%, rgba(10, 26, 43, 0.2) 56%, rgba(16, 39, 63, 0.68) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 5.5rem 0 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin: 0 0 0.7rem;
  opacity: 0.9;
}

h1,
h2,
h3 {
  font-family: "IBM Plex Serif", "Times New Roman", serif;
  line-height: 1.1;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.2rem, 5.1vw, 4.6rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
}

.hero-subtitle {
  max-width: 62ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0 0 1.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.45rem, 2vw, 1rem);
  margin-bottom: 1.8rem;
  max-width: 760px;
  align-items: stretch;
}

.hero-metrics article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  backdrop-filter: blur(5px);
  padding: clamp(0.5rem, 1.6vw, 0.9rem) clamp(0.4rem, 1.4vw, 1rem);
  text-align: center;
  min-height: 0;
}

.metric-value {
  display: block;
  font-size: clamp(0.95rem, 2.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.metric-label {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.65rem, 1.85vw, 0.92rem);
  line-height: 1.25;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    min-height: clamp(26rem, 62svh, 44rem);
  }

  .hero-image {
    object-position: center 88%;
  }

  .hero-content {
    padding: clamp(1.25rem, 3.5vw, 1.75rem) 0 clamp(2rem, 5vw, 2.75rem);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.86rem 1.3rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 220ms ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #dfbd8f);
  color: #17253a;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(209, 160, 98, 0.4);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
}

.section {
  padding: clamp(3.3rem, 6vw, 6.2rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.brochure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}

.brochure-section h2 {
  margin: 0 0 0.5rem;
  font-family: "IBM Plex Serif", "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--brand-strong);
}

.brochure-intro {
  margin-bottom: 0;
}

.brochure-download {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .brochure-layout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .brochure-download {
    width: 100%;
    justify-content: center;
  }
}

.section-intro {
  max-width: 72ch;
  color: var(--muted);
  margin-top: 0;
}

.benefit-grid,
.amenities-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.1rem, 3vw, 2.7rem);
  align-items: center;
}

.split-reverse {
  grid-template-columns: 1fr 1.1fr;
}

.image-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

#location .split {
  align-items: stretch;
}

#location .location-map {
  align-self: start;
  height: fit-content;
}

.location-map {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 0;
}

.location-map iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: clamp(16.5rem, 48vw, 22rem);
  height: clamp(16.5rem, 48vw, 22rem);
}

.feature-list {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
}

.feature-list li {
  margin-bottom: 0.45rem;
}

.unit-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1.2rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.unit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.unit-card h3 {
  margin-bottom: 0.4rem;
}

.unit-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.unit-price {
  margin: 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-strong);
}

.gallery-carousel {
  margin-top: 2rem;
  width: 100%;
}

.gallery-carousel-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(14, 47, 79, 0.18), 0 0 0 1px rgba(14, 64, 111, 0.08);
  background: #0a1a28;
}

.gallery-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  outline: none;
  min-height: clamp(200px, 50vw, 480px);
  aspect-ratio: 16 / 10;
  max-height: min(72vh, 640px);
}

.gallery-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 20, 32, 0.28) 0%,
    transparent 38%,
    transparent 62%,
    rgba(8, 20, 32, 0.45) 100%
  );
}

.gallery-viewport:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.gallery-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  margin: 0;
  padding: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-slide {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  margin: 0;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 26, 45, 0.55);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-nav:hover {
  background: rgba(207, 159, 98, 0.95);
  border-color: rgba(255, 255, 255, 0.65);
  color: #0a1a28;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gallery-nav--prev {
  left: clamp(0.5rem, 2vw, 1.25rem);
}

.gallery-nav--next {
  right: clamp(0.5rem, 2vw, 1.25rem);
}

.gallery-thumbs-wrap {
  display: flex;
  justify-content: center;
  padding: 0.85rem 1rem 1rem;
  background: linear-gradient(180deg, #0d2235 0%, #0a1a28 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-thumbs {
  display: flex;
  justify-content: center;
  margin-inline: auto;
  max-width: 100%;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0 0.25rem 0.15rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 4.75rem;
  height: 3.1rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  background: #000;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(207, 159, 98, 0.5);
  transform: translateY(-1px);
}

.gallery-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.1rem 1rem;
  background: #081420;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-caption {
  margin: 0;
  font-family: "IBM Plex Serif", "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: #f4efe6;
  letter-spacing: 0.02em;
}

.gallery-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(244, 239, 230, 0.55);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    transition-duration: 0.01ms;
  }
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-left: 1.15rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  content: "";
}

.faq summary::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.38em;
  border-style: solid;
  border-width: 0.32em 0 0.32em 0.48em;
  border-color: transparent transparent transparent var(--brand-strong);
  transform-origin: 28% 50%;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::before {
  transform: rotate(90deg);
}

.faq p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-contact {
  background: linear-gradient(120deg, #0e2f4c 0%, #1f4f7a 100%);
  color: #fff;
}

.section-contact h2,
.section-contact .contact-list,
.section-contact .contact-list a {
  color: inherit;
}

.section-contact .section-intro {
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.35rem;
}

.contact-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-link:hover {
  color: #ffe8c9;
  text-decoration-color: rgba(255, 232, 201, 0.95);
}

.contact-list {
  margin: 1rem 0 0;
  padding-left: 1rem;
}

.site-footer {
  background: #081a2d;
  color: #d9e2ec;
  padding: 1.2rem 0 1.4rem;
}

.footer-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.footer-wrap p {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #ffd69f;
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .benefit-grid,
  .amenities-grid,
  .units-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --container: min(1140px, calc(100% - 1.2rem));
  }

  .benefit-grid,
  .amenities-grid,
  .units-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-metrics {
    max-width: none;
    margin-bottom: 1.35rem;
    gap: 0.4rem;
  }

  .hero-metrics article {
    padding: 0.45rem 0.3rem;
    border-radius: 12px;
  }

  .metric-label {
    margin-top: 0.15rem;
    line-height: 1.2;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    max-width: min(22rem, 100%);
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 2.75rem;
    padding-inline: 1rem;
    text-align: center;
    white-space: normal;
  }

  .hero-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.45);
  }

  .hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
  }
}

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