/* ============================================================
   INTEGRITY INVESTMENTS — Main Stylesheet
   Colors: Navy #1A4892 · Light Blue #ACC6F0 · White #FFFFFF
   Type: Barlow Condensed (display) · Inter (body)
   ============================================================ */

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

:root {
  --navy:       #1A4892;
  --navy-dark:  #112f61;
  --navy-deep:  #0c2147;
  --blue-light: #ACC6F0;
  --blue-pale:  #e8f0fb;
  --white:      #ffffff;
  --gray-50:    #f8f9fb;
  --gray-100:   #f0f2f7;
  --gray-300:   #c8cdd8;
  --gray-500:   #7a8299;
  --gray-700:   #3d4561;
  --text:       #1a2035;
  --text-muted: #5a6380;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(26,72,146,0.10);
  --shadow-md:  0 4px 16px rgba(26,72,146,0.13);
  --shadow-lg:  0 8px 32px rgba(26,72,146,0.18);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-w: 1160px;
  --section-gap: 96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
}

.btn--nav {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  font-size: 14px;
  padding: 10px 22px;
}
.btn--nav:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.btn--full { width: 100%; }

.btn--sm {
  font-size: 13px;
  padding: 10px 18px;
}

/* ── Logo ── */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-integrity {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--white);
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-top: 2px;
}
.logo-text--light .logo-integrity { color: var(--white); }

/* ── Section typography ── */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.section-label--light { color: var(--blue-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 32px;
}
.section-title--light { color: var(--white); }

.section-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(172,198,240,0.15);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__logo { display: flex; align-items: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(172,198,240,0.18) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 88px 0 80px;
}
.hero__inner { max-width: 760px; }

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero__sub {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__stat {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.hero__divider {
  width: 1px;
  height: 36px;
  background: rgba(172,198,240,0.3);
}

/* ============================================================
   THE DEAL
   ============================================================ */
.deal {
  padding: var(--section-gap) 0;
  background: var(--white);
}
.deal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.deal__card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.deal__icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.deal__card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.deal__card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  padding: var(--section-gap) 0;
  background: var(--navy-deep);
}
.steps .section-label { color: var(--blue-light); }
.steps .section-title { color: var(--white); }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid rgba(172,198,240,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.steps__item {
  display: flex;
  gap: 20px;
  padding: 32px 28px;
  border-right: 1px solid rgba(172,198,240,0.12);
  border-bottom: 1px solid rgba(172,198,240,0.12);
}
.steps__item:nth-child(4n) { border-right: none; }
.steps__item:nth-last-child(-n+4) { border-bottom: none; }

.steps__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: rgba(172,198,240,0.25);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}
.steps__content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}
.steps__content p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
}

/* ============================================================
   PROPERTIES
   ============================================================ */
.properties {
  padding: var(--section-gap) 0;
  background: var(--gray-50);
}

.prop__filters {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.prop__filter-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 99px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.prop__filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.prop__filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.prop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  min-height: 200px;
}

.prop__loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 15px;
  padding: 60px 0;
}
.prop__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-300);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Property Card */
.prop__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s, transform 0.2s;
}
.prop__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.prop__photo-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4/3;
}
.prop__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.prop__card:hover .prop__photo {
  transform: scale(1.03);
}

/* Photo nav controls */
.prop__photos-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.55);
  border-radius: 99px;
  padding: 4px 12px;
  color: #fff;
  font-size: 12px;
}
.prop__photo-prev,
.prop__photo-next {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.prop__photo-prev:hover,
.prop__photo-next:hover { opacity: 1; }
.prop__photo-count { font-size: 11px; color: rgba(255,255,255,0.8); }

/* Status badge */
.prop__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.prop__badge--available  { background: #16a34a; color: #fff; }
.prop__badge--coming_soon { background: #d97706; color: #fff; }
.prop__badge--sold        { background: rgba(0,0,0,0.45); color: rgba(255,255,255,0.85); }

/* Sold overlay */
.prop__card--sold .prop__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,32,53,0.30);
}

.prop__info { padding: 18px 20px 20px; }

.prop__address {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.prop__details {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.prop__detail {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.prop__detail:not(:last-child)::after {
  content: '·';
  margin-left: 14px;
  color: var(--gray-300);
}

.prop__down {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.prop__cta-link {
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 100%;
  text-align: center;
}
.prop__cta-link:hover { background: var(--navy-dark); }

.prop__cta {
  margin-top: 48px;
  text-align: center;
}
.prop__cta p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 16px;
}

.prop__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}
.prop__empty h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--section-gap) 0;
  background: var(--white);
}

.testi__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testi__card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.testi__card--placeholder {
  border: 2px dashed var(--gray-300);
  background: transparent;
  opacity: 0.5;
}

.testi__quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 0.6;
  margin-bottom: 20px;
}
.testi__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}
.testi__author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.testi__author-city {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   LEAD CAPTURE
   ============================================================ */
.capture {
  padding: var(--section-gap) 0;
  background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.capture__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.capture__copy p {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  line-height: 1.7;
  margin-top: -16px;
}

.capture__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.form__group {
  margin-bottom: 18px;
}
.form__group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form__group input,
.form__group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.form__group input:focus,
.form__group select:focus {
  outline: none;
  border-color: var(--navy);
}
.form__group input::placeholder { color: var(--gray-500); }
.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a8299' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form__fine {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

.form__success {
  text-align: center;
  padding: 20px 0;
}
.form__success-icon {
  width: 56px;
  height: 56px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 20px;
}
.form__success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  margin-bottom: 8px;
}
.form__success p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  padding: 56px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(172,198,240,0.12);
  flex-wrap: wrap;
}

.footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.48);
  margin-top: 10px;
}

.footer__links {
  display: flex;
  gap: 48px;
}
.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col li {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.footer__col a {
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer__disclaimer { font-style: italic; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-gap: 72px; }

  .capture__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps__grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps__item:nth-child(2n) { border-right: none; }
  .steps__item:nth-child(n+3) { border-bottom: none; }
  .steps__item:nth-child(1),
  .steps__item:nth-child(2) { border-bottom: 1px solid rgba(172,198,240,0.12); }
}

@media (max-width: 640px) {
  :root { --section-gap: 56px; }

  .hero { padding: 56px 0 52px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }

  .steps__grid { grid-template-columns: 1fr; }
  .steps__item { border-right: none; border-bottom: 1px solid rgba(172,198,240,0.12); }
  .steps__item:last-child { border-bottom: none; }

  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

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

  .capture__form-wrap { padding: 28px 20px; }

  .hero__proof { gap: 16px; }
  .hero__divider { display: none; }
}

/* ============================================================
   PROPERTIES CTA SECTION (homepage)
   ============================================================ */
.prop-cta-section {
  padding: var(--section-gap) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.prop-cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.prop-cta-section__copy p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-top: -16px;
}
.prop-cta-section__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.prop-cta-section__sub {
  font-size: 12px;
  color: var(--gray-500);
}
.btn--lg {
  font-size: 17px;
  padding: 18px 36px;
}

@media (max-width: 700px) {
  .prop-cta-section__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .prop-cta-section__action {
    align-items: flex-start;
  }
}


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

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PAGE HEADER (properties page)
   ============================================================ */
.page-header {
  background: var(--navy);
  background-image: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 48px 0 52px;
}
.page-header__back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 16px;
  transition: color 0.15s;
}
.page-header__back:hover { color: var(--white); }
.page-header__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 12px;
}
.page-header__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.65;
}

.properties {
  padding: 48px 0 var(--section-gap);
}
