/* =========================================================
   Home page sections
   ========================================================= */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-bg-alt); }
.section--tint { background: var(--sky-50); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, 0.82); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%,
    radial-gradient(120% 90% at 85% 0%, var(--navy-800) 0%, transparent 60%),
    var(--navy-950);
  color: var(--white);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero__title {
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: 1;
  color: var(--white);
}
.hero__title-sub {
  display: block;
  margin-top: 0.12em;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--sky-300);
}
.hero__statements {
  display: grid;
  gap: 4px;
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-inline-start: 22px;
  border-inline-start: 1px solid var(--gold-500);
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--white);
}
.hero__lead {
  max-width: 52ch;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.72);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__media { position: relative; }
.hero__media .media-ph,
.hero__media .media-img { position: relative; z-index: 1; }
.hero__media .media-img { background: var(--navy-800); }
.hero__frame {
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid rgba(207, 160, 92, 0.55);
  pointer-events: none;
}
[dir="rtl"] .hero__frame { inset: 22px 22px -22px -22px; }
.hero__foot { margin-top: clamp(56px, 7vw, 96px); }
.hero__rule { display: block; height: 1px; background: var(--line-dark); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* The hero photo stays portrait on small screens so the suits are visible, not just the faces.
     Width is capped so it never fills a whole tablet screen; the frame offset (14px) stays inside the gutter. */
  .hero__media { max-width: min(440px, calc(100% - 14px)); width: 100%; margin-inline: auto; }
  .hero__media .media-ph--portrait,
  .hero__media .media-img--portrait { aspect-ratio: 4 / 5; }
  .hero__media .media-img { object-position: var(--pos-mobile, var(--pos, 50% 50%)); }
  .hero__frame { inset: 14px -14px -14px 14px; }
  [dir="rtl"] .hero__frame { inset: 14px 14px -14px -14px; }
}
@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__statements { font-size: 1.25rem; }
}

/* ---------- Practice areas ---------- */
.practice__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1024px) { .practice__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .practice__grid { grid-template-columns: 1fr; }
  .practice-card { padding: 32px 24px 28px; }
}

/* ---------- Firm & team (two lawyers, equal weight) ---------- */
.team__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: end;
}
.team__intro .section-title { margin-bottom: 24px; }
.team__text { max-width: 44ch; margin-bottom: 36px; }

.team__people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  list-style: none;
}
.lawyer-card figure { display: grid; gap: 0; }
.lawyer-card__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;   /* keep faces in frame if the box ratio ever differs */
  background: var(--sky-100);
}
.lawyer-card__caption {
  display: grid;
  gap: 4px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.lawyer-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.3;
}
.lawyer-card__role { font-size: var(--fs-sm); color: var(--color-accent-text); }

@media (max-width: 960px) {
  .team__grid { grid-template-columns: 1fr; gap: 0; }
  /* On small screens the CTA follows the portraits */
  .team__intro { display: contents; }
  .team__text { margin-bottom: 40px; }
  .team__people { margin-bottom: 36px; }
  .team__intro .link-arrow { order: 1; justify-self: start; }
}
@media (max-width: 420px) {
  .team__people { gap: 12px; }
  .lawyer-card__name { font-size: 1.0625rem; }
  .lawyer-card__role { font-size: var(--fs-xs); }
}

/* ---------- Why ---------- */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 96px);
}
.why__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.why__quote {
  margin: 0 0 40px;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
  line-height: 1.35;
  color: var(--white);
}
.why__quote::before {
  content: "״";
  display: block;
  height: 0.55em;
  font-size: 2.6em;
  line-height: 0.9;
  color: var(--gold-500);
}
.why__text { max-width: 62ch; }
.why__text--muted { color: rgba(255, 255, 255, 0.62); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 48px;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.steps__item {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 24px 0 0;
  padding-inline-end: 16px;
}
.steps__item::before {
  content: "";
  position: absolute;
  top: -4px;
  inset-inline-start: 0;
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.steps__num { font-family: var(--font-display); color: var(--gold-500); font-size: var(--fs-sm); }
.steps__label { color: var(--white); font-weight: 500; line-height: 1.4; }

@media (max-width: 960px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__head { position: static; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-inline-start: 1px solid var(--line-dark); margin-block: 36px; }
  .steps__item { grid-template-columns: auto 1fr; align-items: baseline; gap: 14px; padding: 0 20px 22px; }
  .steps__item::before { top: 8px; inset-inline-start: -4px; }
}

/* ---------- Benefits ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
}
.benefit {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px 24px 32px;
  border-top: 1px solid var(--line);
  background: transparent;
  transition: transform 400ms var(--ease), background-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
/* Gold rule that draws across the top edge on hover */
.benefit::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0.12);
  transform-origin: var(--origin-start, right);
  transition: transform 600ms var(--ease);
}
[dir="ltr"] .benefit::before { --origin-start: left; }
.benefit__index {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  line-height: 1;
  color: var(--color-accent-text);
  transform-origin: var(--origin-start, right) center;
  transition: transform 400ms var(--ease), color 400ms var(--ease);
}
[dir="ltr"] .benefit__index { --origin-start: left; }
.benefit__title { font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--navy-900); }
.benefit__text { color: var(--color-text-muted); font-size: var(--fs-sm); }

@media (hover: hover) {
  .benefit:hover {
    transform: translateY(-6px);
    background: var(--sky-50);
    box-shadow: 0 22px 40px -30px rgba(10, 22, 48, 0.45);
  }
  .benefit:hover::before { transform: scaleX(1); }
  .benefit:hover .benefit__index { transform: scale(1.9); color: var(--gold-500); }
}

@media (max-width: 1024px) { .benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 560px)  { .benefits__grid { grid-template-columns: 1fr; row-gap: 36px; } }

/* ---------- Success stories ---------- */
.stories__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.stories__note { font-size: var(--fs-xs); color: var(--color-text-muted); max-width: 60ch; }

@media (max-width: 600px) {
  .stories .section-head--split { flex-direction: column; align-items: flex-start; }
  .carousel-controls { display: none; }
  .story-card { flex-basis: 84%; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%,
    var(--navy-800);
  color: rgba(255, 255, 255, 0.8);
}
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--gutter);
  height: 2px;
  background: var(--gold-500);
  max-width: 120px;
}
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.cta__lead { margin-block: 24px 36px; max-width: 46ch; }
.cta__social { margin-top: 32px; }
.cta__social-label { font-size: var(--fs-xs); color: var(--sky-300); letter-spacing: 0.04em; }
.cta__form-wrap {
  padding: clamp(28px, 4vw, 48px);
  background: var(--navy-950);
  border: 1px solid var(--line-dark);
  color: var(--white);
}
.cta__form-title { margin-bottom: 24px; font-size: var(--fs-lg); color: var(--white); }
.cta .field__input { border-bottom-color: rgba(255, 255, 255, 0.35); }
.cta .field__label { color: var(--sky-300); }
.cta .field--check a { color: var(--gold-300); }

@media (max-width: 960px) { .cta__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cta .contact-form { grid-template-columns: 1fr; } }
