/* ==========================================================================
   VitHome — Simple Funnel Home (hero → reviews → team)
   Scoped, lightweight styles. Loaded last to override legacy rules.
   ========================================================================== */

/* ---------- Typography calm-down (less bold) ---------- */
.vh-home h1, .vh-home h2, .vh-home h3,
.hs-page h1, .hs-page h2, .hs-page h3 { font-weight: 600; letter-spacing: -0.02em; }
.vh-home strong, .vh-home b, .hs-page strong { font-weight: 600; }
.vh-home .vh-team-card__name { font-weight: 600; font-size: 1.15rem; }
.vh-home .vh-team-card__role { font-weight: 500; }
.vh-home .vh-feedback-card strong,
.vh-home .vh-feedback-card h4 { font-weight: 600; }
.vh-nav__link, .vh-header-cta { font-weight: 500; }

/* ---------- Hero (fits first screen together with both cards) ---------- */
.hs-hero {
  padding: clamp(1.25rem, 3vh, 2.25rem) 0 clamp(2rem, 4vh, 3rem);
}
.hs-hero__intro { max-width: 760px; margin-bottom: clamp(1.25rem, 2.5vh, 1.75rem); }
.hs-hero__rating {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .82rem; font-weight: 500; color: var(--ink-secondary);
  text-decoration: none; margin-bottom: .9rem;
}
.hs-hero__rating b { color: var(--vh-emerald-900); font-weight: 600; }
.hs-stars { color: #F2A900; letter-spacing: 1px; }
.hs-hero__title {
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.1; color: var(--vh-emerald-900);
  margin: 0 0 .7rem;
}
.hs-hero__sub {
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  line-height: 1.55; color: var(--muted); margin: 0; max-width: 620px;
}

.hs-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.25rem);
}
.hs-card {
  display: flex; flex-direction: column;
  border-radius: 22px; padding: clamp(1.25rem, 2vw, 1.75rem);
  background: #fff; border: 1px solid var(--line);
  min-width: 0;
}
.hs-card--dark {
  background: var(--vh-emerald-900); border-color: var(--vh-emerald-900); color: #fff;
}
.hs-card__tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--vh-green-600); margin-bottom: .55rem;
}
.hs-card--dark .hs-card__tag { color: var(--vh-lime-400); }
.hs-card__title {
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.2;
  margin: 0 0 .4rem; color: inherit;
}
.hs-card__desc { font-size: .92rem; line-height: 1.5; color: var(--muted); margin: 0 0 1.1rem; }
.hs-card--dark .hs-card__desc { color: rgba(255,255,255,.72); }

.hs-form { display: grid; gap: .65rem; margin-top: auto; }
.hs-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.hs-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.hs-field label { font-size: .78rem; font-weight: 500; color: var(--muted); }
.hs-card--dark .hs-field label { color: rgba(255,255,255,.65); }
.hs-field input, .hs-field select {
  width: 100%; height: 48px; padding: 0 .95rem;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
  font: 400 .95rem/1 var(--font-sans);
  outline: none; transition: border-color .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.hs-field input::placeholder { color: var(--muted-light); }
.hs-field input:focus, .hs-field select:focus { border-color: var(--vh-green-500); background: #fff; }
.hs-card--dark .hs-field input {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff;
}
.hs-card--dark .hs-field input::placeholder { color: rgba(255,255,255,.45); }
.hs-card--dark .hs-field input:focus { border-color: var(--vh-lime-400); background: rgba(255,255,255,.12); }

.hs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 50px; padding: 0 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .95rem/1 var(--font-sans); text-decoration: none;
  transition: transform .2s, background .2s, opacity .2s;
}
.hs-btn:hover { transform: translateY(-1px); }
.hs-btn--full { width: 100%; }
.hs-btn--lime { background: var(--vh-lime-400); color: var(--vh-emerald-950); }
.hs-btn--lime:hover { background: var(--vh-lime-300); }
.hs-btn--dark { background: var(--vh-emerald-900); color: #fff; }
.hs-btn--dark:hover { background: var(--vh-emerald-700); }
.hs-btn--ghost { background: transparent; color: var(--vh-emerald-900); border: 1px solid var(--line); }
.hs-btn--ghost:hover { background: #fff; }

.hs-card__note { margin-top: .75rem; font-size: .82rem; color: rgba(255,255,255,.6); }
.hs-card__note a { color: var(--vh-lime-400); text-decoration: none; font-weight: 500; }
.hs-card__note a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.hs-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.hs-section--white { background: #fff; }
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.hs-head__kicker { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--vh-green-600); margin: 0 0 .5rem; }
.hs-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.15; margin: 0; color: var(--ink); }
.hs-head p { margin: .5rem 0 0; color: var(--muted); font-size: .98rem; line-height: 1.55; max-width: 560px; }

.hs-score { display: flex; align-items: center; gap: .9rem; }
.hs-score__num { font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); font-weight: 600; line-height: 1; color: var(--vh-emerald-900); }
.hs-score__meta { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--muted); }
.hs-score__meta .hs-stars { font-size: 1.05rem; }

/* Reviews: clear separation between video row and text reviews */
#reviews-section .vh-testimonials-grid { margin-bottom: 0; }
.hs-subhead { margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.1rem; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
#reviews-section .vh-feedback-grid { margin-top: 0; }
.hs-more { margin-top: 1.75rem; display: flex; justify-content: center; }

/* ---------- Urgent page ---------- */
.hs-page { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.hs-urgent { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.hs-urgent__title { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); line-height: 1.1; margin: 0 0 .9rem; color: var(--vh-emerald-900); }
.hs-urgent__lead { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0 0 1.5rem; max-width: 560px; }
.hs-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.hs-steps li { display: grid; grid-template-columns: 36px 1fr; gap: .85rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .95rem 1rem; }
.hs-steps__n { width: 36px; height: 36px; border-radius: 50%; background: var(--vh-lime-soft); color: var(--vh-emerald-900); display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.hs-steps b { display: block; font-size: .98rem; margin-bottom: .15rem; color: var(--ink); }
.hs-steps span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.hs-urgent__actions { display: flex; gap: .65rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hs-cards, .hs-urgent { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hs-form__row { grid-template-columns: minmax(0, 1fr); }
  .hs-hero__title, .hs-urgent__title { font-size: 1.75rem; }
  .hs-card { border-radius: 18px; padding: 1.15rem; }
  .hs-head { align-items: flex-start; }
  .hs-btn { height: 48px; font-size: .92rem; }
}

/* ---------- v2 fixes: header offset, lighter weights, aligned cards ---------- */
.hs-hero { padding-top: calc(74px + clamp(1rem, 2.5vh, 1.75rem)); }
.hs-page { padding-top: calc(74px + clamp(1.25rem, 3vw, 2.5rem)); }
@media (max-width: 768px) {
  .hs-hero { padding-top: calc(64px + 1rem); }
  .hs-page { padding-top: calc(64px + 1.25rem); }
}
.vh-home h1, .vh-home h2, .hs-page h1, .hs-page h2,
.hs-hero__title, .hs-urgent__title, .hs-card__title, .hs-head h2 { font-weight: 500; }
.hs-score__num { font-weight: 500; }
.hs-btn { font-weight: 500; }
.vh-header .vh-nav__link, .vh-header .vh-nav__title, .vh-header-cta, .vh-phone-pill__number { font-weight: 500 !important; }
.hs-form { margin-top: 0; }
.hs-card__note--light { color: var(--muted); }
.hs-card__note--light a { color: var(--vh-emerald-900); }
.hs-hero__rating, .hs-head__kicker, .hs-card__tag { font-weight: 500; }

/* ---------- Footer ---------- */
.hs-footer {
  background: var(--vh-emerald-950); color: rgba(255,255,255,.72);
  padding: clamp(2.5rem, 5vw, 4rem) 0 calc(1.5rem + env(safe-area-inset-bottom));
  font-size: .92rem;
}
.hs-footer a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.hs-footer a:hover { color: var(--vh-lime-400); }

.hs-footer__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 2rem);
  border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.hs-footer__cta-title { margin: 0 0 .3rem; color: #fff; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 500; line-height: 1.3; }
.hs-footer__cta-sub { margin: 0; color: rgba(255,255,255,.6); font-size: .9rem; }
.hs-footer__cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.hs-footer .hs-btn--lime { color: var(--vh-emerald-950); }
.hs-footer .hs-btn--lime:hover { color: var(--vh-emerald-950); }
.hs-footer__btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.2); color: #fff !important; }
.hs-footer__btn-ghost:hover { border-color: var(--vh-lime-400); }

.hs-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.hs-footer__logo { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.hs-footer__logo svg { flex: 0 0 34px; width: 34px; height: 34px; }
.hs-footer__logo-text { display: flex; flex-direction: column; line-height: 1; }
.hs-footer__logo-name { color: #fff; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.hs-footer__logo-sub { margin-top: .3rem; font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--vh-lime-400); }
.hs-footer__desc { margin: 0 0 1rem; max-width: 300px; line-height: 1.55; color: rgba(255,255,255,.6); }
.hs-footer__rating { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.06); font-size: .82rem; color: #fff !important; }

.hs-footer__col { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.hs-footer__title { margin: 0 0 .35rem; font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.hs-footer__text { color: rgba(255,255,255,.85); line-height: 1.5; }
.hs-footer__muted { color: rgba(255,255,255,.55); font-size: .85rem; }
.hs-footer__col a[href^="mailto:"] { overflow-wrap: anywhere; }
.hs-footer__socials { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.hs-footer__socials a { padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: .8rem; }
.hs-footer__socials a:hover { border-color: var(--vh-lime-400); }

.hs-footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: rgba(255,255,255,.45);
}
.hs-footer__bottom a { color: rgba(255,255,255,.55); }

@media (max-width: 960px) {
  .hs-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .hs-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); } /* room for sticky mobile bar */
}
@media (max-width: 520px) {
  .hs-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .hs-footer__cta-actions, .hs-footer__cta-actions .hs-btn { width: 100%; }
  .hs-footer__bottom { flex-direction: column; }
}


/* ==========================================================================
   COMPACT INNER PAGES (Fit first screen fully, no empty void, no cutoffs)
   ========================================================================== */
body h1, body h2, body h3, .section-title, .vh-page-hero h1 {
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
}

.vh-page-hero {
  padding-top: calc(74px + 1.25rem) !important;
  padding-bottom: 1.25rem !important;
  background: var(--paper) !important;
  border-bottom: 1px solid var(--line) !important;
}

.vh-page-hero--dark {
  background: var(--vh-emerald-950) !important;
  color: var(--white) !important;
  padding-top: calc(74px + 1.5rem) !important;
  padding-bottom: 1.75rem !important;
}

.vh-page-hero .section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem) !important;
  line-height: 1.18 !important;
  margin: 0.35rem 0 0.5rem !important;
  color: inherit !important;
}

.vh-page-hero .eyebrow {
  margin-bottom: 0.35rem !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.vh-breadcrumbs {
  margin-bottom: 0.4rem !important;
  font-size: 0.8rem !important;
  color: var(--muted) !important;
}

.section {
  padding: 1.5rem 0 3.5rem !important;
}

/* Contacts page: ensure map + card fit screen height */
.vh-split-grid {
  gap: 1.5rem !important;
}

#contacts-map {
  min-height: 420px !important;
  border-radius: 20px !important;
}

/* Reviews page: compact video stories & grid */
.vh-testimonials-grid {
  margin-bottom: 1.5rem !important;
}

/* Mobile responsive padding */
@media (max-width: 768px) {
  .vh-page-hero {
    padding-top: calc(64px + 1rem) !important;
    padding-bottom: 1rem !important;
  }
  .vh-page-hero--dark {
    padding-top: calc(64px + 1.2rem) !important;
    padding-bottom: 1.25rem !important;
  }
  .section {
    padding: 1.25rem 0 2.5rem !important;
  }
  #contacts-map {
    min-height: 320px !important;
  }
}


/* ==========================================================================
   GLOBAL COMPACT & COHESIVE SYSTEM FOR ALL PAGES (NO CUTOFF, NO GIANT VOIDS)
   ========================================================================== */

/* 1. Global Typography: calm, elegant weights across entire site */
html, body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4, h5, h6,
.section-title, .vh-brand__name,
.vh-team-card__name, .vh-funnel-card__title {
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
}

strong, b {
  font-weight: 600 !important;
}

/* 2. Compact Page Heroes on all inner pages */
.vh-page-hero {
  padding-top: calc(74px + clamp(1rem, 2vh, 1.5rem)) !important;
  padding-bottom: clamp(1rem, 2vh, 1.4rem) !important;
  background: var(--paper) !important;
  border-bottom: 1px solid var(--line) !important;
}

.vh-page-hero--dark {
  background: var(--vh-emerald-950) !important;
  color: var(--white) !important;
  padding-top: calc(74px + clamp(1.2rem, 2.5vh, 1.75rem)) !important;
  padding-bottom: clamp(1.2rem, 2.5vh, 1.75rem) !important;
  border-bottom: none !important;
}

.vh-page-hero .section-title {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem) !important;
  line-height: 1.15 !important;
  margin: 0.35rem 0 0.45rem !important;
  color: inherit !important;
  max-width: 28ch !important;
}

.vh-page-hero p, .vh-page-hero__lead {
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.05rem) !important;
  line-height: 1.55 !important;
  color: inherit !important;
  opacity: 0.85;
  margin: 0 !important;
  max-width: 64ch !important;
}

.vh-page-hero .eyebrow {
  margin-bottom: 0.35rem !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.vh-breadcrumbs {
  margin-bottom: 0.4rem !important;
  font-size: 0.82rem !important;
  color: var(--muted) !important;
}

/* 3. Compact Section Spacing: content immediately visible */
.section {
  padding: clamp(1.25rem, 2.5vh, 2rem) 0 clamp(2.5rem, 5vh, 4rem) !important;
}

.section--white {
  background: #ffffff !important;
}

/* 4. Contacts Page: card & map in one unified view */
#vhContactsMap {
  min-height: 460px !important;
  height: 100% !important;
  border-radius: 20px !important;
  border: 1px solid var(--line);
}

/* 5. Mobile responsive overrides */
@media (max-width: 768px) {
  .vh-page-hero {
    padding-top: calc(64px + 1rem) !important;
    padding-bottom: 1rem !important;
  }
  .vh-page-hero--dark {
    padding-top: calc(64px + 1.15rem) !important;
    padding-bottom: 1.15rem !important;
  }
  .section {
    padding: 1.25rem 0 2.5rem !important;
  }
  #vhContactsMap {
    min-height: 340px !important;
  }
}
