/* ==========================================================================
   Eagle Properties Group - Unified Master Stylesheet (site.css)
   Mobile-First Responsive Design | Auburn, Opelika & Lee County, AL
   ========================================================================== */

:root {
  --navy: #0b2545;
  --navy-dark: #06172d;
  --blue: #1e3a8a;
  --blue-soft: #eff6ff;
  --gold: #d97706;
  --gold-hover: #b45309;
  --gold-light: #fbbf24;
  --text: #1e293b;
  --muted: #475569;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--gold-hover);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* ==========================================================================
   Top Contact Bar
   ========================================================================== */

.top-bar {
  background-color: var(--navy-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.55rem 0;
}

.top-bar a,
.top-bar a:visited {
  color: #e2e8f0;
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--gold-light);
}

.top-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

.top-contact, .top-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

/* ==========================================================================
   Header & Mobile-First Navigation
   ========================================================================== */

.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  position: relative;
}

.logo-link, .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo, .brand-logo {
  height: 54px;
  width: auto;
}

.nav-toggle, .menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px;
  cursor: pointer;
}

.nav-toggle span, .hamburger-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--navy);
  border-radius: 2px;
}

.main-nav, .primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-bottom: 3px solid var(--navy);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.main-nav.open, .primary-nav.is-open {
  display: block;
}

.main-nav ul, .nav-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.main-nav li, .nav-list > li {
  border-bottom: 1px solid #f1f5f9;
}

.main-nav li:last-child, .nav-list > li:last-child {
  border-bottom: none;
}

.main-nav a, .nav-list a, .dropdown-toggle {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.main-nav a:visited, .nav-list a:visited {
  color: var(--navy);
}

.main-nav a:hover,
.main-nav a.active,
.nav-list a:hover,
.nav-list a.active,
.dropdown-toggle:hover {
  background-color: var(--bg-light);
  color: var(--gold);
}

.main-nav .dropdown, .dropdown-menu {
  list-style: none;
  padding: 0 0 0.5rem 1rem;
  background-color: #f8fafc;
}

.main-nav .dropdown a, .dropdown-menu a {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================================================
   Home Hero & Subpage Hero
   ========================================================================== */

.hero,
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 62%, var(--blue) 100%);
  color: var(--white);
  padding: 3.25rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-image img,
.hero-media img {
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.18);
  width: 100%;
  object-fit: cover;
}

.badge, .hero-eyebrow {
  display: inline-block;
  background-color: rgba(251, 191, 36, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(251, 191, 36, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.hero h1,
.page-hero h1 {
  margin: 0.25rem 0 0.85rem;
  font-size: 2.05rem;
  line-height: 1.2;
  color: var(--white);
}

.hero p,
.page-hero p {
  margin: 0 0 1.25rem;
  color: #e2e8f0;
  font-size: 1.06rem;
  max-width: 760px;
}

.page-hero p:last-child {
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.breadcrumb a,
.breadcrumb a:visited {
  color: var(--gold-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Buttons & Hero CTA Links (Explicit :visited rules so links never wash out)
   ========================================================================== */

.btn-group,
.hero-actions,
.hero-buttons,
.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.btn,
.btn:visited,
.btn-primary,
.btn-primary:visited,
.btn-primary-gold,
.btn-primary-gold:visited,
.btn-gold,
.btn-gold:visited,
.hero-actions a:first-child,
.hero-actions a:first-child:visited,
.hero-buttons a:first-child,
.hero-buttons a:first-child:visited {
  display: inline-block;
  background-color: var(--gold);
  color: var(--white) !important;
  padding: 0.82rem 1.45rem;
  border-radius: 6px;
  border: 2px solid var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  text-align: center;
}

.btn:hover,
.btn-primary:hover,
.btn-primary-gold:hover,
.btn-gold:hover,
.hero-actions a:first-child:hover,
.hero-buttons a:first-child:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--white) !important;
  text-decoration: none;
}

.btn-secondary,
.btn-secondary:visited,
.btn-outline-light,
.btn-outline-light:visited,
.hero-actions a:nth-child(2),
.hero-actions a:nth-child(2):visited,
.hero-buttons a:nth-child(2),
.hero-buttons a:nth-child(2):visited {
  display: inline-block;
  border: 2px solid var(--white);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white) !important;
  padding: 0.78rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  text-align: center;
}

.btn-secondary:hover,
.btn-outline-light:hover,
.hero-actions a:nth-child(2):hover,
.hero-buttons a:nth-child(2):hover {
  background-color: var(--white);
  color: var(--navy) !important;
  text-decoration: none;
}

.btn-outline,
.btn-outline:visited {
  display: inline-block;
  border: 2px solid var(--navy);
  background-color: transparent;
  color: var(--navy) !important;
  padding: 0.78rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  text-align: center;
}

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--white) !important;
  text-decoration: none;
}

.btn-navy,
.btn-navy:visited {
  display: inline-block;
  background-color: var(--navy);
  border: 2px solid var(--navy);
  color: var(--white) !important;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}

.btn-navy:hover {
  background-color: var(--blue);
  border-color: var(--blue);
  color: var(--white) !important;
  text-decoration: none;
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */

.section {
  padding: 3.25rem 0;
}

.section-alt {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section h2 {
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 0.65rem;
}

.section h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}

.section p {
  color: var(--muted);
  margin-top: 0;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */

.cards-grid,
.card-grid,
.resource-grid,
.grid-2,
.grid-3,
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card,
.guide-card,
.resource-card,
.info-box {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.card h3,
.guide-card h3,
.resource-card h3 {
  color: var(--navy);
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.card-link,
.card-link:visited,
.text-link,
.text-link:visited {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.card-link:hover,
.text-link:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Profile & Bio Layout
   ========================================================================== */

.profile-grid,
.agent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.profile-photo,
.agent-photo {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 360px;
}

.eyebrow-dark {
  color: var(--gold-hover);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Forms (Home Value, Relocation, Contact)
   ========================================================================== */

.form-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.14);
}

/* ==========================================================================
   IDX / MLS Embed Container
   ========================================================================== */

.idx-wrapper {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.idx-frame {
  width: 100%;
  min-height: 820px;
  border: 0;
  display: block;
}

/* ==========================================================================
   Neighborhood Guide Tags & Pills
   ========================================================================== */

.subnav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 2rem;
}

.subnav-pills a,
.subnav-pills a:visited {
  background-color: var(--bg-light);
  border: 1px solid #cbd5e1;
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.subnav-pills a.active,
.subnav-pills a:hover {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.guide-tag {
  background-color: var(--blue-soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.guide-highlights,
.checklist {
  margin: 0.85rem 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text);
}

.guide-highlights li,
.checklist li {
  margin-bottom: 0.45rem;
}

/* ==========================================================================
   Callout Banner
   ========================================================================== */

.cta-banner,
.guide-cta-box {
  background-color: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 2.35rem 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
}

.cta-banner h2,
.guide-cta-box h2 {
  color: var(--white);
  margin-top: 0;
}

.cta-banner p,
.guide-cta-box p {
  color: #e2e8f0;
  max-width: 680px;
  margin: 0.75rem auto 1.5rem;
}

.cta-banner .btn-group,
.guide-cta-box .btn-group {
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--navy-dark);
  color: #cbd5e1;
  padding-top: 3rem;
}

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

.site-footer h3,
.site-footer h4 {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.site-footer p {
  color: #cbd5e1;
  font-size: 0.93rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
}

.site-footer a,
.site-footer a:visited {
  color: #e2e8f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.15rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom p {
  margin: 0;
  color: #94a3b8;
}

/* ==========================================================================
   Tablet Breakpoint
   ========================================================================== */

@media (min-width: 768px) {
  .top-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  .grid-2,
  .guide-grid,
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid,
  .card-grid,
  .resource-grid,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-grid,
  .agent-grid {
    grid-template-columns: 320px 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Desktop Breakpoint
   ========================================================================== */

@media (min-width: 1024px) {
  .nav-toggle, .menu-toggle {
    display: none;
  }

  .main-nav, .primary-nav {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .main-nav > ul, .nav-list {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
  }

  .main-nav li, .nav-list > li {
    border-bottom: none;
    position: relative;
  }

  .main-nav > ul > li > a, .nav-list > li > a {
    padding: 0.65rem 0.72rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .main-nav .has-dropdown:hover .dropdown,
  .has-dropdown:hover .dropdown-menu {
    display: block;
  }

  .main-nav .dropdown, .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 0.45rem 0;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
    z-index: 1100;
  }

  .main-nav .dropdown a, .dropdown-menu a {
    padding: 0.55rem 1rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .cards-grid,
  .card-grid,
  .resource-grid,
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  }
}
/* One-Tap Copy Neighborhood Pills */
.copy-search-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.copy-search-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.copy-search-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}

.copy-status {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
  background-color: #dcfce7;
  border: 1px solid #86efac;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-status.is-visible {
  opacity: 1;
}

.copy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.copy-pill {
  background-color: var(--white);
  color: var(--navy);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.copy-pill:hover {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.copy-pill.copied {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
