/*
  Premium Real Estate Landing Page
  Vanilla CSS with reusable utility classes, responsive layouts, and accessible states.
*/

:root {
  color-scheme: light;
  --background: hsl(40 50% 98%);
  --foreground: hsl(221 39% 12%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(221 39% 12%);
  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(221 39% 12%);
  --primary: hsl(35 86% 48%);
  --primary-foreground: hsl(0 0% 100%);
  --primary-dark: hsl(31 92% 36%);
  --secondary: hsl(221 43% 15%);
  --secondary-foreground: hsl(0 0% 100%);
  --muted: hsl(38 35% 92%);
  --muted-foreground: hsl(220 10% 42%);
  --accent: hsl(36 92% 93%);
  --accent-foreground: hsl(31 82% 27%);
  --destructive: hsl(0 72% 45%);
  --destructive-foreground: hsl(0 0% 100%);
  --success: hsl(145 63% 34%);
  --success-foreground: hsl(0 0% 100%);
  --border: hsl(35 28% 84%);
  --input: hsl(35 22% 88%);
  --ring: hsl(35 86% 48%);
  --shadow: 0 20px 60px hsl(221 39% 12% / 0.14);
  --shadow-sm: 0 8px 28px hsl(221 39% 12% / 0.08);
  --shadow-md: 0 16px 44px hsl(221 39% 12% / 0.12);
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --header-height: 82px;
  --container: 1180px;
  --transition: 200ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--foreground);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 5vw, 5rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  color: var(--muted-foreground);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 860px);
}

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-muted {
  background:
    radial-gradient(circle at 15% 10%, hsl(36 92% 93% / 0.75), transparent 32%),
    var(--muted);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, hsl(35 86% 48% / 0.3), transparent 32%),
    radial-gradient(circle at 80% 0%, hsl(0 0% 100% / 0.12), transparent 30%),
    var(--secondary);
  color: var(--secondary-foreground);
}

.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark li {
  color: var(--secondary-foreground);
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading p {
  margin-inline: auto;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.eyebrow.light {
  color: hsl(40 95% 70%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.75rem 1rem;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Buttons */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.25rem;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible,
.nav-link:focus-visible,
.nav-toggle:focus-visible,
.gallery-item:focus-visible,
.feature-card:focus-visible,
.stat-card:focus-visible,
.faq-question:focus-visible,
.dialog-close:focus-visible,
.back-to-top:focus-visible,
.social-links a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring), 0 0 0 5px hsl(0 0% 100% / 0.9);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn.is-loading,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--primary-foreground);
  box-shadow: 0 14px 34px hsl(35 86% 48% / 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, hsl(35 92% 54%), hsl(31 92% 33%));
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: hsl(221 43% 10%);
}

.btn-ghost {
  border-color: var(--border);
  background: var(--card);
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-whatsapp {
  background: hsl(145 63% 34%);
  color: var(--success-foreground);
}

.btn-lg {
  min-height: 56px;
  padding: 1rem 1.55rem;
  font-size: 1rem;
}

.btn-sm {
  min-height: 42px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-loader {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid hsl(0 0% 100% / 0.5);
  border-top-color: var(--primary-foreground);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.btn.is-loading .btn-loader {
  display: inline-block;
}

.btn.is-loading .btn-label {
  min-width: 148px;
}

.btn.is-loading .btn-label::after {
  content: "Scheduling...";
}

.btn.is-loading .btn-label {
  font-size: 0;
}

.btn .ripple {
  position: absolute;
  z-index: -1;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.45);
  transform: translate(-50%, -50%) scale(1);
  animation: ripple 600ms ease-out forwards;
}

/* Header and Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  border-bottom: 1px solid hsl(0 0% 100% / 0.18);
  background: hsl(40 50% 98% / 0.9);
  backdrop-filter: blur(18px);
  transition: box-shadow var(--transition), background var(--transition), min-height var(--transition);
}

.site-header.is-scrolled {
  min-height: 70px;
  background: hsl(40 50% 98% / 0.96);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--primary-foreground);
  font-weight: 900;
  box-shadow: 0 12px 28px hsl(35 86% 48% / 0.22);
}

.brand-text {
  display: grid;
  gap: 0.05rem;
}

.brand-text strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted-foreground);
  font-size: 0.72rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.68);
}

.nav-link {
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: var(--muted-foreground);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--accent);
  color: var(--accent-foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: var(--foreground);
  transition: transform var(--transition), opacity var(--transition);
}

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

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

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

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  overflow: hidden;
  padding: clamp(88px, 11vw, 152px) 0;
}

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

.hero-media {
  background: linear-gradient(135deg, var(--secondary), hsl(221 40% 26%));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
}

.hero-overlay {
  background:
    linear-gradient(90deg, hsl(221 43% 10% / 0.94), hsl(221 43% 15% / 0.75), hsl(221 43% 15% / 0.25)),
    radial-gradient(circle at 75% 20%, hsl(35 86% 48% / 0.32), transparent 34%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-content h1,
.hero-content p,
.hero-content li {
  color: var(--secondary-foreground);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
}

.hero-subtitle strong {
  color: hsl(40 95% 70%);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid hsl(0 0% 100% / 0.14);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.08);
  padding: 0.8rem 1rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-highlights span {
  color: hsl(40 95% 70%);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-card {
  border: 1px solid hsl(0 0% 100% / 0.18);
  border-radius: var(--radius-lg);
  background: hsl(0 0% 100% / 0.12);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  color: var(--secondary-foreground);
  backdrop-filter: blur(20px);
}

.hero-card .card-label {
  color: hsl(40 95% 70%);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin: 0.4rem 0 0.5rem;
  color: var(--secondary-foreground);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.hero-card p {
  color: hsl(0 0% 100% / 0.82);
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.mini-stats div {
  border: 1px solid hsl(0 0% 100% / 0.16);
  border-radius: 18px;
  padding: 1rem;
  background: hsl(0 0% 100% / 0.08);
}

.mini-stats span {
  display: block;
  color: hsl(40 95% 70%);
  font-size: 1.55rem;
  font-weight: 900;
}

.mini-stats small {
  color: hsl(0 0% 100% / 0.75);
}

/* Cards and Grids */
.card-grid,
.stats-grid,
.amenities-grid,
.trust-grid {
  display: grid;
  gap: 1rem;
}

.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.stat-card,
.amenity-card,
.timeline-card,
.contact-card,
.lead-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-sm);
}

.feature-card,
.stat-card,
.timeline-card {
  padding: 1.45rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover,
.stat-card:hover,
.timeline-card:hover,
.amenity-card:hover,
.trust-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 1.15rem;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 1.4rem;
}

.feature-card p,
.timeline-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--foreground);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.stat-card.wide {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--secondary), hsl(221 39% 20%));
}

.stat-card.wide span,
.stat-card.wide strong {
  color: var(--secondary-foreground);
}

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

.gallery-item {
  position: relative;
  min-height: 260px;
  border: 0;
  border-radius: var(--radius);
  background: var(--muted);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, hsl(221 43% 10% / 0.82));
}

.gallery-item span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  color: var(--secondary-foreground);
  font-weight: 800;
  text-align: left;
}

.gallery-item.image-fallback::before {
  content: "Image placeholder";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-foreground);
  font-weight: 800;
}

/* Amenities */
.amenities-grid {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.amenity-card {
  display: grid;
  min-height: 132px;
  place-items: center;
  padding: 1rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.amenity-card span {
  font-size: 1.65rem;
}

.amenity-card p {
  margin: 0.5rem 0 0;
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 800;
}

/* Location Timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 4%;
  left: 4%;
  height: 2px;
  background: var(--border);
}

.timeline-card {
  position: relative;
  z-index: 1;
}

.timeline-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--primary-foreground);
  font-weight: 900;
}

/* Form */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.form-copy {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.form-copy p {
  color: hsl(0 0% 100% / 0.78);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--secondary-foreground);
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: hsl(40 95% 70% / 0.18);
  color: hsl(40 95% 70%);
}

.lead-form {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.lead-form h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.form-intro {
  margin-bottom: 1.25rem;
}

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

.full-width {
  grid-column: 1 / -1;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group label {
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--input);
  border-radius: 16px;
  background: var(--background);
  color: var(--foreground);
  padding: 0.85rem 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%), linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input::placeholder {
  color: hsl(220 10% 42% / 0.75);
}

input:focus,
select:focus {
  border-color: var(--ring);
  background: var(--card);
}

input:not(:placeholder-shown):valid,
select:valid {
  border-color: hsl(145 63% 34% / 0.55);
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--destructive);
}

input:disabled,
select:disabled {
  opacity: 0.5;
  background: var(--muted);
  cursor: not-allowed;
}

.field-error {
  min-height: 1.1rem;
  color: var(--destructive);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-error {
  margin-bottom: 1rem;
  border: 1px solid hsl(0 72% 45% / 0.28);
  border-radius: 16px;
  background: hsl(0 72% 45% / 0.08);
  color: var(--destructive);
  padding: 0.9rem 1rem;
  font-weight: 700;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--background);
  padding: 0.9rem 1rem;
}

.checkbox-field input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--primary);
}

.checkbox-field label {
  cursor: pointer;
}

.lead-form .btn-block {
  margin-top: 1.15rem;
}

/* Trust */
.trust-strip {
  padding: 1.5rem 0;
  background: var(--card);
  border-block: 1px solid var(--border);
}

.trust-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 64px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground);
  font-weight: 800;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.trust-badge span {
  color: var(--success);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: var(--card);
  color: var(--foreground);
  padding: 1.2rem 1.35rem;
  font-weight: 800;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.faq-question:hover,
.faq-question[aria-expanded="true"] {
  background: var(--accent);
  color: var(--accent-foreground);
}

.faq-question span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.35rem 1.2rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.map-placeholder {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, hsl(221 43% 15% / 0.72), hsl(221 43% 15% / 0.4)),
    repeating-linear-gradient(45deg, hsl(38 35% 92%), hsl(38 35% 92%) 12px, hsl(35 28% 84%) 12px, hsl(35 28% 84%) 24px);
  box-shadow: var(--shadow-sm);
  color: var(--secondary-foreground);
  text-align: center;
}

.map-placeholder span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.14);
  font-size: 2rem;
}

.map-placeholder strong,
.map-placeholder p {
  color: var(--secondary-foreground);
}

.contact-card {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.contact-card address {
  margin: 1.25rem 0;
  color: var(--muted-foreground);
  font-style: normal;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.contact-list a {
  color: var(--primary-dark);
  font-weight: 800;
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 3rem 0 1.5rem;
}

.site-footer p,
.site-footer a,
.site-footer small {
  color: hsl(0 0% 100% / 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr;
  gap: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-title {
  margin-bottom: 1rem;
  color: var(--secondary-foreground);
  font-size: 1rem;
}

.site-footer nav {
  display: grid;
  gap: 0.45rem;
}

.site-footer nav a:hover,
.social-links a:hover {
  color: hsl(40 95% 70%);
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid hsl(0 0% 100% / 0.16);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.08);
  font-weight: 900;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.social-links a:hover {
  transform: translateY(-2px);
  background: hsl(0 0% 100% / 0.13);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(0 0% 100% / 0.12);
  font-size: 0.85rem;
}

.disclaimer {
  max-width: 560px;
  text-align: right;
}

/* Dialogs, Lightbox, Thank You */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  background: hsl(221 43% 10% / 0.76);
  padding: 1rem;
  animation: fadeIn 180ms ease;
}

.dialog-overlay[hidden] {
  display: none;
}

.dialog {
  position: relative;
  width: min(100%, 900px);
  max-height: min(86svh, 820px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: var(--shadow);
  animation: scaleIn 200ms ease;
}

.dialog-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.88);
  color: var(--foreground);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform var(--transition), background var(--transition);
}

.dialog-close:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.lightbox-dialog {
  background: var(--secondary);
}

.lightbox-dialog img {
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9.5;
  object-fit: cover;
  background: var(--muted);
}

.lightbox-dialog p {
  margin: 0;
  padding: 1rem 1.25rem;
  color: var(--secondary-foreground);
  font-weight: 800;
}

.thank-you-dialog {
  width: min(100%, 540px);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  text-align: center;
}

.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: var(--success);
  color: var(--success-foreground);
  font-size: 2rem;
  font-weight: 900;
}

.thank-you-dialog ul {
  display: grid;
  gap: 0.6rem;
  width: min(100%, 340px);
  margin: 1rem auto 1.5rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.thank-you-dialog li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.thank-you-dialog li::before {
  content: "✓";
  color: var(--success);
  font-weight: 900;
}

/* Toasts */
.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2200;
  display: grid;
  gap: 0.75rem;
  width: min(calc(100% - 2rem), 380px);
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: 18px;
  background: var(--card);
  color: var(--foreground);
  padding: 0.95rem;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toastIn 220ms ease;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--destructive);
}

.toast.info {
  border-left-color: var(--primary);
}

.toast-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 900;
}

.toast.success .toast-icon {
  background: hsl(145 63% 34% / 0.12);
  color: var(--success);
}

.toast.error .toast-icon {
  background: hsl(0 72% 45% / 0.1);
  color: var(--destructive);
}

.toast strong {
  display: block;
  margin-bottom: 0.15rem;
}

.toast p {
  margin: 0;
  font-size: 0.86rem;
}

.toast button {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 1.2rem;
  line-height: 1;
}

/* Sticky Mobile CTA and Back to Top */
.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  border-top: 1px solid var(--border);
  background: hsl(40 50% 98% / 0.94);
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
  box-shadow: 0 -12px 28px hsl(221 39% 12% / 0.12);
  backdrop-filter: blur(18px);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(28);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Responsive Layouts */
@media (max-width: 1120px) {
  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 1rem;
    left: 1rem;
    display: grid;
    border-radius: var(--radius);
    background: var(--popover);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    border-radius: 14px;
  }

  .nav-toggle {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .four-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amenities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .form-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(180deg, hsl(221 43% 10% / 0.9), hsl(221 43% 15% / 0.78));
  }

  .hero-card {
    max-width: 520px;
  }

  .form-copy {
    position: static;
  }

  .stats-grid,
  .gallery-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    display: grid;
  }

  .disclaimer {
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 74px;
  }

  body {
    padding-bottom: 76px;
  }

  .container,
  .narrow {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .brand-text small {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .hero {
    padding: 74px 0 64px;
  }

  .hero-highlights,
  .form-grid,
  .four-cols,
  .stats-grid,
  .gallery-grid,
  .amenities-grid,
  .trust-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-highlights li {
    border-radius: 18px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .stat-card.wide {
    grid-column: auto;
  }

  .gallery-item {
    min-height: 230px;
  }

  .full-width {
    grid-column: auto;
  }

  .map-placeholder {
    min-height: 320px;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .mobile-cta {
    display: grid;
  }

  .back-to-top {
    right: 1rem;
    bottom: 5.8rem;
  }

  .toast-region {
    bottom: 5.8rem;
  }
}

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

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