/* ── NORTH ALABAMA RELOCATION DIRECTORY — SHARED STYLES ── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@400;500&display=swap&display=swap');

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

:root {
  --navy:       #0D1B3E;
  --navy-light: #162D5E;
  --amber:      #E6A01E;
  --amber-dark: #C8860F;
  --bg:         #F5F1EB;
  --card:       #FFFFFF;
  --text:       #1A1A2E;
  --muted:      #6B6B6B;
  --border:     #E8E2D9;
  --teal:       #0F6E56;
  --teal-bg:    #E1F5EE;
  --warn:       #854F0B;
  --warn-bg:    #FAEEDA;
  --info:       #0C447C;
  --info-bg:    #E6F1FB;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ── NAV ── */
#site-nav {
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.nav-logo-top {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-logo-sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--amber); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  user-select: none;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle { color: #fff; background: rgba(255,255,255,0.07); }

.nav-dropdown-toggle svg { transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(13,27,62,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 7px 12px;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.12s;
}

.nav-dropdown-menu a:hover { background: var(--bg); color: var(--navy); }

.nav-dropdown-section {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.nav-mobile-menu a:hover { color: #fff; background: rgba(255,255,255,0.07); }

.nav-mobile-section {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 10px 14px 4px;
  margin-top: 4px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--navy);
  padding: 0.55rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.4);
}

.breadcrumb-inner a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.breadcrumb-inner a:hover { color: rgba(255,255,255,0.7); }
.breadcrumb-inner .current { color: rgba(255,255,255,0.65); }

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 3.5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,160,30,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--amber);
  opacity: 0.6;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero h1 em { font-style: italic; color: var(--amber); }

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 2.2rem;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 7px 16px;
}

.stat-pill-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.stat-pill-label { font-size: 0.75rem; color: rgba(255,255,255,0.48); letter-spacing: 0.04em; }

/* ── FILTER BAR ── */
.filter-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(13,27,62,0.05);
}

.filter-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-right: 4px;
  white-space: nowrap;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-count { margin-left: auto; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.filter-count strong { color: var(--text); font-weight: 500; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(13,27,62,0.09); border-color: #d8d0c5; }
.card.top-rated { border-color: rgba(230,160,30,0.25); }
.card.top-rated:hover { border-color: rgba(230,160,30,0.5); }

.top-badge {
  position: absolute;
  top: 13px; right: 13px;
  background: var(--amber);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  padding-right: 80px;
}

/* Stars */
.rating-row { display: flex; align-items: center; gap: 8px; }
.stars { display: flex; gap: 2px; }
.star { width: 13px; height: 13px; }
.rating-num { font-size: 0.85rem; font-weight: 500; color: var(--text); min-width: 28px; }
.rating-bar-wrap { flex: 1; height: 4px; background: #f0ece5; border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-dark)); border-radius: 4px; }

/* Phone / address rows */
.phone-row { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--muted); }
.phone-icon { width: 13px; height: 13px; flex-shrink: 0; color: var(--navy); opacity: 0.7; }

/* Notes */
.card-note { font-size: 0.75rem; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 6px 10px; line-height: 1.45; display: flex; align-items: flex-start; gap: 6px; }
.card-info { font-size: 0.75rem; color: var(--info); background: var(--info-bg); border-radius: 6px; padding: 6px 10px; line-height: 1.45; display: flex; align-items: flex-start; gap: 6px; }

/* Buttons */
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

.btn-primary {
  flex: 1;
  padding: 9px 0;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--navy-light); }

.btn-secondary {
  padding: 9px 16px;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s;
  white-space: nowrap;
}

.btn-secondary:hover { border-color: var(--navy); }

.btn-teal {
  padding: 9px 20px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  display: inline-block;
  text-align: center;
}

.btn-teal:hover { background: #0a5742; }

/* Type badges */
.type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}

/* Section headings */
.section-heading { display: flex; align-items: center; gap: 12px; margin: 2rem 0 1rem; }
.section-heading h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.divider-line { flex: 1; height: 1px; background: var(--border); }
.section-count { font-size: 0.78rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 100px; padding: 2px 10px; white-space: nowrap; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1rem; }

/* Main content wrapper */
.main { max-width: 1100px; margin: 0 auto; padding: 0 2rem 4rem; }

/* ── FOOTER ── */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.footer-brand-sub { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.75rem; }
.footer-brand-desc { font-size: 0.78rem; line-height: 1.6; color: rgba(255,255,255,0.38); max-width: 220px; }
.footer-col-title { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 0.9rem; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.15s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }
.footer-bottom-links { display: flex; gap: 1.25rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #site-nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 2.5rem 1rem; }
  .filter-bar-inner { padding: 0.75rem 1rem; }
  .main { padding: 0 1rem 3rem; }
  .breadcrumb { padding: 0.55rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 0.5rem; }
  .stat-pill { padding: 6px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
