/* The Shastid Firm Incorporated static site */

:root {
  --ink: #0f2437;
  --ink-2: #1c3144;
  --text: #26394a;
  --muted: #687789;
  --line: #d9e0e7;
  --paper: #ffffff;
  --paper-soft: #f7f8f7;
  --paper-warm: #fbfaf6;
  --accent: #a77838;
  --accent-2: #2f6f68;
  --accent-soft: #edf5f3;
  --gold-soft: #f8f1df;
  --shadow: 0 18px 45px rgba(15, 36, 55, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 580px, #fbfaf6 580px, #ffffff 1040px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 111, 104, 0.32);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 40;
  transform: translateY(-160%);
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 224, 231, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand > span:last-child {
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink), #173d52);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--accent-2);
}

.nav-cta {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.nav-cta:hover {
  border-color: rgba(47, 111, 104, 0.35);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.nav-toggle span[aria-hidden="true"] {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) clamp(20px, 5vw, 56px) clamp(34px, 5vw, 58px);
}

.hero::before {
  position: absolute;
  inset: 0 clamp(20px, 5vw, 56px) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 120, 56, 0.55), transparent);
  content: "";
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 5vw, 3.7rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  color: var(--text);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 24px rgba(15, 36, 55, 0.18);
}

.button.primary:hover {
  background: #173d52;
}

.button.secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: rgba(167, 120, 56, 0.38);
  background: var(--gold-soft);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 720px;
  margin: 0;
}

.hero-proof div {
  padding: 11px 12px;
  border: 1px solid rgba(217, 224, 231, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.hero-proof dt {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-proof dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.microcopy,
.form-note,
.footer-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(237, 245, 243, 0.92), rgba(255, 255, 255, 0.94)),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  display: block;
  height: 5px;
  margin: -22px -22px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  content: "";
}

.hero-media {
  position: relative;
  display: grid;
  gap: 14px;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border: 1px solid rgba(217, 224, 231, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-kicker,
.card-label {
  margin-bottom: 16px;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.issue-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.issue-list li {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.issue-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.issue-list strong,
.issue-list span {
  display: block;
}

.issue-list strong {
  margin-bottom: 5px;
  color: var(--ink);
}

.issue-list span {
  color: var(--muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) 42px;
}

.trust-strip div {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.trust-strip div:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.trust-strip div:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 6px;
  color: var(--ink);
}

.trust-strip span {
  color: var(--muted);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 56px);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 36px;
}

.section-heading p {
  color: var(--text);
  font-size: 1.04rem;
}

.compact {
  max-width: 690px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.step,
.price-panel,
.contact-form,
.firm-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(15, 36, 55, 0.06);
}

.service-card {
  min-height: 100%;
  padding: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-card.featured {
  background: var(--paper-warm);
  border-color: rgba(167, 120, 56, 0.35);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 111, 104, 0.28);
  box-shadow: 0 16px 34px rgba(15, 36, 55, 0.09);
}

.service-card p,
.step p,
.pricing p,
.firm-note p,
.contact-copy p {
  color: var(--text);
}

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 38px;
  align-items: start;
}

.price-panel {
  overflow: hidden;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row span {
  color: var(--text);
}

.price-row strong {
  color: var(--ink);
  text-align: right;
}

.process-section {
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  padding: 22px;
}

.step span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0;
}

.firm-note {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 5vw, 48px);
  background: var(--ink);
}

.firm-note h2 {
  color: white;
}

.firm-note .eyebrow {
  color: #dcb96e;
}

.firm-note p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.06rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
  gap: 42px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-details div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-left: 3px solid var(--accent-2);
  background: var(--accent-soft);
}

.contact-details span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-details a,
.contact-details strong,
.contact-details address {
  color: var(--ink);
  font-weight: 800;
}

.contact-details address {
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: var(--paper-soft);
}

.form-intro {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(47, 111, 104, 0.2);
  border-radius: var(--radius);
  background: white;
}

.form-intro strong {
  color: var(--ink);
}

.form-intro span {
  color: var(--muted);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-weight: 800;
}

input:not([type="checkbox"]),
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font: inherit;
}

input:not([type="checkbox"]):focus,
textarea:focus {
  outline: 3px solid rgba(47, 111, 104, 0.16);
  border-color: var(--accent-2);
}

textarea {
  resize: vertical;
}

.consent-label {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(167, 120, 56, 0.28);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.consent-label input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-2);
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 30px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    border-radius: var(--radius);
  }

  .hero,
  .pricing,
  .contact,
  .firm-note {
    grid-template-columns: 1fr;
  }

  .hero-media {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    align-items: stretch;
  }

  .hero-media img,
  .hero-panel {
    min-height: 100%;
  }

  .trust-strip,
  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    padding-bottom: 20px;
  }

  .trust-strip div,
  .trust-strip div:first-child,
  .trust-strip div:last-child {
    border-radius: var(--radius);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
    gap: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand {
    gap: 10px;
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .hero-proof,
  .hero-media {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .price-row,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .price-row strong {
    text-align: left;
  }

  .contact-form {
    padding: 20px;
  }
}
