:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1d2430;
  --muted: #5a6472;
  --brand: #860315;
  --brand-dark: #670311;
  --border: #e6e8ec;
  --radius: 14px;
  --shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 95% 0, #fff4f7 0, var(--bg) 40%);
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

main > section {
  padding: 70px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand img {
  height: 56px;
  width: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-name {
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav > a {
  color: var(--text);
  font-weight: 600;
}

nav > a.active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  top: var(--mobile-nav-top, 76px);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 20, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 40;
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 0;
}

.hero-band {
  background: linear-gradient(135deg, #7d1020 0%, #860315 55%, #8f1f31 100%);
  color: #fff;
}

.hero-compact {
  padding-top: 0;
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.13;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  margin: 0 0 0.8rem;
}

h3 {
  margin: 1rem 0 0.4rem;
}

.hero-band .eyebrow,
.hero-band h1,
.hero-band .hero-copy p {
  color: #fff;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.hero-service-area {
  margin: 0.8rem 0 0;
  color: #f5dce3;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-media img,
.stacked-images img,
.team-card img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.stacked-images {
  display: grid;
  gap: 1rem;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.btn-secondary {
  background: #eceef2;
  color: var(--text);
}

.btn-secondary:hover {
  background: #dde1e8;
}

.btn-sm {
  padding: 0.52rem 0.85rem;
}

.hero-actions .btn-hero,
.hero-actions .btn-hero:visited {
  background: #f8fafc;
  color: #4b0814;
}

.hero-actions .btn-hero:hover {
  background: #e8edf4;
  color: #3f0712;
  text-decoration: none;
}

.cards-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.tone {
  background: linear-gradient(180deg, #fff, #fff9fa);
}

.section-gap {
  margin-bottom: 0;
}

.services-band {
  background: #fff;
}

.about-band {
  background: #eef2f7;
}

.firm-band {
  background: #ffffff;
}

.firm-content {
  max-width: 880px;
}

.firm-content p {
  margin-top: 0;
}

.faq-band {
  background: #ffffff;
}

.team-band {
  background: #eef2f7;
}

.simple-hero-band .simple-hero-copy {
  text-align: center;
  max-width: 760px;
}

.simple-hero-band .simple-hero-copy .eyebrow,
.simple-hero-band .simple-hero-copy h1,
.simple-hero-band .simple-hero-copy p {
  color: #fff;
}

.simple-hero-band .simple-hero-copy p {
  margin-left: auto;
  margin-right: auto;
}

.calc-band {
  background: #ffffff;
}

.team-member {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.team-member-media img {
  width: 100%;
  max-width: 180px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}

.team-placeholder {
  width: 180px;
  height: 220px;
  border-radius: 12px;
  background: #f6e8eb;
  color: var(--brand);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-body h3 {
  margin: 0 0 0.35rem;
}

.team-phone {
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.team-nmls {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.team-divider {
  border: 0;
  border-top: 2px solid var(--brand);
  margin: 1.35rem 0;
}

.contact-band {
  background: #f3f6fb;
}

.section-intro {
  margin-bottom: 1.5rem;
}

.section-intro p {
  margin-top: 0;
}

.center {
  text-align: center;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.service-card p {
  margin-bottom: 0.5rem;
}

.service-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.service-card a {
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
}

.about-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.about-image-wrap {
  display: flex;
  justify-content: center;
}

.about-image {
  width: 100%;
  max-width: 285px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-grid {
  margin-bottom: 30px;
}

.about-copy p {
  margin-top: 0;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.specialty-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.specialty-item p {
  margin: 0;
}

.icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: #fef1f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex: 0 0 auto;
}

.icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.faq-accordion {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 1rem 3rem 1rem 1.1rem;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.faq-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center center;
  color: var(--brand);
  font-size: 0;
  line-height: 0;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.9rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.1rem;
  border-top: 1px solid transparent;
  color: var(--muted);
  transition: max-height 0.22s ease-in-out, opacity 0.22s ease-in-out;
}

.faq-item.is-open .faq-answer {
  border-top-color: var(--border);
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  padding: 0.85rem 0 1rem;
}

.faq-cta {
  margin-top: 1.2rem;
  text-align: center;
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.contact-form,
.calc-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form .btn {
  width: 100%;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #ced4dd;
  border-radius: 10px;
  padding: 0.62rem;
  font: inherit;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.metric {
  margin: 0.2rem 0 0.8rem;
  font-size: 1.1rem;
}

.metric span {
  font-size: 2.2rem;
  color: var(--brand);
  font-weight: 800;
}

.result-grid {
  display: grid;
  gap: 0.2rem;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.role {
  color: var(--muted);
  font-weight: 700;
  margin-top: 0;
}

.site-footer {
  background: #f2f4f8;
  border-top: 1px solid var(--border);
  padding: 1.7rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.footer-logo {
  width: 160px;
}

.nmls-badge {
  width: 110px;
  margin-top: 0.7rem;
}

#form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.95rem;
}

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 100;
}

.back-to-top svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  stroke: currentColor;
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.back-to-top:hover {
  background: var(--brand-dark);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 920px) {
  main > section {
    padding: 30px 0;
  }

  .hero,
  .about-grid,
  .team-member,
  .cards-grid,
  .team-grid,
  .calculator-layout,
  .footer-grid,
  .specialties-grid {
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: flex-end;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .team-member-media img,
  .team-placeholder {
    max-width: 220px;
    width: 100%;
    height: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--mobile-nav-top, 76px);
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
    padding: 30px 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-1px);
  }

  .site-nav .btn-sm {
    margin-top: 0.35rem;
  }
}

@media (min-width: 768px) {
  .contact-form .btn {
    width: auto;
    justify-self: start;
  }
}
