/* Santara Villas — marketing landing (institutional sale tone) */

:root {
  --bg-page: #f3efe7;
  --bg-cream: #faf6ef;
  --bg-dark: #12110f;
  --ink: #1a2420;
  --ink-muted: #5c6660;
  --gold: #b8955c;
  --gold-soft: rgba(184, 149, 92, 0.35);
  --wa: #25d366;
  --wa-hover: #1ebe57;
  --white: #fdfcfa;
  --shadow: 0 24px 60px -28px rgba(18, 28, 22, 0.45);
  --radius: 14px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --wrap: min(1120px, 94vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-page);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(120%) blur(12px);
  background: rgba(253, 252, 250, 0.88);
  border-bottom: 1px solid rgba(26, 36, 32, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.site-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.site-logo span {
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.85rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-header__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  gap: 0;
  border: 1px solid rgba(184, 149, 92, 0.4);
  border-radius: 999px;
  padding: 3px;
  background: var(--white);
  flex-shrink: 0;
}

.lang-switch a {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--ink);
}

.lang-switch a[aria-current='page'] {
  background: var(--gold);
  color: #fff;
}

/* Три языка в шапке: чуть компактнее */
.lang-switch--tri a {
  padding: 5px 9px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 36, 32, 0.22);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(37, 211, 102, 0.65);
}

.btn--wa:hover {
  background: var(--wa-hover);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 14px 26px;
  font-size: 0.95rem;
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 12, 0.15) 0%,
    rgba(10, 14, 12, 0.35) 40%,
    rgba(10, 14, 12, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 8vw, 5rem) 0;
  color: var(--white);
  max-width: 720px;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 14px;
  color: var(--gold);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 6vw, 3.85rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.hero__subtitle {
  margin: 0 0 22px;
  font-size: 1rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.88;
}

.hero__ask {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 22px;
  margin: 0 0 16px;
}

.hero__price {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  color: var(--gold);
}

.hero__phase1 {
  font-size: 0.98rem;
  opacity: 0.92;
}

.hero__pitch {
  margin: 0 0 26px;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52ch;
  opacity: 0.94;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero__legal-note {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.55;
}

.stats {
  background: var(--bg-dark);
  color: var(--white);
  padding: 28px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats__cell {
  text-align: center;
  padding: 12px 8px;
  border: 1px solid rgba(184, 149, 92, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.stats__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}

.stats__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.stats__hint {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  opacity: 0.55;
  line-height: 1.35;
}

.section {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
}

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

.model-embed-intro {
  max-width: 62ch;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.model-embed-frame-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 36, 32, 0.12);
  box-shadow: var(--shadow);
  background: var(--white);
}

.model-embed-frame-wrap iframe {
  display: block;
  width: 100%;
  height: min(92vh, 1100px);
  min-height: 560px;
  border: none;
}

.model-embed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .model-embed-frame-wrap iframe {
    height: 85vh;
    min-height: 420px;
  }
}

.section--dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.section__eyebrow--gold {
  color: var(--gold);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  max-width: 22ch;
}

.section__title--light {
  color: var(--white);
}

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

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.95rem;
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

.panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(26, 36, 32, 0.1);
}

.panel--elevated {
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel__title {
  font-family: var(--font-serif);
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.panel__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.panel__list li {
  margin-bottom: 0.45rem;
}

.panel__note {
  margin: 1.25rem 0 0;
  font-size: 0.76rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.panel__note a {
  color: var(--gold);
}

.phase-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.phase-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid rgba(184, 149, 92, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.phase-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0 0 6px;
  color: var(--gold);
}

.phase-card__spec {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.phase-card__text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.65;
  opacity: 0.82;
}

/* Gallery: ровная сетка 3×2 (без «дыр»), кадры целиком — object-fit: contain */
.gallery {
  display: grid;
  gap: clamp(14px, 2.2vw, 22px);
  grid-template-columns: 1fr;
}

.gallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ebe4d9;
  box-shadow: 0 14px 40px -26px rgba(18, 28, 22, 0.45);
}

.gallery__media {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 200px;
  max-height: min(42vh, 400px);
  box-sizing: border-box;
  padding: clamp(10px, 2vw, 14px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 252, 248, 0.45) 0%, transparent 55%),
    linear-gradient(165deg, #f0eae2 0%, #ddd5cb 52%, #cfc7bc 100%);
}

.gallery__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.gallery__item figcaption {
  flex-shrink: 0;
  padding: 11px 14px 13px;
  font-size: 0.74rem;
  color: var(--ink-muted);
  letter-spacing: 0.035em;
  line-height: 1.35;
  border-top: 1px solid rgba(26, 36, 32, 0.06);
  background: rgba(255, 255, 255, 0.35);
}

@media (min-width: 560px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* 6 элементов → ровно 2 ряда по 3, без пустых ячеек */
  }

  .gallery__media {
    max-height: min(38vh, 360px);
  }
}

.gallery__media--missing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.gallery__media__oops {
  padding: 14px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 8px;
}

.resource-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 36, 32, 0.12);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.resource-card__label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.resource-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.resource-card__meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.site-footer {
  background: #0b0c0b;
  color: rgba(255, 255, 255, 0.8);
  padding: 26px 0 36px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.site-footer__brand {
  font-family: var(--font-serif);
  letter-spacing: 0.1em;
  margin: 0 0 4px;
}

.site-footer__meta {
  margin: 0;
  font-size: 0.76rem;
  opacity: 0.55;
}

.footer-wa {
  color: var(--wa);
  text-decoration: none;
  font-weight: 600;
}

.footer-wa:hover {
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.78rem;
  opacity: 0.6;
  max-width: 36rem;
}

.site-footer__links a {
  color: inherit;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
  opacity: 1;
}

@media (max-width: 840px) {
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid rgba(26, 36, 32, 0.08);
    padding-top: 12px;
  }

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

@media (max-width: 520px) {
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--lg {
    justify-content: center;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header__actions {
    justify-content: center;
  }

  /* Hero title — tighter tracking + protect long words from breaking awkwardly */
  .hero__title { letter-spacing: 0.02em; word-break: break-word; }
  .hero__subtitle { letter-spacing: 0.14em; font-size: 0.9rem; }

  /* Prices must NEVER wrap mid-number ($1,180, 000) */
  .hero__price,
  .hero__phase1 strong,
  [data-price],
  [data-phase1-price],
  [data-phase2-price] { white-space: nowrap; }

  /* Hero legal note — was opacity 0.55 over dark veil = invisible on mobile */
  .hero__legal-note { opacity: 0.8; }

  /* Stats grid forced to 2 columns on phones (was auto-fit collapsing to 1 col) */
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats__value { font-size: 1.4rem; }
  .stats__hint { font-size: 0.7rem; }

  /* Resource cards — make them compact on phones */
  .resource-card { padding: 1rem 1.1rem; }
  .resource-card__title { font-size: 1.15rem; }

  /* Phase cards — slightly tighter padding */
  .phase-card { padding: 1.25rem 1.1rem; }
  .phase-card__title { font-size: 1.2rem; }
}

/* Gallery photos on mobile: switch from contain (creates cream letterbox) to cover */
@media (max-width: 640px) {
  .gallery__media {
    aspect-ratio: 4 / 3;
    max-height: none;
    padding: 0;
    background: #e8e2d8;
  }
  .gallery__media img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }
  .gallery { grid-template-columns: 1fr; gap: 12px; }
}

/* Compact header on small screens */
/* FAQ — GEO long-tail copy aligned with FAQPage JSON-LD */
.faq__intro {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 48rem;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  border: 1px solid rgba(26, 36, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 1rem 1.15rem;
  padding-right: 2.25rem;
  position: relative;
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "\2013";
}
.faq-item__body {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.65;
}

@media (max-width: 480px) {
  .site-header__inner { padding: 10px 0; gap: 8px; }
  .site-logo { font-size: 0.9rem; letter-spacing: 0.08em; }
  .site-nav { font-size: 0.78rem; gap: 0.6rem; padding-top: 8px; }

  /* WhatsApp button: hide the full phone number, keep just the label */
  .btn--wa [data-whatsapp-display] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .resource-card:hover {
    transform: none;
  }
}

/* Hero USP one-liner — the 3-second value prop, sits above the longer pitch. */
.hero__usp {
  margin: 0 0 18px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: rgba(184, 149, 92, 0.22);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-block;
}

/* Footer "Call" link beside WhatsApp. */
.footer-call {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  margin-left: 16px;
  opacity: 0.85;
}

.footer-call:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Sticky mobile contact bar — phones only, always-visible WhatsApp / Call / Pitch. */
.mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 17, 15, 0.92);
    backdrop-filter: saturate(120%) blur(10px);
    border-top: 1px solid var(--gold-soft);
  }

  .mobile-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    will-change: transform;
    transition: transform 0.15s ease;
  }

  .mobile-cta__btn:active {
    transform: scale(0.97);
  }

  .mobile-cta__btn--wa {
    background: var(--wa);
    color: #fff;
  }

  .mobile-cta__btn--call {
    background: var(--gold);
    color: #1a1a1a;
  }

  .mobile-cta__btn--deck {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
  }

  /* Keep the footer reachable above the fixed bar. */
  .site-footer {
    padding-bottom: 92px;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .mobile-cta__btn:active {
    transform: none;
  }
}
