/* ============================================================
   PRICE & RANDLE, LLC — vanity homepage
   Display: Prata · Body: Public Sans
   ============================================================ */

:root {
  --ink: #14181f;
  --ink-2: #1b222d;
  --lake: #1f3a4d;
  --slate: #3e4553;
  --slate-lt: #6e7683;
  --brass: #b08d57;
  --brass-lt: #c9a971;
  --paper: #f1f2f3;
  --paper-2: #e7e9eb;
  --rule: #d2d6da;
  --white: #ffffff;

  --ff-display: "Prata", Georgia, "Times New Roman", serif;
  --ff-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container-max: 1600px;
  --nav-breakpoint: 1200px;
  --pad: 45px;
  --header-h: 96px;
  --site-chrome-height: 96px;
}

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

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--slate);
  background: var(--white);
  overflow-x: hidden;
}

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

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

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

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

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--brass-lt);
  outline-offset: 3px;
}

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

/* ---------- Shared type ------------------------------------------------ */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 20px;
}

.eyebrow--light {
  color: var(--brass-lt);
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.005em;
}

.section-title {
  font-size: clamp(32px, 3.4vw, 50px);
  color: var(--ink);
  margin: 0 0 22px;
}

.section-title--light {
  color: var(--white);
}

.frame {
  position: relative;
  border: 1px solid var(--rule);
  padding: 26px 22px;
  background: var(--white);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.frame--dark {
  border-color: rgba(201, 169, 113, 0.42);
  background: transparent;
}

.frame--dark::before {
  border-color: rgba(201, 169, 113, 0.24);
}

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  white-space: nowrap;
  max-width: 100%;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.btn--primary {
  background: var(--brass);
  color: var(--ink);
}

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

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn--small {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Header ----------------------------------------------------- */

.header {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  z-index: 40;
}

.header__overlay {
  display: none;
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

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

.header__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.header__toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}

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

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

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

.header__nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.header__nav-link {
  display: block;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  position: relative;
  padding-block: 6px;
  white-space: nowrap;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

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

.header__nav-link:hover::after {
  transform: scaleX(1);
}

.header__nav-extras {
  display: none;
}

.header__cta {
  flex-shrink: 0;
  margin-left: 34px;
}

/* ---------- Hero ------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px) 0;
  overflow: hidden;
  isolation: isolate;
  height: calc(100vh - var(--site-chrome-height));
  height: calc(100dvh - var(--site-chrome-height));
  height: calc(100svh - var(--site-chrome-height));
  background: var(--ink-2) url("../assets/images/bg-hero.jpg") center 32% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(20, 24, 31, 0.96) 0%,
    rgba(20, 24, 31, 0.92) 34%,
    rgba(31, 58, 77, 0.72) 60%,
    rgba(31, 58, 77, 0.42) 100%
  );
  z-index: 1;
}

.hero .container {
  padding-inline: 0;
}

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

.hero__content {
  position: relative;
  z-index: 3;
  width: min(100%, 640px);
  max-width: 55%;
  padding: 0 clamp(8px, 2vw, 24px);
  animation: rise 0.8s cubic-bezier(0.22, 0.68, 0.36, 1) both;
}

.hero__title {
  font-size: clamp(48px, 5.6vw, 86px);
  line-height: 0.98;
  color: var(--white);
  letter-spacing: -0.012em;
  margin: 0 0 18px;
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  font-family: var(--ff-body);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin: 0 0 20px;
}

.hero__subtitle::after {
  content: "";
  display: block;
  width: 88px;
  height: 1px;
  background: var(--brass);
  margin-top: 20px;
}

.hero__text {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: nowrap;
}

.hero__phone {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero__phone-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.hero__phone-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.hero__phone:hover .hero__phone-number {
  color: var(--brass-lt);
}

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

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Accolades -------------------------------------------------- */

.accolades {
  background: var(--paper) url("../assets/images/bg-accolades.jpg") center / 900px auto;
  border-block: 1px solid var(--rule);
  padding: 40px 0;
}

.accolades__inner {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}

.accolades__label {
  flex: 0 0 auto;
  max-width: 190px;
}

.accolades__label .eyebrow {
  margin-bottom: 6px;
}

.accolades__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate-lt);
}

.accolades__rail {
  flex: 1 1 480px;
  max-width: 1060px;
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.accolades__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.accolades__badge-image {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 0.28s ease;
}

.accolades__badge:hover .accolades__badge-image {
  opacity: 1;
}

.accolades__badge-image--advocates {
  height: 72px;
}

.accolades__badge-image--trial {
  height: 68px;
}

.accolades__badge-image--super {
  height: 52px;
}

.accolades__badge-image--aaj {
  height: 58px;
}

/* ---------- About ------------------------------------------------------ */

.about {
  padding: 110px 0;
  background: var(--white);
}

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

.about__media {
  position: relative;
}

.about__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about__media::after {
  content: "";
  position: absolute;
  left: -22px;
  bottom: -22px;
  width: 172px;
  height: 172px;
  border-left: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  pointer-events: none;
}

.about__title {
  font-size: clamp(30px, 2.7vw, 42px);
  color: var(--ink);
  margin: 0 0 26px;
  line-height: 1.2;
}

.about__kicker {
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 8px;
}

.about__copy p:not(.eyebrow) {
  margin: 0 0 20px;
}

.about__copy p:last-of-type {
  margin-bottom: 0;
}

/* ---------- Emphasis band ---------------------------------------------- */

.band {
  background: var(--lake);
  color: var(--white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201, 169, 113, 0.28);
  pointer-events: none;
}

.band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.band__text {
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.36;
  max-width: 820px;
}

/* ---------- Practice areas --------------------------------------------- */

.practice {
  padding: 110px 0 118px;
  background: var(--paper);
}

.practice__head {
  max-width: 640px;
  margin-bottom: 52px;
}

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

.practice-card {
  background: var(--white);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -22px rgba(20, 24, 31, 0.4);
  border-color: var(--brass);
}

.practice-card__thumb {
  position: relative;
  overflow: hidden;
}

.practice-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.68, 0.36, 1);
}

.practice-card:hover .practice-card__image {
  transform: scale(1.05);
}

.practice-card__body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.practice-card__title {
  font-size: 23px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.24;
}

.practice-card__text {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--slate-lt);
  flex: 1;
}

.practice-card__link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.practice-card__link::after {
  content: "→";
  transition: transform 0.25s ease;
}

.practice-card:hover .practice-card__link::after {
  transform: translateX(5px);
}

/* ---------- Case results ----------------------------------------------- */

.results {
  padding: 112px 0;
  background: var(--ink) url("../assets/images/bg-results.jpg") center / cover no-repeat;
  background-blend-mode: multiply;
  color: var(--white);
  position: relative;
}

.results::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 31, 0.9), rgba(31, 58, 77, 0.86));
}

.results .container {
  position: relative;
  z-index: 1;
}

.results__head {
  max-width: 620px;
  margin-bottom: 56px;
}

.results__head .section-title {
  white-space: pre-line;
}

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

.result-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.result-card__seal {
  text-align: center;
  padding: 34px 20px 30px;
}

.result-card__amount {
  font-family: var(--ff-display);
  font-size: clamp(34px, 3.4vw, 46px);
  color: var(--brass-lt);
  line-height: 1;
  margin-bottom: 16px;
}

.result-card__divider {
  width: 52px;
  height: 1px;
  background: rgba(201, 169, 113, 0.55);
  margin: 0 auto 14px;
}

.result-card__kind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.result-card__text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding-inline: 6px;
}

.results__note {
  margin: 52px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  max-width: 760px;
}

/* ---------- Values ----------------------------------------------------- */

.values {
  padding: 112px 0;
  background: var(--white);
}

.values__head {
  max-width: 600px;
  margin-bottom: 54px;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.values__item {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 38px 32px 40px;
  transition: background-color 0.3s ease;
}

.values__item:hover {
  background: var(--paper);
}

.values__tick {
  width: 34px;
  height: 1px;
  background: var(--brass);
  margin-bottom: 22px;
}

.values__title {
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.26;
}

.values__text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--slate-lt);
}

/* ---------- Testimonial ------------------------------------------------ */

.testimonial {
  position: relative;
  padding: 112px 0;
  background: var(--slate) url("../assets/images/bg-testimonial.jpg") center / cover no-repeat;
  color: var(--white);
}

.testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 24, 31, 0.94) 0%,
    rgba(20, 24, 31, 0.86) 52%,
    rgba(31, 58, 77, 0.6) 100%
  );
}

.testimonial .container {
  position: relative;
  z-index: 1;
}

.testimonial__inner {
  max-width: 900px;
}

.testimonial__quote {
  margin: 0 0 30px;
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.42;
  color: var(--white);
}

.testimonial__cite {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-lt);
}

.testimonial__cite::before {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--brass);
}

.testimonial__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
}

/* ---------- Contact ---------------------------------------------------- */

.contact {
  padding: 112px 0;
  background: var(--paper);
}

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

.contact__title {
  font-size: clamp(30px, 2.8vw, 44px);
  color: var(--ink);
  margin: 0 0 22px;
}

.contact__lede {
  margin: 0 0 34px;
  max-width: 440px;
}

.contact__list {
  display: grid;
  gap: 26px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--brass);
  display: grid;
  place-items: center;
  color: var(--brass);
}

.contact__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--brass);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate-lt);
  margin-bottom: 4px;
}

.contact__value {
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 44px 42px 46px;
}

.contact-form__title {
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 6px;
}

.contact-form__lede {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--slate-lt);
}

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

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-lt);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.contact-form__field textarea {
  height: 120px;
  padding: 11px 14px;
  line-height: 1.6;
  resize: vertical;
}

.contact-form__field select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--slate-lt) 50%),
    linear-gradient(135deg, var(--slate-lt) 50%, transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: var(--brass);
  background: var(--white);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #a6adb4;
}

.contact-form .btn {
  width: 100%;
  margin-top: 24px;
}

.contact-form__note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--slate-lt);
  text-align: center;
}

/* ---------- Footer ----------------------------------------------------- */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  padding: 70px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.footer__logo {
  width: 268px;
  height: 50px;
  max-width: none;
  object-fit: contain;
  margin-bottom: 24px;
}

.footer__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  max-width: 340px;
}

.footer__heading {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin: 0 0 20px;
}

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

.footer__link:hover {
  color: var(--white);
}

.footer__address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-line;
}

.footer__phone {
  display: inline-block;
  margin-top: 16px;
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  font-family: var(--ff-body);
}

.footer__phone:hover {
  color: var(--brass-lt);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 0 34px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- Responsive: header scale before hamburger ------------------ */

@media (max-width: 1440px) {
  .header__nav-list {
    gap: 22px;
  }

  .header__cta {
    margin-left: 26px;
  }

  .header__nav-link {
    font-size: 15px;
  }
}

@media (max-width: 1320px) {
  .header__nav-list {
    gap: 16px;
  }

  .header__nav-link {
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .header__cta .btn--small {
    font-size: 13px;
    padding: 0 18px;
    height: 42px;
  }

  .header__inner {
    gap: 20px;
  }
}

@media (max-width: 1240px) {
  .header__nav-link {
    font-size: 13px;
    letter-spacing: 0.03em;
  }

  .header__cta {
    margin-left: 16px;
  }
}

/* ---------- Nav breakpoint: 1200px ------------------------------------- */

@media (max-width: 1200px) {
  .header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(20, 24, 31, 0.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .header.is-open .header__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

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

  .header__toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100%;
    height: 100dvh;
    margin-left: 0;
    padding: 84px 28px 40px;
    background: var(--ink);
    z-index: 2;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .header.is-open .header__nav {
    transform: translateX(0);
  }

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

  .header__nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header__nav-link {
    font-size: 16px;
    padding: 16px 0;
    letter-spacing: 0.08em;
  }

  .header__nav-extras {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
  }

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

  .header__cta {
    display: none;
  }

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

/* ---------- Layout breakpoints ----------------------------------------- */

@media (max-width: 1100px) {
  .practice__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1024px) {
  :root {
    --pad: 36px;
    --header-h: 78px;
  }

  .hero__content {
    max-width: min(100%, 560px);
    width: min(100%, 560px);
  }

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

  .about__image {
    aspect-ratio: 16 / 10;
  }

  .about__media::after {
    width: 120px;
    height: 120px;
    left: -14px;
    bottom: -14px;
  }

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

  .about,
  .practice,
  .results,
  .values,
  .testimonial,
  .contact {
    padding-block: 76px;
  }
}

@media (max-width: 980px) {
  .btn {
    white-space: normal;
    height: auto;
    min-height: 54px;
    padding: 12px 24px;
    font-size: 17px;
    line-height: 1.35;
  }

  .btn--small {
    min-height: 46px;
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero__actions {
    flex-wrap: wrap;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: clamp(32px, 6vw, 48px) clamp(20px, 4vw, 28px) 0;
  }

  .hero__inner {
    height: auto;
    align-items: flex-start;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(4px, 2vw, 12px) clamp(16px, 3vw, 24px);
  }

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    justify-content: center;
    z-index: 2;
  }

  .hero__image {
    height: auto;
    width: min(100%, 420px);
    max-height: 52vh;
    margin-inline: auto;
    object-position: bottom center;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 22px;
  }

  body {
    font-size: 16px;
  }

  .container {
    width: 100%;
  }

  .header__inner {
    min-height: 70px;
    gap: 14px;
  }

  .hero__title {
    font-size: clamp(38px, 11vw, 54px);
  }

  .accolades__inner {
    gap: 26px;
  }

  .accolades__rail {
    max-width: none;
    margin-left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

  .accolades__label {
    max-width: none;
    flex: 1 1 100%;
  }

  .accolades__badge-image {
    height: auto;
    max-height: 56px;
  }

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

  .band__inner {
    gap: 26px;
  }

  .contact-form {
    padding: 30px 22px 32px;
  }

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

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

  .footer__logo {
    width: min(268px, 100%);
    height: auto;
  }

  .about,
  .practice,
  .results,
  .values,
  .testimonial,
  .contact {
    padding-block: 62px;
  }
}

@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .band__inner .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
