/* =====================================================================
   Inbal — Home V2: editorial, minimal, typographic (moran-law inspired).
   Loaded AFTER styles.css; only home-v2 pieces live here.
   ===================================================================== */

body.v2 { background: #fff; }

/* ---------- Header: airier, thin separators, no pill hover ---------- */
.v2-header { height: 84px; background: rgba(255,255,255,.98); }
/* Reverse the header: menu on the right, logo on the left. */
.v2-header .container { flex-direction: row-reverse; }
.v2-header .main-nav { gap: 0; }
.v2-header .main-nav a {
  padding: 6px 18px; border-radius: 0; font-size: 15.5px; font-weight: 400; color: #222;
  border-left: 1px solid var(--line);
}
.v2-header .main-nav a:last-child { border-left: none; }
.v2-header .main-nav a.active { color: var(--gold-dark); font-weight: 600; }
.v2-header .main-nav a.active::after { display: none; }

/* ---------- Reveal-on-scroll (one time) ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.rv.rv-in { opacity: 1; transform: none; }
.rv-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.rv-stagger.rv-in > * { opacity: 1; transform: none; }
.rv-stagger.rv-in > *:nth-child(2) { transition-delay: .15s; }
.rv-stagger.rv-in > *:nth-child(3) { transition-delay: .3s; }
.rv-stagger.rv-in > *:nth-child(4) { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Shared v2 type ---------- */
.v2-kicker {
  display: block; color: var(--gold-dark); font-weight: 500; font-size: 14px;
  letter-spacing: .16em; margin-bottom: 14px;
}
.v2-kicker.on-dark { color: var(--gold); }
.v2-big { font-size: clamp(30px, 4vw, 50px); line-height: 1.18; font-weight: 800; color: var(--navy); margin: 0; }
.v2-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--navy); margin: 0 0 46px; }
.v2-section { padding: 96px 0; }
.v2-section--tint { background: #fafbfc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Hero: full-bleed photo, caption bottom ---------- */
.v2-hero {
  position: relative; min-height: 72vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; color: #fff;
}
.v2-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,25,42,.05) 40%, rgba(16,25,42,.72) 100%);
}
.v2-hero .container { position: relative; z-index: 2; width: 100%; }
.v2-hero-caption { padding: 0 0 56px; max-width: 700px; }
.v2-hero-caption h1 {
  color: #fff; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.15; font-weight: 800; margin: 0;
}

/* ---------- Editorial split (about) ---------- */
.v2-split {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start;
}
.v2-split-head { position: relative; padding-inline-end: 40px; border-inline-end: 1px solid #d9dde3; }
.v2-split-body { max-width: 620px; }
.v2-prose p { font-size: 17px; line-height: 2; color: var(--ink); font-weight: 300; }
.v2-prose p:first-child::first-line { font-weight: 500; }

.v2-portrait { float: inline-start; margin: 6px 0 12px; margin-inline-end: 28px; text-align: center; position: relative; }
.v2-portrait img {
  width: 210px; height: 210px; object-fit: cover; object-position: top center;
  /* square photo, edges feathered into the page background */
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 40%, transparent 95%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 40%, transparent 95%);
}
.v2-portrait figcaption { margin-top: 6px; line-height: 1.3; }
.v2-portrait b { display: block; color: var(--navy); font-size: 15px; }
.v2-portrait span { color: var(--muted); font-size: 12.5px; }

/* ---------- Text links ---------- */
.v2-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  color: var(--gold-dark); font-weight: 600; font-size: 16px;
}
.v2-link::before { content: "//"; font-weight: 700; opacity: .55; }
.v2-link:hover { color: var(--gold); }
.v2-link--light { color: var(--gold); }
.v2-link--light:hover { color: #fff; }

/* ---------- Practice-area cards (count comes from the DB) ---------- */
.v2-cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));  /* adapts to any number */
}
.v2-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 28px 26px; transition: .2s ease; border-top: 3px solid var(--gold);
}
.v2-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(22,39,63,.12); }
.v2-card h3 { font-size: 19px; margin: 0 0 10px; color: var(--navy); }
.v2-card p {
  margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Advantages: numbered, no cards ---------- */
.v2-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.v2-value { border-top: 1px solid #d9dde3; padding-top: 26px; }
.v2-num { font-size: 15px; font-weight: 300; color: var(--gold-dark); letter-spacing: .1em; }
.v2-value h3 { font-size: 20px; margin: 12px 0 8px; color: var(--navy); }
.v2-value p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.9; font-weight: 300; }

/* ---------- Testimonials: plain quotes ---------- */
.v2-testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.v2-testi .testi { background: none; border: none; box-shadow: none; padding: 26px 0 0; border-radius: 0; border-top: 1px solid #d9dde3; }
.v2-testi .testi .quote-mark { display: none; }
.v2-testi .testi .stars { font-size: 13px; margin: 0 0 10px; }
.v2-testi .testi p { font-size: 16px; line-height: 1.95; font-weight: 300; }
.v2-testi .testi .avatar { display: none; }
.v2-testi .testi .who { margin-top: 12px; }

/* ---------- Dark statement band ---------- */
.v2-band { background: var(--bg-navy); color: rgba(255,255,255,.85); padding: 88px 0; text-align: center; }
.v2-band h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); margin: 0 0 12px; }
.v2-band p { max-width: 560px; margin: 0 auto 8px; font-weight: 300; font-size: 17px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .v2-header { height: auto; min-height: 62px; }   /* let the header size to its content */
  .v2-section { padding: 60px 0; }
  .v2-hero { min-height: 56vh; }
  .v2-split { grid-template-columns: 1fr; gap: 34px; }
  .v2-split-head { border-inline-end: none; padding-inline-end: 0; border-bottom: 1px solid #d9dde3; padding-bottom: 26px; }
  .v2-values, .v2-testi { grid-template-columns: 1fr; gap: 30px; }
  .v2-portrait { float: none; margin: 0 auto 20px; text-align: center; }
  .v2-portrait img { margin: 0 auto; }
}
