/* ==========================================================================
   Albert Realty Group Texas — Shared Stylesheet
   ========================================================================== */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #1A3C5E; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px 0;
  font-weight: 700;
  line-height: 1.2;
  color: #1A3C5E;
}
p { margin: 0 0 16px 0; }

/* ----- Layout helpers ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--grey { background: #F8F9FA; }
.section--navy { background: #1A3C5E; color: #FFFFFF; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #FFFFFF; }
.section--teal { background: #0F6E56; color: #FFFFFF; }
.section--teal h1, .section--teal h2, .section--teal h3 { color: #FFFFFF; }
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: #666666;
  font-size: 17px;
  max-width: 720px;
  margin: 0 auto 48px auto;
}
.label {
  display: inline-block;
  color: #C9A84C;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* ----- Navigation ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1A3C5E;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}
.nav__brand {
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  text-decoration: none;
  line-height: 1.1;
}
.nav__brand:hover { text-decoration: none; }
.nav__brand-name { font-weight: 700; font-size: 16px; }
.nav__brand-sub {
  color: #C9A84C;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.nav__links {
  display: flex;
  gap: 22px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav__links a:hover {
  color: #C9A84C;
  text-decoration: none;
  border-bottom-color: #C9A84C;
}
.nav__cta {
  background: #C9A84C;
  color: #FFFFFF !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: none !important;
}
.nav__cta:hover {
  background: #B8953B;
  text-decoration: none;
}
.nav__hamburger {
  display: none;
  background: transparent;
  border: 0;
  color: #FFFFFF;
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
}
@media (max-width: 960px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #1A3C5E;
    padding: 16px 24px 24px;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .nav__links.is-open { display: flex; }
  .nav__hamburger { display: block; }
  .nav__cta { display: none; }
  .nav__cta--mobile { display: inline-block; margin-top: 8px; }
}
@media (min-width: 961px) {
  .nav__cta--mobile { display: none; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: #1A3C5E; color: #FFFFFF; }
.btn--primary:hover { background: #142D47; color: #FFFFFF; }
.btn--secondary { background: #C9A84C; color: #FFFFFF; }
.btn--secondary:hover { background: #B8953B; color: #FFFFFF; }
.btn--outline {
  background: transparent;
  color: #1A3C5E;
  border: 2px solid #1A3C5E;
}
.btn--outline:hover { background: #1A3C5E; color: #FFFFFF; }
.btn--full { width: 100%; display: block; }

/* ----- Cards ----- */
.card {
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 28px;
}
.card--gold-top { border-top: 3px solid #C9A84C; }
.card--gold-left { border-left: 6px solid #C9A84C; }

/* ----- Hero ----- */
.hero {
  background: #1A3C5E;
  color: #FFFFFF;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-bottom: 3px solid #C9A84C;
  border-right: 3px solid #C9A84C;
  transform: rotate(-45deg);
  pointer-events: none;
  opacity: 0.7;
}
.hero h1 {
  color: #FFFFFF;
  font-size: 48px;
  max-width: 800px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.hero p {
  color: #d8dde3;
  font-size: 20px;
  max-width: 680px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
}

/* ----- Trust stats ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
  padding: 48px 0;
}
.stats__num {
  font-size: 40px;
  font-weight: 700;
  color: #1A3C5E;
  line-height: 1.1;
}
.stats__label {
  color: #666666;
  font-size: 13px;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .stats__num { font-size: 32px; }
}

/* ----- Grids ----- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ----- Badges ----- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}
.badge--grade-a { background: #27AE60; }
.badge--grade-b { background: #2ECC71; }
.badge--grade-c { background: #F39C12; }
.badge--grade-d { background: #E74C3C; }
.badge--grade-f { background: #8B0000; }
.badge--grey { background: #6c757d; }
.badge--gold { background: #C9A84C; }
.badge--teal { background: #0F6E56; }

/* ----- Market cards ----- */
.metro-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metro-card__name { font-size: 18px; font-weight: 700; color: #1A3C5E; margin: 0; }
.metro-card__state { color: #666666; font-size: 13px; margin: 0; }
.metro-card__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.metro-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #eef0f2;
  border-bottom: 1px solid #eef0f2;
  margin-top: 4px;
}
.metro-card__stat-label { font-size: 11px; color: #666666; text-transform: uppercase; letter-spacing: 0.5px; }
.metro-card__stat-val { font-size: 16px; font-weight: 600; color: #1A3C5E; margin-top: 2px; }
.metro-card__link {
  color: #0F6E56;
  font-weight: 600;
  font-size: 14px;
}
.metro-card__link:hover { color: #0a4d3d; text-decoration: none; }

/* ----- Data card (CSS-only mockup) ----- */
.data-card {
  background: #0D1B2A;
  color: #C9A84C;
  border: 1px solid #C9A84C;
  border-radius: 6px;
  padding: 24px;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
}
.data-card__title { color: #FFFFFF; font-weight: 700; margin-bottom: 12px; font-size: 15px; }
.data-card__row { display: flex; justify-content: space-between; }
.data-card__label { color: #d8dde3; }
.data-card__value { color: #C9A84C; font-weight: 600; }
.data-card__divider { border: 0; border-top: 1px dashed rgba(201,168,76,0.3); margin: 8px 0; }
.data-card__reco { color: #27AE60; font-weight: 700; margin-top: 4px; }

/* ----- AI brief callout ----- */
.brief {
  background: #FFFFFF;
  border-left: 4px solid #C9A84C;
  border-radius: 6px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  font-size: 15px;
  line-height: 1.7;
  color: #333333;
}
.brief__header {
  color: #1A3C5E;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef0f2;
}
.brief__reco { color: #27AE60; font-weight: 700; }

/* ----- Newsletter strip ----- */
.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter__text h2 { color: #FFFFFF; font-size: 24px; margin: 0 0 4px 0; }
.newsletter__text p { color: #d6f0e6; margin: 0; font-size: 14px; }
.newsletter__form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #FFFFFF;
  padding: 6px;
  border-radius: 4px;
}
.newsletter__form input {
  padding: 10px 14px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  min-width: 240px;
  outline: none;
}
.newsletter__form button {
  padding: 10px 20px;
  background: #C9A84C;
  color: #FFFFFF;
  border: 0;
  border-radius: 4px;
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.newsletter__form button:hover { background: #B8953B; }
.newsletter__small { color: #d6f0e6; font-size: 12px; width: 100%; margin-top: 6px; }
@media (max-width: 700px) {
  .newsletter { flex-direction: column; align-items: stretch; }
  .newsletter__form { flex-direction: column; align-items: stretch; }
  .newsletter__form input { min-width: 0; width: 100%; }
}

/* ----- Filter bar ----- */
.filter-bar {
  background: #FFFFFF;
  border-top: 1px solid #eef0f2;
  border-bottom: 1px solid #eef0f2;
  padding: 14px 0;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.filter-bar__inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-pill {
  padding: 7px 16px;
  border: 1px solid #d6d8db;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1A3C5E;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.filter-pill:hover { border-color: #1A3C5E; }
.filter-pill.is-active {
  background: #1A3C5E;
  color: #FFFFFF;
  border-color: #1A3C5E;
}

/* ----- Tables ----- */
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.tbl th, .tbl td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eef0f2;
  font-size: 14px;
}
.tbl th {
  background: #1A3C5E;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.tbl tbody tr:nth-child(even) { background: #F8F9FA; }
.tbl tbody tr:last-child td { border-bottom: 0; }

/* ----- FAQ accordion ----- */
.faq-item {
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  color: #1A3C5E;
  font-weight: 600;
  font-size: 16px;
  user-select: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.faq-q:hover { background: #F8F9FA; }
.faq-chev {
  color: #C9A84C;
  font-size: 18px;
  transition: transform 0.2s;
  margin-left: 16px;
  flex-shrink: 0;
}
.faq-item.is-open .faq-chev { transform: rotate(180deg); }
.faq-a {
  padding: 0 24px 22px 24px;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  display: none;
}
.faq-item.is-open .faq-a { display: block; }

/* ----- Footer ----- */
.footer {
  background: #1A3C5E;
  color: #d8dde3;
  padding: 56px 0 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  color: #FFFFFF;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer__brand-name { color: #FFFFFF; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer__brand-tag { color: #d8dde3; font-size: 14px; margin-bottom: 6px; }
.footer__brand-meta { color: #9aa3ad; font-size: 12px; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: #d8dde3; font-size: 14px; }
.footer__links a:hover { color: #C9A84C; text-decoration: none; }
.footer__contact { color: #d8dde3; font-size: 14px; line-height: 1.8; }
.footer__bottom {
  background: #0D1B2A;
  padding: 18px 0;
  text-align: center;
  color: #9aa3ad;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ----- Article cards ----- */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-card__tag {
  color: #C9A84C;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.article-card__title {
  color: #1A3C5E;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.article-card__excerpt { color: #555; font-size: 14px; line-height: 1.6; margin: 0; }
.article-card__date { color: #888; font-size: 12px; margin-top: auto; padding-top: 8px; }

/* ----- Forms ----- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form .form-row--full { grid-column: 1 / -1; }
.form label { display: block; font-size: 13px; font-weight: 600; color: #1A3C5E; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d6d8db;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  background: #FFFFFF;
  color: #333;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: #1A3C5E;
  box-shadow: 0 0 0 3px rgba(26,60,94,0.1);
}
.form textarea { resize: vertical; min-height: 110px; }
.form-status {
  display: none;
  padding: 14px 18px;
  background: #e8f7ef;
  border: 1px solid #27AE60;
  border-radius: 4px;
  color: #1a6b3a;
  font-size: 14px;
  margin-top: 16px;
}
.form-status.is-visible { display: block; }
@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; }
}

/* ----- Step timeline ----- */
.steps { position: relative; padding-left: 60px; }
.steps::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #e0e3e6;
}
.step { position: relative; margin-bottom: 32px; }
.step__circle {
  position: absolute;
  left: -60px;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0F6E56;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.step__title { color: #1A3C5E; font-size: 20px; margin-bottom: 8px; }
.step__body { color: #555; font-size: 15px; line-height: 1.7; }

/* ----- Bar chart ----- */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bars__row { display: grid; grid-template-columns: 200px 1fr 60px; gap: 16px; align-items: center; }
.bars__name { color: #1A3C5E; font-weight: 600; font-size: 14px; }
.bars__track { background: #eef0f2; height: 18px; border-radius: 4px; overflow: hidden; }
.bars__fill { background: linear-gradient(90deg, #1A3C5E, #2A527C); height: 100%; border-radius: 4px; }
.bars__pct { color: #1A3C5E; font-weight: 600; font-size: 14px; text-align: right; }
@media (max-width: 600px) {
  .bars__row { grid-template-columns: 1fr 50px; }
  .bars__name { grid-column: 1 / -1; }
}

/* ----- Roadmap timeline ----- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.roadmap__item { background: #FFFFFF; border-radius: 6px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-top: 3px solid #C9A84C; }
.roadmap__date { color: #C9A84C; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.roadmap__title { color: #1A3C5E; font-size: 18px; margin-bottom: 8px; }
.roadmap__body { color: #555; font-size: 14px; line-height: 1.6; }
@media (max-width: 800px) { .roadmap { grid-template-columns: 1fr; } }

/* ----- Checklist ----- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; color: #d8f0e6; font-size: 15px; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #C9A84C;
  font-weight: 700;
}

/* ----- Icon boxes ----- */
.icon-card { text-align: left; }
.icon-card__icon { font-size: 32px; margin-bottom: 12px; }
.icon-card__title { color: #1A3C5E; font-size: 18px; margin-bottom: 8px; }
.icon-card__body { color: #555; font-size: 14px; line-height: 1.65; }

/* ----- Map placeholder ----- */
.map-placeholder {
  background: #1A3C5E;
  color: #C9A84C;
  height: 360px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding: 24px;
  border: 1px solid #C9A84C;
}
.map-placeholder small { color: #d8dde3; font-weight: 400; font-size: 13px; margin-top: 6px; display: block; }

/* ----- Two col split ----- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
