/* ============================================================
   CENTRAL VIRGINIA LITIGATION PLC — homepage
   Palette: white wordmark + olive #92A900
   Type: EB Garamond (display) / Public Sans (body + UI)
   ============================================================ */

:root {
  --ink: #12160f;
  --ink-soft: #1d2318;
  --ink-line: #2e3626;
  --laurel: #92a900;
  --laurel-lift: #b4ce1a;
  --laurel-deep: #6e8000;
  --parchment: #f6f5ef;
  --stone: #dedcd1;
  --graphite: #38402f;
  --graphite-soft: #5c6650;

  --ff-display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --ff-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container-max: 1320px;
  --nav-breakpoint: 1200px;
  --site-chrome-height: 96px;

  --pad: clamp(20px, 3vw, 40px);
  --nav-fs: clamp(13px, 1.05vw, 16px);
  --hero-phone-fs: 24px;
  --cta-fs: clamp(15px, 1.2vw, 20px);
  --header-cta-fs: clamp(13px, 1.05vw, 15px);
}

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

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--graphite);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
}

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

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

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

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

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

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

/* ---- signature device: olive dot + hairline ---- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--laurel-deep);
  margin: 0 0 20px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--laurel);
  flex: none;
}

.eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 74px;
  background: linear-gradient(90deg, var(--laurel), transparent);
}

.eyebrow--light {
  color: var(--laurel-lift);
}

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

.eyebrow--centered::after {
  display: none;
}

.dot-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.dot-rule i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--laurel);
  flex: none;
}

.dot-rule span {
  height: 1px;
  flex: 1;
  background: var(--stone);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: var(--cta-fs);
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 16px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
  max-width: 100%;
  line-height: 1.35;
  text-align: center;
  transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.btn--primary {
  background: var(--laurel);
  color: #0f1309;
}

.btn--primary:hover {
  background: var(--laurel-lift);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(146, 169, 0, 0.28);
}

.btn--sm {
  font-size: var(--header-cta-fs);
  padding: 11px 24px;
}

.btn__label--short {
  display: none;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laurel-deep);
}

.link-more svg {
  transition: transform 0.3s ease;
}

.link-more:hover svg {
  transform: translateX(5px);
}

.link-more--light {
  color: var(--laurel-lift);
}

/* =================== HEADER =================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 32px);
  min-height: 96px;
}

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

.header__logo {
  width: 250px;
  height: auto;
  flex-shrink: 0;
  max-width: none;
  max-height: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 30px);
  margin-inline: auto;
}

.header__nav-link {
  flex-shrink: 0;
  font-size: var(--nav-fs);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #edeee7;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--laurel);
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  right: 0;
}

.header__nav-link--active {
  color: #fff;
}

.header__nav-close {
  display: none;
}

.header__nav-extras {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  flex-shrink: 0;
}

.header__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex-shrink: 0;
}

.header__phone-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laurel-lift);
}

.header__phone-number {
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.5vw, 23px);
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header__cta {
  flex-shrink: 0;
}

.header__burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.header__burger-line {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger.is-active .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.is-active .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger.is-active .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(11, 14, 9, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

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

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 14, 9, 0.96) 0%, rgba(11, 14, 9, 0.9) 32%, rgba(11, 14, 9, 0.5) 56%, rgba(11, 14, 9, 0.14) 80%, rgba(11, 14, 9, 0.24) 100%),
    linear-gradient(180deg, rgba(11, 14, 9, 0.55) 0%, transparent 34%, rgba(11, 14, 9, 0.5) 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding-inline: clamp(4px, 1vw, 12px);
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: min(100%, 640px);
  width: min(100%, 55%);
  padding-inline: clamp(0px, 1vw, 8px);
}

.hero__title {
  font-size: clamp(38px, 4.05vw, 62px);
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin-bottom: 18px;
}

.hero__title em {
  font-style: italic;
  color: var(--laurel-lift);
  font-weight: 400;
}

.hero__subtitle {
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
  max-width: 470px;
  margin-bottom: 30px;
}

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

.hero__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex: none;
}

.hero__phone-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 5px;
}

.hero__phone-number {
  font-family: var(--ff-display);
  font-size: var(--hero-phone-fs);
  color: #fff;
  white-space: nowrap;
}

.hero__phone-number:hover {
  color: var(--laurel-lift);
}

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

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

/* =================== ACCOLADE STRIP =================== */
.creds {
  background: var(--ink-soft);
  border-block: 1px solid var(--ink-line);
}

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

.creds__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 24px;
  position: relative;
}

.creds__item + .creds__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--ink-line);
}

.creds__image {
  width: 100%;
  max-width: 322px;
  height: auto;
  opacity: 0.84;
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.creds__item:hover .creds__image {
  opacity: 1;
  transform: translateY(-2px);
}

/* =================== SECTION FRAME =================== */
.section {
  padding-block: 104px;
}

.section__head {
  max-width: 760px;
}

.section__title {
  font-size: clamp(31px, 2.85vw, 45px);
  color: var(--ink);
  margin-bottom: 0;
}

.section__subtitle {
  font-family: var(--ff-display);
  font-size: clamp(19px, 1.5vw, 24px);
  font-style: italic;
  color: var(--laurel-deep);
  margin-top: 8px;
}

.section--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}

.section--dark .section__title {
  color: #fff;
}

.section--dark .section__subtitle {
  color: var(--laurel-lift);
}

/* =================== ABOUT =================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 86px);
  align-items: center;
}

.about__figure {
  position: relative;
}

.about__frame {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 26px 60px rgba(18, 22, 15, 0.2);
}

.about__image {
  width: 100%;
  height: clamp(420px, 44vw, 600px);
  object-fit: cover;
}

.about__figure::before {
  content: "";
  position: absolute;
  left: -16px;
  top: -16px;
  width: 120px;
  height: 120px;
  border-left: 2px solid var(--laurel);
  border-top: 2px solid var(--laurel);
}

.about__stat {
  position: absolute;
  right: -26px;
  bottom: 38px;
  background: var(--ink);
  color: #fff;
  padding: 26px 30px;
  border-radius: 3px;
  box-shadow: 0 22px 44px rgba(18, 22, 15, 0.32);
  border-left: 3px solid var(--laurel);
}

.about__stat-number {
  font-family: var(--ff-display);
  font-size: 46px;
  line-height: 0.95;
  color: var(--laurel-lift);
}

.about__stat-text {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  line-height: 1.55;
}

.about__title {
  font-size: clamp(31px, 2.85vw, 45px);
  color: var(--ink);
}

.about__subtitle {
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.6vw, 26px);
  font-style: italic;
  color: var(--laurel-deep);
  margin: 9px 0 26px;
}

.about__copy p {
  font-size: 17px;
  color: var(--graphite-soft);
  max-width: 64ch;
}

.about__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* =================== PRACTICE AREAS =================== */
.practice {
  background: #fff;
  border-block: 1px solid var(--stone);
}

.practice__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
}

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

.practice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--parchment);
  border: 1px solid var(--stone);
  border-radius: 3px;
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.38s ease, border-color 0.38s ease;
}

.practice-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 44px rgba(18, 22, 15, 0.16);
  border-color: var(--laurel);
}

.practice-card__thumb {
  position: relative;
  height: 212px;
  overflow: hidden;
  background: var(--ink);
}

.practice-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

.practice-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 22, 15, 0) 40%, rgba(18, 22, 15, 0.72) 100%);
}

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

.practice-card__title {
  font-size: 24px;
  color: var(--ink);
  line-height: 1.2;
}

.practice-card__body .link-more {
  margin-top: auto;
}

/* =================== CASE RESULTS =================== */
.results__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}

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

.result {
  padding: 40px 34px 38px;
  border-bottom: 1px solid var(--ink-line);
  border-right: 1px solid var(--ink-line);
  position: relative;
  overflow: hidden;
}

.result:first-child {
  border-left: 1px solid var(--ink-line);
}

.result::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--laurel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.result:hover::after {
  transform: scaleX(1);
}

.result__amount {
  font-family: var(--ff-display);
  font-size: clamp(34px, 3.1vw, 46px);
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.result__kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laurel-lift);
  margin: 14px 0 22px;
}

/* =================== VALUES =================== */
.values {
  position: relative;
  background: var(--parchment);
  overflow: hidden;
}

.values__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.values__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.values::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--parchment) 0%, rgba(246, 245, 239, 0.55) 42%, rgba(246, 245, 239, 0.62) 62%, var(--parchment) 100%);
}

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

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
}

.value {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: 36px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
}

.value:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(18, 22, 15, 0.13);
  border-color: var(--laurel);
}

.value__icon {
  width: 46px;
  height: 46px;
  color: var(--laurel-deep);
}

.value__title {
  font-size: 23px;
  color: var(--ink);
  line-height: 1.22;
  min-height: 2.44em;
}

.value .link-more {
  margin-top: auto;
}

/* =================== TESTIMONIAL =================== */
.testimonial {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.testimonial__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.testimonial__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  object-position: center 40%;
}

.testimonial::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 22, 15, 0.95) 0%, rgba(18, 22, 15, 0.82) 55%, rgba(18, 22, 15, 0.68) 100%);
}

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

.testimonial__inner {
  max-width: 1020px;
  margin-inline: auto;
  text-align: center;
}

.testimonial__quote-mark {
  font-family: var(--ff-display);
  font-size: 104px;
  line-height: 0.5;
  color: var(--laurel);
  display: block;
  margin-bottom: 14px;
}

.testimonial__quote {
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.72vw, 29px);
  line-height: 1.55;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.006em;
}

.testimonial__attrib {
  margin-top: 30px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--laurel-lift);
}

.testimonial__stars {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
  color: var(--laurel);
}

/* =================== CONTACT =================== */
.contact {
  background: #fff;
  border-top: 1px solid var(--stone);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.contact__title {
  font-size: clamp(31px, 2.85vw, 45px);
  color: var(--ink);
}

.contact__subtitle {
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.6vw, 26px);
  font-style: italic;
  color: var(--laurel-deep);
  margin: 9px 0 26px;
}

.contact__copy p {
  color: var(--graphite-soft);
  max-width: 52ch;
}

.contact__info {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contact__info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid var(--stone);
}

.contact__info-item:last-child {
  border-bottom: 1px solid var(--stone);
}

.contact__info-item svg {
  flex: none;
  color: var(--laurel-deep);
  margin-top: 3px;
}

.contact__info-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  margin-bottom: 4px;
}

.contact__info-value {
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--ink);
  line-height: 1.4;
}

.contact-form {
  background: var(--parchment);
  border: 1px solid var(--stone);
  border-radius: 4px;
  padding: clamp(28px, 3vw, 44px);
}

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

.contact-form__fine {
  font-size: 14px;
  color: var(--graphite-soft);
  margin-bottom: 26px;
}

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

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

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

.field__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}

.field__input {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: 0 14px;
  height: 40px;
  width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.field__input--textarea {
  height: 120px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

.field__input:focus {
  outline: none;
  border-color: var(--laurel);
  box-shadow: 0 0 0 3px rgba(146, 169, 0, 0.16);
}

.contact-form__submit {
  width: 100%;
  margin-top: 22px;
}

.contact-form__disclaimer {
  font-size: 12px;
  color: var(--graphite-soft);
  margin-top: 16px;
  line-height: 1.6;
}

/* =================== FOOTER =================== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding-block: 70px 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 56px;
}

.footer__logo {
  width: 262px;
  margin-bottom: 22px;
}

.footer__brand p {
  font-size: 15px;
  max-width: 44ch;
  line-height: 1.75;
}

.footer__heading {
  font-family: var(--ff-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laurel-lift);
  margin-bottom: 20px;
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__list a,
.footer__list li {
  font-size: 15.5px;
}

.footer__list a:hover {
  color: var(--laurel-lift);
}

.footer__address {
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.8;
}

.footer__bar {
  border-top: 1px solid var(--ink-line);
  padding-block: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
}

/* =================== REVEAL =================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    scroll-behavior: auto !important;
  }
}

/* =================== RESPONSIVE =================== */

/* Progressive header type scaling before hamburger */
@media (max-width: 1400px) {
  :root {
    --nav-fs: 14px;
    --header-cta-fs: 13px;
  }

  .btn__label--long {
    display: none;
  }

  .btn__label--short {
    display: inline;
  }
}

@media (max-width: 1280px) {
  :root {
    --nav-fs: 13px;
  }

  .header__phone--bar {
    display: none;
  }

  .header__cta.btn--sm {
    padding: 10px 18px;
  }
}

/* Hamburger below 1200px */
@media (max-width: 1200px) {
  .header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header > .container {
    padding-right: 0;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    width: min(360px, 88vw);
    height: 100%;
    margin: 0;
    padding: 88px 28px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink);
    border-left: 1px solid var(--ink-line);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0.35s;
    overflow-y: auto;
  }

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

  .header__nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ink-line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .header__nav-close-icon,
  .header__nav-close-icon::before {
    display: block;
    width: 16px;
    height: 2px;
    background: #fff;
    content: "";
  }

  .header__nav-close-icon {
    transform: rotate(45deg);
    position: relative;
  }

  .header__nav-close-icon::before {
    position: absolute;
    inset: 0;
    transform: rotate(90deg);
  }

  .header__nav-link {
    width: 100%;
    padding: 16px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--ink-line);
  }

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

  .header__nav-extras {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    width: 100%;
  }

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

  .header__phone--bar,
  .header__cta {
    display: none;
  }

  .header__actions {
    margin-left: auto;
  }

  .header__burger {
    display: block;
    padding: 10px 16px 10px 12px;
  }

  .header__burger.is-active .header__burger-line:nth-child(1),
  .header__burger.is-active .header__burger-line:nth-child(3) {
    transform: none;
  }

  .header__burger.is-active .header__burger-line:nth-child(2) {
    opacity: 1;
  }

  .header__inner {
    min-height: 84px;
  }

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

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

  .result:nth-child(3) {
    border-left: 1px solid var(--ink-line);
  }

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

  .value__title {
    min-height: 0;
  }

  .hero__visual {
    width: 50%;
  }

  .hero__content {
    width: min(100%, 52%);
  }
}

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

  .hero__actions .btn {
    font-size: 16px;
    padding: 14px 26px;
  }

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

  .about__stat {
    right: 24px;
  }

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

  .creds__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
    padding-block: 26px;
  }

  .creds__item:nth-child(3)::before {
    display: none;
  }

  .section {
    padding-block: 78px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 28px) 0;
    display: flex;
    flex-direction: column;
  }

  .hero__inner {
    height: auto;
    padding-top: 8px;
    padding-bottom: 0;
  }

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

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    margin-top: 24px;
    justify-content: center;
  }

  .hero__image {
    height: auto;
    width: min(100%, 520px);
    max-height: none;
  }

  .hero__bg-image {
    object-position: 70% 30%;
  }

  .practice__top,
  .results__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  :root {
    --cta-fs: 17px;
    --hero-phone-fs: 22px;
  }

  body {
    font-size: 16px;
  }

  .header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header__inner {
    min-height: 76px;
  }

  .header__burger {
    padding: 10px 14px 10px 10px;
  }

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

  .hero__actions .btn {
    width: 100%;
  }

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

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

  .result {
    border-left: 1px solid var(--ink-line);
  }

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

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

  .creds__item::before {
    display: none !important;
  }

  .creds__image {
    max-width: 260px;
  }

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

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

  .about__stat {
    position: static;
    right: auto;
    bottom: auto;
    margin-top: -30px;
    margin-inline: 20px;
  }

  .section {
    padding-block: 62px;
  }

  .about__figure::before {
    display: none;
  }
}
