/* ---------------------------------------------------------------------
   Sections shared by all pages (home and sub pages)
   --------------------------------------------------------------------- */

/* Hero */
.hero { position: relative; overflow: hidden; }

.hero-bg img {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: 70% 30%;
}

.hero::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 1;
   background:
      linear-gradient(90deg, rgba(16, 24, 32, 0.92) 0%, rgba(16, 24, 32, 0.7) 32%, rgba(16, 24, 32, 0.1) 58%),
      linear-gradient(0deg, rgba(16, 24, 32, 0.95) 0%, rgba(16, 24, 32, 0) 30%);
}

.hero-inner { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 96px; }
.hero-text { max-width: 720px; }
.hero h1 { margin-bottom: 28px; }
.hero-lead { max-width: 540px; margin-bottom: 36px; font-size: 20px; font-weight: 300; color: #E5E8EB; }

.funding-pill {
   display: inline-flex;
   align-items: center;
   gap: 12px;
   margin-top: 24px;
   padding: 7px 18px 7px 7px;
   border: 1.5px solid var(--red);
   border-radius: 999px;
   font-size: 16px;
   font-weight: 600;
   color: var(--white);
   text-decoration: none;
   transition: background var(--transition-fast);
}
.funding-pill:hover { background: rgba(196, 33, 38, 0.2); }
.funding-pill-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); }
.funding-pill-icon .ico { width: 18px; height: 18px; color: var(--white); }
.funding-pill > .ico { width: 18px; height: 18px; color: var(--white); }

.trust-bar {
   position: relative;
   z-index: 2;
   display: flex;
   align-items: center;
   gap: 40px;
   padding-top: 36px;
   padding-bottom: 40px;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.trust-bar > * + * { padding-left: 40px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.trust-figure strong { display: block; font-size: 44px; font-weight: 700; line-height: 1; color: var(--white); }
.trust-figure span { font-size: 16px; color: var(--muted-dark); }
.client-logos { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; list-style: none; }
.client-logos img { height: 34px; width: auto; opacity: 0.9; }

/* Bottlenecks */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card { padding: 40px 32px; border-radius: var(--radius-lg); background: rgba(207, 207, 198, 0.45); }
.pain-card .ico { width: 64px; height: 64px; margin-bottom: 28px; }
.pain-card h3 { font-size: 22px; margin-bottom: 14px; }
.pain-card p { color: var(--muted); }

/* HPS steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.steps li { position: relative; }
.steps li:not(:last-child)::after {
   content: "";
   position: absolute;
   top: 36px;
   left: 92px;
   right: -20px;
   height: 1.5px;
   background: var(--stone);
}
.step-num {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 72px;
   height: 72px;
   margin-bottom: 28px;
   border-radius: 50%;
   background: radial-gradient(circle at 35% 30%, var(--red), var(--crimson));
   box-shadow: 0 10px 22px rgba(122, 20, 20, 0.3);
   font-size: 32px;
   font-weight: 600;
   color: var(--white);
}
.steps h3 { min-height: 2.5em; }
.steps p { font-size: 16px; color: var(--muted); }

/* Services */
.services { position: relative; padding: 96px 0 var(--space-xl); overflow: hidden; }
.services-photo {
   position: absolute;
   inset: 0 0 auto 0;
   height: 980px;
   background: url('../images/home-services-bg.webp') center top / cover no-repeat;
   opacity: 0.55;
}
.services-photo::after {
   content: "";
   position: absolute;
   inset: 0;
   background:
      linear-gradient(180deg, rgba(16, 24, 32, 0.6) 0%, rgba(16, 24, 32, 0.35) 40%, var(--navy) 100%);
}
.services-inner { position: relative; }
.services .section-head { margin-bottom: 8px; }
.venn { display: block; width: min(640px, 100%); height: auto; margin: 0 auto 48px; }

.service-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.service-col {
   padding: 40px 32px;
   border: 1px solid var(--navy-line);
   border-radius: var(--radius-lg);
   background: linear-gradient(180deg, rgba(26, 36, 48, 0.92), rgba(26, 36, 48, 0.7));
}
.service-col > .ico { display: block; width: 56px; height: 56px; margin: 0 auto 16px; color: var(--red-bright); }
.service-col h3 { margin-bottom: 28px; font-size: 30px; text-align: center; }
.service-col .check-list { font-size: 16px; color: #DCE1E6; }
.service-col .check-list .ico { color: var(--red); }

/* Strengths */
.strength-photo { aspect-ratio: 5 / 7; max-height: 760px; }
.ads-photo { aspect-ratio: 5 / 6; }

/* Connect */
.connect { background: linear-gradient(180deg, var(--white) 0%, #F3F3F0 60%, var(--warm) 100%); overflow: hidden; }
.connect-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.connect-text > p { color: var(--text); }
.connect h2 { font-size: 42px; }
.connect-visual img {
   width: 115%;
   max-width: none;
   -webkit-mask-image: radial-gradient(ellipse 70% 68% at 55% 50%, #000 55%, transparent 100%);
   mask-image: radial-gradient(ellipse 70% 68% at 55% 50%, #000 55%, transparent 100%);
}
.highlight { display: flex; align-items: center; gap: 28px; margin: 36px 0 40px; }
.highlight strong { font-size: 104px; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; color: var(--red); }
.highlight span { max-width: 300px; padding-left: 28px; border-left: 1px solid var(--stone); color: var(--muted); }

.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 56px; }
.benefit {
   padding: 32px 22px;
   border-radius: var(--radius-lg);
   background: var(--navy-card);
   color: #C9D0D7;
   text-align: center;
   box-shadow: 0 16px 34px rgba(16, 24, 32, 0.16);
}
.benefit .ico { width: 52px; height: 52px; margin-bottom: 18px; color: var(--red-bright); }
.benefit h3 { color: var(--white); font-size: 20px; }
.benefit p { font-size: 15px; }

.function-row { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin-bottom: 48px; }
.function-row li {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 14px;
   padding: 4px 12px;
   font-weight: 600;
   line-height: 1.3;
   text-align: center;
}
.function-row li + li { border-left: 1px solid var(--stone); }
.function-row .ico { width: 40px; height: 40px; }
.connect-note { color: var(--muted); text-align: center; font-size: 16px; }

/* Testimonials */
.testimonials-head { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 48px; }
.testimonials-head h2 { margin-bottom: 0; }

.video-grid, .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.review-grid { margin-bottom: 56px; }

.video-card, .review { border: 1px solid var(--navy-line); border-radius: var(--radius-lg); background: var(--navy-card); overflow: hidden; }

.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-thumb:hover img { transform: scale(1.03); }
.play-btn {
   position: absolute;
   top: 50%;
   left: 50%;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 64px;
   height: 64px;
   margin: -32px 0 0 -32px;
   border-radius: 50%;
   background: var(--white);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.play-btn .ico { width: 26px; height: 26px; margin-left: 4px; color: var(--navy); }
.video-thumb:hover .play-btn { background: var(--red); }
.video-thumb:hover .play-btn .ico { color: var(--white); }

.video-body { padding: 26px 26px 32px; }
.person { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--navy-line); font-size: 15px; color: var(--muted-dark); }
.person strong { display: block; font-size: 18px; font-weight: 600; color: var(--white); }
.video-card blockquote { font-size: 25px; font-weight: 600; line-height: 1.35; color: var(--white); }

.review { display: flex; flex-direction: column; padding: 32px 28px; }
.review .quote { width: 40px; height: 40px; margin-bottom: 18px; color: var(--red); }
.review h3 { font-size: 24px; }
.review > p { flex: 1; margin-bottom: 28px; color: #C9D0D7; }
.review-person { display: flex; align-items: center; gap: 16px; }
.review-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.review-person p { font-size: 14px; color: var(--muted-dark); }
.review-person strong { display: block; font-size: 16px; font-weight: 600; color: var(--white); }

/* Team */
.team-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-photos .photo { aspect-ratio: 4 / 3; }
.team-photos .team-main { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.team-photos .photo:nth-child(2) img { object-position: 50% 15%; }
.team-btn { margin-top: 16px; }

/* FAQ */
.faq-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-btn { margin-top: 32px; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 1100px) {
   .trust-bar { flex-wrap: wrap; }
   .client-logos { flex-basis: 100%; padding-left: 0 !important; border-left: 0 !important; }
   .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
   .steps li::after { display: none; }
   .benefit-grid { grid-template-columns: repeat(3, 1fr); }
   .function-row { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
   .function-row li:nth-child(4) { border-left: 0; }
}

@media (max-width: 900px) {
   .hero-bg img { height: 460px; object-position: 80% 30%; }
   .hero::before { background: linear-gradient(180deg, rgba(16, 24, 32, 0) 0, rgba(16, 24, 32, 0.15) 240px, var(--navy) 460px); }
   .hero-inner { padding-top: 380px; padding-bottom: 56px; }
   .pain-grid, .service-cols, .video-grid, .review-grid { grid-template-columns: 1fr; }
   .connect-top, .team-split, .faq-split { grid-template-columns: 1fr; }
   .connect-visual img { width: 100%; }
   .strength-photo { aspect-ratio: 4 / 3; }
   .strength-photo img { object-position: 50% 20%; }
   .testimonials-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
   .hero-bg img { height: 340px; }
   .hero::before { background: linear-gradient(180deg, rgba(16, 24, 32, 0) 0, rgba(16, 24, 32, 0.15) 180px, var(--navy) 340px); }
   .hero-inner { padding-top: 280px; }
   .hero-lead { font-size: 18px; }
   .trust-bar { gap: 24px; }
   .trust-bar > * + * { padding-left: 24px; }
   .client-logos { flex-wrap: wrap; justify-content: flex-start; gap: 20px 28px; }
   .client-logos img { height: 26px; }
   .steps { grid-template-columns: 1fr; }
   .steps h3 { min-height: 0; }
   .benefit-grid { grid-template-columns: 1fr 1fr; }
   .function-row { grid-template-columns: 1fr 1fr; }
   .function-row li { border-left: 0 !important; }
   .highlight strong { font-size: 76px; }
   .video-card blockquote { font-size: 21px; }
}
