/* ==========================================================================
   Blevins Investment Group — shared stylesheet
   ========================================================================== */

:root {
  --navy: #0e1f38;
  --navy-deep: #081426;
  --charcoal: #22262e;
  --gold: #a9814a;
  --gold-light: #c9a869;
  --cream: #f7f5f0;
  --paper: #fbfaf7;
  --line: #e3ddd0;
  --body: #3a3f47;
  --muted: #6b7280;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; word-break: break-word; }
h1, h2, h3, h4, p { overflow-wrap: break-word; word-break: break-word; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cfd6e2;
  font-size: 13px;
  letter-spacing: .03em;
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a:hover { color: var(--gold-light); }

/* ---------- Header / nav ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 44px;
  width: auto;
}
.brand-text {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .01em;
  color: var(--navy);
  line-height: 1.15;
}
.brand-text span {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
nav.main-nav a {
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  border-color: var(--gold);
  color: var(--gold);
}
nav.main-nav a.cta {
  background: var(--navy);
  color: #fff;
  padding: 10px 22px;
  border-radius: 2px;
  border-bottom: none;
}
nav.main-nav a.cta:hover {
  background: var(--gold);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(169,129,74,.18), transparent 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.18;
  max-width: 760px;
  margin: 0 0 22px;
}
.hero p.lead {
  font-size: 18px;
  color: #d6dbe6;
  max-width: 560px;
  margin: 0 0 34px;
}
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Section basics ---------- */
section { padding: 96px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .kicker {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--navy);
  margin: 0 0 16px;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}
.divider {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 24px;
}

/* ---------- Statement band ---------- */
.statement {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement blockquote {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.5;
  font-style: italic;
}

/* ---------- Service grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 34px 30px;
  border-radius: 3px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  box-shadow: 0 14px 30px rgba(14,31,56,.08);
  transform: translateY(-3px);
}
.card .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 12px;
}
.card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.card .more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease, margin-top .4s ease;
}
.card .more p { margin: 0 0 14px; }
.card .more p:last-child { margin-bottom: 0; }
.card.open .more {
  max-height: 640px;
  opacity: 1;
  margin-top: 14px;
}
.card .toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
}
.card .toggle:hover { color: var(--navy); }
.card .toggle .chevron {
  display: inline-block;
  font-size: 11px;
  transition: transform .3s ease;
}
.card.open .toggle .chevron { transform: rotate(180deg); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 0 0 18px;
}
.cta-band p {
  color: #cfd6e2;
  margin: 0 0 32px;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-deep);
  color: #a9b2c3;
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid img { height: 38px; margin-bottom: 16px; }
.footer-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-logos img { height: 34px; width: auto; margin-bottom: 0; }
.footer-logos .divider-v {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.18);
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-grid p, .footer-grid a { color: #a9b2c3; margin: 0 0 10px; display: block; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #6f7891;
}
.footer-bottom a { color: #8891a5; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-links { display: flex; gap: 18px; }

/* ---------- Legal pages ---------- */
.legal-body {
  max-width: 760px;
  margin: 0 auto;
}
.legal-body .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 34px;
}
.legal-body h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin: 38px 0 14px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}
.legal-body p { margin: 0 0 16px; font-size: 15.5px; color: var(--body); }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin: 0 0 8px; font-size: 15.5px; color: var(--body); }

/* ---------- Bio page ---------- */
.bio-hero {
  background: var(--navy);
  padding: 90px 0 80px;
}
.bio-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}
.bio-photo {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-name h1 {
  font-family: var(--serif);
  color: #fff;
  font-size: 40px;
  margin: 0 0 6px;
}
.bio-name .role {
  color: var(--gold-light);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.bio-name p.intro {
  color: #d6dbe6;
  font-size: 17px;
  max-width: 620px;
  margin: 0;
}
.bio-body {
  max-width: 760px;
  margin: 0 auto;
}
.bio-body p { margin: 0 0 22px; font-size: 16.5px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 26px 28px;
  background: var(--paper);
}
.contact-card .label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-card .value {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
}
.contact-highlight {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.contact-highlight .section-head { margin-bottom: 22px !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bio-layout { grid-template-columns: 240px 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-highlight { height: auto; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }

  .topbar .wrap {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 12px;
  }

  .nav-row { flex-wrap: wrap; gap: 14px; padding: 14px 0; }
  .brand img { height: 36px; }
  .brand-text { font-size: 17px; }
  nav.main-nav {
    flex-wrap: wrap;
    gap: 10px 20px;
    width: 100%;
  }
  nav.main-nav a.cta { padding: 9px 18px; }

  .hero { padding: 64px 0 54px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 16px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }

  section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 24px; }

  .statement blockquote { font-size: 20px; }

  .grid { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 26px 22px; }

  .cta-band h2 { font-size: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .bio-hero { padding: 56px 0 48px; }
  .bio-layout { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .bio-photo { max-width: 220px; margin: 0 auto; }
  .bio-name h1 { font-size: 30px; }
  .bio-name p.intro { margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; gap: 16px; }

  .legal-body h1 { font-size: 26px; }
  .legal-body h2 { font-size: 19px; }
}