/* ============================================================
   Certezza Reports — Shared Styles
   Matches the live certezzarealty.com brand exactly:
     - Dark navy 95%-opaque header w/ backdrop-filter blur
     - Real Certezza monogram logo (LeadConnector CDN)
     - Outfit display + DM Sans body (live site uses both)
     - Gold #C8A96E + Navy #0D1B2A palette
     - Faint gold hairline border under topbar
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

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

html, body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0D1B2A;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3, h4, .cr-display {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   TOPBAR — DARK NAVY (matches live certezzarealty.com)
   ══════════════════════════════════════════════════════════ */
.cr-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 97px;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 169, 110, 0.15);
}
.cr-topbar__inner {
  max-width: 1280px; height: 100%; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.cr-topbar__logo {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.cr-topbar__logo-img {
  width: 66px; height: 66px;
  display: block;
}
.cr-topbar__nav {
  display: flex; gap: 4px; align-items: center;
  flex: 1; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: 0.3px;
}
.cr-topbar__nav a {
  color: #FFFFFF;
  padding: 8px 14px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}
.cr-topbar__nav a:hover, .cr-topbar__nav a.active {
  color: #C8A96E;
  background: rgba(200, 169, 110, 0.08);
}
.cr-topbar__cta {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #C8A96E; color: #0D1B2A;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cr-topbar__cta:hover {
  background: #d4b87e; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(200, 169, 110, 0.3);
}

/* Spacer so page content doesn't sit under the fixed nav */
body { padding-top: 97px; }

@media (max-width: 960px) {
  .cr-topbar { height: 64px; }
  .cr-topbar__inner { padding: 0 18px; }
  .cr-topbar__logo-img { width: 44px; height: 44px; }
  .cr-topbar__nav { display: none; }
  body { padding-top: 64px; }
}

/* ══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.cr-anim {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.cr-anim--fade { transform: translateY(0); }
.cr-anim--left { transform: translateX(-40px); }
.cr-anim--right { transform: translateX(40px); }
.cr-anim.cr-visible { opacity: 1; transform: translate(0, 0); }
.cr-stagger > .cr-anim:nth-child(1) { transition-delay: 0.05s; }
.cr-stagger > .cr-anim:nth-child(2) { transition-delay: 0.12s; }
.cr-stagger > .cr-anim:nth-child(3) { transition-delay: 0.19s; }
.cr-stagger > .cr-anim:nth-child(4) { transition-delay: 0.26s; }
.cr-stagger > .cr-anim:nth-child(5) { transition-delay: 0.33s; }
.cr-stagger > .cr-anim:nth-child(6) { transition-delay: 0.40s; }

/* ══════════════════════════════════════════════════════════
   REPORT HERO
   ══════════════════════════════════════════════════════════ */
.cr-report__hero {
  position: relative;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #0D1B2A;
}
.cr-report__hero-bg {
  position: absolute; inset: 0;
  opacity: 0.4;
}
.cr-report__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.5) 0%, rgba(13,27,42,0.92) 100%);
}
.cr-report__hero-content {
  position: relative; z-index: 1;
  padding: 60px 24px;
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 60px;
}
.cr-report__hero-text { flex: 1; min-width: 0; }
.cr-report__breadcrumb {
  display: inline-block; font-size: 13px; color: rgba(255,255,255,0.5);
  margin-bottom: 16px; transition: color 0.2s;
}
.cr-report__breadcrumb:hover { color: #C8A96E; }
.cr-report__hero-tag {
  display: inline-block;
  background: rgba(200,169,110,0.12); border: 1px solid rgba(200,169,110,0.3);
  color: #C8A96E; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 16px;
}
.cr-report__hero h1 {
  color: #fff;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700; line-height: 1.15; margin-bottom: 14px;
}
.cr-report__hero h1 span { color: #C8A96E; }
.cr-report__hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 16px; line-height: 1.6; margin-bottom: 20px;
  max-width: 560px;
}
.cr-report__hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.cr-report__hero-meta span {
  color: rgba(255,255,255,0.5);
  font-size: 13px; display: flex; align-items: center; gap: 6px;
}
.cr-report__hero-meta strong { color: #C8A96E; font-weight: 600; }

/* Cover mockup */
.cr-report__cover-wrap {
  flex-shrink: 0; width: 240px;
}
.cr-report__cover {
  width: 240px; height: 310px;
  background: linear-gradient(135deg, #0D1B2A 0%, #162d44 100%);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(200,169,110,0.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px 24px; text-align: center;
  transform: perspective(800px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s;
  position: relative; overflow: hidden;
}
.cr-report__cover:hover { transform: perspective(800px) rotateY(0deg) rotateX(0deg); }
.cr-report__cover::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #C8A96E, #d4b87e, #C8A96E);
}
.cr-report__cover-logo {
  width: 40px; height: 40px; margin-bottom: 16px;
  border: 1px solid rgba(200,169,110,0.3); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #C8A96E; font-weight: 700;
  background: rgba(200,169,110,0.06);
}
.cr-report__cover-title {
  color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3;
  margin-bottom: 10px;
}
.cr-report__cover-sub {
  color: rgba(255,255,255,0.5); font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
}
.cr-report__cover-year {
  color: #C8A96E; font-size: 11px; font-weight: 600; margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════
   REPORT BODY
   ══════════════════════════════════════════════════════════ */
.cr-report__body {
  background: #F7F8FA;
  padding: 60px 24px;
}
.cr-report__body-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 50px; align-items: flex-start;
}

.cr-report__preview { flex: 1; min-width: 0; }
.cr-report__preview-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: #C8A96E; margin-bottom: 12px;
}
.cr-report__preview h2 {
  font-size: 24px; font-weight: 700; color: #0D1B2A;
  line-height: 1.3; margin-bottom: 16px;
}
.cr-report__preview-desc {
  font-size: 15px; line-height: 1.7; color: #5a6a7a;
  margin-bottom: 28px;
}
.cr-report__bullets { list-style: none; padding: 0; }
.cr-report__bullets li {
  font-size: 15px; line-height: 1.5; color: #0D1B2A;
  padding: 12px 0; padding-left: 32px;
  border-bottom: 1px solid rgba(13,27,42,0.06);
  position: relative;
}
.cr-report__bullets li::before {
  content: '✓';
  position: absolute; left: 0; top: 12px;
  color: #C8A96E; font-weight: 700; font-size: 16px;
}
.cr-report__bullets li:last-child { border-bottom: none; }

.cr-report__proof {
  margin-top: 28px; padding: 16px 20px;
  background: #fff; border-radius: 10px;
  border: 1px solid rgba(13,27,42,0.06);
  display: flex; align-items: center; gap: 12px;
}
.cr-report__proof-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(200,169,110,0.1); display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.cr-report__proof-text { font-size: 13px; color: #5a6a7a; line-height: 1.5; }
.cr-report__proof-text strong { color: #0D1B2A; }

/* ══════════════════════════════════════════════════════════
   FORM CARD
   ══════════════════════════════════════════════════════════ */
.cr-report__form-wrap {
  flex-shrink: 0; width: 380px;
  position: sticky; top: 90px;
}
.cr-report__form-card {
  background: #fff; border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(13,27,42,0.08), 0 0 0 1px rgba(13,27,42,0.04);
}
.cr-report__form-card h3 {
  font-size: 20px; font-weight: 700; color: #0D1B2A;
  margin-bottom: 6px; line-height: 1.3;
}
.cr-form-sub {
  font-size: 14px; color: #5a6a7a; margin-bottom: 24px; line-height: 1.5;
}
.cr-report__form-card label {
  display: block; font-size: 13px; font-weight: 600;
  color: #0D1B2A; margin-bottom: 6px;
}
.cr-report__form-card input[type="text"],
.cr-report__form-card input[type="email"],
.cr-report__form-card input[type="tel"] {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid #e0e4ea; border-radius: 10px;
  font-family: inherit; font-size: 15px;
  color: #0D1B2A; background: #F7F8FA;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none; margin-bottom: 16px;
}
.cr-report__form-card input:focus {
  border-color: #C8A96E;
  box-shadow: 0 0 0 3px rgba(200,169,110,0.12);
  background: #fff;
}
.cr-report__form-card input::placeholder { color: #a0aab4; }
.cr-report__form-btn {
  width: 100%; padding: 15px;
  background: #C8A96E; color: #0D1B2A;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  margin-top: 4px;
}
.cr-report__form-btn:hover {
  background: #d4b87e; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.3);
}
.cr-report__form-btn:active { transform: translateY(0); }
.cr-report__form-btn:disabled {
  opacity: 0.65; cursor: wait; transform: none; box-shadow: none;
}
.cr-report__form-error {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(231,76,60,0.08); border: 1px solid rgba(231,76,60,0.2);
  border-radius: 8px;
  color: #c0392b; font-size: 13px; line-height: 1.4;
  display: none;
}
.cr-report__form-error.show { display: block; }
.cr-report__form-privacy {
  text-align: center; font-size: 12px; color: #8a9bae;
  margin-top: 12px; line-height: 1.5;
}
.cr-report__form-privacy a { color: #C8A96E; }

.cr-report__form-success {
  display: none; text-align: center; padding: 20px 0;
}
.cr-report__form-success.active { display: block; }
.cr-report__form-success .check-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(39,174,96,0.1); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #27ae60;
}
.cr-report__form-success h4 {
  font-size: 18px; font-weight: 700; color: #0D1B2A; margin-bottom: 8px;
}
.cr-report__form-success p {
  font-size: 14px; color: #5a6a7a; line-height: 1.6; margin-bottom: 16px;
}
.cr-report__form-success .cta-link {
  display: inline-block; color: #C8A96E; font-weight: 600;
  font-size: 14px; border-bottom: 1px solid rgba(200,169,110,0.3);
  transition: border-color 0.25s;
}
.cr-report__form-success .cta-link:hover { border-color: #C8A96E; }

/* ══════════════════════════════════════════════════════════
   RELATED REPORTS (dark)
   ══════════════════════════════════════════════════════════ */
.cr-report__related {
  background: #0D1B2A; padding: 60px 24px;
}
.cr-report__related-inner { max-width: 1100px; margin: 0 auto; }
.cr-report__related-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: #C8A96E; margin-bottom: 8px;
  text-align: center;
}
.cr-report__related h2 {
  font-size: 28px; font-weight: 700; color: #fff;
  text-align: center; margin-bottom: 36px;
}
.cr-report__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.cr-report__related-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 24px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  display: block; cursor: pointer;
}
.cr-report__related-card:hover {
  border-color: rgba(200,169,110,0.3);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
}
.cr-report__related-card .card-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: #C8A96E; margin-bottom: 8px;
}
.cr-report__related-card h4 {
  font-size: 16px; font-weight: 600; color: #fff;
  line-height: 1.35; margin-bottom: 8px;
}
.cr-report__related-card p {
  font-size: 13px; color: #8a9bae; line-height: 1.5;
}
.cr-report__related-bottom {
  text-align: center; margin-top: 32px;
}
.cr-report__related-all {
  color: #C8A96E; font-weight: 600; font-size: 14px;
  border-bottom: 1px solid rgba(200,169,110,0.3); padding-bottom: 2px;
}

/* ══════════════════════════════════════════════════════════
   CATALOG PAGE (index.html)
   ══════════════════════════════════════════════════════════ */
.cr-cat-hero {
  background: linear-gradient(135deg, #0D1B2A 0%, #1a2f4d 100%);
  padding: 70px 24px 60px;
  color: #fff; text-align: center;
}
.cr-cat-hero__inner { max-width: 800px; margin: 0 auto; }
.cr-cat-hero__tag {
  display: inline-block;
  background: rgba(200,169,110,0.12); border: 1px solid rgba(200,169,110,0.3);
  color: #C8A96E; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 18px;
}
.cr-cat-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700; line-height: 1.1; margin-bottom: 16px;
  color: #fff;
}
.cr-cat-hero__sub {
  font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
}
.cr-cat-hero__meta {
  font-size: 13px; color: rgba(255,255,255,0.55);
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.cr-cat-hero__meta strong { color: #C8A96E; font-weight: 600; }

.cr-cat-section {
  padding: 50px 24px 80px;
  background: #F7F8FA;
}
.cr-cat-section__inner { max-width: 1200px; margin: 0 auto; }

.cr-cat-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px; justify-content: center;
}
.cr-cat-filter {
  padding: 10px 20px;
  background: #fff; color: #5a6a7a;
  border: 1.5px solid #e0e4ea; border-radius: 24px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.cr-cat-filter:hover {
  border-color: #C8A96E; color: #0D1B2A;
}
.cr-cat-filter.active {
  background: #0D1B2A; color: #fff; border-color: #0D1B2A;
}
.cr-cat-filter__count {
  font-size: 11px; padding: 1px 8px;
  background: rgba(200,169,110,0.18); color: #C8A96E;
  border-radius: 10px; font-weight: 700;
}
.cr-cat-filter.active .cr-cat-filter__count {
  background: rgba(200,169,110,0.25); color: #d4b87e;
}

.cr-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.cr-cat-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,27,42,0.06), 0 0 0 1px rgba(13,27,42,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.cr-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13,27,42,0.12), 0 0 0 1px rgba(200,169,110,0.2);
}
.cr-cat-card.cr-hide { display: none; }

.cr-cat-card__cover {
  padding: 28px 24px 32px;
  background: linear-gradient(135deg, #C8A96E 0%, #0D1B2A 100%);
  color: #fff;
  position: relative; min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cr-cat-card__tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.cr-cat-card__title {
  font-size: 18px; font-weight: 700; line-height: 1.25;
  color: #fff;
}
.cr-cat-card__body {
  padding: 18px 24px 22px;
  flex: 1; display: flex; flex-direction: column;
}
.cr-cat-card__category {
  font-size: 12px; color: #C8A96E; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.cr-cat-card__body p {
  font-size: 13px; color: #5a6a7a; line-height: 1.5;
  margin-bottom: 14px; flex: 1;
}
.cr-cat-card__cta {
  font-size: 13px; font-weight: 600; color: #C8A96E;
  align-self: flex-start;
  border-bottom: 1px solid rgba(200,169,110,0.3);
  padding-bottom: 1px;
}

.cr-cat-cta {
  background: #0D1B2A; padding: 60px 24px;
  text-align: center; color: #fff;
}
.cr-cat-cta__inner { max-width: 600px; margin: 0 auto; }
.cr-cat-cta h2 {
  font-size: 28px; font-weight: 700; color: #fff;
  margin-bottom: 12px;
}
.cr-cat-cta p {
  font-size: 15px; color: rgba(255,255,255,0.75);
  line-height: 1.6; margin-bottom: 24px;
}
.cr-cat-cta__btn {
  display: inline-block;
  padding: 15px 32px; background: #C8A96E; color: #0D1B2A;
  border-radius: 10px; font-size: 16px; font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}
.cr-cat-cta__btn:hover {
  background: #d4b87e; transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.cr-footer {
  background: #0a1420; color: rgba(255,255,255,0.6);
  padding: 40px 24px 28px;
  font-size: 13px;
}
.cr-footer__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start;
}
.cr-footer__brand {
  flex: 1; min-width: 220px; line-height: 1.7;
}
.cr-footer__brand strong { color: #fff; font-size: 15px; }
.cr-footer__brand a { color: #C8A96E; }
.cr-footer__links {
  flex: 1; min-width: 240px;
  display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px;
}
.cr-footer__links a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.cr-footer__links a:hover { color: #C8A96E; }
.cr-footer__copy {
  width: 100%; padding-top: 24px; margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cr-report__hero-content {
    flex-direction: column; text-align: center; gap: 30px;
    padding: 40px 20px;
  }
  .cr-report__hero-meta { justify-content: center; }
  .cr-report__cover-wrap { width: 180px; }
  .cr-report__cover {
    width: 180px; height: 232px; padding: 20px 16px; transform: none;
  }
  .cr-report__cover-title { font-size: 13px; }
  .cr-report__body-inner { flex-direction: column; gap: 30px; }
  .cr-report__form-wrap {
    width: 100%; position: static; order: -1;
  }
  .cr-report__related-grid { grid-template-columns: 1fr; }

  .cr-cat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
}

@media (max-width: 500px) {
  .cr-cat-grid { grid-template-columns: 1fr; }
  .cr-cat-filters { gap: 6px; }
  .cr-cat-filter { font-size: 12px; padding: 8px 14px; }
}
