/* ═══════════════════════════════════════════════════════════
   Indy Property Guide — indypropertyguide.com
   Shared Stylesheet
   Brand: Your Realty Link | yourrealtylink.com
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --red:       #c03926;
  --red-dark:  #9e2e1e;
  --red-light: #f5ede9;
  --gray:      #6e6e70;
  --dark:      #1a1a1a;
  --mid:       #444;
  --light:     #f7f7f7;
  --border:    #e2e2e2;
  --white:     #ffffff;
  --green:     #2e7d32;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --radius: 8px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow: 0 2px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 6px 28px rgba(0,0,0,.13);
  --max: 1100px;
  --transition: .2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(1.65rem, 4vw, 2.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin: 2rem 0 .75rem; color: var(--red); }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
p  { margin-bottom: 1rem; }

/* ── LAYOUT ── */
.container { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 24px; }
.section    { padding: 56px 0; }
.section-alt { background: var(--light); }

/* ── HEADER ── */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo img { height: 40px; width: auto; }
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo-text .site-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .03em;
}
.site-logo-text .site-tagline {
  font-size: 11px;
  color: #aaa;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a, .nav-item-dropdown > a {
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  padding: 6px 10px;
  border-radius: 5px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.site-nav > a:hover, .nav-item-dropdown > a:hover { color: var(--white); background: rgba(255,255,255,.08); text-decoration: none; }

/* ── NAV DROPDOWNS ── */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item-dropdown > a::after {
  content: ' ▾';
  font-size: 9px;
  opacity: .6;
  letter-spacing: 0;
}
.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  min-width: 210px;
  padding: 10px 0 6px;
  z-index: 300;
  border: 1px solid rgba(0,0,0,.08);
  border-top: none;
}
/* Bridge: invisible hover zone fills any sub-pixel gap */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-item-dropdown:hover .nav-submenu { display: block; }
.nav-submenu a {
  display: block !important;
  padding: 9px 16px !important;
  color: var(--dark) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: none !important;
  border-radius: 0 !important;
  white-space: nowrap;
}
.nav-submenu a:hover { background: var(--light) !important; color: var(--red) !important; text-decoration: none !important; }
.nav-submenu-divider { height: 1px; background: var(--border); margin: 4px 0; }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 7px 14px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,.08); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #ccc;
  transition: var(--transition);
  pointer-events: none;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 12px;
  color: var(--gray);
}
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--red); text-decoration: none; }
.breadcrumbs span { margin: 0 6px; color: #bbb; }

/* ── HERO ── */
.page-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1a14 100%);
  color: var(--white);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c03926' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  margin-bottom: .75rem;
}
.page-hero h1 em { color: var(--red); font-style: normal; }
.page-hero .hero-sub {
  font-size: 1rem;
  color: #ccc;
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.hero-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #ddd;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* ── CONTENT LAYOUT ── */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
}
.content-main { min-width: 0; }
.content-sidebar { position: sticky; top: 80px; }

/* ── SIDEBAR CARDS ── */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-header {
  background: var(--red);
  color: var(--white);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sidebar-card-body { padding: 18px; }
.sidebar-card-body p { font-size: 14px; color: var(--mid); margin-bottom: .85rem; }
.contact-list { list-style: none; padding: 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border: none; margin-bottom: 0; }
.contact-list .icon { font-size: 14px; margin-top: 1px; }

/* ── CTA BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); text-decoration: none; }
.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover { background: var(--light); text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; margin-bottom: 10px; }

/* ── CTA BLOCK ── */
.cta-block {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 36px;
  margin: 40px 0;
  text-align: center;
}
.cta-block h2 { color: var(--white); font-size: 1.75rem; margin-bottom: .75rem; margin-top: 0; }
.cta-block h3 { color: var(--white); font-size: 1.3rem; margin-bottom: .5rem; margin-top: 0; }
.cta-block p { color: rgba(255,255,255,.88); font-size: 15px; margin-bottom: 1.75rem; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-block .btn-group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-block .btn-outline { color: var(--white); border-color: rgba(255,255,255,.6); }
.cta-block .btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.cta-block-light {
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--dark);
}
.cta-block-light h3 { color: var(--dark); }
.cta-block-light p { color: var(--gray); }

/* ── FAQ ── */
.faq-section { margin: 2.5rem 0; }
.faq-section h2 { color: var(--dark); }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background var(--transition);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--red);
  flex-shrink: 0;
  margin-left: 12px;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item[open] summary { background: var(--red-light); color: var(--red); }
.faq-answer {
  padding: 16px 20px 20px;
  font-size: 14px;
  color: var(--mid);
  border-top: 1px solid var(--border);
  background: #fafafa;
}

/* ── CITY GRID (county hub) ── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 1.25rem 0 2rem;
}
.city-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.city-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 5px;
  line-height: 1.2;
  padding-right: 24px;
}
.city-card p {
  font-size: .78rem;
  color: var(--gray);
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}
.city-card .arrow {
  position: absolute;
  top: 18px;
  right: 16px;
  color: var(--red);
  font-size: 14px;
  opacity: .5;
  transition: opacity var(--transition), transform var(--transition);
}
.city-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}
.city-card:hover h3 { color: var(--red); }
.city-card:hover .arrow { opacity: 1; transform: translateX(3px); }

/* ── INFO BOX ── */
.info-box {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 1.5rem 0;
  font-size: 14px;
}
.info-box strong { color: var(--red); }

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 1.75rem 0;
}
.stat-item {
  background: var(--light);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-item .stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  display: block;
}
.stat-item .stat-label {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* ── AUTHOR BOX (blog) ── */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 40px;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info h4 { font-size: 15px; margin-bottom: 2px; margin-top: 0; }
.author-info .author-title { font-size: 13px; color: var(--red); font-weight: 600; margin-bottom: 6px; }
.author-info p { font-size: 13px; color: var(--mid); margin-bottom: 0; }

/* ── POST META ── */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.post-meta .category-badge {
  background: var(--red);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── YOAST FIELDS BLOCK (admin reference) ── */
.yoast-ref {
  background: #fffbea;
  border: 1px solid #f0e06a;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 13px;
}
.yoast-ref h4 { margin: 0 0 10px; font-size: 13px; color: #856404; text-transform: uppercase; letter-spacing: .05em; }
.yoast-ref dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.yoast-ref dt { font-weight: 600; color: #856404; }
.yoast-ref dd { color: #555; }

/* ── FOOTER ── */
.site-footer {
  background: #f7f7f7;
  color: #444;
  padding: 56px 0 24px;
  border-top: 3px solid var(--red);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #6e6e70; line-height: 1.6; margin-bottom: 12px; }
.footer-col h4 {
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #6e6e70; font-size: 13px; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--red); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #e2e2e2;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #999;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: var(--red); text-decoration: none; }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-links a {
  width: 30px; height: 30px;
  background: #e8e8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 13px;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--red); color: var(--white); text-decoration: none; }

/* ── DIVIDER ── */
hr.divider { border: none; border-top: 2px solid var(--border); margin: 2.5rem 0; }

/* ── RESPONSIVE ── */

/* Tablet — sidebar collapses, footer 2-col */
@media (max-width: 960px) {
  .content-wrap { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav — hamburger replaces full nav */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--dark);
    padding: 80px 24px 48px;
    z-index: 99;
    gap: 0;
    overflow-y: auto;
  }
  .site-nav.open > a {
    font-size: 18px;
    padding: 14px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .site-nav.open .nav-item-dropdown {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,.07);
    width: 100%;
  }
  .site-nav.open .nav-item-dropdown > a {
    font-size: 18px;
    padding: 14px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .site-nav.open .nav-item-dropdown > a::after { content: ' ›'; }
  .site-nav.open .nav-item-dropdown.open > a::after { content: ' ↓'; }
  .site-nav.open .nav-submenu {
    display: none;
    position: static;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    box-shadow: none;
    border: none;
    width: 100%;
    margin-bottom: 8px;
    padding: 4px 0;
  }
  .site-nav.open .nav-item-dropdown.open .nav-submenu { display: block; }
  .site-nav.open .nav-submenu a {
    color: #ccc !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
  .site-nav.open .nav-submenu a:hover { color: var(--white) !important; background: rgba(255,255,255,.08) !important; }
  .site-nav.open .nav-cta {
    margin-top: 16px;
    justify-content: center;
    font-size: 16px !important;
    padding: 14px 24px !important;
    border-radius: var(--radius) !important;
  }
  .hamburger { display: flex; }
}

/* Small mobile */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-block { padding: 28px 20px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .btn { padding: 13px 20px; min-height: 44px; }
  .page-hero { padding: 40px 0 32px; }
  .section { padding: 40px 0; }
  h2 { font-size: 1.3rem; }
}

/* Extra small */
@media (max-width: 400px) {
  .stats-row { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr; }
}
