:root {
  --ink: #171b21;
  --ink-soft: #454c56;
  --paper: #f9fafb;
  --paper-alt: #eef1f4;
  --accent: #2857a0;
  --accent-dark: #1c3f7a;
  --accent-light: #9db8de;
  --slate: #6d7278;
  --line: #e1e4e8;
  --radius: 10px;
  --shadow: 0 12px 32px -16px rgba(20, 24, 29, 0.25);
  --maxw: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Topbar */
.topbar {
  background: var(--ink);
  color: #cfd3d8;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-contact a { color: #fff; }
.topbar-contact a:hover { color: var(--accent-light); }
.topbar .dot { margin: 0 8px; opacity: 0.4; }
.topbar-address { opacity: 0.8; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}
.logo { display: block; flex-shrink: 0; }
.logo img { height: 84px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a { color: var(--ink-soft); transition: color 0.15s; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang-switch a { color: var(--slate); }
.lang-switch a[aria-current="true"] { color: var(--ink); }
.lang-switch span { opacity: 0.4; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-ghost-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.text-link { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.text-link:hover { color: var(--accent-dark); }
.cta-row { margin-top: 36px; }

/* Hero slideshow */
.hero-slider {
  position: relative;
  min-height: max(540px, calc(100svh - 145px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.07);
  transition: opacity 1.4s ease, transform 9s linear;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,13,17,0.72) 0%, rgba(10,13,17,0.38) 55%, rgba(10,13,17,0.12) 100%),
    linear-gradient(0deg, rgba(10,13,17,0.6) 0%, rgba(10,13,17,0) 35%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 40px; padding-bottom: 80px; }
.hero-content h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.25em;
}
.hero-tagline {
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  margin-bottom: 32px;
}
.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
}
.hero-dots { display: flex; gap: 10px; padding-bottom: 6px; }
.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.is-active { background: #fff; transform: scale(1.2); }
.hero-dot:hover { background: rgba(255,255,255,0.6); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: #c7ccd3; }
.kicker {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.kicker.light { color: var(--accent-light); }
.center { text-align: center; }
.section-sub { color: var(--ink-soft); max-width: 56ch; margin: -8px auto 40px; }
.section-sub-left { margin-left: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 64px 40px;
  min-height: 320px;
}
.logo-panel img { width: min(100%, 360px); height: auto; }

/* Featured project */
.feature-image {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.6);
}
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.feature-image:hover img { transform: scale(1.04); }
.feature-grid { grid-template-columns: 1.05fr 0.95fr; }
.lead { font-size: 1.15rem; color: #e3e7ec; }
.spec-line {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-light);
  font-size: 0.9rem;
  margin: 18px 0 28px;
}
.spec-line-dark { color: var(--accent); margin: 0 0 20px; }

/* Available properties */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.property-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.property-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-alt); }
.property-img img { width: 100%; height: 100%; object-fit: cover; }
.property-level { color: var(--ink); font-weight: 700; margin: 0 0 4px; }
.property-body { display: flex; flex-direction: column; padding: 24px 26px 28px; flex: 1; }
.property-body h3 { font-size: 1.3rem; letter-spacing: 0.02em; margin-bottom: 2px; }
.property-loc {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin: 0 0 14px;
}
.property-specs { color: var(--ink); font-weight: 600; margin: 0; }
.property-feat { margin: 0 0 20px; }
.property-body .btn { align-self: flex-start; margin-top: auto; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.project-card {
  display: block;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.project-thumb {
  aspect-ratio: 4/3;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
  background: var(--paper-alt);
}
.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 1;
}
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,13,17,0.6) 0%, rgba(10,13,17,0) 45%);
  z-index: 2;
}
.project-tag {
  position: relative;
  z-index: 3;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.project-tag-alt { background: var(--accent); color: #fff; }
.project-count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(10,13,17,0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: none;
  align-items: center;
  gap: 5px;
}
.project-count.show { display: inline-flex; }
.project-info { padding: 18px 20px 22px; }
.project-info h3 { margin-bottom: 4px; font-size: 1.1rem; }
.project-info p { margin: 0; font-size: 0.9rem; }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding: 90px 0 56px;
  overflow: hidden;
  color: #fff;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(15,19,24,0.92) 20%, rgba(15,19,24,0.8) 70%, rgba(40,87,160,0.55) 140%),
    url('assets/img/hero-pool.jpg');
  background-size: cover;
  background-position: center 25%;
  z-index: -1;
}
.breadcrumb {
  color: var(--accent-light);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.breadcrumb a { color: #cfd3d8; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.3em; }
.page-hero-sub { color: #c7ccd3; max-width: 60ch; margin: 0; }

/* Auto-scrolling photo strip */
.photo-strip { overflow: hidden; background: var(--ink); }
.strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll var(--dur, 60s) linear infinite;
}
.photo-strip:hover .strip-track { animation-play-state: paused; }
.strip-item {
  flex: none;
  height: clamp(220px, 34vw, 380px);
  margin: 0 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.strip-item img { height: 100%; width: auto; display: block; }
.photo-strip-static .strip-track { animation: none; width: auto; justify-content: center; }
.photo-strip-static .strip-item { margin: 0; }
@keyframes strip-scroll { to { transform: translateX(-50%); } }

/* Project detail / gallery */
.project-desc { max-width: 75ch; font-size: 1.05rem; margin-bottom: 32px; }
.gallery-heading { margin: 36px 0 16px; font-size: 1.2rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-thumb {
  display: block;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-thumb:hover img { transform: scale(1.06); }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  max-width: 760px;
}
.feature-list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* Contact */
.contact-grid { align-items: start; }
.contact-details { margin-top: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
}
.contact-item svg { color: var(--accent); flex-shrink: 0; }
.contact-item a:hover { color: var(--accent); }
.map-embed {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed iframe { display: block; }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--accent-dark);
  text-align: center;
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #aeb4bc;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { color: #fff; font-family: 'Fraunces', serif; font-size: 1.05rem; letter-spacing: 0.04em; }
.footer-nav { display: flex; gap: 24px; font-size: 0.9rem; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--accent-light); }
.footer-copy { font-size: 0.82rem; margin: 0; width: 100%; text-align: center; opacity: 0.7; color: inherit; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,13,17,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lb-stage img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lb-caption { color: #cfd3d8; font-size: 0.9rem; margin: 0; }
.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}
.lb-close:hover { color: var(--accent-light); }
.lb-nav {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 18px;
}
.lb-nav:hover { background: var(--accent); border-color: var(--accent); }
.lb-nav:disabled { opacity: 0.3; cursor: default; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .photo-strip:not(.photo-strip-static) { overflow-x: auto; }
  .strip-track { animation: none; }
  .strip-item[aria-hidden="true"] { display: none; }
  .hero-slide, .hero-slide.is-active { transition: opacity 0.4s ease; transform: none; }
}

/* Responsive */
@media (max-width: 1120px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 30px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-toggle { display: flex; }
}
@media (max-width: 900px) {
  .two-col, .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-panel { min-height: 0; padding: 40px 24px; }
}
@media (max-width: 720px) {
  .logo img { height: 58px; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-address { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .page-hero { padding-top: 64px; }
  .section { padding: 64px 0; }
  .hero-slider { min-height: max(520px, calc(100svh - 135px)); }
  .hero-content { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  .lb-nav { width: 42px; height: 42px; font-size: 1.8rem; margin: 0 8px; }
  .lb-close { top: 10px; right: 12px; font-size: 2rem; }
}
