/* ============================================
   PURECLOUDZ PROPERTIES — DESIGN SYSTEM
   Brand palette:
     - Forest green (primary, from logo)
     - Gold (accent, chosen for legibility on light backgrounds)
   ============================================ */
:root {
  /* Brand: forest green (was --navy) */
  --navy: #1e6644;
  --navy-deep: #103a26;
  /* Brand accent: gold */
  --gold: #c79a3e;
  --gold-light: #ddb866;

  --ivory: #f8f5ef;
  --cream: #efe9dd;
  --charcoal: #1a1a1a;
  --gray-700: #3a3a3a;
  --gray-500: #6b6b6b;
  --gray-300: #c8c8c8;
  --gray-100: #ececec;
  --white: #ffffff;

  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(16, 58, 38, 0.08);
  --shadow-md: 0 10px 30px rgba(16, 58, 38, 0.14);
  --shadow-lg: 0 30px 60px rgba(16, 58, 38, 0.22);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.75rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2.25rem, 3.8vw, 3.4rem); }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow.light { color: var(--gold-light); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--charcoal);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-block { width: 100%; }

.link-arrow {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.link-arrow:hover { color: var(--gold); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #f1f6ee; /* very light green — keeps the logo's red wordmark legible */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16, 58, 38, 0.08);
  transition: padding var(--transition), box-shadow var(--transition);
  padding: 18px 0;
}
.site-header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
}
.site-footer .brand { color: var(--white); }
.brand-logo {
  display: block;
  height: 110px;
  width: auto;
}
.site-header.scrolled .brand-logo {
  height: 88px;
  transition: height var(--transition);
}
.site-footer .brand-logo {
  height: 120px;
  background: var(--white);
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.brand-mark {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}
.site-header.scrolled .brand-name {
  font-size: 1.5rem;
  transition: font-size var(--transition);
}
.site-footer .brand-name {
  font-size: 2.1rem;
  color: var(--white);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-cta {
  padding: 10px 20px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--gold);
  color: var(--white) !important;
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  filter: brightness(0.85);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(16, 58, 38, 0.55) 0%,
    rgba(16, 58, 38, 0.4) 50%,
    rgba(16, 58, 38, 0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 200px 24px 100px;
  text-align: left;
}
.hero-title {
  margin: 0 0 24px;
  font-weight: 400;
}
.hero-sub {
  max-width: 560px;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-search {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  max-width: 900px;
  box-shadow: var(--shadow-lg);
  align-items: end;
}
.search-field {
  padding: 12px 18px;
  border-right: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.search-field input,
.search-field select {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--charcoal);
  outline: none;
  padding: 0;
}
.search-field select { cursor: pointer; }
.hero-search .btn { margin: 0 0 0 8px; height: 56px; padding: 0 32px; }

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stats span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 100px 0;
}
.section-quiet { background: var(--cream); }
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2 { color: var(--white); }

.section-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 56px;
  position: relative;
}
.section-head.center {
  text-align: center;
  align-items: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head .link-arrow {
  position: absolute;
  right: 0;
  bottom: 8px;
}
@media (max-width: 720px) {
  .section-head .link-arrow {
    position: static;
    margin-top: 16px;
  }
}

/* ============================================
   LISTINGS GRID & CARDS
   ============================================ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.listing-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
}
.listing-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.listing-badge.new { background: var(--gold); }
.listing-badge.sold { background: var(--gray-700); }
.listing-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.listing-favorite:hover { background: var(--white); transform: scale(1.08); }
.listing-favorite svg { width: 18px; height: 18px; stroke: var(--charcoal); }
.listing-favorite.active svg { fill: var(--gold); stroke: var(--gold); }
.listing-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.listing-price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.1;
}
.listing-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 4px;
}
.listing-location {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0 0 16px;
}
.listing-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-700);
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--gray-100);
}
.listing-meta span { display: flex; align-items: center; gap: 6px; }
.listing-meta strong { color: var(--navy); font-weight: 600; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.service-card {
  padding: 40px 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(184, 146, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.service-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  aspect-ratio: 3 / 4;
  background-image: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1000&q=80");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-text p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.75;
}
.signature {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-300);
}
.sig-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--navy);
  margin: 0;
}
.sig-title {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin: 4px 0 0;
}

/* ============================================
   VISION, MISSION & VALUES
   ============================================ */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.vmv-card {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.vmv-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin: 0 0 16px;
}
.vmv-card p {
  color: var(--gray-700);
  line-height: 1.75;
  margin: 0;
}
.vmv-values {
  margin-top: 48px;
  text-align: center;
}
.vmv-values h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin: 0 0 24px;
}
.values-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.values-list li {
  padding: 12px 28px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.testimonial {
  margin: 0;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.3;
}
.testimonial blockquote {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--charcoal);
  font-style: italic;
}
.testimonial figcaption {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}
.contact-list {
  margin-top: 32px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.contact-list span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: var(--charcoal);
}
.contact-form label {
  display: block;
  margin-bottom: 20px;
}
.contact-form label > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.12);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row label { margin-bottom: 20px; }
.form-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.form-note.success {
  background: rgba(34, 139, 87, 0.1);
  color: #1f6b48;
  border: 1px solid rgba(34, 139, 87, 0.3);
}
.form-note.error {
  background: rgba(196, 60, 60, 0.1);
  color: #a32d2d;
  border: 1px solid rgba(196, 60, 60, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 24px;
}
.site-footer .brand-name { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-tagline {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.site-footer ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================
   PAGE HERO (subpages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 240px 0 100px;
  text-align: center;
}
.page-hero h1 {
  margin: 0 0 16px;
  font-weight: 400;
}
.page-hero-sub {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  align-items: end;
}
.filter-bar .search-field { border-right: 1px solid var(--gray-100); }
.filter-bar .search-field:last-of-type { border-right: none; }
.filter-bar .btn { margin: 0 8px; height: 52px; }

.result-count {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--gray-500);
  font-style: italic;
  font-size: 1.1rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 58, 38, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  color: var(--white);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(0, 0, 0, 0.7); }
.modal-body { overflow-y: auto; }
.modal-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.modal-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 40px 0;
}
.modal-thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity var(--transition), border-color var(--transition);
}
.modal-thumb:hover { opacity: 1; }
.modal-thumb.active {
  opacity: 1;
  border-color: var(--gold);
}
.modal-content { padding: 32px 40px 40px; }
.modal-price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
}
.modal-title { font-size: 1.4rem; margin: 0 0 4px; color: var(--charcoal); }
.modal-location { color: var(--gray-500); margin-bottom: 24px; }
.modal-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 24px;
}
.modal-spec {
  text-align: center;
}
.modal-spec strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
}
.modal-spec span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.modal-description { color: var(--gray-700); line-height: 1.7; margin-bottom: 24px; }
.modal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.modal-features li {
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.modal-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav .nav-link { color: var(--charcoal); }
  .nav-cta { text-align: center; }

  .hero-search {
    grid-template-columns: 1fr;
  }
  .search-field { border-right: none !important; border-bottom: 1px solid var(--gray-100); }
  .search-field:last-of-type { border-bottom: none; }
  .hero-search .btn { margin: 8px; height: 48px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .hero-stats strong { font-size: 1.75rem; }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image { max-width: 400px; margin: 0 auto; }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .filter-bar .search-field { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .filter-bar .btn { grid-column: 1 / -1; margin: 8px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .section { padding: 64px 0; }
  .hero-content { padding: 180px 24px 80px; }
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 24px 20px; }
  .testimonial { padding: 28px; }
  .contact-form { padding: 28px; }
  /* Logo alone on very small screens; keep name in footer */
  .site-header .brand-name { display: none; }
  .brand-logo { height: 72px; }
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.listing-card { animation: fadeUp 0.6s ease both; }
.listing-card:nth-child(1) { animation-delay: 0.0s; }
.listing-card:nth-child(2) { animation-delay: 0.08s; }
.listing-card:nth-child(3) { animation-delay: 0.16s; }
.listing-card:nth-child(4) { animation-delay: 0.24s; }
.listing-card:nth-child(5) { animation-delay: 0.32s; }
.listing-card:nth-child(6) { animation-delay: 0.4s; }

/* ============================================
   PURECLOUDZ REAL ESTATE INVESTMENTS — BRAND & NEW SECTIONS
   (overrides + additions; loaded last so they win)
   ============================================ */

/* ---- Brand lockup ---- */
.brand { gap: 12px; }
.brand-logo { height: 54px; width: auto; }
.site-header.scrolled .brand-logo { height: 46px; }
.site-footer .brand-logo {
  height: 60px;
  background: var(--white);
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.brand-name {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--navy);
  white-space: nowrap;
}
.site-header.scrolled .brand-name { font-size: 1.4rem; }
.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}
.site-footer .brand-name { color: var(--white); font-size: 1.7rem; }
.site-footer .brand-sub { color: var(--gold-light); }

/* ---- Hero actions ---- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.hero-stats { margin-top: 56px; }

/* ---- Section intro ---- */
.section-intro {
  max-width: 660px;
  margin: 10px auto 0;
  color: var(--gray-700);
  font-size: 1.05rem;
}
.section-dark .section-intro { color: rgba(255, 255, 255, 0.82); }
.section-dark .section-intro strong { color: var(--white); }
.section-dark .section-head h2 { color: var(--white); }

/* ---- Trust section CTA ---- */
.trust-cta {
  margin-top: 48px;
  text-align: center;
}

/* ---- Listing badges & meta ---- */
.listing-badge.verified { background: var(--navy); }
.listing-badge.hot { background: #b4532b; }
.listing-meta { flex-wrap: wrap; gap: 14px 16px; }
.meta-roi { color: var(--gold); font-weight: 600; }

/* ---- Land banking ---- */
.land-banking { display: flex; justify-content: center; }
.lb-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-md);
  max-width: 940px;
  width: 100%;
}
.lb-term {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.lb-pos {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-500);
}
.lb-def {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 16px;
}
.lb-body {
  color: var(--gray-700);
  font-size: 1.05rem;
  max-width: 720px;
}
.lb-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.lb-step { border-top: 2px solid var(--cream); padding-top: 16px; }
.lb-step span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.lb-step strong { display: block; margin: 6px 0; color: var(--navy); font-size: 1.1rem; }
.lb-step p { font-size: 0.92rem; color: var(--gray-700); margin: 0; }

/* ---- Locations ---- */
.section-locations { background: var(--ivory); }
.locations-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.location-chip {
  background: var(--white);
  border: 1px solid var(--cream);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ---- Diaspora ---- */
.section-diaspora {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.diaspora-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.diaspora-text h2 { color: var(--white); }
.diaspora-text p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }
.diaspora-list { margin: 20px 0 12px; display: grid; gap: 12px; }
.diaspora-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.9);
}
.diaspora-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}
.diaspora-note { font-style: italic; color: rgba(255, 255, 255, 0.7) !important; font-size: 0.95rem; }
.diaspora-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: var(--charcoal);
}
.diaspora-form label { display: block; margin-bottom: 18px; }
.diaspora-form label > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.diaspora-form input,
.diaspora-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition);
}
.diaspora-form input:focus,
.diaspora-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 154, 62, 0.14);
}

/* ---- Modal: title / verification line ---- */
.modal-title-doc {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 22px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.modal-title-doc span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .diaspora-grid { grid-template-columns: 1fr; gap: 36px; }
  .lb-steps { grid-template-columns: 1fr; gap: 16px; }
  .lb-card { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .site-header .brand-name { display: none; }
}

/* ============================================
   MOBILE POLISH (loads last — wins)
   ============================================ */
/* Never allow sideways scrolling on small screens */
html, body { overflow-x: hidden; }
/* Long words / URLs wrap instead of overflowing */
p, a, h1, h2, h3, h4, li { overflow-wrap: break-word; word-wrap: break-word; }

/* Tablets and below */
@media (max-width: 768px) {
  /* Single-column cards prevent the 340px min from overflowing narrow viewports */
  .listings-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .hero-stats { gap: 24px; }
  .lb-card { padding: 28px 20px; }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }

  /* Cards stack in a single column on phones */
  .listings-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Tighten hero on phones */
  .hero-content { padding: 150px 18px 64px; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 20px 28px; }
  .hero-stats strong { font-size: 1.5rem; }

  /* Listings page filter bar: one control per row */
  .filter-bar { grid-template-columns: 1fr; }

  /* Forms and modals fit smaller screens */
  .diaspora-form { padding: 28px 22px; }
  .contact-form { padding: 24px 20px; }
  .modal-content { padding: 22px 18px; }

  /* Larger, easier tap targets */
  .nav-link { padding: 10px 0; }
  .btn { padding: 15px 26px; }

  /* Pills / chips wrap neatly */
  .values-list li, .location-chip { padding: 10px 20px; font-size: 0.95rem; }
}

/* Very small phones */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 2.4rem; }
  .brand-logo { height: 48px; }
}
