/* ============================================
   Chuck Fawcett Realty — Main Stylesheet
   68 Club Consulting
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; color: #222; background: #fff; }

/* ── NAV ── */
.cfr-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px;
}
.cfr-nav-logo img { height: 74px; display: block; }
.cfr-nav-links { display: flex; gap: 26px; align-items: center; }
.cfr-nav-links a { color: rgba(255,255,255,0.88); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.cfr-nav-links a:hover { color: #fff; }
.cfr-nav-cta {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.88); padding: 8px 22px; font-size: 14px;
  border-radius: 7px; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.cfr-nav-cta:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.85); color: #fff; }

/* HAMBURGER */
.cfr-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.cfr-hamburger span { display: block; width: 24px; height: 2px; background: rgba(255,255,255,0.88); border-radius: 2px; }
.cfr-mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #0d2240; z-index: 100; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 0;
}
.cfr-mobile-menu.open { display: flex; }
.cfr-mobile-menu a {
  color: rgba(255,255,255,0.88); text-decoration: none; font-size: 18px;
  width: 100%; text-align: left; padding: 14px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cfr-mobile-menu a:first-of-type { border-top: 1px solid rgba(255,255,255,0.07); }
.cfr-mobile-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.cfr-mobile-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 36px; cursor: pointer; line-height: 1;
}

/* ── HERO ── */
.cfr-hero {
  position: relative; min-height: 540px;
  background: #1b3a6b;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 110px 24px 72px;
}
.cfr-hero-bg {
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1568605114967-8130f3a36994?w=1600&q=80");
  background-size: cover; background-position: center; opacity: 0.22;
}
.cfr-hero-content { position: relative; z-index: 2; text-align: center; width: 100%; max-width: 660px; }
.cfr-hero-eyebrow {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 14px;
}
.cfr-hero-headline {
  font-family: Georgia, "Times New Roman", serif; font-size: 52px; font-weight: 400;
  color: #fff; line-height: 1.1; margin-bottom: 12px;
}
.cfr-hero-sub { font-size: 15px; color: rgba(255,255,255,0.62); margin-bottom: 28px; line-height: 1.6; }

/* SEARCH */
.cfr-search-wrap { width: 100%; }
.cfr-search-tabs { display: flex; margin-bottom: 0; }
.cfr-search-tab {
  padding: 9px 20px; font-size: 12px; cursor: pointer; font-family: inherit;
  border: none; transition: all 0.18s; white-space: nowrap;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6);
}
.cfr-search-tab:first-child { border-radius: 8px 0 0 0; }
.cfr-search-tab:last-child { border-radius: 0 8px 0 0; }
.cfr-search-tab.active { background: #fff; color: #1b3a6b; font-weight: 500; }
.cfr-search-bar {
  display: flex; align-items: center; background: #fff;
  border-radius: 0 8px 8px 8px; overflow: hidden;
  box-shadow: 0 12px 44px rgba(0,0,0,0.30); width: 100%;
}
.cfr-search-input {
  flex: 1; padding: 17px 20px; border: none; outline: none;
  font-size: 15px; color: #222; font-family: inherit; min-width: 0;
}
.cfr-search-input::placeholder { color: #aaa; }
.cfr-search-btn {
  padding: 0 28px; height: 56px; background: #1b3a6b; border: none;
  color: #fff; font-size: 14px; cursor: pointer; border-radius: 0 8px 8px 0;
  font-family: inherit; white-space: nowrap; flex-shrink: 0; transition: background 0.2s;
}
.cfr-search-btn:hover { background: #142d56; }
.cfr-search-adv { margin-top: 12px; text-align: left; }
.cfr-adv-link { color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: underline; cursor: pointer; }
.cfr-adv-link:hover { color: rgba(255,255,255,0.8); }

/* ── SHARED ── */
.cfr-eyebrow {
  font-family: Georgia, serif; font-style: italic;
  font-size: 14px; color: #c0392b; margin-bottom: 8px;
}
.cfr-section-title {
  font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 400;
  color: #1a1a1a; line-height: 1.2; margin-bottom: 8px;
}
.cfr-section-sub { font-size: 14px; color: #666; line-height: 1.65; margin-bottom: 24px; }
.cfr-btn-outline {
  display: inline-block; padding: 10px 24px;
  border: 1.5px solid #1b3a6b; color: #1b3a6b;
  font-size: 13px; border-radius: 7px; text-decoration: none;
  background: transparent; font-family: inherit; transition: all 0.2s; margin-top: 24px;
}
.cfr-btn-outline:hover { background: #1b3a6b; color: #fff; }

/* ── LISTINGS ── */
.cfr-listings-section { padding: 64px 56px; max-width: 1160px; margin: 0 auto; }
.cfr-listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cfr-listing-card { border: 1px solid #e8e3dc; border-radius: 10px; overflow: hidden; }
.cfr-listing-img {
  height: 150px; display: flex; align-items: center; justify-content: center;
  position: relative; font-size: 11px; color: #bbb;
}
.cfr-listing-badge {
  position: absolute; top: 10px; left: 10px;
  background: #1b3a6b; color: #fff; font-size: 10px; border-radius: 5px; padding: 3px 8px;
}
.cfr-listing-body { padding: 16px 18px; }
.cfr-listing-price { font-family: Georgia, serif; font-size: 19px; color: #1b3a6b; }
.cfr-listing-addr { font-size: 13px; color: #555; margin-top: 4px; }
.cfr-listing-details { font-size: 11px; color: #999; margin-top: 3px; }

/* ── SELLER CTA ── */
.cfr-seller-section { background: #1b3a6b; padding: 72px 56px; text-align: center; }
.cfr-seller-eyebrow {
  font-family: Georgia, serif; font-style: italic;
  font-size: 15px; color: rgba(255,255,255,0.45); margin-bottom: 12px;
}
.cfr-seller-title {
  font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 400;
  color: #fff; line-height: 1.15; margin-bottom: 12px;
}
.cfr-seller-sub {
  font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 32px;
  max-width: 440px; margin-left: auto; margin-right: auto;
}
.cfr-seller-btn {
  display: inline-block; padding: 14px 36px; background: #fff; color: #1b3a6b;
  font-size: 14px; border-radius: 8px; cursor: pointer; border: none;
  font-family: inherit; font-weight: 500; text-decoration: none; transition: background 0.2s;
}
.cfr-seller-btn:hover { background: #f0ece6; }

/* ── TRUST ROW ── */
.cfr-trust-row {
  background: #faf8f5; border-top: 1px solid #ece8e2; border-bottom: 1px solid #ece8e2;
  display: flex; justify-content: center;
}
.cfr-trust-row-inner {
  display: flex; max-width: 860px; width: 100%;
}
.cfr-trust-item {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 28px 32px; border-right: 1px solid #ece8e2; flex: 1;
}
.cfr-trust-item:last-child { border-right: none; }
.cfr-trust-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: #eef2f9; border: 1px solid #d8e2f0;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cfr-trust-icon svg { width: 18px; height: 18px; stroke: #1b3a6b; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cfr-trust-num { font-family: Georgia, serif; font-size: 16px; color: #1b3a6b; line-height: 1.2; }
.cfr-trust-label { font-size: 12px; color: #888; margin-top: 2px; line-height: 1.4; }

/* ── AGENTS ── */
.cfr-section { padding: 64px 56px; max-width: 1160px; margin: 0 auto; }
.cfr-agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.cfr-agent-card {
  border: 1px solid #dce4f0; border-radius: 10px; overflow: hidden;
  text-align: center; padding-bottom: 20px; background: #fff;
  box-shadow: 0 1px 3px rgba(27,58,107,0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cfr-agent-card:hover {
  border-color: #9fb4d4; box-shadow: 0 6px 20px rgba(27,58,107,0.13);
  transform: translateY(-2px);
}
.cfr-agent-photo-wrap {
  height: 148px; background: #dce5f0;
  display: flex; align-items: center; justify-content: center;
}
.cfr-agent-photo-wrap { position: relative; height: 240px; overflow: hidden; }
.cfr-agent-photo-wrap svg { width: 48px; height: 48px; stroke: #9aafcb; fill: none; stroke-width: 1.2;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1; }
.cfr-agent-photo-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%; z-index: 2; }
.cfr-agent-name { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-top: 14px; padding: 0 12px; }
.cfr-agent-role { font-size: 11px; color: #999; margin-top: 4px; padding: 0 12px; line-height: 1.5; }
.cfr-agent-link { font-size: 12px; color: #1b3a6b; margin-top: 10px; display: block; text-decoration: none; }
.cfr-agent-link:hover { text-decoration: underline; }

/* ── OFFICES ── */
.cfr-offices-outer { background: #faf8f5; padding: 64px 0; }
.cfr-offices-inner { max-width: 1160px; margin: 0 auto; padding: 0 56px; }
.cfr-offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.cfr-office-card {
  background: #fff; border: 1px solid #e8e3dc; border-radius: 10px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 5px;
}
.cfr-office-city { font-family: Georgia, serif; font-size: 17px; color: #1b3a6b; margin-bottom: 4px; }
.cfr-office-addr { font-size: 13px; color: #555; line-height: 1.7; }
.cfr-office-phone { font-size: 13px; color: #1b3a6b; font-weight: 500; }
.cfr-office-fb { font-size: 12px; color: #c0392b; text-decoration: none; }
.cfr-office-fb:hover { text-decoration: underline; }

/* ── FOOTER ── */
.cfr-footer { background: #0d2240; padding: 56px 56px 32px; }
.cfr-footer-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; }
.cfr-footer-logo img { height: 52px; display: block; }
.cfr-footer-tagline { font-size: 13px; color: rgba(255,255,255,0.42); margin-top: 16px; line-height: 1.75; }
.cfr-footer-social { margin-top: 20px; display: flex; gap: 10px; }
.cfr-footer-social a {
  color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15); padding: 5px 16px; border-radius: 6px; transition: all 0.2s;
}
.cfr-footer-social a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.cfr-footer-col-title { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 16px; }
.cfr-footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.58); text-decoration: none; margin-bottom: 10px; }
.cfr-footer-col a:hover { color: #fff; }
.cfr-footer-col p { font-size: 13px; color: rgba(255,255,255,0.58); line-height: 1.8; }
.cfr-footer-bottom {
  max-width: 1160px; margin: 36px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: center;
}
.cfr-footer-copy { font-size: 12px; color: rgba(255,255,255,0.28); }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }


/* ── IDX WIDGET OVERRIDES ── */
.cfr-idx-widget-wrap { width: 100%; }

/* Card grid */
.cfr-idx-widget-wrap .idx-listings-showcase__properties {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  padding: 0 !important;
}

/* Individual card */
.cfr-idx-widget-wrap .idx-property-card__wrap {
  border: 1px solid #e8e3dc !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  background: #fff !important;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
.cfr-idx-widget-wrap .idx-property-card__wrap:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10) !important;
  transform: translateY(-2px) !important;
}

/* Image */
.cfr-idx-widget-wrap .idx-property-card__image--wrap {
  height: 200px !important;
  overflow: hidden !important;
  display: block !important;
  border-radius: 10px 10px 0 0 !important;
}
.cfr-idx-widget-wrap .idx-property-card__image--wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Details area below image */
.cfr-idx-widget-wrap .idx-property-card__details {
  padding: 14px 16px 6px !important;
}

/* Price */
.cfr-idx-widget-wrap .idx-property-card__details [class*="price"],
.cfr-idx-widget-wrap .idx-property-card__details [class*="Price"] {
  font-family: Georgia, "Times New Roman", serif !important;
  color: #1b3a6b !important;
  font-size: 19px !important;
  font-weight: 400 !important;
}

/* Address */
.cfr-idx-widget-wrap .idx-property-card__details [class*="address"],
.cfr-idx-widget-wrap .idx-property-card__details [class*="Address"] {
  font-size: 12px !important;
  color: #555 !important;
}

/* MLS courtesy logo */
.cfr-idx-widget-wrap .idx-property-card__mls {
  display: none !important;
}

/* All links */
.cfr-idx-widget-wrap a { color: #1b3a6b !important; text-decoration: none !important; }

@media (max-width: 900px) {
  .cfr-idx-widget-wrap .idx-listings-showcase__properties {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 520px) {
  .cfr-idx-widget-wrap .idx-listings-showcase__properties {
    grid-template-columns: 1fr !important;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cfr-nav { padding: 18px 24px; }
  .cfr-nav-logo img { height: 52px; }
  .cfr-nav-links { display: none; }
  .cfr-hamburger { display: flex; }
  .cfr-hero { min-height: 500px; padding: 90px 20px 56px; }
  .cfr-hero-headline { font-size: 34px; }
  .cfr-hero-sub { font-size: 14px; }
  .cfr-listings-section { padding: 48px 24px; }
  .cfr-listings-grid { grid-template-columns: 1fr 1fr; }
  .cfr-seller-section { padding: 56px 24px; }
  .cfr-seller-title { font-size: 28px; }
  .cfr-trust-row-inner { flex-direction: column; width: 100%; }
  .cfr-trust-item { border-right: none; border-bottom: 1px solid #ece8e2; padding: 20px 24px; justify-content: flex-start; }
  .cfr-trust-item:last-child { border-bottom: none; }
  .cfr-section { padding: 48px 24px; }
  .cfr-agents-grid { grid-template-columns: 1fr 1fr; }
  .cfr-offices-inner { padding: 0 24px; }
  .cfr-offices-grid { grid-template-columns: 1fr 1fr; }
  .cfr-footer { padding: 48px 24px 28px; }
  .cfr-footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .cfr-hero-headline { font-size: 28px; }
  .cfr-listings-grid { grid-template-columns: 1fr; }
  .cfr-agents-grid { grid-template-columns: 1fr 1fr; }
  .cfr-offices-grid { grid-template-columns: 1fr 1fr; }
}


/* ── HOMEPAGE QUICK LINKS ── */
.cfr-quick-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; margin-top: 32px; padding-top: 26px; border-top: 1px solid #ece8e2;
}
.cfr-quick-label {
  font-family: Georgia, serif; font-style: italic; font-size: 14px;
  color: #8a8a8a; margin-right: 6px;
}
.cfr-quick-links a {
  font-size: 13px; color: #1b3a6b; text-decoration: none;
  border: 1px solid #dce4f0; border-radius: 20px; padding: 8px 18px;
  background: #fff; transition: all 0.18s;
}
.cfr-quick-links a:hover {
  background: #1b3a6b; color: #fff; border-color: #1b3a6b;
}
@media (max-width: 620px) {
  .cfr-quick-links { gap: 8px; }
  .cfr-quick-label { width: 100%; text-align: center; margin: 0 0 4px; }
  .cfr-quick-links a { padding: 7px 14px; font-size: 12px; }
}
