/* ===========================================================
   HBI Home Buyers — Shared Stylesheet
   Hamilton Built Investments, LLC
   =========================================================== */

:root {
  --navy: #0f2a43;
  --navy-dark: #091b2d;
  --gold: #c9a227;
  --gold-light: #e0bf4f;
  --cream: #faf7f0;
  --gray: #5b6672;
  --light-gray: #eef1f4;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 67, 0.10);
  --shadow-strong: 0 16px 40px rgba(15, 42, 67, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy-dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy-dark);
  line-height: 1.25;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; color: var(--gray); }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfd8e3;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfd8e3; }
.topbar a:hover { color: var(--gold-light); }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(15,42,67,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy-dark);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-dark);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 10px 20px !important;
  border-radius: 6px;
  border-bottom: none !important;
  font-weight: 700 !important;
}
.nav-cta:hover {
  background: var(--gold-light);
  border-bottom: none !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy-dark);
}
.btn-navy {
  background: var(--navy-dark);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #163a5c 100%);
  color: var(--white);
  padding: 90px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(201,162,39,0.25) 0%, transparent 70%);
}
.hero h1 {
  color: var(--white);
  font-size: 44px;
  max-width: 760px;
  margin: 0 auto 18px;
}
.hero p.subhead {
  color: #d7dee6;
  font-size: 19px;
  max-width: 600px;
  margin: 0 auto 34px;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(201,162,39,0.15);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy-dark); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #c7d0da; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.eyebrow-dark {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- Service split cards (home page) ---------- */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) { .service-split { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 34px;
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
}
.service-card .icon-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 24px; }
.service-card ul { margin: 16px 0 24px; padding-left: 20px; color: var(--gray); }
.service-card ul li { margin-bottom: 8px; }
.service-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Grid of feature cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
}
.feature-card .num {
  color: var(--gold);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.feature-card h4 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 15px; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  text-align: center;
  padding: 10px;
}
.step .step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.step h4 { font-size: 18px; }

/* ---------- Situation cards ---------- */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .situation-grid { grid-template-columns: 1fr; } }
.situation-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.situation-card img { height: 170px; width: 100%; object-fit: cover; }
.situation-card .body { padding: 22px 24px; }
.situation-card h4 { font-size: 17px; color: var(--gold); text-transform: uppercase; letter-spacing: .5px; font-size: 13px; margin-bottom: 8px; }
.situation-card p { font-size: 15px; margin: 0; color: var(--navy-dark); font-weight: 500; }

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: 1fr 1fr; } }
.stat h3 { color: var(--gold); font-size: 34px; margin-bottom: 4px; }
.stat p { color: #c7d0da; margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Two column with image ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d7dee6; }

/* ---------- Contact block ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.contact-info-card .row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-info-card .row .ic {
  font-size: 20px;
  width: 34px;
}
.contact-info-card h4 { margin-bottom: 4px; font-size: 16px; }
.contact-info-card p { margin: 0; }

form.simple-form { display: flex; flex-direction: column; gap: 14px; }
form.simple-form input,
form.simple-form select,
form.simple-form textarea {
  padding: 13px 16px;
  border: 1px solid #d8dee5;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  width: 100%;
}
form.simple-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: -6px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #a9b4c0;
  padding: 50px 0 24px;
  font-size: 14px;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 34px;
}
@media (max-width: 760px) { footer.site-footer .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer ul li { margin-bottom: 10px; }
footer.site-footer a:hover { color: var(--gold-light); }
footer.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ---------- Mobile nav toggle (simple, no-js fallback: stacked) ---------- */
@media (max-width: 760px) {
  nav.main-nav { display: none; }
}

/* ---------- Page hero (interior pages, smaller) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 60px 0 70px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 36px; }
.page-hero p { color: #d7dee6; max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--gold-light); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Pricing / tier cards ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 860px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.tier-card.highlight {
  border: 2px solid var(--gold);
  transform: scale(1.03);
}
.tier-card h4 { font-size: 20px; }
.tier-card .price { font-size: 30px; font-weight: 700; color: var(--navy-dark); margin: 10px 0; }
.tier-card .price span { font-size: 14px; font-weight: 500; color: var(--gray); }
.tier-card ul { padding-left: 18px; color: var(--gray); font-size: 14px; }
.tier-card ul li { margin-bottom: 8px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-tag {
  display: inline-block;
  background: var(--light-gray);
  color: var(--navy-dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin: 4px 6px 4px 0;
}
