/*
Theme Name: 7th Street Financial
Theme URI: https://7thstreetfinancial.com/
Author: 7th Street Brands, LLC
Description: A lightweight, expandable WordPress theme for 7th Street Financial with services, business articles, consultation calls to action, and future portal integration.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sevenstreetfinancial
*/

:root {
  --navy: #062a57;
  --navy-deep: #031b38;
  --blue: #245f95;
  --steel: #6e8ca8;
  --mist: #edf4f8;
  --mist-2: #f7fafc;
  --paper: #ffffff;
  --ink: #142235;
  --muted: #607080;
  --line: #d8e2ea;
  --gold: #d7a447;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(6,42,87,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(216,226,234,.9);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 176px; max-height: 64px; object-fit: contain; }
.brand-text {
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -.03em;
  font-size: 1.15rem;
}
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 750; }
.site-nav a:hover { color: var(--blue); }
.menu-toggle {
  display: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}
.nav-cta a {
  padding: 10px 15px !important;
  border-radius: 10px;
  color: #fff !important;
  background: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 138px) 0 95px;
  background:
    radial-gradient(circle at 85% 18%, rgba(110,140,168,.22), transparent 28%),
    linear-gradient(135deg, #f8fbfd 0%, #edf4f8 54%, #ffffff 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -235px;
  bottom: -245px;
  border-radius: 50%;
  border: 1px solid rgba(6,42,87,.12);
  box-shadow: 0 0 0 58px rgba(6,42,87,.035), 0 0 0 118px rgba(6,42,87,.022);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 60px;
}
.eyebrow, .section-kicker {
  display: inline-block;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 820px;
  margin: 15px 0 20px;
  color: var(--navy);
  font-size: clamp(2.9rem, 6.2vw, 5.9rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.hero .lead {
  max-width: 760px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.hero-card {
  padding: 34px;
  border: 1px solid rgba(216,226,234,.9);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}
.hero-card img { display: block; max-width: 310px; margin: 0 auto 25px; }
.hero-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.45rem; }
.hero-card p { margin: 0; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--navy); box-shadow: 0 10px 24px rgba(6,42,87,.18); }
.button-primary:hover { color: #fff; background: var(--blue); }
.button-secondary { color: var(--navy); background: rgba(255,255,255,.72); border: 1px solid rgba(6,42,87,.22); }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 23px 25px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: 1.02rem; }
.trust-item span { color: var(--muted); font-size: .9rem; }

.section { padding: clamp(68px, 8vw, 108px) 0; }
.section-muted { background: var(--mist); }
.section-dark { color: #fff; background: var(--navy); }
.section h2 {
  max-width: 850px;
  margin: 10px 0 17px;
  color: var(--navy);
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.07;
  letter-spacing: -.04em;
}
.section-dark h2 { color: #fff; }
.section-intro { max-width: 790px; margin: 0; color: var(--muted); font-size: 1.12rem; }
.section-dark .section-intro { color: #d6e2ec; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.card {
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6,42,87,.06);
}
.card h3 { margin: 10px 0 9px; color: var(--navy); font-size: 1.28rem; }
.card p { margin: 0; color: var(--muted); }
.card-number { color: var(--steel); font-weight: 900; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quote-panel {
  padding: 38px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.quote-panel blockquote { margin: 0; color: var(--navy); font-size: clamp(1.5rem, 2.8vw, 2.35rem); line-height: 1.25; font-weight: 850; letter-spacing: -.03em; }
.quote-panel p { margin-bottom: 0; color: var(--muted); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.step { position: relative; padding: 30px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 22px; color: #bcd0e0; font-weight: 900; }
.step h3 { margin: 0 0 8px; color: #fff; }
.step p { margin: 0; color: #d6e2ec; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 28px rgba(6,42,87,.06); }
.article-card .article-body { padding: 26px; }
.article-card h3 { margin: 8px 0 10px; font-size: 1.25rem; line-height: 1.25; }
.article-card h3 a { color: var(--navy); text-decoration: none; }
.article-card p { color: var(--muted); }
.meta { color: var(--steel); font-size: .82rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #edf4f8);
  box-shadow: var(--shadow);
}
.cta-box h2 { margin-top: 0; }
.cta-box p { margin-bottom: 0; color: var(--muted); }

.content-wrap { width: min(calc(100% - 40px), 900px); margin: 70px auto 95px; }
.entry-title { color: var(--navy); font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -.045em; }
.entry-content h2, .entry-content h3 { color: var(--navy); }
.entry-content { font-size: 1.05rem; }
.archive-header { margin-bottom: 42px; }

.portal-shell {
  margin-top: 30px;
  padding: 34px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--mist-2);
}

.site-footer { padding: 48px 0 32px; color: #c7d6e3; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { margin-top: 0; color: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); color: #9eb2c3; font-size: .9rem; }

@media (max-width: 920px) {
  .hero-grid, .split, .cta-box { grid-template-columns: 1fr; }
  .grid-3, .article-grid, .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; padding-bottom: 18px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
}
