/* ============================================================
   Berthold Law Firm, PLLC — homepage
   Type pair: Sora (display) + IBM Plex Sans (body)
   ============================================================ */

@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PlexSans";
  src: url("../assets/fonts/plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #080f1c;
  --navy: #11203c;
  --navy-2: #182c4e;
  --navy-3: #22395f;
  --gold: #c0a062;
  --gold-2: #dcc48f;
  --gold-3: #8e7233;
  --mist: #f4f6f9;
  --mist-2: #e7ecf2;
  --body: #3c4657;
  --white: #fff;
  --hair: rgba(255, 255, 255, 0.14);
  --hair-d: rgba(17, 32, 60, 0.14);
  --ff-d: "Sora", system-ui, sans-serif;
  --ff-b: "PlexSans", system-ui, sans-serif;
  --pad: 45px;
  --shadow: 0 24px 60px -24px rgba(8, 15, 28, 0.35);
  --site-chrome-height: 160px;
  --container-max: 1320px;
  --nav-breakpoint: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-b);
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-d);
  color: var(--navy);
  margin: 0;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

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

/* --- layout ------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--ff-b);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.eyebrow--light {
  color: var(--gold-2);
}

.section {
  padding-block: 96px;
}

.section__head {
  max-width: 760px;
}

.section__head h2 {
  font-size: clamp(30px, 3.1vw, 46px);
  margin-top: 18px;
}

.section__rule {
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin-top: 26px;
}

/* --- buttons ----------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-b);
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  max-width: 100%;
  line-height: 1.35;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 30px -12px rgba(192, 160, 98, 0.7);
}

.btn--gold:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-3);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--hair-d);
}

.btn--outline:hover {
  background: var(--mist);
}

.btn--lg {
  font-size: 20px;
  padding: 19px 30px;
  letter-spacing: 0.005em;
}

.btn--sm {
  font-size: 15px;
  padding: 13px 26px;
}

/* --- header ------------------------------------------------ */

.header {
  position: relative;
  z-index: 30;
}

.header__overlay {
  display: none;
}

.header__inner {
  position: relative;
  z-index: 2;
}

.header__top {
  background: var(--navy);
}

.header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 26px;
}

.header__logo {
  flex-shrink: 0;
  display: block;
}

.header__logo img {
  width: 145px;
  height: 43px;
  object-fit: contain;
  max-width: none;
  flex-shrink: 0;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.header__meta {
  text-align: right;
  border-right: 1px solid var(--hair);
  padding-right: 26px;
}

.header__meta-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.header__meta-value {
  font-family: var(--ff-b);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  margin-top: 3px;
}

.header__phone {
  font-family: var(--ff-d);
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__phone svg {
  width: 19px;
  height: 19px;
  fill: var(--gold);
  flex: none;
}

.header__phone:hover {
  color: var(--gold-2);
}

.header__cta .btn--sm {
  font-size: clamp(13px, 1.05vw, 15px);
  padding: clamp(10px, 1vw, 13px) clamp(16px, 1.8vw, 26px);
  flex-shrink: 0;
  white-space: nowrap;
}

.header__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 4;
}

.header__toggle-bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.24s ease, top 0.24s ease, opacity 0.2s ease;
}

.header__toggle-bar:nth-child(1) {
  top: 14px;
}

.header__toggle-bar:nth-child(2) {
  top: 21px;
}

.header__toggle-bar:nth-child(3) {
  top: 28px;
}

.header.is-open .header__toggle-bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.header.is-open .header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.header.is-open .header__toggle-bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.header__nav {
  background: var(--white);
  border-bottom: 1px solid var(--mist-2);
  box-shadow: 0 8px 26px -22px rgba(8, 15, 28, 0.5);
}

.header__nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
}

.header__nav-list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav-item {
  display: flex;
  flex-shrink: 0;
}

.header__nav-link {
  font-size: clamp(13.5px, 1.12vw, 16px);
  font-weight: 500;
  color: var(--navy);
  padding: 23px 0;
  display: flex;
  align-items: center;
  position: relative;
  letter-spacing: 0.005em;
  flex-shrink: 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transition: left 0.22s ease, right 0.22s ease;
}

.header__nav-link--current {
  color: var(--gold-3);
  font-weight: 600;
}

.header__nav-link--current::after {
  left: 0;
  right: 0;
}

.header__nav-link:hover {
  color: var(--gold-3);
}

.header__nav-link:hover::after {
  left: 14%;
  right: 14%;
}

.header__nav-extras {
  display: none;
}

/* --- hero -------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px) 0;
  height: calc(100vh - var(--site-chrome-height));
  height: calc(100dvh - var(--site-chrome-height));
  height: calc(100svh - var(--site-chrome-height));
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/bg-hero.jpg");
  background-size: cover;
  background-position: center 34%;
  opacity: 0.78;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 15, 28, 0.97) 0%,
    rgba(8, 15, 28, 0.9) 32%,
    rgba(17, 32, 60, 0.66) 56%,
    rgba(24, 44, 78, 0.42) 100%
  );
}

.hero__glow {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 76%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    54% 66% at 70% 72%,
    rgba(168, 196, 236, 0.42),
    rgba(94, 124, 170, 0.16) 46%,
    rgba(8, 15, 28, 0) 74%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-inline: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: min(100%, 640px);
  width: min(100%, 50%);
  padding-inline: clamp(0px, 1.5vw, 12px);
  min-width: 0;
}

.hero__title {
  color: var(--white);
  font-size: clamp(34px, 3.6vw, 54px);
  margin-top: 22px;
  letter-spacing: -0.022em;
  text-shadow: 0 2px 24px rgba(8, 15, 28, 0.5);
}

.hero__amp {
  color: var(--gold-2);
  font-weight: 500;
}

.hero__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17.5px;
  margin-top: 22px;
  max-width: 510px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero__phone {
  font-family: var(--ff-d);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.hero__phone-label {
  display: block;
  font-family: var(--ff-b);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  line-height: 1;
  margin-bottom: 6px;
}

.hero__phone:hover {
  color: var(--gold-2);
}

.hero__visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.hero__image {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* --- accolades --------------------------------------------- */

.accolades {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.accolades__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding-block: 34px;
}

.accolades__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-right: 1px solid var(--hair);
  min-width: 0;
}

.accolades__item:last-child {
  border-right: 0;
}

.accolades__item img {
  height: var(--badge-height);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.22s ease;
}

.accolades__item:hover img {
  opacity: 1;
}

.accolades__item--forum {
  --badge-height: 74px;
}

.accolades__item--trial {
  --badge-height: 64px;
}

.accolades__item--super {
  --badge-height: 38px;
}

.accolades__item--aaj {
  --badge-height: 56px;
}

/* --- intro ------------------------------------------------- */

.intro {
  background: var(--white);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}

.intro__figure {
  position: relative;
}

.intro__image {
  width: 100%;
  aspect-ratio: 1080 / 1300;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.intro__figure::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -22px;
  width: 132px;
  height: 132px;
  border-left: 3px solid var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 4px 0 0 0;
}

.intro__badge {
  position: absolute;
  right: -26px;
  bottom: 38px;
  background: var(--navy);
  color: var(--white);
  padding: 26px 30px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  max-width: 260px;
}

.intro__badge-value {
  font-family: var(--ff-d);
  font-size: 38px;
  font-weight: 600;
  color: var(--gold-2);
  line-height: 1;
  letter-spacing: -0.02em;
}

.intro__badge-text {
  font-size: 13.5px;
  line-height: 1.5;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.82);
}

.intro__title {
  font-size: clamp(28px, 2.9vw, 42px);
  margin-top: 18px;
}

.intro__body {
  margin-top: 24px;
  font-size: 17px;
}

.intro__body p + p {
  margin-top: 18px;
}

.intro__callout {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--mist);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

.intro__callout p {
  font-family: var(--ff-d);
  font-size: 19px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}

.intro__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* --- practice areas ---------------------------------------- */

.practice {
  background: var(--mist);
}

.practice .section__head {
  margin-inline: auto;
  text-align: center;
}

.practice .eyebrow {
  justify-content: center;
}

.practice .section__rule {
  margin-inline: auto;
}

.practice__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.practice__card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px -28px rgba(8, 15, 28, 0.5);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  min-width: 0;
}

.practice__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -26px rgba(8, 15, 28, 0.5);
}

.practice__thumb {
  position: relative;
  aspect-ratio: 760 / 560;
  overflow: hidden;
}

.practice__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.practice__card:hover .practice__thumb img {
  transform: scale(1.05);
}

.practice__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 28, 0) 42%, rgba(8, 15, 28, 0.55) 100%);
}

.practice__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.practice__body h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.practice__body p {
  font-size: 15px;
  line-height: 1.66;
  margin-top: 12px;
  flex: 1;
}

.practice__link {
  font-family: var(--ff-b);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: gap 0.2s ease;
}

.practice__card:hover .practice__link {
  gap: 15px;
}

/* --- case results ------------------------------------------ */

.cases {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.cases__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/images/bg-cases.jpg") center / cover;
  opacity: 0.4;
}

.cases__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.9), rgba(17, 32, 60, 0.86));
}

.cases .container {
  position: relative;
  z-index: 2;
}

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

.cases .section__head {
  text-align: center;
  margin-inline: auto;
}

.cases .eyebrow {
  justify-content: center;
}

.cases .section__rule {
  margin-inline: auto;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid var(--hair);
}

.cases__item {
  padding: 44px 30px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  align-items: center;
}

.cases__item:last-child {
  border-right: 0;
}

.cases__amount {
  font-family: var(--ff-d);
  font-size: clamp(20px, 1.75vw, 27px);
  font-weight: 600;
  color: var(--gold-2);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cases__rule {
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.cases__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.cases__note {
  margin-top: 34px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

/* --- values ------------------------------------------------ */

.values {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

.values__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/images/bg-values.jpg") center / cover;
  opacity: 0.34;
}

.values__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(8, 15, 28, 0.94), rgba(17, 32, 60, 0.8));
}

.values .container {
  position: relative;
  z-index: 2;
}

.values__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.values__title {
  color: var(--white);
  font-size: clamp(30px, 3.1vw, 44px);
  margin-top: 18px;
}

.values__lede {
  color: rgba(255, 255, 255, 0.74);
  margin-top: 22px;
  font-size: 17px;
}

.values__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--hair);
}

.values__item {
  background: rgba(8, 15, 28, 0.42);
  padding: 34px 30px;
  min-width: 0;
  transition: background 0.22s ease;
}

.values__item:hover {
  background: rgba(8, 15, 28, 0.62);
}

.values__num {
  font-family: var(--ff-d);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
}

.values__item h3 {
  color: var(--white);
  font-size: 19.5px;
  margin-top: 16px;
  line-height: 1.28;
}

.values__item p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 12px;
}

/* --- testimonial ------------------------------------------- */

.testimonial {
  background: var(--white);
}

.testimonial__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: 70px;
  align-items: center;
}

.testimonial__mark {
  font-family: var(--ff-d);
  font-size: 96px;
  line-height: 0.7;
  color: var(--gold);
  font-weight: 600;
  height: 56px;
}

.testimonial__title {
  font-size: clamp(28px, 2.9vw, 42px);
  margin-top: 18px;
}

.testimonial__lead {
  font-family: var(--ff-d);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.42;
  margin-top: 28px;
  letter-spacing: -0.015em;
}

.testimonial__body {
  margin-top: 20px;
  font-size: 17px;
}

.testimonial__by {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.testimonial__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold-2);
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.testimonial__name {
  font-family: var(--ff-d);
  font-weight: 600;
  color: var(--navy);
  font-size: 17px;
}

.testimonial__stars {
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 13px;
  margin-top: 2px;
}

.testimonial__figure img {
  width: 100%;
  aspect-ratio: 900 / 1100;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* --- contact ----------------------------------------------- */

.contact {
  background: var(--mist);
  border-top: 1px solid var(--mist-2);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.contact__title {
  font-size: clamp(28px, 2.9vw, 42px);
  margin-top: 18px;
}

.contact__lede {
  margin-top: 22px;
}

.contact__info {
  margin-top: 34px;
  display: grid;
  gap: 2px;
  background: var(--mist-2);
}

.contact__row {
  background: var(--white);
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact__row svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-3);
  flex: none;
  margin-top: 3px;
}

.contact__label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a94a6;
  font-weight: 600;
}

.contact__value {
  font-family: var(--ff-d);
  font-size: 17px;
  color: var(--navy);
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.45;
}

.contact__form {
  background: var(--white);
  border-radius: 4px;
  padding: 44px;
  box-shadow: var(--shadow);
}

.contact__form-title {
  font-size: 23px;
}

.contact__form-sub {
  font-size: 15px;
  margin-top: 10px;
}

.contact__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71798a;
}

.field__input,
.field__select {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d3dae4;
  border-radius: 3px;
  background: var(--white);
  font-size: 15.5px;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2371798A' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field__textarea {
  height: 120px;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid #d3dae4;
  border-radius: 3px;
  font-size: 15.5px;
  resize: vertical;
  width: 100%;
  font-family: var(--ff-b);
  line-height: 1.6;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.18);
}

.contact__form .btn {
  width: 100%;
  margin-top: 26px;
}

.contact__fine {
  font-size: 12.5px;
  line-height: 1.6;
  color: #8a94a6;
  margin-top: 16px;
}

/* --- footer ------------------------------------------------ */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  gap: 56px;
  padding-block: 72px;
}

.footer__logo {
  display: block;
  width: 290px;
  max-width: 100%;
}

.footer__logo img {
  width: 290px;
  height: 85px;
  max-width: 100%;
  object-fit: contain;
}

.footer__about {
  margin-top: 24px;
  max-width: 400px;
  line-height: 1.72;
}

.footer__heading {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--ff-b);
  font-weight: 600;
}

.footer__list {
  margin-top: 22px;
  display: grid;
  gap: 13px;
  list-style: none;
  padding: 0;
}

.footer__list a:hover {
  color: var(--gold-2);
}

.footer__address {
  margin-top: 22px;
  line-height: 1.75;
}

.footer__phone {
  font-family: var(--ff-d);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-top: 18px;
  display: inline-block;
  letter-spacing: -0.01em;
}

.footer__phone:hover {
  color: var(--gold-2);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

/* --- responsive: header scaling before hamburger ----------- */

@media (max-width: 1400px) {
  .intro__grid,
  .values__grid,
  .testimonial__grid,
  .contact__grid {
    gap: 52px;
  }

  .header__cta {
    gap: 20px;
  }

  .header__meta {
    padding-right: 20px;
  }
}

@media (max-width: 1280px) {
  .hero__title {
    font-size: clamp(32px, 3.4vw, 44px);
  }

  .header__nav-link {
    padding-block: 20px;
  }

  .header__phone {
    font-size: clamp(17px, 1.4vw, 20px);
  }

  .header__cta {
    gap: 16px;
  }

  .header__meta {
    padding-right: 16px;
  }
}

/* --- nav breakpoint: hamburger below 1200px ---------------- */

@media (max-width: 1200px) {
  .header__overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(8, 15, 28, 0.56);
  }

  .header__overlay:not([hidden]) {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .header__toggle {
    display: block;
  }

  .header.is-open .header__toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4;
    background: var(--navy);
    border-radius: 4px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100%;
    height: 100dvh;
    padding: 84px 28px 40px;
    z-index: 2;
    transform: translateX(100%);
    transition: transform 0.28s ease, visibility 0.28s ease;
    overflow-y: auto;
    box-shadow: none;
    border-bottom: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-overflow-scrolling: touch;
  }

  .header.is-open .header__nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .header__nav-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    padding-inline: 0;
    max-width: none;
    height: 100%;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
  }

  .header__nav-item {
    width: 100%;
  }

  .header__nav-link {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    font-size: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--mist-2);
    white-space: normal;
  }

  .header__nav-link::after {
    display: none;
  }

  .header__nav-extras {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid var(--mist-2);
  }

  .header__nav-extras .header__meta {
    text-align: left;
    border-right: 0;
    padding-right: 0;
  }

  .header__nav-extras .header__meta-label,
  .header__nav-extras .header__phone {
    color: var(--navy);
  }

  .header__nav-extras .header__meta-value {
    color: var(--body);
  }

  .header__nav-extras .header__phone {
    font-size: 22px;
    white-space: normal;
  }

  .header__nav-extras .header__phone svg {
    fill: var(--gold-3);
  }

  .header__nav-extras .btn {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 1180px) {
  :root {
    --pad: 32px;
  }

  .section {
    padding-block: 80px;
  }

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

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

  .cases__item:nth-child(2) {
    border-right: 0;
  }

  .values__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
}

@media (max-width: 980px) {
  .btn {
    white-space: normal;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
  }

  .hero__text {
    max-width: none;
  }

  .hero__visual {
    width: 46%;
  }

  .intro__grid,
  .testimonial__grid,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro__badge {
    right: auto;
    left: 20px;
    bottom: 20px;
  }

  .intro__figure {
    max-width: 520px;
  }

  .testimonial__figure {
    max-width: 460px;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 56px;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 20px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding-block: 62px;
  }

  .hero {
    height: auto;
    min-height: calc(100vh - var(--site-chrome-height));
    min-height: calc(100dvh - var(--site-chrome-height));
    min-height: calc(100svh - var(--site-chrome-height));
    padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 32px) 0;
  }

  .hero__inner {
    height: auto;
    display: block;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    padding-bottom: clamp(20px, 4vw, 32px);
  }

  .hero__visual {
    position: relative;
    width: 100%;
    height: auto;
    justify-content: center;
  }

  .hero__image {
    height: auto;
    max-height: 430px;
    width: auto;
    margin-inline: auto;
    object-position: bottom center;
  }

  .btn--lg {
    font-size: 18px;
    padding: 16px 24px;
  }

  .accolades__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }

  .accolades__item img {
    height: calc(var(--badge-height) * 0.86);
  }

  .accolades__item:nth-child(2) {
    border-right: 0;
  }

  .accolades__item:nth-child(1),
  .accolades__item:nth-child(2) {
    border-bottom: 1px solid var(--hair);
    padding-bottom: 26px;
  }

  .practice__grid {
    gap: 20px;
  }

  .contact__form {
    padding: 28px 22px;
  }

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

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

@media (max-width: 640px) {
  .hero__actions {
    gap: 16px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .btn--lg {
    font-size: 17px;
    padding: 16px 22px;
  }
}

@media (max-width: 560px) {
  .hero__phone {
    font-size: 22px;
    white-space: normal;
  }

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

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

  .cases__item {
    border-right: 0;
  }

  .footer__logo,
  .footer__logo img {
    width: 236px;
    height: 69px;
  }

  .intro__figure::before {
    left: -10px;
    top: -10px;
    width: 90px;
    height: 90px;
  }

  .intro__badge {
    position: static;
    margin-top: 18px;
    max-width: none;
  }
}
