/* ==========================================================================
   Homepage sections between the hero and the footer (2026-11-28)
   Markup: frontend/partials/home-sections.blade.php · script: frontend/js/home-hero.js (fade-in, count-up)
   Built from Local Only/prototypes/prototype-homepage.html. Prefix ph- so older homepage rules don't touch it.
   ========================================================================== */
/* site-wide rules this page area doesn't want (custom.css justifies every <p>, bootstrap styles blockquote/figure) */
.ph { line-height: 1.5; }   /* the site body uses 26px lines, too loose for these cards */
/* the hero buttons (.pfr-btn, home-hero.css) take their colours from these, which the hero defines only inside itself */
.ph { --pfr-grad: linear-gradient(90deg, #17a43b 0%, #0f9468 45%, #015caa 100%); --pfr-blue: #015caa; --pfr-ink: #16263a; }
.ph p { text-align: inherit; }
.ph h2, .ph h3 { text-transform: none; }
.ph a:hover, .ph a:focus { text-decoration: none; }
.ph figure { margin: 0; }
.ph blockquote { border: 0; padding: 0; font-size: inherit; }
.ph .container::before, .ph .container::after { content: none; }

.ph { --g:#17a43b; --gd:#11873a; --b:#015caa; --sky:#1fa3e0; --ink:#16263a; --mut:#5f6f82; --line:#e5eaf0; --tint:#eaf7ee; --btint:#e8f1fa;
      --grad: linear-gradient(90deg,#17a43b 0%,#0f9468 45%,#015caa 100%); }
.ph-sec { padding: 80px 0; }
.ph-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.ph-eyebrow { display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px; font-size:12.5px; font-weight:700; letter-spacing:1.3px; text-transform:uppercase; color:var(--gd); background:var(--tint); }
.ph-eyebrow.is-blue { color:var(--b); background:var(--btint); }
.ph-h2 { font-family:Outfit,sans-serif; font-size:42px; line-height:1.12; font-weight:800; letter-spacing:-.5px; margin:14px 0 10px; color:var(--ink); }
.ph-h2 em { font-style:normal; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.ph-sub { font-size:17px; color:var(--mut); line-height:1.55; margin:0; }
.ph-reveal { opacity:0; transform:translateY(24px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.ph-reveal.is-in { opacity:1; transform:none; }

/* 2. numbers */
.ph-stats { padding: 0; background: linear-gradient(180deg,#f6f9fc 0%,#fff 100%); }
.ph-stats .container { padding-top: 34px; padding-bottom: 10px; }
.ph-stats__card { display:grid; grid-template-columns:repeat(5,1fr); background:#fff; border-radius:22px; border:1px solid var(--line); box-shadow:0 24px 50px -28px rgba(16,38,64,.35); }
.ph-stat { padding:26px 20px; display:flex; align-items:center; gap:14px; border-right:1px solid var(--line); }
.ph-stat:last-child { border-right:0; }
.ph-stat i { width:52px; height:52px; border-radius:15px; display:grid; place-items:center; font-size:22px; flex:none; background:var(--tint); color:var(--g); }
.ph-stat:nth-child(even) i { background:var(--btint); color:var(--b); }
.ph-stat b { display:block; font:800 30px Outfit,sans-serif; line-height:1; color:var(--ink); }
.ph-stat small { display:block; margin-top:4px; color:var(--mut); font-size:13.5px; line-height:1.3; }

/* 3. partners marquee */
.ph-trust { padding: 50px 0 10px; }
/* same space above the label (10 + 50) as below the logos (10 + 50) */
.ph-trust + .ph-sec { padding-top: 50px; }
.ph .ph-trust__label { text-align:center; font-size:13px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:var(--mut); margin:0 0 18px; }
.ph-marquee { position:relative; overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.ph-marquee__track { display:flex; gap:22px; width:max-content; animation:phScroll 40s linear infinite; }
.ph-marquee:hover .ph-marquee__track { animation-play-state:paused; }
@keyframes phScroll { to { transform:translateX(-50%); } }
.ph-logo { flex:none; width:150px; height:84px; border-radius:16px; background:#fff; border:1px solid var(--line); display:grid; place-items:center; padding:10px; transition:transform .25s, box-shadow .25s, border-color .25s; }
.ph-logo img { max-width:100%; max-height:62px; object-fit:contain; filter:grayscale(1); opacity:.75; transition:filter .25s, opacity .25s; }
.ph-logo:hover { transform:translateY(-3px); border-color:transparent; box-shadow:0 14px 28px -16px rgba(1,92,170,.45); }
.ph-logo:hover img { filter:none; opacity:1; }

/* 4. six products */
.ph-prods { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.ph-prod { position:relative; display:flex; flex-direction:column; background:#fff; border-radius:22px; border:1px solid var(--line); overflow:hidden; text-decoration:none; color:var(--ink); transition:transform .3s, box-shadow .3s, border-color .3s; }
.ph-prod:hover { transform:translateY(-6px); border-color:transparent; box-shadow:0 26px 50px -26px rgba(16,38,64,.4); color:var(--ink); text-decoration:none; }
.ph-prod::after { content:""; position:absolute; left:0; right:0; bottom:0; height:4px; background:var(--cc); transform:scaleX(0); transform-origin:left; transition:transform .35s ease; }
.ph-prod:hover::after { transform:scaleX(1); }
/* the picture always stays inside its box (before, tall pictures spilled over the title) */
.ph-prod__art { position:relative; display:block; height:190px; overflow:hidden; background:var(--bg); }
.ph-prod__art img { position:absolute; left:18px; top:16px; width:calc(100% - 36px); height:calc(100% - 32px); max-width:none; object-fit:contain; transition:transform .4s; }
.ph-prod:hover .ph-prod__art img { transform:scale(1.06); }
.ph-prod__body { padding:22px 24px 24px; display:flex; flex-direction:column; flex:1; }
.ph-prod__num { font:800 13px Outfit,sans-serif; letter-spacing:1px; color:var(--cc); }
.ph-prod h3 { font:800 22px Outfit,sans-serif; margin:4px 0 8px; color:var(--ink); }
.ph-prod p { margin:0 0 16px; color:var(--mut); font-size:15px; line-height:1.5; }
.ph-prod__for { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:12.5px; color:var(--mut); font-weight:600; margin-bottom:18px; }
.ph-prod__for span { padding:3px 10px; border-radius:999px; background:var(--bg); color:var(--cc); font-weight:700; }
.ph-prod__go { margin-top:auto; display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:14.5px; color:var(--cc); }
.ph-prod__go .fa { transition:transform .2s; }
.ph-prod:hover .ph-prod__go .fa { transform:translateX(4px); }
@media (max-width:991px) { .ph-prods { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px) { .ph-prods { grid-template-columns:1fr; gap:16px; } .ph-prod { flex-direction:row; } .ph-prod__art { width:120px; height:auto; flex:none; padding:12px; } .ph-prod__body { padding:16px; } .ph-prod h3 { font-size:18px; } .ph-prod p { font-size:14px; margin-bottom:10px; } .ph-prod__for { margin-bottom:10px; } }

/* 5. assessments */
.ph-assess { background:#f6f9fc; }
.ph-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.ph-card { position:relative; display:flex; flex-direction:column; background:#fff; border-radius:18px; border:1px solid var(--line); overflow:hidden; text-decoration:none; color:var(--ink); transition:transform .3s, box-shadow .3s, border-color .3s; }
.ph-card:hover { transform:translateY(-6px); border-color:transparent; box-shadow:0 22px 44px -24px rgba(1,92,170,.45); color:var(--ink); text-decoration:none; }
.ph-card__art { position:relative; display:block; height:150px; overflow:hidden; background:linear-gradient(180deg,#fff,#f8fbfd); }
.ph-card__art img { position:absolute; left:14px; top:14px; width:calc(100% - 28px); height:calc(100% - 28px); max-width:none; object-fit:contain; transition:transform .4s; }
.ph-card:hover .ph-card__art img { transform:scale(1.06); }
.ph-card__body { padding:16px 18px 18px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:10px; flex:1; }
.ph-card h3 { font:700 17px Outfit,sans-serif; margin:0; line-height:1.3; }
.ph-card__go { margin-top:auto; font-size:13.5px; font-weight:700; color:var(--b); display:inline-flex; align-items:center; gap:6px; }
.ph-card:hover .ph-card__go .fa { transform:translateX(4px); }
.ph-card__go .fa { transition:transform .2s; }
.ph-badge { position:absolute; top:12px; right:12px; z-index:1; display:inline-flex; align-items:center; gap:5px; padding:5px 10px; border-radius:999px; font-size:11px; font-weight:800; letter-spacing:.8px; color:#7a4b00; background:linear-gradient(90deg,#ffe08a,#ffc94d); box-shadow:0 6px 14px -8px rgba(160,100,0,.7); }
.ph-center { text-align:center; margin-top:36px; }

/* 6. testimonials */
.ph-quotes { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.ph-quote { display:flex; flex-direction:column; background:#fff; border-radius:20px; border:1px solid var(--line); padding:24px; position:relative; transition:transform .3s, box-shadow .3s; }
.ph-quote:hover { transform:translateY(-4px); box-shadow:0 22px 44px -26px rgba(16,38,64,.4); }
.ph-quote::before { content:"\201C"; position:absolute; right:18px; top:2px; font:800 80px Outfit,sans-serif; color:var(--btint); line-height:1; }
.ph-stars { color:#ffb400; font-size:13px; letter-spacing:2px; }
.ph-quote__h { font:700 17px Outfit,sans-serif; margin:10px 0 8px; color:var(--ink); }
.ph-quote blockquote { margin:0 0 18px; color:var(--mut); font-size:14.5px; line-height:1.55; }
.ph-who { margin-top:auto; display:flex; align-items:center; gap:12px; padding-top:16px; border-top:1px solid var(--line); }
.ph-who img { width:46px; height:46px; border-radius:50%; object-fit:cover; flex:none; box-shadow:0 0 0 3px #fff, 0 0 0 5px var(--tint); }
.ph-who b { display:block; font-size:14.5px; color:var(--ink); }
.ph-who small { display:block; font-size:12.5px; color:var(--mut); line-height:1.35; }
.ph-tag { display:inline-block; margin-top:4px; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; color:var(--gd); background:var(--tint); }

/* 7. news */
.ph-news { background:#f6f9fc; }
.ph-headrow { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:30px; }
.ph-headrow .ph-head { text-align:left; margin:0; }
.ph-link { font-weight:700; color:var(--b); text-decoration:none; display:inline-flex; gap:8px; align-items:center; white-space:nowrap; }
.ph-link:hover { text-decoration:underline; color:var(--b); }
.ph-newsgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.ph-post { display:flex; flex-direction:column; background:#fff; border-radius:18px; overflow:hidden; border:1px solid var(--line); text-decoration:none; color:var(--ink); transition:transform .3s, box-shadow .3s; }
.ph-post:hover { transform:translateY(-5px); box-shadow:0 22px 44px -26px rgba(16,38,64,.4); color:var(--ink); text-decoration:none; }
.ph-post__img { aspect-ratio:16/10; overflow:hidden; background:#e9eef3; }
.ph-post__img img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.ph-post:hover .ph-post__img img { transform:scale(1.05); }
.ph-post__body { padding:18px 20px 20px; }
.ph-date { font-size:12.5px; font-weight:700; color:var(--gd); letter-spacing:.5px; text-transform:uppercase; }
.ph-post h3 { font:700 18px Outfit,sans-serif; margin:6px 0 0; line-height:1.35; }


@media (max-width:1199px) { .ph-stats__card { grid-template-columns:repeat(3,1fr); } .ph-stat:nth-child(3) { border-right:0; } .ph-stat:nth-child(-n+3) { border-bottom:1px solid var(--line); } .ph-quotes { grid-template-columns:repeat(2,1fr); } }
@media (max-width:991px) {
  .ph-sec { padding:60px 0; }
  .ph-h2 { font-size:34px; }
  .ph-cards { grid-template-columns:repeat(2,1fr); }
  .ph-newsgrid { grid-template-columns:1fr 1fr; }
  .ph-newsgrid > :nth-child(3) { display:none; }
}
@media (max-width:600px) {
  .ph-h2 { font-size:28px; }
  .ph-sub { font-size:15.5px; }
  .ph-stats__card { grid-template-columns:1fr 1fr; }
  .ph-stat { padding:16px 12px; gap:10px; border-right:0 !important; border-bottom:1px solid var(--line); }
  .ph-stat:nth-child(odd) { border-right:1px solid var(--line) !important; }
  .ph-stat:last-child { grid-column:1 / -1; border-bottom:0; border-right:0 !important; justify-content:center; }
  .ph-stat i { width:40px; height:40px; font-size:17px; }
  .ph-stat b { font-size:22px; }
  .ph-logo { width:120px; height:70px; }
  .ph-cards { gap:12px; }
  .ph-card__art { height:110px; }
  .ph-card h3 { font-size:15px; }
  .ph-quotes { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:85%; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:10px; }
  .ph-quote { scroll-snap-align:start; }
  .ph-newsgrid { grid-template-columns:1fr; }
  .ph-headrow { flex-direction:column; align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce) { .ph-reveal { opacity:1; transform:none; transition:none; } .ph-marquee__track { animation:none; flex-wrap:wrap; width:auto; justify-content:center; } }
