/* ============================================================
   The Housing Specialist™ — Main Stylesheet
   Black & Gold only
   ============================================================ */

:root {
  --black: #0B0B0B;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --cream: #F7F1DE;
  --light-gray: #F3F3F3;
  --dark-panel: #141414;
  --border: #2a2a2a;
  --text-muted: #b8b8b8;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #0B0B0B;
  height: 85px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 70px;
  width: auto;
}

.logo-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--gold);
  font-style: italic;
  white-space: nowrap;
}

.header-divider {
  width: 1px;
  height: 36px;
  background: rgba(212, 175, 55, 0.45);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list > li {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  border-radius: 0;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link.active {
  box-shadow: inset 0 -3px 0 var(--gold);
}

.nav-link .chevron {
  opacity: 0.75;
  transition: transform 0.2s;
}

.has-dropdown:hover > .nav-link .chevron,
.has-dropdown:focus-within > .nav-link .chevron,
.has-dropdown.open > .nav-link .chevron {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #141414;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 8px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1100;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  pointer-events: none;
  list-style: none;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown li a {
  display: block;
  padding: 11px 20px;
  font-size: 0.92rem;
  color: #ddd;
  transition: background 0.15s, color 0.15s;
}

.dropdown li a:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
}

.btn-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #0B0B0B;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.btn-ai:hover {
  background: #c9a227;
  transform: translateY(-1px);
}

.btn-ai svg {
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: 0.25s;
}

/* ============================================================
   HERO BACKGROUND IMAGE
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right,
      rgba(11,11,11,0.92) 0%,
      rgba(11,11,11,0.75) 40%,
      rgba(11,11,11,0.35) 100%),
    url('../images/hero-bg.jpg') center center / cover no-repeat;
  z-index: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid #222;
  margin-top: 60px;
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 10px;
}

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--gold);
}

.footer-contact a {
  color: #ddd;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-socials a {
  color: #aaa;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--gold);
  padding-top: 24px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.55;
  max-width: 800px;
  margin: 0 auto 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: #c9a227;
}

/* ============================================================
   OTHER EXISTING STYLES
   ============================================================ */
.home-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
  min-height: 420px;
}

.hero-left {
  flex: 1;
  max-width: 560px;
}

.hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  line-height: 1.22;
  margin-bottom: 16px;
}

.hero-left h1 .line1 {
  display: block;
  color: #fff;
}

.hero-left h1 .line2 {
  display: block;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: #e0e0e0;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-card {
  background: #fff;
  color: #0b0b0b;
  border-radius: 16px;
  padding: 28px 26px;
  width: 260px;
  flex-shrink: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  text-align: center;
}

.hero-card-icon {
  width: 52px;
  height: 52px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.hero-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #0b0b0b;
}

.hero-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
  margin-bottom: 18px;
}

.btn-card-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: #0b0b0b;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 50px;
  transition: background 0.2s;
}

.btn-card-dark:hover {
  background: #1a1a1a;
}

.hubs-section {
  padding: 70px 0 80px;
  background: var(--black);
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--gold);
  margin-bottom: 40px;
}

.hubs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hub-card {
  background: #161616;
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 26px 20px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.hub-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 14px;
  background: #1a1a1a;
}

.hub-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.hub-card ul {
  margin-bottom: 20px;
  flex-grow: 1;
}

.hub-card ul li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 7px;
}

.hub-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hub-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 50px;
  border: 1.5px solid var(--gold);
  transition: all 0.2s;
}

.btn-solid:hover {
  background: #c9a227;
}

.page-hero {
  background: #0f0f0f;
  padding: 70px 20px 50px;
  text-align: center;
  border-bottom: 1px solid #222;
}

.page-hero h1 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 12px;
}

.page-subtitle {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.page-intro {
  color: #ccc;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 1.05rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .logo-tagline {
    display: none;
  }
  .hubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-divider {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    background: #0B0B0B;
    border-bottom: 1px solid var(--gold);
    padding: 12px 0 20px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    padding: 14px 24px;
    font-size: 1rem;
    width: 100%;
    justify-content: space-between;
  }

  .nav-link.active {
    box-shadow: none;
    color: var(--gold);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-radius: 0;
    background: #141414;
    margin: 0;
    padding: 0 0 8px 24px;
    box-shadow: none;
    display: none;
    pointer-events: auto;
  }

  .has-dropdown.open > .dropdown {
    display: block;
  }

  .mobile-toggle {
    display: flex;
  }

  .btn-ai {
    padding: 9px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 56px;
  }

  .hubs-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-left h1 {
    font-size: 1.7rem;
  }
}