/* ============================================================
   Astria Realty — Staging Concept "Sonoran"
   Structural/interaction patterns inspired by the Reland real
   estate theme (chamfered plat-line motif, sliding-label buttons,
   overlay header, rolling stat counters), recolored to Astria's
   established purple brand rather than Reland's literal palette.
   This file is isolated to dev.html — production pages keep style.css.
   ============================================================ */

/* Google Fonts: Fraunces (display) & Manrope (body/UI) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors — Astria purple */
  --primary: #5a20a2;
  --primary-dark: #3b1170;
  --primary-light: #8a4fd6;
  --primary-soft: #f4effc;
  --secondary: #9d4edd;
  --accent: #e0aaff;         /* pale lavender — accents on dark */
  --ink: #1a0e30;            /* deep purple-black — darkest surfaces */
  --ink-2: #2d0a5e;          /* secondary dark-gradient stop */

  /* Neutral Palette */
  --text-dark: #1a191d;
  --text-muted: #625f6e;
  --bg-light: #ffffff;
  --bg-slate: #f7f6fa;
  --border-color: #e8e5ef;

  /* Layout */
  --shadow-sm: 0 2px 8px rgba(59, 17, 112, 0.06);
  --shadow-md: 0 10px 26px rgba(59, 17, 112, 0.1);
  --shadow-lg: 0 20px 50px rgba(59, 17, 112, 0.14);
  --shadow-card: 0 6px 18px rgba(59, 17, 112, 0.08);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 4px;
  --radius-sm: 4px;
  --radius-lg: 4px;

  /* Signature chamfer — single cut corner, plat-line motif */
  --chamfer: 18px;
  --chamfer-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ── Container ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 90px 0; }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin-right: 10px;
  vertical-align: middle;
}
.section-title { font-size: 2.7rem; font-weight: 600; margin-bottom: 14px; }
.section-subtitle { color: var(--text-muted); font-size: 1.08rem; max-width: 560px; margin: 0 auto 48px; }

/* ── Buttons — chamfered, sliding-label ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  clip-path: polygon(0 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm), 100% 100%, 0 100%);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  font-family: 'Manrope', sans-serif;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.16);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover::after { transform: translateX(0); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); filter: drop-shadow(0 10px 20px rgba(90, 32, 162, 0.35)); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-outline-dark { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }
.btn-white { background: var(--accent); color: var(--ink); font-weight: 800; }
.btn-white:hover { background: #fff; color: var(--ink); transform: translateY(-2px); filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); }

@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
  .btn:hover { transform: none; }
}

/* ── Header & Navigation — overlays hero, ink on scroll ── */
header {
  background: transparent;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
}
header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(59, 17, 112, 0.1);
}
header.scrolled .logo { color: var(--primary-dark); }
header.scrolled .logo span { color: var(--primary-light); }
header.scrolled .nav-link { color: var(--text-dark); }
header.scrolled .nav-link:hover, header.scrolled .nav-link.active { color: var(--primary); }
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}
.logo {
  display: flex;
  align-items: center;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}
.logo span { color: var(--accent); margin-left: 3px; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  margin-right: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
}
.nav-menu { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 11px 26px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff; }

/* ── Mobile nav toggle + off-canvas menu ── */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: var(--transition);
}
header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 14, 48, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1998;
}
.offcanvas-backdrop.open { opacity: 1; pointer-events: auto; }

.offcanvas-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  z-index: 1999;
  padding: 90px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.offcanvas-menu.open { transform: translateX(0); }
.offcanvas-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.offcanvas-links { list-style: none; }
.offcanvas-links li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.offcanvas-links a {
  display: block;
  padding: 16px 0;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: #fff;
}
.offcanvas-links a:hover { color: var(--accent); }
.offcanvas-cta { margin-top: 32px; justify-content: center; }
.offcanvas-contact {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.offcanvas-contact a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.offcanvas-contact a:hover { color: var(--accent); }

/* ── Hero — Full-width, ink overlay, chamfered search card ── */
.hero {
  position: relative;
  padding: 176px 0 110px;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 17, 112, 0.85) 0%, rgba(90, 32, 162, 0.6) 48%, rgba(59, 17, 112, 0.8) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero-content .section-label { color: var(--accent); }
.hero-content .section-label::before { background: var(--accent); }
.hero-content h1 {
  font-family: 'Fraunces', serif;
  font-size: 3.8rem;
  font-weight: 500;
  font-style: italic;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero split grid + property spotlight ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-spotlight {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
}
.spotlight-shape {
  position: absolute;
  top: -28px; right: -28px;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
  z-index: 0;
}
.spotlight-slides {
  position: relative;
  height: 460px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  z-index: 1;
  filter: drop-shadow(0 24px 50px rgba(26, 14, 48, 0.4));
}
.spotlight-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.spotlight-slide.active { opacity: 1; }
.spotlight-slide img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(26, 14, 48, 0.92) 0%, rgba(26, 14, 48, 0.1) 100%);
  padding: 24px 22px 20px;
  color: #fff;
}
.spotlight-price {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.spotlight-info h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.spotlight-specs { display: flex; gap: 12px; font-size: 0.78rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.4px; }
.spotlight-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; position: relative; z-index: 1; }
.spotlight-dots button {
  width: 22px; height: 4px;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.spotlight-dots button.active { background: var(--primary); width: 34px; }

/* ── Hero Search Bar ── */
.hero-search {
  background: var(--bg-light);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  padding: 22px 26px;
  display: flex;
  gap: 12px;
  align-items: end;
  filter: drop-shadow(0 20px 45px rgba(0,0,0,0.35));
  margin-top: 44px;
  max-width: 660px;
  flex-wrap: wrap;
  border-top: 3px solid var(--primary);
}
.hero-search .search-field {
  flex: 1;
  min-width: 140px;
}
.hero-search .search-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.hero-search .search-field select,
.hero-search .search-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-slate);
  transition: var(--transition);
  appearance: none;
}
.hero-search .search-field select:focus,
.hero-search .search-field input:focus {
  border-color: var(--primary);
  outline: none;
  background: #fff;
}
.hero-search .btn-primary {
  padding: 12px 28px;
  white-space: nowrap;
}

/* ── Stats Banner ── */
.stats-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 56px 0;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
  filter: grayscale(1) brightness(1.7);
  opacity: 0.6;
}

/* ── Section Alternating Backgrounds ── */
.bg-slate { background-color: var(--bg-slate); }
.bg-dark {
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
}
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* ── Property Listings Grid ── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.listing-card {
  background: #fff;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  filter: drop-shadow(0 4px 14px rgba(27,24,21,0.10));
  transition: var(--transition);
  position: relative;
}
.listing-card:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 20px 40px rgba(27,24,21,0.18));
}
.listing-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.listing-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.listing-card:hover .listing-img { transform: scale(1.08); }
.listing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59, 17, 112, 0.75) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}
.listing-card:hover .listing-overlay { opacity: 1; }
.listing-overlay .btn { font-size: 0.82rem; padding: 11px 24px; }
.listing-badge {
  position: absolute;
  top: 14px; left: 0;
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 2;
}
.listing-badge.rent { background: var(--secondary); }
.listing-price {
  position: absolute;
  bottom: 14px; right: 0;
  background: var(--ink);
  color: var(--accent);
  padding: 9px 18px;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.08rem;
  z-index: 2;
}
.listing-details { padding: 24px 22px 22px; }
.listing-title { font-size: 1.22rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.listing-address {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.listing-specs {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.listing-specs span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.listing-specs .spec-icon {
  width: 16px; height: 16px;
  fill: var(--primary);
}
.listing-action { width: 100%; margin-top: 14px; }

/* ── Property Management Highlight ── */
.pm-highlight-grid,
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── Milestones timeline (native scroll-snap, no library) ── */
.timeline-scroll {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  margin-top: 20px;
}
.timeline-item {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-top: 3px solid var(--primary);
  padding-top: 18px;
}
.timeline-year {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.timeline-item p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.pm-services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;
  margin-top: 24px;
}
.pm-services-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  color: var(--text-dark);
}
.pm-services-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  background: var(--primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Why Choose Us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  padding: 34px 28px;
  background: #fff;
  clip-path: polygon(0 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm), 100% 100%, 0 100%);
  filter: drop-shadow(0 2px 10px rgba(27,24,21,0.06));
  transition: var(--transition);
  position: relative;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--primary);
  transition: height 0.35s ease;
}
.why-card:hover::before { height: 100%; }
.why-card:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 14px 28px rgba(27,24,21,0.12));
}
.why-icon {
  width: 54px; height: 54px;
  background: var(--primary-soft);
  color: var(--primary);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

/* ── Testimonials ── */
.testimonials-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  clip-path: polygon(0 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm), 100% 100%, 0 100%);
  padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 20px;
  line-height: 1.6;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 42px; height: 42px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  color: #fff;
  font-size: 0.85rem;
}
.testimonial-name { font-weight: 700; color: #fff; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 84px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: rgba(255,255,255,0.04);
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  top: -220px; right: -120px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.03);
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  bottom: -160px; left: -90px;
}
.cta-banner h2 {
  color: #fff;
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Forms ── */
.form-container {
  background: #fff;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  padding: 46px;
  filter: drop-shadow(0 16px 40px rgba(27,24,21,0.12));
  border-top: 3px solid var(--primary);
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--ink);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-slate);
}
.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: #fff;
}

/* ── ROI Calculator ── */
.roi-calculator {
  background: #fff;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  padding: 46px;
  filter: drop-shadow(0 10px 26px rgba(27,24,21,0.1));
  border-top: 3px solid var(--primary);
}
.calculator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}
.calc-results {
  background: var(--primary-soft);
  clip-path: polygon(0 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm), 100% 100%, 0 100%);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.calc-result-val {
  font-size: 3rem;
  color: var(--primary-dark);
  font-weight: 600;
  font-family: 'Fraunces', serif;
  margin: 14px 0;
}

/* ── Agents Grid ── */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.agent-card {
  background: #fff;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  filter: drop-shadow(0 4px 14px rgba(27,24,21,0.08));
  transition: var(--transition);
}
.agent-card:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 20px 38px rgba(27,24,21,0.16));
}
.agent-img-wrapper {
  height: 300px;
  overflow: hidden;
  position: relative;
}
.agent-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.agent-card:hover .agent-img { transform: scale(1.05); }
.agent-social-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(27,24,21,0.88), transparent);
  padding: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.agent-card:hover .agent-social-overlay { opacity: 1; }
.agent-social-overlay a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
}
.agent-social-overlay a:hover { background: var(--primary); color: #fff; }
.agent-info { padding: 24px; }
.agent-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.agent-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.agent-bio { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.6; }
.agent-contact {
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agent-contact a { color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.agent-contact a:hover { color: var(--primary); }

/* ── Footer ── */
footer {
  background: var(--ink);
  color: #fff;
  padding: 74px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-logo span { color: var(--accent); }
.footer-about p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.7; }
.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}
.footer-contact-item .fc-icon {
  width: 18px; height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Newsletter */
.footer-newsletter p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 16px; }
.newsletter-form {
  display: flex;
  gap: 0;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.32); }
.newsletter-form input:focus { border-color: var(--primary); outline: none; }
.newsletter-form button {
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}
.newsletter-form button:hover { background: var(--primary-dark); }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.32);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.9rem; }
  .hero { padding: 130px 0 80px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-spotlight { max-width: 420px; margin: 0 auto; }
  .pm-highlight-grid, .story-grid, .calculator-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-grid > div:first-child { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  /* Overlay header only works as a slim single-row bar; on mobile
     the stacked nav grows tall enough to cover hero copy, so it
     reverts to a normal in-flow solid bar with a hamburger instead. */
  header, header.scrolled { position: static; background: #fff; box-shadow: 0 1px 0 var(--border-color); }
  header .logo { color: var(--primary-dark); }
  header .logo span { color: var(--primary-light); }
  header .nav-toggle span { background: var(--ink); }
  .navbar { height: auto; padding: 14px 0; }
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 40px 0 70px; }
  .hero-content h1 { font-size: 2.3rem; }
  .hero-spotlight { max-width: 340px; }
  .spotlight-slides { height: 380px; }
  .hero-search { flex-direction: column; }
  .hero-search .search-field { min-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-title { font-size: 2rem; }
  .testimonials-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.9rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-spotlight { max-width: 280px; }
  .spotlight-shape { top: -18px; right: -18px; }
  .spotlight-slides { height: 320px; }
  .listings-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2rem; }
  .timeline-item { flex-basis: 200px; }
}
