:root {
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Avenir Next", system-ui, sans-serif;

  --ink: #0f2238;
  --ink-soft: #4a5d73;
  --paper: #f6f5f2;
  --surface: #fffefb;
  --line: #d8d3c8;

  --accent: #0f6b5a;
  --accent-strong: #095648;
  --warm: #be9552;

  --danger: #9f1d1d;
  --success: #0f766e;

  --radius: 18px;
  --shadow-soft: 0 14px 40px rgba(15, 34, 56, 0.08);
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
}

.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 20%, rgba(15, 107, 90, 0.12), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(190, 149, 82, 0.14), transparent 24%),
    linear-gradient(180deg, #fffefb 0%, var(--paper) 100%);
  font-family: var(--font-body);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1160px, 100% - 2rem);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0.6rem;
}

.success-page .site-shell {
  min-height: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background-color 150ms ease;
}

.site-nav .header-phone {
  border: 1px solid rgba(15, 107, 90, 0.34);
  background: rgba(15, 107, 90, 0.1);
  color: var(--accent-strong);
  font-weight: 700;
}

.site-nav .header-phone:hover {
  background: rgba(15, 107, 90, 0.16);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(15, 34, 56, 0.08);
}

main {
  display: grid;
  gap: 1.3rem;
  flex: 1;
}

.success-page main {
  flex: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 211, 200, 0.85);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(250, 246, 238, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 2.35rem 1.45rem;
}

.hero-grid {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

.hero-photo-bg {
  min-height: auto;
  position: relative;
  display: block;
  --hero-photo-url: url("./images/attorney-consultation.png");
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 238, 0.92)), var(--hero-photo-url);
  background-size: cover;
  background-position: center;
}

.hero-photo-bg.hero-get-started {
  --hero-photo-url: url("./images/next-steps-review.png");
}

.hero-content {
  max-width: 660px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -62% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 107, 90, 0.18), transparent 70%);
  pointer-events: none;
}

.hero.compact {
  padding: 1.8rem 1.35rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  line-height: 1.14;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-top: 0.35rem;
}

h2 {
  font-size: clamp(1.22rem, 2.4vw, 1.55rem);
}

p {
  margin-top: 0;
}

.hero-copy {
  margin: 0.55rem 0 0;
  max-width: 68ch;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.signal-strip {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.signal-strip p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.signal-strip p::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.45rem;
}

.hero-media {
  padding: 0.25rem;
}

.photo-frame {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(15, 34, 56, 0.12);
  box-shadow: var(--shadow-soft);
  background: #ffffff;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.75rem 1.05rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: transform 130ms ease, background-color 130ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  color: var(--ink);
  background: rgba(15, 34, 56, 0.06);
  border-color: rgba(15, 34, 56, 0.14);
}

.fit-card,
.process-card,
.faq-card,
.form-panel,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffefb 0%, #f8f4ea 100%);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}

.form-panel {
  margin-bottom: 1.3rem;
}

.fit-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.fit-card-split {
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 246, 239, 0.94));
}

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

.support-media {
  margin: 0;
  width: 100%;
  min-height: 250px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 34, 56, 0.12);
  box-shadow: var(--shadow-soft);
  background: rgba(15, 34, 56, 0.08);
}

.support-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fit-copy {
  padding: 0.25rem 0.25rem 0.35rem;
  display: grid;
  align-content: center;
  gap: 0.35rem;
}

.fit-copy h3 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.fit-copy p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 42ch;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 34, 56, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(15, 34, 56, 0.02);
}

.homepage-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem;
}

.panel-head {
  margin-bottom: 1.05rem;
}

.panel-head h2 {
  margin-bottom: 0;
}

.mini-steps {
  display: grid;
  gap: 0.95rem;
}

.fit-card + .mini-steps {
  margin-top: 1.1rem;
}

.process-card p,
.faq-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.process-card {
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(249, 246, 239, 0.9));
}

.process-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.process-step {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.contact-form {
  display: grid;
  gap: 1.05rem;
}

.step-panel {
  display: grid;
  gap: 1rem;
}

.wizard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.wizard-header h2 {
  margin-bottom: 0.25rem;
  line-height: 1.15;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.wizard-stage {
  margin: 0;
  margin-top: 0.2rem;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: rgba(15, 34, 56, 0.05);
  border: 1px solid rgba(15, 34, 56, 0.1);
}

.wizard-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 34, 56, 0.1);
  overflow: hidden;
  margin: 0.15rem 0 0.4rem;
}

.wizard-fill {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  transition: width 220ms ease;
}

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

label {
  display: grid;
  gap: 0.46rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #c6beaf;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  min-height: 44px;
  font-family: var(--font-body);
  line-height: 1.4;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 107, 90, 0.25);
  border-color: var(--accent);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.6rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.2rem;
  min-height: auto;
}

.checkbox-row span {
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.45;
}

.field-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

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

.review-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
}

.review-item h3 {
  margin-bottom: 0.2rem;
  font-size: 0.91rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.review-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.review-wide {
  min-height: 130px;
}

.form-alert {
  border-radius: 11px;
  padding: 0.72rem 0.85rem;
  border: 1px solid;
}

.form-alert p {
  margin: 0;
}

.form-alert p + p {
  margin-top: 0.35rem;
}

.form-alert.error {
  border-color: #f2b2b2;
  background: #fff1f1;
  color: var(--danger);
}

.form-alert.success {
  border-color: #99e0c8;
  background: #ecfcf5;
  color: var(--success);
}

.wizard-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.45rem;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(15, 34, 56, 0.2);
}

.site-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  display: grid;
  gap: 0.2rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.success-page .site-footer {
  margin-top: 1.25rem;
}

.success-page .fit-card {
  padding: 1rem 1.1rem;
}

.success-page .hero-actions {
  margin-top: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer-rich {
  margin-top: 0.65rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 34, 56, 0.12);
  background:
    radial-gradient(circle at 12% 18%, rgba(190, 149, 82, 0.14), transparent 35%),
    radial-gradient(circle at 92% 4%, rgba(15, 107, 90, 0.12), transparent 24%),
    linear-gradient(150deg, rgba(255, 254, 251, 0.98), rgba(248, 244, 236, 0.94));
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 0.9rem 0.75rem;
  gap: 0.55rem;
}

.footer-grid {
  display: grid;
  gap: 0.75rem;
}

.footer-brand-block {
  display: grid;
  gap: 0.45rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.footer-social {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.footer-social a {
  color: var(--ink);
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(15, 34, 56, 0.12);
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-social a:hover {
  color: var(--accent-strong);
  border-color: rgba(15, 107, 90, 0.45);
}

.footer-social a[aria-disabled="true"] {
  pointer-events: none;
  cursor: not-allowed;
  color: var(--ink-soft);
}

.footer-social a[aria-disabled="true"]:hover {
  transform: none;
  border-color: rgba(15, 34, 56, 0.14);
}

.footer-copy {
  margin: 0;
  max-width: 30ch;
  font-size: 1rem;
  color: var(--ink-soft);
}

.footer-column {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer-heading {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-column a {
  width: fit-content;
  text-decoration: none;
  color: var(--ink);
  font-weight: 550;
  font-size: 0.84rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(15, 34, 56, 0.14);
  transition: color 160ms ease, border-color 160ms ease, transform 140ms ease;
}

.footer-column a:hover {
  color: var(--accent-strong);
  border-bottom-color: rgba(15, 107, 90, 0.45);
  transform: translateY(-1px);
}

.footer-micro {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer-meta {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(15, 34, 56, 0.14);
}

.footer-meta p {
  color: var(--ink-soft);
}

.hidden {
  display: none !important;
}

@media (min-width: 760px) {
  .hero,
  .hero.compact,
  .fit-card,
  .process-card,
  .faq-card,
  .form-panel,
  .legal-card {
    padding: 1.8rem;
  }

  .hero-grid {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 2rem;
  }

  .hero-photo-bg {
    --hero-card-offset: 112px;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: visible;
    padding: 1.3rem;
    margin-bottom: calc(var(--hero-card-offset) + 1rem);
    background-image:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.62) 0%,
        rgba(255, 255, 255, 0.38) 34%,
        rgba(255, 255, 255, 0.12) 62%,
        rgba(255, 255, 255, 0.02) 100%
      ),
      var(--hero-photo-url);
    background-size: cover;
    background-position: right center;
  }

  .hero-photo-bg .hero-content {
    position: relative;
    z-index: 2;
    max-width: min(620px, 72%);
    padding: 1.05rem 1.15rem 1.1rem;
    margin: 0;
    transform: translateY(var(--hero-card-offset));
    border-radius: 18px;
    border: 1px solid rgba(15, 34, 56, 0.12);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 24px rgba(15, 34, 56, 0.12);
  }

  .hero-photo-bg h1 {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  }

  .hero-photo-bg .hero-copy,
  .hero-photo-bg .signal-strip p {
    color: rgba(15, 34, 56, 0.82);
  }

  .hero-photo-bg .signal-strip p::before {
    color: var(--accent-strong);
  }

  .fit-layout {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 1.2rem;
  }

  .support-media {
    min-height: 300px;
  }

  .fit-copy {
    padding: 0.35rem 0.3rem 0.35rem 0.15rem;
  }

  .mini-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-wide {
    grid-column: span 2;
  }

  .site-footer-rich {
    padding: 0.95rem 1.1rem 0.8rem;
  }

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

@media (max-width: 759px) {
  .site-shell {
    min-height: auto;
  }

  main {
    flex: 0;
  }

  .site-footer {
    margin-top: 0.65rem;
  }
}
