/* Next Matter Pro homepage (v2): light, professional, approachable.
   Loaded only on the homepage (body.home-v2); every other page keeps styles.css as-is. */

body.home-v2 {
  --hv-navy: #0B2A4A;
  --hv-navy-2: #123B6D;
  --hv-blue: #1D5FA0;
  --hv-ice: #EAF2FB;
  --hv-ice-2: #D6E6F7;
  --hv-line: #DDE6F0;
  --hv-text: #0B2A4A;
  --hv-muted: #52627A;
  --hv-gold: #F2C166;
  --hv-gold-ink: #3B2906;
  --hv-green: #1D9E75;
  background: #fff;
}

/* Header, background, and cookie notice styling now live in theme.css (site-wide). */

/* ---------- Page ---------- */
.hv {
  color: var(--hv-text);
  background: #fff;
}

.hv h1,
.hv h2,
.hv h3 {
  color: var(--hv-navy);
  letter-spacing: -0.025em;
}

.hv p {
  color: var(--hv-muted);
}

.hv svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* Buttons */
.hv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.hv-btn:hover {
  transform: translateY(-1px);
}

.hv-btn-primary {
  background: var(--hv-navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 42, 74, 0.18);
}

.hv-btn-primary:hover {
  background: var(--hv-navy-2);
}

.hv-btn-light {
  background: #fff;
  color: var(--hv-navy);
  border: 1px solid var(--hv-ice-2);
}

.hv-btn-gold {
  background: var(--hv-gold);
  color: var(--hv-gold-ink);
  flex: 0 0 auto;
}

.hv-btn-gold:hover {
  background: #F6CE82;
}

/* Hero */
.hv-hero {
  padding: 24px 0 0;
}

.hv-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 32px;
  padding: 64px 56px 0;
  border-radius: 28px;
  background: linear-gradient(160deg, #F2F7FD 0%, var(--hv-ice) 55%, var(--hv-ice-2) 100%);
  overflow: hidden;
}

.hv-hero-copy {
  padding-bottom: 60px;
}

.hv-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--hv-navy-2) !important;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(11, 42, 74, 0.06);
}

.hv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hv-green);
  box-shadow: 0 0 0 4px rgba(29, 158, 117, 0.16);
}

.hv h1 {
  margin: 0 0 18px;
  max-width: 14ch;
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
}

.hv-lead {
  max-width: 34rem;
  margin: 0 0 28px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #34506F !important;
}

.hv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hv-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
  max-width: 36rem;
}

.hv-stats div {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hv-stats dt {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--hv-navy);
  letter-spacing: -0.02em;
}

.hv-stats dd {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--hv-muted);
}

.hv-hero-media {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}

.hv-hero-photo {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
}

.hv-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(11, 42, 74, 0.14);
}

.hv-float strong {
  display: block;
  font-size: 0.85rem;
  color: var(--hv-navy);
}

.hv-float small {
  display: block;
  font-size: 0.75rem;
  color: var(--hv-muted);
}

.hv-float-a {
  top: 50%;
  left: -12%;
}

.hv-float-b {
  bottom: 14%;
  right: -2%;
}

.hv-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.hv-green {
  background: #E1F5EE;
  color: #0F6E56;
}

.hv-gold {
  background: #FAEEDA;
  color: #854F0B;
}

/* Trust strip */
.hv-strip {
  padding: 22px 0;
}

.hv-strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
}

.hv-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hv-navy-2);
}

.hv-strip svg {
  color: var(--hv-green);
}

/* Sections */
.hv-section {
  padding: 72px 0;
}

.hv-soft {
  background: #F6F9FC;
  border-top: 1px solid #EEF3F8;
  border-bottom: 1px solid #EEF3F8;
}

.hv-head {
  max-width: 44rem;
  margin: 0 0 36px;
}

.hv-eyebrow {
  margin: 0 0 10px;
  color: var(--hv-blue) !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
}

.hv-head > p:last-child {
  margin: 0;
  font-size: 1.02rem;
}

/* Service cards */
.hv-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hv-card {
  padding: 26px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--hv-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hv-card:hover {
  transform: translateY(-3px);
  border-color: var(--hv-ice-2);
  box-shadow: 0 18px 40px rgba(11, 42, 74, 0.08);
}

.hv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--hv-ice);
  color: var(--hv-blue);
}

.hv-icon svg {
  width: 22px;
  height: 22px;
}

.hv-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.hv-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Why */
.hv-why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.hv-why p {
  font-size: 1rem;
  line-height: 1.7;
}

.hv-reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hv-reasons li {
  position: relative;
  padding: 18px 20px 18px 56px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--hv-line);
}

.hv-reasons li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hv-ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5FA0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.hv-reasons strong {
  display: block;
  margin-bottom: 3px;
  color: var(--hv-navy);
  font-size: 1rem;
}

.hv-reasons span {
  color: var(--hv-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Team */
.hv-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hv-person {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(160deg, #F6FAFE, var(--hv-ice));
  border: 1px solid var(--hv-line);
}

.hv-person img {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(11, 42, 74, 0.14);
}

.hv-person h3 {
  margin: 4px 0 2px;
  font-size: 1.15rem;
  font-weight: 800;
}

.hv-role {
  margin: 0 0 10px;
  color: var(--hv-blue) !important;
  font-size: 0.85rem;
  font-weight: 700;
}

.hv-person p:last-child {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

.hv-more {
  margin: 22px 0 0;
}

.hv-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hv-blue);
  font-weight: 700;
  text-decoration: none;
}

.hv-more a:hover {
  text-decoration: underline;
}

/* Steps */
.hv-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hv-steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 33%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--hv-ice-2) 0 10px, transparent 10px 18px);
}

.hv-steps li {
  position: relative;
}

.hv-step-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--hv-navy);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px #F6F9FC;
}

.hv-steps h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
}

.hv-steps p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 22rem;
}

/* Closing call to action */
.hv-cta-wrap {
  padding: 72px 0 84px;
}

.hv-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--hv-navy) 0%, var(--hv-navy-2) 100%);
}

.hv .hv-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  max-width: 30ch;
}

.hv .hv-cta p {
  margin: 0;
  color: #C9DAEE;
}

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .hv-hero-panel {
    grid-template-columns: 1fr;
    padding: 44px 32px 0;
  }

  .hv-hero-copy {
    padding-bottom: 8px;
  }

  .hv h1 {
    max-width: 18ch;
  }

  .hv-hero-photo {
    max-width: 340px;
  }

  .hv-float-a {
    left: 2%;
  }

  .hv-float-b {
    right: 2%;
  }

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

  .hv-why {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hv-team {
    grid-template-columns: 1fr;
  }

  .hv-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
  }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .hv-hero {
    padding-top: 14px;
  }

  .hv-hero-panel {
    padding: 30px 20px 0;
    border-radius: 22px;
    gap: 12px;
  }

  .hv-tag {
    font-size: 0.75rem;
    margin-bottom: 16px;
  }

  .hv h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .hv-lead {
    font-size: 1rem;
  }

  .hv-actions .hv-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hv-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .hv-hero-photo {
    max-width: 260px;
  }

  .hv-float {
    padding: 8px 10px;
    border-radius: 12px;
  }

  .hv-float-icon {
    width: 30px;
    height: 30px;
  }

  .hv-float strong {
    font-size: 0.78rem;
  }

  .hv-float small {
    font-size: 0.7rem;
  }

  .hv-float-a {
    top: 48%;
    left: 0;
  }

  .hv-float-b {
    bottom: 10%;
    right: 0;
  }

  .hv-strip-row {
    justify-content: flex-start;
    gap: 10px 20px;
  }

  .hv-strip span {
    font-size: 0.85rem;
  }

  .hv-section {
    padding: 52px 0;
  }

  .hv-cards {
    grid-template-columns: 1fr;
  }

  .hv-person {
    flex-direction: column;
    padding: 22px;
  }

  .hv-steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hv-steps::before {
    top: 24px;
    bottom: 24px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--hv-ice-2) 0 10px, transparent 10px 18px);
  }

  .hv-steps li {
    padding-left: 66px;
  }

  .hv-step-num {
    position: absolute;
    left: 0;
    top: 0;
  }

  .hv-cta-wrap {
    padding: 52px 0 64px;
  }

  .hv-cta {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .hv-cta .hv-btn {
    width: 100%;
    justify-content: center;
  }
}
