/* =========================================================
   SHARED HERO COMPONENT
   ========================================================= */

.shared-hero {
  position: relative;
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(150px, 17vh, 205px) 0 clamp(92px, 11vh, 130px);
  background: var(--charcoal);
}

.shared-hero-media,
.shared-hero-overlay {
  position: absolute;
  inset: 0;
}

.shared-hero-media {
  z-index: -5;
  display: block;
  overflow: hidden;
}

.shared-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.shared-hero-overlay {
  z-index: -4;
  background:
    linear-gradient(
      90deg,
      rgba(17, 21, 18, 0.94) 0%,
      rgba(17, 21, 18, 0.84) 35%,
      rgba(17, 21, 18, 0.47) 67%,
      rgba(17, 21, 18, 0.24) 100%
    ),
    linear-gradient(
      180deg,
      rgba(17, 21, 18, 0.42) 0%,
      rgba(17, 21, 18, 0.03) 55%,
      rgba(17, 21, 18, 0.68) 100%
    );
}

.shared-hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(185, 154, 99, 0.08), transparent 42%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(25% - 1px),
      rgba(255, 255, 255, 0.035) 25%,
      transparent calc(25% + 1px)
    );
  pointer-events: none;
}

.shared-hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--cream));
  pointer-events: none;
}

.shared-hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.shared-hero-glow--one {
  left: -220px;
  top: 18%;
  width: 560px;
  height: 560px;
  background: rgba(156, 175, 148, 0.16);
}

.shared-hero-glow--two {
  right: -170px;
  bottom: -230px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(223, 233, 215, 0.16);
  box-shadow:
    0 0 0 60px rgba(255, 255, 255, 0.018),
    0 0 0 120px rgba(255, 255, 255, 0.012);
}

.shared-hero-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.72fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: center;
}

.shared-hero-content {
  max-width: 730px;
}

.shared-hero-eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.shared-hero-eyebrow::before {
  background: var(--brass);
}

.shared-hero h1 {
  max-width: 790px;
  font-size: clamp(46px, 5.25vw, 78px);
  line-height: 0.9;
  letter-spacing: clamp(-4px, -0.35vw, -2.3px);
}

.shared-hero-text {
  max-width: 650px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.72;
}

.shared-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.shared-hero .btn {
  gap: 14px;
  min-height: 58px;
  padding-inline: 25px;
}

.shared-hero .btn-primary {
  background: var(--sage-light);
  color: var(--sage-deep);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.shared-hero .btn-primary:hover {
  background: var(--white);
  color: var(--charcoal);
}

.shared-hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.shared-hero .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.hero-button-arrow {
  font-size: 17px;
  transition: transform 0.22s ease;
}

.shared-hero .btn:hover .hero-button-arrow {
  transform: translate(2px, -2px);
}

.shared-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.shared-hero-trust li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.shared-hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* =========================================================
   PREMIUM REVIEW / PROOF CARD
   ========================================================= */

.hero-proof-card {
  position: relative;
  width: min(100%, 510px);
  justify-self: end;
  overflow: hidden;
  padding: clamp(34px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: clamp(34px, 4vw, 54px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.92));
  box-shadow:
    0 50px 130px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(185, 154, 99, 0.22) inset;
  color: var(--charcoal);
  transform: rotate(-1.25deg);
  transform-origin: center;
}

.hero-proof-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(185, 154, 99, 0.24);
  border-radius: calc(clamp(34px, 4vw, 54px) - 12px);
  pointer-events: none;
}

.hero-proof-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(156, 175, 148, 0.31), rgba(156, 175, 148, 0) 70%);
  pointer-events: none;
}

.hero-proof-orbit {
  position: absolute;
  border: 1px solid rgba(95, 115, 89, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-proof-orbit--one {
  right: -90px;
  bottom: -110px;
  width: 290px;
  height: 290px;
}

.hero-proof-orbit--two {
  right: -45px;
  bottom: -65px;
  width: 200px;
  height: 200px;
}

.hero-proof-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(32, 35, 33, 0.12);
}

.hero-proof-source {
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.hero-proof-stars {
  color: #d6a72f;
  font-size: 17px;
  letter-spacing: 3px;
  white-space: nowrap;
}

.hero-proof-quote-mark {
  position: relative;
  z-index: 2;
  display: block;
  height: 75px;
  margin-top: 28px;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 112px;
  line-height: 0.95;
  opacity: 0.9;
}

.hero-proof-card blockquote {
  position: relative;
  z-index: 2;
  margin: 0;
}

.hero-proof-card blockquote p {
  margin: 0;
  color: #292e2a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.2vw, 35px);
  line-height: 1.16;
  letter-spacing: -0.7px;
}

.hero-proof-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-top: 34px;
  padding-top: 25px;
  border-top: 1px solid rgba(32, 35, 33, 0.12);
}

.hero-proof-footer > div:first-child {
  display: grid;
  gap: 6px;
}

.hero-proof-footer strong {
  color: var(--sage-deep);
  font-size: 14px;
}

.hero-proof-footer span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hero-proof-score {
  min-width: 78px;
  padding: 12px 14px;
  border-radius: 19px;
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  box-shadow: 0 14px 30px rgba(32, 35, 33, 0.2);
}

.hero-proof-score strong,
.hero-proof-score span {
  display: block;
  color: var(--white);
}

.hero-proof-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.hero-proof-score span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.hero-proof-detail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
  align-items: center;
  margin-top: 25px;
}

.hero-proof-detail > span {
  width: 32px;
  height: 1px;
  background: var(--brass);
}

.hero-proof-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.shared-hero-scroll {
  position: absolute;
  z-index: 5;
  left: max(28px, calc((100vw - 1200px) / 2));
  bottom: 58px;
  display: flex;
  gap: 13px;
  align-items: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.shared-hero-scroll i {
  position: relative;
  width: 56px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.shared-hero-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass);
  transform: translateX(-100%);
  animation: hero-scroll-line 2.4s ease-in-out infinite;
}

.hero-anchor {
  position: relative;
  display: block;
  height: 0;
  top: -20px;
}

@keyframes hero-scroll-line {
  0%,
  20% {
    transform: translateX(-100%);
  }

  65%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1080px) {
  .shared-hero {
    min-height: auto;
    padding-top: 165px;
  }

  .shared-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    gap: 44px;
  }

  .shared-hero h1 {
    font-size: clamp(44px, 6vw, 66px);
  }

  .hero-proof-card {
    padding: 36px;
  }
}

@media (max-width: 860px) {
  .shared-hero {
    padding: 145px 0 125px;
  }

  .shared-hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(17, 21, 18, 0.88) 0%,
        rgba(17, 21, 18, 0.7) 50%,
        rgba(17, 21, 18, 0.82) 100%
      );
  }

  .shared-hero-layout {
    grid-template-columns: 1fr;
  }

  .shared-hero-content {
    max-width: 710px;
  }

  .hero-proof-card {
    width: min(100%, 650px);
    justify-self: start;
    transform: none;
  }

  .shared-hero-scroll {
    display: none;
  }
}

@media (max-width: 620px) {
  .shared-hero {
    padding: 128px 0 102px;
  }

  .shared-hero h1 {
    font-size: clamp(38px, 11.5vw, 54px);
    line-height: 0.94;
    letter-spacing: -2.4px;
  }

  .shared-hero-text {
    margin-top: 24px;
    font-size: 17px;
  }

  .shared-hero-actions {
    margin-top: 30px;
  }

  .shared-hero-actions .btn {
    width: 100%;
  }

  .shared-hero-trust {
    display: grid;
    gap: 10px;
  }

  .hero-proof-card {
    padding: 30px 24px;
    border-radius: 32px;
  }

  .hero-proof-card::before {
    inset: 9px;
    border-radius: 24px;
  }

  .hero-proof-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-proof-quote-mark {
    height: 59px;
    font-size: 90px;
  }

  .hero-proof-card blockquote p {
    font-size: 25px;
  }

  .hero-proof-footer {
    grid-template-columns: 1fr;
  }

  .hero-proof-score {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shared-hero-scroll i::after {
    animation: none;
    transform: none;
  }

  .shared-hero-media img {
    transform: none;
  }
}

/* =========================================================
   STRONGER SAGE HERO TREATMENT
   ========================================================= */

.shared-hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(24, 32, 26, 0.96) 0%,
      rgba(34, 48, 37, 0.86) 36%,
      rgba(50, 68, 53, 0.5) 68%,
      rgba(32, 45, 35, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(31, 45, 34, 0.42) 0%,
      rgba(31, 45, 34, 0.03) 55%,
      rgba(31, 45, 34, 0.72) 100%
    );
}

.shared-hero::before {
  background:
    linear-gradient(110deg, rgba(156, 175, 148, 0.16), transparent 46%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(25% - 1px),
      rgba(223, 233, 215, 0.045) 25%,
      transparent calc(25% + 1px)
    );
}

.hero-proof-card {
  background:
    linear-gradient(
      145deg,
      rgba(250, 252, 247, 0.985),
      rgba(235, 242, 230, 0.95)
    );
  border-color: rgba(223, 233, 215, 0.58);
}

.hero-proof-score {
  background:
    linear-gradient(145deg, var(--sage-deep), #29362b);
}

.shared-hero .btn-primary {
  background: var(--sage-light);
  color: var(--sage-deep);
}

.shared-hero .btn-secondary {
  background: rgba(223, 233, 215, 0.11);
  border-color: rgba(223, 233, 215, 0.34);
}

@media (max-width: 860px) {
  .shared-hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(24, 34, 27, 0.92) 0%,
        rgba(34, 48, 37, 0.76) 50%,
        rgba(24, 34, 27, 0.86) 100%
      );
  }
}

/* =========================================================
   HERO H1 — MAXIMUM THREE CONTROLLED LINES
   ========================================================= */

.shared-hero h1 {
  display: grid;
  gap: 0;
  max-width: 880px;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.shared-hero--services h1 {
  font-size: clamp(46px, 5.1vw, 76px);
}

@media (max-width: 1080px) {
  .shared-hero--services h1 {
    font-size: clamp(43px, 5.8vw, 64px);
  }
}

@media (max-width: 760px) {
  .shared-hero h1 {
    width: 100%;
  }

  .hero-title-line {
    white-space: normal;
  }

  .shared-hero--services h1 {
    font-size: clamp(38px, 10.4vw, 54px);
  }
}

@media (max-width: 430px) {
  .shared-hero--services h1 {
    font-size: clamp(34px, 9.8vw, 44px);
  }
}


/* =========================================================
   HOMEPAGE HERO H1 SIZE CORRECTION
   ========================================================= */

.shared-hero--home h1 {
  font-size: clamp(46px, 5.15vw, 76px);
  max-width: 760px;
  line-height: 1.01;
}

@media (max-width: 1080px) {
  .shared-hero--home h1 {
    font-size: clamp(43px, 5.8vw, 64px);
  }
}

@media (max-width: 760px) {
  .shared-hero--home h1 {
    font-size: clamp(36px, 10.2vw, 50px);
    line-height: 1.04;
  }
}

@media (max-width: 430px) {
  .shared-hero--home h1 {
    font-size: clamp(33px, 9.5vw, 44px);
  }
}

/* =========================================================
   RESPONSIVE HERO CONTENT CENTERING
   Desktop remains left-aligned.
   Tablet and mobile content is centred.
   ========================================================= */

@media (max-width: 860px) {
  .shared-hero-layout {
    justify-items: center;
  }

  .shared-hero-content {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .shared-hero-eyebrow {
    justify-content: center;
  }

  .shared-hero h1 {
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  .shared-hero-text {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .shared-hero-actions {
    justify-content: center;
  }

  .shared-hero-trust {
    justify-content: center;
  }

  .hero-proof-card {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .shared-hero-content {
    padding-inline: 4px;
  }

  .shared-hero-eyebrow {
    width: 100%;
    text-align: center;
  }

  .shared-hero h1,
  .shared-hero-text {
    text-align: center;
  }

  .shared-hero-actions {
    width: 100%;
  }

  .shared-hero-actions .btn {
    justify-content: center;
  }

  .shared-hero-trust {
    justify-items: center;
    text-align: center;
  }
}