/* ============================================================
   ImóvelPrime — Alto Padrão
   Style System · CSS Custom Properties
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');

/* ── Custom Properties ── */
:root {
  /* Palette */
  --bg:           #f9f9fb;
  --bg-alt:       #f0f1f5;
  --navy:         #0d1b2a;
  --navy-80:      rgba(13, 27, 42, 0.80);
  --navy-95:      rgba(13, 27, 42, 0.95);
  --gold:         #c9a84c;
  --gold-light:   #e4c97a;
  --gold-dark:    #a8883a;
  --steel:        #3a5a7a;
  --steel-light:  #4d7299;
  --white:        #ffffff;
  --text:         #0d1b2a;
  --text-muted:   #5a6a7a;
  --text-light:   #8a9aaa;
  --border:       #dde2ea;
  --border-light: #eaedf3;
  --card-bg:      #ffffff;
  --overlay:      rgba(13, 27, 42, 0.62);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Source Sans 3', 'Source Sans Pro', sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container: 1200px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(13,27,42,0.06), 0 1px 2px rgba(13,27,42,0.04);
  --shadow-sm: 0 2px 8px rgba(13,27,42,0.08), 0 1px 4px rgba(13,27,42,0.05);
  --shadow-md: 0 4px 20px rgba(13,27,42,0.10), 0 2px 8px rgba(13,27,42,0.06);
  --shadow-lg: 0 8px 40px rgba(13,27,42,0.13), 0 4px 16px rgba(13,27,42,0.08);
  --shadow-xl: 0 20px 60px rgba(13,27,42,0.16), 0 8px 24px rgba(13,27,42,0.10);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.28);

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --dur-fast:  180ms;
  --dur:       280ms;
  --dur-slow:  420ms;

  /* Navbar height */
  --nav-h: 76px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h, 76px);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 52ch;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  padding: 0.75rem 1.6rem;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 28px rgba(201,168,76,0.40);
  transform: translateY(-1px);
}
.btn-gold:active { transform: translateY(0); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover {
  background: var(--steel);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-lg {
  font-size: 0.95rem;
  padding: 0.92rem 2.1rem;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 12px rgba(201,168,76,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}

.navbar.scrolled {
  background: var(--navy-95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(13,27,42,0.22);
}

.navbar-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.navbar-logo .logo-diamond {
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
  animation: float 3.5s ease-in-out infinite;
}
.navbar-logo .logo-prime {
  color: var(--gold);
  font-weight: 300;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: auto;
}

.navbar-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
  padding-bottom: 3px;
}
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}
.navbar-nav a:hover { color: var(--white); }
.navbar-nav a:hover::after { width: 100%; }

.navbar-cta { margin-left: var(--space-md); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--navy-95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: var(--space-xl) var(--space-lg);
  flex-direction: column;
  gap: var(--space-lg);
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: var(--space-sm); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-property.png');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s var(--ease-out);
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,42,0.82) 0%,
    rgba(13,27,42,0.55) 50%,
    rgba(13,27,42,0.40) 100%
  );
}
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--navy) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
  padding-bottom: var(--space-3xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: var(--space-xl);
  animation: fadeIn 0.8s var(--ease-out) both;
  backdrop-filter: blur(8px);
}
.hero-badge .badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-ring 2s ease-in-out infinite;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.9s var(--ease-out) 0.15s both;
  max-width: 16ch;
}
.hero-headline .line-gold { color: var(--gold); display: block; }

.hero-subheadline {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: var(--space-2xl);
  animation: fadeUp 0.9s var(--ease-out) 0.28s both;
  font-weight: 300;
}

/* Search bar */
.hero-search {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  max-width: 700px;
  box-shadow: 0 20px 60px rgba(13,27,42,0.30);
  animation: fadeUp 0.9s var(--ease-out) 0.40s both;
  margin-bottom: var(--space-xl);
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding: 0.2rem var(--space-md);
  border-right: 1px solid var(--border);
}
.search-group:last-of-type { border-right: none; }

.search-group label {
  font-family: var(--font-heading);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-group select {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.search-group select option { font-weight: 400; }

.hero-search .btn {
  padding: 0.85rem 1.6rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  animation: fadeUp 0.9s var(--ease-out) 0.52s both;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
}
.scroll-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  animation: float 2.2s ease-in-out infinite;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 2;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   FEATURED PROPERTIES
   ============================================================ */
.properties {
  padding: var(--space-5xl) 0;
  background: var(--bg);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Property Card */
.property-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border: 1px solid var(--border-light);
  position: relative;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.property-card:hover .card-img img {
  transform: scale(1.06);
}

.card-img {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--bg-alt);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

/* Placeholder gradient for cards without images */
.card-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a2f45 0%, #2d4a65 50%, #1a2f45 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-placeholder .interior-scene {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}

.card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
}

.card-tag {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(13,27,42,0.75);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
}

.card-body {
  padding: var(--space-lg) var(--space-xl);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.card-location svg { width: 12px; height: 12px; }

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}
.price-prefix {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.price-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.card-specs {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.spec {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}
.spec svg { width: 14px; height: 14px; color: var(--gold); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.card-footer .btn {
  flex: 1;
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
}
.btn-fav {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.btn-fav:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   FEATURES / SERVICES
   ============================================================ */
.features {
  padding: var(--space-5xl) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.features::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.features::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,90,122,0.20) 0%, transparent 70%);
  pointer-events: none;
}

.features .section-label { color: var(--gold); }
.features .section-title { color: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.feature-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.30);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.30);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  font-size: 1.4rem;
  transition: all var(--dur) var(--ease);
}
.feature-card:hover .feature-icon {
  background: rgba(201,168,76,0.20);
  transform: scale(1.08);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--space-5xl) 0;
  background: var(--bg);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-img-wrap {
  position: relative;
}
.about-img-wrap .main-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 60%; height: 60%;
  border-radius: var(--radius-xl);
  border: 2px solid var(--gold);
  opacity: 0.35;
  z-index: -1;
}

.about-badge-float {
  position: absolute;
  bottom: var(--space-xl);
  right: calc(-1 * var(--space-xl));
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
}
.about-badge-float .badge-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
}
.about-badge-float .badge-text {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.about-content { max-width: 48ch; }

.about-list {
  margin: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.list-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.about-cta-row .cta-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.about-cta-row .cta-note strong { color: var(--navy); }

/* ============================================================
   SHOWCASE / GALLERY
   ============================================================ */
.showcase {
  padding: var(--space-5xl) 0;
  background: var(--bg-alt);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.showcase-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--navy);
  cursor: pointer;
}
.showcase-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 2; }
.showcase-item:nth-child(2) { grid-column: 6 / 9; grid-row: 1 / 2; }
.showcase-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
.showcase-item:nth-child(4) { grid-column: 1 / 5; grid-row: 2 / 3; }
.showcase-item:nth-child(5) { grid-column: 5 / 9; grid-row: 2 / 3; }
.showcase-item:nth-child(6) { grid-column: 9 / 13; grid-row: 2 / 3; }

.showcase-img {
  width: 100%; height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  display: block;
}
.showcase-item:hover .showcase-img { transform: scale(1.05); }

.showcase-placeholder {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  position: relative;
}

.showcase-placeholder::before {
  content: '◆';
  font-size: 2.5rem;
  color: rgba(201, 168, 76, 0.25); /* subtle gold diamond */
  transition: transform var(--dur) var(--ease);
}

.showcase-item:hover .showcase-placeholder::before {
  transform: scale(1.2) rotate(45deg);
}

.g1 { background: linear-gradient(135deg, #1a3a5c 0%, #2d5a8c 100%); }
.g2 { background: linear-gradient(135deg, #2d4a3e 0%, #1a3028 100%); }
.g3 { background: linear-gradient(135deg, #3a2d1a 0%, #5a4828 100%); }
.g4 { background: linear-gradient(135deg, #1a2d4a 0%, #2a4266 100%); }
.g5 { background: linear-gradient(135deg, #2d1a3a 0%, #4a2d5c 100%); }
.g6 { background: linear-gradient(135deg, #1a3a2d 0%, #2d5a46 100%); }

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.80) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}
.showcase-item:hover .showcase-overlay { opacity: 1; }

.showcase-info {
  color: var(--white);
}
.showcase-info h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
}
.showcase-info p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

/* Labels on showcase items (no-hover state) */
.showcase-label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: rgba(13,27,42,0.72);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 2;
}

.showcase-item:hover .showcase-label {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--space-5xl) 0;
  background: var(--bg);
}

.testimonials .section-header {
  margin-bottom: var(--space-3xl);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: var(--space-xl);
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.25);
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-lg);
}
.star {
  color: var(--gold);
  font-size: 0.95rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--steel) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.author-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}
.author-role {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: var(--space-5xl) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero-property.png') center/cover no-repeat;
  opacity: 0.12;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.97) 0%, rgba(13,27,42,0.88) 100%);
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-content {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.cta-content .section-label { justify-content: center; }
.cta-content .section-title { color: var(--white); margin-bottom: var(--space-lg); }

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-2xl);
  line-height: 1.75;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  transition: color var(--dur-fast);
}
.cta-phone:hover { color: var(--gold); }
.cta-phone .phone-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  padding: var(--space-5xl) 0;
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-info { padding-top: var(--space-lg); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.contact-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.contact-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}
.contact-value span {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}
.form-group label {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem var(--space-md);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  padding: 0.95rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
  margin-top: var(--space-sm);
}

.form-privacy {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  padding: var(--space-4xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}
.footer-logo .logo-diamond { color: var(--gold); font-size: 1rem; }
.footer-logo .logo-prime   { color: var(--gold); font-weight: 300; }

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 28ch;
  margin-bottom: var(--space-xl);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}
.social-link {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all var(--dur-fast) var(--ease);
}
.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.50);
  transition: color var(--dur-fast) var(--ease);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.30);
}
.footer-bottom .footer-links {
  display: flex;
  gap: var(--space-xl);
}
.footer-bottom .footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.30);
  transition: color var(--dur-fast);
}
.footer-bottom .footer-links a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet  ≤ 1024px */
@media (max-width: 1024px) {
  :root { --space-5xl: 5.5rem; --space-4xl: 4rem; }

  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .properties-grid .property-card:nth-child(3) { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: var(--space-3xl); }
  .about-img-wrap { max-width: 540px; }
  .about-badge-float { right: 0; }
  .about-content { max-width: none; }

  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-xl); }

  .showcase-item:nth-child(1) { grid-column: 1 / 7; }
  .showcase-item:nth-child(2) { grid-column: 7 / 10; }
  .showcase-item:nth-child(3) { grid-column: 10 / 13; }
}

/* Large mobile  ≤ 768px */
@media (max-width: 768px) {
  :root {
    --space-5xl: 4rem;
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
    --nav-h: 68px;
  }
  .contact-form { padding: 1.25rem; }
  .property-card .card-body { padding: 1.25rem; }

  .navbar-nav, .navbar-cta { display: none; }
  .hamburger { display: flex; }

  .hero-headline { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-search {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  .search-group {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0;
    flex: 1 1 calc(50% - var(--space-sm));
  }
  .hero-search .btn { width: 100%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }

  .properties-grid { grid-template-columns: 1fr; }
  .properties-grid .property-card:nth-child(3) { display: flex; flex-direction: column; }

  .features-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .features { padding: var(--space-3xl) 0; }

  .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-lg); }

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

  .contact-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .showcase-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .showcase-item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .showcase-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .showcase-item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .showcase-item:nth-child(5) { grid-column: 2; grid-row: 3; }
  .showcase-item:nth-child(6) { grid-column: 1 / 3; grid-row: 4; }

  .cta-buttons { flex-direction: column; }

  .about-badge-float { position: relative; bottom: auto; right: auto; margin-top: var(--space-lg); }
}

/* Small mobile  ≤ 480px */
@media (max-width: 480px) {
  :root { --space-5xl: 3rem; --space-4xl: 2.5rem; }

  .container { padding-inline: var(--space-md); }
  .hero-headline { font-size: 2rem; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .hero-badge { font-size: 0.65rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item::after { display: none; }

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

  .property-card .card-specs { gap: var(--space-md); }

  .about-list li { font-size: 0.9rem; }
}

/* ============================================================
   PRINT / A11Y
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: rgba(201,168,76,0.25); color: var(--navy); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
