:root {
  --ink: #24333c;
  --muted: #66777a;
  --brand: #3a5369;
  --brand-dark: #253949;
  --coral: #c9544e;
  --coral-soft: #f3a39d;
  --gold: #e9a12b;
  --sage: #dfe7dd;
  --cream: #f7f7f5;
  --warm: #fdfcf9;
  --line: #dde2df;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(36, 51, 60, 0.14);
  --header-offset: 126px;
  --font-body: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Cardo, Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--warm);
  font-family: var(--font-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

main[id],
section[id] {
  scroll-margin-top: calc(var(--header-offset) + 18px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--brand-dark);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 252, 249, 0.96);
  border-bottom: 1px solid rgba(58, 83, 105, 0.14);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(36, 51, 60, 0.1);
}

.topline {
  background: var(--brand-dark);
  color: var(--white);
  font-size: 0.84rem;
}

.topline__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topline p {
  margin: 0;
}

.topline__links {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

.topline a {
  text-decoration: none;
}

.topline a:hover,
.topline a:focus-visible {
  color: var(--coral-soft);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 160px;
}

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

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 600;
}

.menu a:not(.button) {
  color: var(--brand-dark);
  text-decoration: none;
  position: relative;
}

.menu a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.menu a:hover::after,
.menu a:focus-visible::after {
  transform: scaleX(1);
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--brand-dark);
  margin-block: 5px;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--coral);
  border-radius: 4px;
  background: var(--coral);
  color: var(--white);
  padding: 13px 22px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: #b94741;
  border-color: #b94741;
  box-shadow: var(--shadow);
}

.button--small {
  min-height: 42px;
  padding: 10px 16px;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: var(--white);
  color: var(--brand-dark);
  border-color: var(--white);
}

.button--secondary {
  background: var(--brand);
  border-color: var(--brand);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 4px;
  background: var(--gold);
}

.hero__picture,
.hero__picture img,
.hero__video,
.hero__tint {
  position: absolute;
  inset: 0;
}

.hero__picture img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero__video {
  display: block;
}

.hero__tint {
  background:
    linear-gradient(180deg, rgba(28, 44, 55, 0.34), rgba(28, 44, 55, 0.62)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(28, 44, 55, 0.34));
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: inherit;
  align-content: center;
  justify-items: center;
  padding-block: 74px 58px;
  text-align: center;
}

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

h1,
h2,
h3 {
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.6rem, 5.2vw, 4.9rem);
}

.hero__headline {
  display: grid;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 1120px;
  margin: 0 0 30px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 6.2rem;
  font-weight: 800;
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 0 8px 30px rgba(19, 32, 40, 0.2);
}

h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.3rem);
}

h3 {
  font-size: 1.45rem;
}

.hero__copy {
  max-width: 940px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 0;
}

.hero .button {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.hero__cycle-button {
  gap: 0.24em;
}

.hero__cycle-button span:first-child {
  flex: 0 0 auto;
}

.hero__cycle-word {
  display: inline-block;
  flex: 0 0 3.75em;
  width: 3.75em;
  min-width: 0;
  text-align: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero__cycle-word.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.hero .button:hover,
.hero .button:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--brand-dark);
}

@media (min-width: 1200px) {
  .hero__headline {
    font-size: 7.2rem;
  }
}

.section {
  padding-block: clamp(72px, 9vw, 116px);
}

.intro {
  padding-block: clamp(38px, 5vw, 64px);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: start;
}

.intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section__heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section__heading p:last-child,
.attorney__copy p,
.resources p,
.contact__copy p {
  color: var(--muted);
}

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

.service-card,
.review-card,
.contact-form {
  border-radius: 8px;
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 28px;
}

.service-card__mark {
  width: fit-content;
  color: var(--coral);
  font-weight: 800;
  font-size: 0.78rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.services-full-image {
  width: 100vw;
  height: clamp(320px, 48vw, 620px);
  margin: clamp(34px, 5vw, 62px) calc(50% - 50vw) 0;
  overflow: hidden;
}

.services-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.attorney {
  background: var(--cream);
}

.attorney__grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.attorney__image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--sage);
  box-shadow: var(--shadow);
}

.attorney__image img {
  width: 100%;
  height: min(720px, 72vw);
  object-fit: cover;
  object-position: center top;
}

.attorney__copy {
  max-width: 690px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--coral);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "";
  width: 42px;
  height: 2px;
  margin-left: 12px;
  background: currentColor;
}

.proof {
  background: var(--warm);
}

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

.review-card {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 28px;
}

.review-card h3 {
  margin-bottom: 16px;
  color: var(--brand-dark);
}

.review-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.resources {
  background: var(--sage);
}

.resources__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

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

.check-list li {
  position: relative;
  padding: 18px 18px 18px 52px;
  border: 1px solid rgba(58, 83, 105, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 23px;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(-45deg);
}

.faqs {
  background: var(--warm);
}

.faqs__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 84px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 24px 42px 24px 0;
  color: var(--brand-dark);
  font-weight: 800;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 22px;
  color: var(--coral);
  font-size: 1.4rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: -6px 0 24px;
  color: var(--muted);
}

.contact {
  background: var(--brand-dark);
  color: var(--white);
}

.contact h2 {
  color: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(34px, 7vw, 80px);
  align-items: start;
}

.contact__copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

address {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  font-style: normal;
}

address a,
address span {
  color: var(--white);
  text-decoration: none;
}

address a:hover,
address a:focus-visible {
  color: var(--coral-soft);
}

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--white);
  color: var(--brand-dark);
  padding: clamp(22px, 4vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 13px;
}

.contact-form textarea {
  resize: vertical;
}

.form-note,
.form-result p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-result {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.form-result[hidden] {
  display: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(201, 84, 78, 0.28);
  border-color: var(--coral);
}

.site-footer {
  background: #f0f2ef;
  color: var(--brand-dark);
  padding-block: 42px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.footer__grid img {
  width: 170px;
  height: auto;
  margin-bottom: 14px;
}

.footer__grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer__grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  font-weight: 800;
}

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

.footer__fineprint {
  text-align: right;
  font-size: 0.86rem;
}

@media (max-width: 960px) {
  .topline__inner {
    justify-content: center;
  }

  .topline p {
    display: none;
  }

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

  .menu {
    position: fixed;
    top: var(--header-offset);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: calc(100svh - var(--header-offset));
    overflow-y: auto;
    background: var(--warm);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 18px 20px 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  body.menu-open .menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .no-js .nav-toggle {
    display: none;
  }

  .no-js .menu {
    position: static;
    max-height: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .menu a {
    padding: 14px 0;
  }

  .menu .button {
    margin-top: 12px;
  }

  .hero {
    min-height: 640px;
  }

  .hero__picture img,
  .hero__video {
    object-position: 22% center;
  }

  .hero__headline {
    gap: 6px;
    font-size: 4.6rem;
  }

  .service-grid,
  .review-grid,
  .intro__grid,
  .attorney__grid,
  .resources__grid,
  .faqs__grid,
  .contact__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .intro__grid {
    gap: 24px;
  }

  .footer__grid nav {
    justify-content: flex-start;
  }

  .footer__fineprint {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .topline__links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
  }

  .brand img {
    width: 142px;
  }

  .nav {
    min-height: 70px;
  }

  .menu {
    top: var(--header-offset);
  }

  .hero {
    min-height: 570px;
  }

  .hero__content {
    padding-block: 50px 42px;
  }

  .hero__headline {
    gap: 4px;
    font-size: clamp(2.45rem, 12.5vw, 3.1rem);
  }

  .hero__copy {
    max-width: 34rem;
    font-size: 1rem;
  }

  .hero__actions {
    display: flex;
    width: min(100%, 390px);
    margin-bottom: 0;
  }

  .hero .button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 7px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .hero__cycle-button {
    gap: 0.18em;
  }

  .hero__cycle-word {
    flex-basis: 3.7em;
    width: 3.7em;
  }

  @media (max-width: 290px) {
    .hero__actions {
      width: min(100%, 300px);
    }

    .hero .button {
      flex-basis: 100%;
    }
  }

  .section {
    padding-block: 64px;
  }

  .intro {
    padding-block: 44px 52px;
  }

  .intro__grid {
    gap: 22px;
  }

  .service-card {
    min-height: 220px;
    padding: 24px;
  }

  .review-card {
    padding: 24px;
  }

  .attorney__image img {
    height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
