/* =============================================
   CENTRAL INDIANA REAL ESTATE — SHARED STYLES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  --cream:     #F7F4EF;
  --cream-alt: #EDE8E0;
  --bark:      #2C2418;
  --bark-mid:  #5C5040;
  --sage:      #7A8C6E;
  --sage-lt:   #A8B89C;
  --gold:      #C4983A;
  --gold-lt:   #E8C870;
  --warm-gray: #E0DAD0;
  --mid-gray:  #9E9890;
  --white:     #FFFFFF;

  --nav-height: 72px;
  --radius:     4px;
  --radius-lg:  8px;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --shadow-sm: 0 2px 12px rgba(44,36,24,0.07);
  --shadow-md: 0 8px 32px rgba(44,36,24,0.10);
  --shadow-lg: 0 20px 60px rgba(44,36,24,0.14);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--bark);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ─── UTILITY ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--bark);
}
.section-title em { font-style: italic; color: var(--sage); }

.btn-primary {
  display: inline-block;
  background: var(--bark);
  color: var(--cream);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--bark);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-primary:hover { background: var(--bark-mid); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--bark);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--bark);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: var(--bark); color: var(--cream); }

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  transition: opacity 0.2s ease;
}
.btn-gold:hover { opacity: 0.88; }

/* ─── NAVIGATION ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(247,244,239,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--warm-gray);
  transition: box-shadow 0.3s ease;
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.nav-logo-main {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--bark);
  letter-spacing: 0.01em;
}
.nav-logo-sub {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
  font-weight: 400;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bark-mid);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--bark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 12px; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bark);
  transition: all 0.3s ease;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--warm-gray);
  padding: 24px 40px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bark-mid);
  padding: 8px 0;
  border-bottom: 1px solid var(--warm-gray);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ─── PAGE WRAPPER ─── */
.page-content { padding-top: var(--nav-height); }

/* ─── LISTING CARDS ─── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--warm-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-photo {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-photo-placeholder svg { opacity: 0.18; }
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.listing-card:hover .card-photo img,
.listing-card:hover .card-photo-placeholder { filter: brightness(0.95); }
.status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  z-index: 2;
}
.badge-active   { background: var(--sage);  color: #fff; }
.badge-pending  { background: var(--gold);  color: #fff; }
.badge-sold     { background: var(--bark);  color: var(--cream); }
.badge-coming-soon { background: var(--white); color: var(--bark); border: 1px solid var(--bark); }
.save-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease;
}
.save-btn:hover { background: #fff; }
.price-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 18px 14px;
  background: linear-gradient(to top, rgba(20,15,8,0.72) 0%, transparent 100%);
}
.list-price {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.price-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  margin-top: 2px;
}
.card-body { padding: 16px 18px 18px; }
.card-address {
  font-size: 14px;
  font-weight: 500;
  color: var(--bark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-city {
  font-size: 12px;
  color: var(--mid-gray);
  font-weight: 300;
  margin-bottom: 14px;
}
.specs-row {
  display: flex;
  border-top: 1px solid var(--warm-gray);
  border-bottom: 1px solid var(--warm-gray);
  margin-bottom: 12px;
}
.spec-item {
  flex: 1;
  padding: 9px 0;
  text-align: center;
  border-right: 1px solid var(--warm-gray);
}
.spec-item:last-child { border-right: none; }
.spec-value {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--bark);
  display: block;
  line-height: 1;
}
.spec-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid-gray);
  font-weight: 500;
  display: block;
  margin-top: 3px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-neighborhood { font-size: 11px; color: var(--sage); font-weight: 500; }
.card-meta { font-size: 11px; color: var(--mid-gray); font-weight: 300; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bark);
  color: var(--cream);
  padding: 64px 0 32px;
  margin-top: 100px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247,244,239,0.12);
  margin-bottom: 32px;
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 13px;
  color: rgba(247,244,239,0.55);
  line-height: 1.7;
  max-width: 260px;
}
.footer-col-title {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(247,244,239,0.65);
  transition: color 0.2s ease;
}
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(247,244,239,0.4);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeUp 0.6s ease both; }

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--warm-gray);
  background: transparent;
  color: var(--mid-gray);
  transition: all 0.2s ease;
}
.filter-pill:hover { border-color: var(--bark); color: var(--bark); }
.filter-pill.active { background: var(--bark); color: var(--cream); border-color: var(--bark); }

/* ─── SECTION DIVIDER ─── */
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 18px 0 28px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner { padding: 0 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 600px) {
  .section-title { font-size: 32px; }
  .listing-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  body { font-size: 14px; }
}

/* ─── SOCIAL ICONS ─── */
.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247,244,239,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,244,239,0.6);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(196,152,58,0.08);
}
.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 8px; align-items: center; }
.nav-social {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: 16px;
}
.nav-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  transition: all 0.2s ease;
}
.nav-social-link:hover { border-color: var(--gold); color: var(--gold); }
.nav-social-link svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 768px) { .nav-social { display: none; } }
