/* ============================================
   MiamiCondoInsider.com – Luxury Editorial Design
   Inspired by Chanel, Dior, D&G web aesthetics
   ============================================ */

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

:root {
  --navy: #0B1D3A;
  --navy-light: #132D54;
  --ocean: #1A6B8A;
  --ocean-light: #2196B8;
  --sky: #E8F4F8;
  --gold: #C9A84C;
  --gold-light: #D4BA6A;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --cream: #FAF9F7;
  --gray-100: #F0F1F3;
  --gray-200: #E0E2E6;
  --gray-300: #C4C8CF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ocean-light); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: var(--white);
}

.btn-dark {
  background: #000;
  color: var(--white);
}
.btn-dark:hover {
  background: #1a1a1a;
  color: var(--white);
  transform: translateY(-1px);
}

/* --- Header / Nav (fashion-brand minimal) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-logo .logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition);
  text-decoration: none;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: 0;
  font-weight: 600 !important;
  opacity: 1 !important;
}
.nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy) !important;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}

/* =============================================
   HERO – Fashion-brand editorial style
   60% viewport height so content peeks below
   ============================================= */
.hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 700px;
  display: flex;
  align-items: flex-end;
  background: #000;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #000 0%, #0a0a0a 40%, #111 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

/* Hero video (drop-in ready) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay – sits between video/bg and text */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 48px;
  width: 100%;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  max-width: 600px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.hero h1 .highlight {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  max-width: 460px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-bottom: 4px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.25);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse-down 2s ease infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.5), transparent);
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}

/* =============================================
   SECTION – Peek section that sits below hero
   ============================================= */
.section {
  padding: 80px 0;
}

.section-dark {
  background: #000;
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }

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

.section-header {
  max-width: 600px;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--gray-500);
  margin-top: 12px;
  font-size: 1rem;
}

.section-header-center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.section-header-center p {
  color: var(--gray-500);
  margin-top: 12px;
}

/* Gold divider – fashion brand accent */
.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* =============================================
   BUILDING / CARD GRID – Tighter, editorial
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.building-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.building-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  color: inherit;
}

.building-card-img {
  position: relative;
  height: 200px;
  background: var(--gray-200);
  overflow: hidden;
}

.building-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.building-card:hover .building-card-img img {
  transform: scale(1.04);
}

.building-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
}

.building-card-badge.precon {
  background: var(--ocean);
  color: var(--white);
}

.building-card-body {
  padding: 18px 20px 20px;
}

.building-card-neighborhood {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ocean);
  margin-bottom: 6px;
}

.building-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.building-card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.building-card-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
}

.building-card-price span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* --- Neighborhood Filter --- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 9px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.filter-btn.active {
  background: #000;
  border-color: #000;
  color: var(--white);
}

/* --- Preconstruction Spotlight --- */
.precon-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.precon-feature-img {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
}

.precon-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.precon-feature-body h3 {
  margin-bottom: 8px;
}

.precon-feature-body .precon-dev {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.precon-feature-body p {
  color: var(--gray-700);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.precon-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.precon-detail-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.precon-detail-value {
  font-weight: 600;
  color: var(--navy);
}

/* --- Lead Capture / CTA Banner --- */
.cta-banner {
  background: #000;
  border-radius: 0;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.6); max-width: 480px; font-size: 0.95rem; }

.cta-form {
  display: flex;
  gap: 0;
}

.cta-input {
  padding: 14px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 260px;
  transition: border-color var(--transition);
}
.cta-input::placeholder { color: rgba(255,255,255,0.3); }
.cta-input:focus { outline: none; border-color: var(--gold); }

/* --- About / Agent Section --- */
.agent-section {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
}

.agent-photo {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-200);
}

.agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-info h2 { margin-bottom: 8px; }

.agent-title {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.agent-info p {
  color: var(--gray-700);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.agent-credentials {
  display: flex;
  gap: 32px;
  margin: 28px 0;
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.agent-cred-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
}

.agent-cred-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.agent-contact-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

/* --- Footer --- */
.site-footer {
  background: #000;
  color: rgba(255,255,255,0.5);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .logo-accent { color: var(--gold); }

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.35);
  margin-left: 24px;
}

/* --- Page Hero (inner pages) --- */
.page-hero { background: var(--navy); padding: 110px 0 56px; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.5); font-size: 1rem; max-width: 540px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .precon-feature { grid-template-columns: 1fr; }
  .agent-section { grid-template-columns: 1fr; }
  .agent-photo { max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  }

  .hero { height: 60vh; min-height: 400px; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-scroll { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .cta-banner {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    text-align: center;
  }
  .cta-form { flex-direction: column; }
  .cta-input { width: 100%; border-right: 1px solid rgba(255,255,255,0.15); }
  .agent-section { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 56px 0; }
}
