/* ==========================================================================
   EBNI home page – redesign 27 Nov 2026
   Markup: hero in header.php ($home_page block), sections in home.php.
   Loaded after ebni-modern.css, so rules here win over the older home rules.
   Remove the <link> in header.php to roll back the look (markup backup in
   D:\EBNI\ui-backups\2026-11-27_home-redesign\).
   ========================================================================== */

:root {
  --hm-ink: #0e1621;
  --hm-ink-2: #162232;
  --hm-text: #1f2933;
  --hm-muted: #5b6672;
  --hm-line: #e7e9ee;
  --hm-soft: #f5f6f8;
  --hm-red: #9e1b32;
  --hm-red-dark: #7c1427;
  --hm-orange: #e6a029;
  --hm-blue: #53b6d4;
  --hm-grad: linear-gradient(95deg, #ff6a5c 0%, var(--hm-orange) 100%);
  --hm-radius: 20px;
  --hm-shadow: 0 10px 30px rgba(14, 22, 33, .08);
  --hm-shadow-up: 0 22px 48px rgba(14, 22, 33, .16);
}

/* ---------- shared pieces ---------- */
.hm-page { color: var(--hm-text); overflow-x: clip; }
.hm-section { padding: 96px 0; }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.hm-head.is-center { flex-direction: column; align-items: center; text-align: center; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--hm-red); font-size: 12.5px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; }
.hm-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.hm-eyebrow.is-light { color: var(--hm-orange); }
body .hm-title { margin: 0; color: var(--hm-ink); font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; text-transform: none; }
body .hm-title span { color: var(--hm-red); }
body .hm-title.is-light { color: #fff; }
body .hm-title.is-light span { background: var(--hm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-lead { max-width: 560px; margin: 14px 0 0; color: var(--hm-muted); font-size: 17px; line-height: 1.7; }
.hm-grad { background: var(--hm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hm-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-size: 15.5px; font-weight: 700; line-height: 1; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.hm-btn .fa { transition: transform .2s ease; }
.hm-btn:hover { transform: translateY(-2px); }
.hm-btn:hover .fa { transform: translateX(3px); }
.hm-btn-primary { background: var(--hm-red); color: #fff !important; box-shadow: 0 14px 30px rgba(158, 27, 50, .35); }
.hm-btn-primary:hover { background: var(--hm-red-dark); box-shadow: 0 18px 36px rgba(158, 27, 50, .45); }
.hm-btn-ghost { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff !important; background: rgba(255, 255, 255, .04); }
.hm-btn-ghost:hover { background: #fff; color: var(--hm-ink) !important; border-color: #fff; }
.hm-btn-light { background: #fff; color: var(--hm-ink) !important; }
.hm-btn-light:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }

/* admin edit / delete buttons: small, top corner of each card */
.hm-edit { position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; gap: 6px; }
.hm-edit .btn { padding: 4px 9px; font-size: 12px; border-radius: 8px; }
.hm-admin-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hm-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 64px 0 150px;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(158, 27, 50, .55), transparent 60%),
    radial-gradient(700px 480px at 0% 100%, rgba(83, 182, 212, .22), transparent 60%),
    linear-gradient(160deg, #0b121c 0%, var(--hm-ink) 50%, #1a1420 100%);
}
.hm-hero::after { /* faint grid like a PCB */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hm-circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hm-traces path { fill: none; stroke: rgba(255, 255, 255, .10); stroke-width: 2; }
.hm-pads circle { fill: var(--hm-ink); stroke: rgba(255, 255, 255, .28); stroke-width: 2; }
.hm-pulses circle { fill: var(--hm-orange); filter: drop-shadow(0 0 6px rgba(230, 160, 41, .9)); }
.hm-pulses circle:nth-child(2n) { fill: #ff6a5c; filter: drop-shadow(0 0 6px rgba(255, 106, 92, .9)); }
.hm-pulses circle:nth-child(3n) { fill: var(--hm-blue); filter: drop-shadow(0 0 6px rgba(83, 182, 212, .9)); }

.hm-hero-inner { position: relative; z-index: 1; max-width: 1170px; margin: 0 auto; padding: 0 15px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hm-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 26px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 600; letter-spacing: .4px; }
.hm-live { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: hmLive 2s infinite; }
@keyframes hmLive { 70% { box-shadow: 0 0 0 9px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
.hm-hero-title .hm-grad { white-space: nowrap; }
body .hm-hero-title { margin: 0 0 22px; color: #fff; font-size: 60px; font-weight: 900; line-height: 1.02; letter-spacing: -2.2px; text-transform: none; }
.hm-hero-sub { max-width: 560px; margin: 0 0 32px; color: rgba(255, 255, 255, .74); font-size: 16.5px; line-height: 1.75; }
.hm-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.hm-hero-points li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .82); font-size: 14.5px; font-weight: 600; }
.hm-hero-points .fa { color: var(--hm-orange); }

.hm-hero-visual { position: relative; height: 480px; }
.hm-photo { position: absolute; overflow: hidden; border-radius: 26px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.hm-photo img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.hm-photo-main { top: 0; right: 0; width: 86%; height: 82%; border: 1px solid rgba(255, 255, 255, .12); }
.hm-photo-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(14, 22, 33, .55)); }
.hm-photo-small { left: 0; bottom: 0; width: 46%; height: 46%; border: 5px solid var(--hm-ink); }
.hm-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .96); color: var(--hm-ink); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); animation: hmFloat 6s ease-in-out infinite; }
.hm-float b { display: block; font-size: 14.5px; line-height: 1.2; }
.hm-float small { display: block; color: var(--hm-muted); font-size: 12px; }
.hm-float-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--hm-red); color: #fff; font-size: 19px; }
.hm-float-icon.is-orange { background: var(--hm-orange); }
.hm-float-1 { top: 34px; left: 2%; }
.hm-float-2 { right: -14px; bottom: 30px; animation-delay: -3s; }
@keyframes hmFloat { 50% { transform: translateY(-10px); } }

/* ---------- Numbers strip ---------- */
body .hm-stats { position: relative; z-index: 5; height: auto; margin-top: -92px; padding: 0; background: transparent; }
.hm-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 22px; background: var(--hm-line); box-shadow: 0 30px 60px rgba(14, 22, 33, .16); }
.hm-stat { position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 24px; background: #fff; transition: background .2s ease; }
.hm-stat:hover { background: #fffaf3; }
.hm-stat-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--hm-red), #c63a4f); box-shadow: 0 10px 20px rgba(158, 27, 50, .25); }
.hm-stat:nth-child(4n+2) .hm-stat-icon { background: linear-gradient(135deg, var(--hm-orange), #f0b95a); box-shadow: 0 10px 20px rgba(230, 160, 41, .3); }
.hm-stat:nth-child(4n+3) .hm-stat-icon { background: linear-gradient(135deg, #2f8fae, var(--hm-blue)); box-shadow: 0 10px 20px rgba(47, 143, 174, .3); }
.hm-stat:nth-child(4n+4) .hm-stat-icon { background: linear-gradient(135deg, var(--hm-ink), #2a3a50); box-shadow: 0 10px 20px rgba(14, 22, 33, .25); }
.hm-stat-icon img { width: 28px; height: 28px; object-fit: contain; }
.hm-stat-body .counter { display: block; color: var(--hm-ink) !important; font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -.5px; }
.hm-stat-body p { margin: 4px 0 0; color: var(--hm-muted) !important; font-size: 13.5px; line-height: 1.35; }

/* ---------- Services ---------- */
.hm-services { padding-top: 110px; }
.hm-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.hm-service { position: relative; padding: 30px 26px 28px; border-radius: var(--hm-radius); background: #fff; border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hm-service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hm-grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.hm-service:hover { transform: translateY(-6px); box-shadow: var(--hm-shadow-up); border-color: transparent; }
.hm-service:hover::before { transform: scaleX(1); }
.hm-service-no { position: absolute; top: 18px; right: 22px; color: #eceef2; font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.hm-service-icon { position: relative; width: 62px; height: 62px; margin-bottom: 22px; border-radius: 18px; display: grid; place-items: center; background: #fbeef0; transition: background .25s ease; }
.hm-service .ser-icon { display: block; width: 32px; height: 32px; background: var(--hm-red); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; transition: background .25s ease; }
.hm-service:hover .hm-service-icon { background: var(--hm-red); }
.hm-service:hover .ser-icon { background: #fff; }
.hm-service h3 { position: relative; margin: 0; color: var(--hm-ink); font-size: 17.5px; font-weight: 700; line-height: 1.35; }

/* ---------- Programs bento ---------- */
.hm-programs { padding-top: 20px; }
.hm-bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 250px 210px; gap: 20px; }
.hm-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; overflow: hidden; border-radius: 24px; color: #fff !important; text-decoration: none !important; background: var(--hm-ink) var(--img) center / cover no-repeat; isolation: isolate; transition: transform .3s ease, box-shadow .3s ease; }
.hm-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 33, .05) 0%, rgba(14, 22, 33, .55) 45%, rgba(14, 22, 33, .92) 100%); transition: background .3s ease; }
.hm-tile:hover { transform: translateY(-5px); box-shadow: var(--hm-shadow-up); }
.hm-tile-big { grid-row: span 2; padding: 34px; }
.hm-tile-big::before { background: linear-gradient(180deg, rgba(14, 22, 33, .1) 0%, rgba(124, 20, 39, .6) 50%, rgba(14, 22, 33, .95) 100%); }
.hm-tile h3 { margin: 0 0 8px; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.hm-tile-big h3 { font-size: 32px; letter-spacing: -.8px; }
.hm-tile p { margin: 0 0 14px; max-width: 420px; color: rgba(255, 255, 255, .8); font-size: 14.5px; line-height: 1.6; }
.hm-tile-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 700; }
.hm-tile-link .fa { transition: transform .2s ease; }
.hm-tile:hover .hm-tile-link .fa { transform: translateX(4px); }
.hm-tile-tag { position: absolute; top: 24px; left: 26px; padding: 6px 13px; border-radius: 999px; background: var(--hm-orange); color: var(--hm-ink); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hm-tile-plain { justify-content: space-between; background: #fff; color: var(--hm-ink) !important; border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow); }
.hm-tile-plain::before { display: none; }
.hm-tile-plain h3 { color: var(--hm-ink); }
.hm-tile-plain p { color: var(--hm-muted); }
.hm-tile-plain .hm-tile-link { color: var(--hm-red); }
.hm-tile-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fbeef0; color: var(--hm-red); font-size: 22px; }
.hm-tile-plain.is-dark { background: linear-gradient(140deg, var(--hm-ink) 0%, #23324a 100%); border-color: transparent; }
.hm-tile-plain.is-dark h3 { color: #fff; }
.hm-tile-plain.is-dark p { color: rgba(255, 255, 255, .72); }
.hm-tile-plain.is-dark .hm-tile-link { color: var(--hm-orange); }
.hm-tile-plain.is-dark .hm-tile-icon { background: rgba(230, 160, 41, .15); color: var(--hm-orange); }

/* ---------- Where we operate (map pins keep their positions from ebni-modern.css) ---------- */
body .locations.hm-where {
  position: relative; overflow: hidden; padding: 100px 0;
  background:
    radial-gradient(600px 400px at 20% 50%, rgba(83, 182, 212, .18), transparent 70%),
    linear-gradient(150deg, #0b121c 0%, var(--hm-ink) 60%, #23151d 100%);
}
body .hm-where .content .map > img:first-child { opacity: .1; }
body .hm-where .content .map .pin .pin-dot { background: var(--hm-orange); }
body .hm-where .content .map .pin.is-main .pin-dot { background: var(--hm-red); }
body .hm-where .content .map .map-links line { stroke: rgba(230, 160, 41, .6); stroke-dasharray: 4 6; animation: hmDash 6s linear infinite; }
@keyframes hmDash { to { stroke-dashoffset: -60; } }
.hm-where-text { max-width: 500px; }
.hm-where-text .hm-title { font-size: 36px; }
.hm-where-stat { display: flex; align-items: center; gap: 16px; margin: 30px 0 26px; }
.hm-where-stat strong { font-size: 64px; font-weight: 900; line-height: 1; background: var(--hm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-where-stat span { color: rgba(255, 255, 255, .72); font-size: 13.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; line-height: 1.5; }
body .hm-where .location-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; max-width: none; }
body .hm-where .location-card { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; color: #fff; font-size: 16px; font-weight: 700; transition: background .2s ease, border-color .2s ease; }
body .hm-where .location-card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
body .hm-where .location-card .fa { color: var(--hm-orange); font-size: 18px; }
body .hm-where .location-card em { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--hm-red); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
body .hm-where .location-card.is-main { background: #fff; border-color: #fff; color: var(--hm-ink); }
body .hm-where .location-card.is-main .fa { color: var(--hm-red); }

/* ---------- Gallery ---------- */
body .hm-gallery.section-images { padding: 96px 0 40px; background: #fff; }
body .hm-gallery .gallery-mosaic { grid-auto-rows: 180px; gap: 14px; }
body .hm-gallery .gallery-mosaic .item { position: relative; border-radius: 18px; }
body .hm-gallery .gallery-mosaic .item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 55%, rgba(14, 22, 33, .35)); opacity: 0; transition: opacity .3s ease; }
body .hm-gallery .gallery-mosaic .item:hover::after { opacity: 1; }

/* ---------- Testimonials ---------- */
body .hm-testimonials { background: #fff; }
body .hm-testimonials .testimonial-grid { margin-top: 0; gap: 22px; }
body .hm-testimonials .t-card { position: relative; padding: 30px; border-radius: 22px; border: 1px solid var(--hm-line); background: var(--hm-soft); box-shadow: none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
body .hm-testimonials .t-card:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--hm-shadow-up); }
body .hm-testimonials .t-quote::before { content: "\201C"; display: block; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; background: var(--hm-red); color: #fff; font-size: 44px; line-height: 58px; text-align: center; }
body .hm-testimonials .t-quote p { color: var(--hm-text); font-size: 15.5px; line-height: 1.75; }
body .hm-testimonials .t-person .cli { border-top-color: #e2e5ea; }
body .hm-testimonials .t-person .img-test { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(158, 27, 50, .25); }

/* ---------- Academy ---------- */
.hm-academy { padding-top: 20px; }
.hm-academy-card { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding: 60px; overflow: hidden; border-radius: 30px; color: #fff; background: radial-gradient(500px 340px at 100% 0%, rgba(230, 160, 41, .25), transparent 70%), linear-gradient(135deg, var(--hm-red-dark) 0%, var(--hm-red) 55%, #b8324a 100%); box-shadow: 0 30px 60px rgba(124, 20, 39, .3); }
.hm-academy-card::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .06); pointer-events: none; }
.hm-academy-card .hm-eyebrow.is-light { color: #ffd38a; }
.hm-academy-card .hm-title.is-light span { background: none; color: #ffd38a; }
.hm-academy-text p { margin: 16px 0 28px; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.75; }
.hm-academy-logo { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hm-academy-badge { display: grid; place-items: center; width: 100%; max-width: 320px; padding: 34px; border-radius: 24px; background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .25); }
.hm-academy-badge img { width: 100%; max-width: 230px; height: auto; }
.hm-academy-logo ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hm-academy-logo li { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 600; }
.hm-academy-logo li .fa { margin-right: 5px; color: #ffd38a; }

/* ---------- Partners ---------- */
body #partners.hm-partners { padding: 90px 0; margin: 0; background: transparent; }
body .hm-partners .partner-logos { margin-top: 0; gap: 18px; }
body #partners.hm-partners .partner-logos .item { flex: 0 0 180px; height: 104px; border-radius: 18px; border-color: transparent; box-shadow: var(--hm-shadow); transition: transform .25s ease, box-shadow .25s ease; }
body #partners.hm-partners .partner-logos .item:hover { transform: translateY(-4px); box-shadow: var(--hm-shadow-up); }
body #partners.hm-partners .partner-logos .item img { filter: grayscale(1); opacity: .75; transition: filter .25s ease, opacity .25s ease; }
body #partners.hm-partners .partner-logos .item:hover img { filter: none; opacity: 1; }

/* ---------- Closing call to action ---------- */
.hm-cta { padding: 0 0 90px; background: transparent; }
.hm-cta-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 52px; overflow: hidden; border-radius: 28px; color: #fff; background: radial-gradient(500px 300px at 0% 0%, rgba(158, 27, 50, .6), transparent 70%), linear-gradient(135deg, var(--hm-ink) 0%, #1d2b40 100%); box-shadow: 0 30px 60px rgba(14, 22, 33, .25); }
body .hm-cta-card h2 { margin: 0 0 8px; color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -.8px; text-transform: none; }
.hm-cta-card p { margin: 0; max-width: 520px; color: rgba(255, 255, 255, .75); font-size: 16px; line-height: 1.65; }
.hm-cta-card .hm-hero-cta { flex: 0 0 auto; }

/* ---------- Scroll-in animation (only when JS added .hm-anim) ---------- */
.hm-anim .hm-section .hm-head,
.hm-anim .hm-section .hm-service-grid,
.hm-anim .hm-section .hm-bento,
.hm-anim .hm-section .testimonial-grid,
.hm-anim .hm-section .gallery-mosaic,
.hm-anim .hm-section .partner-logos,
.hm-anim .hm-section .hm-academy-card,
.hm-anim .hm-where .content,
.hm-anim .hm-cta .hm-cta-card { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.hm-anim .is-in .hm-head,
.hm-anim .is-in .hm-service-grid,
.hm-anim .is-in .hm-bento,
.hm-anim .is-in .testimonial-grid,
.hm-anim .is-in .gallery-mosaic,
.hm-anim .is-in .partner-logos,
.hm-anim .is-in .hm-academy-card,
.hm-anim .is-in.hm-where .content,
.hm-anim .is-in .hm-cta-card { opacity: 1; transform: none; }
.hm-anim .is-in .hm-service-grid, .hm-anim .is-in .hm-bento, .hm-anim .is-in .testimonial-grid { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  .hm-pulses, .hm-live, .hm-float, .hm-where .map-links line { animation: none !important; }
  .hm-pulses { display: none; }
  .hm-anim .hm-page * { transition: none !important; }
  .hm-anim .hm-section *, .hm-anim .hm-where .content, .hm-anim .hm-cta-card { opacity: 1 !important; transform: none !important; }
}

/* ---------- Laptop ---------- */
@media (max-width: 1199px) {
  body .hm-hero-title { font-size: 54px; }
  .hm-hero-inner { gap: 36px; }
  .hm-hero-visual { height: 420px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .hm-section { padding: 72px 0; }
  .hm-hero { padding: 56px 0 130px; }
  .hm-hero-inner { grid-template-columns: 1fr; }
  .hm-hero-visual { height: 380px; max-width: 560px; width: 100%; margin: 0 auto; }
  .hm-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hm-tile { min-height: 220px; }
  .hm-tile-big { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .hm-academy-card { grid-template-columns: 1fr; padding: 44px 36px; }
  .hm-cta-card { flex-direction: column; align-items: flex-start; padding: 40px 36px; }
  body .locations.hm-where { padding: 72px 0; }
  .hm-where-text { max-width: none; margin-top: 20px; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .hm-section { padding: 60px 0; }
  .hm-head { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
  .hm-head.is-center { align-items: center; }
  body .hm-title { font-size: 30px; }
  .hm-where-text .hm-title { font-size: 28px; }
  .hm-hero { padding: 40px 0 115px; }
  body .hm-hero-title { font-size: 40px; letter-spacing: -1.2px; }
  .hm-hero-sub { font-size: 15.5px; }
  .hm-hero-visual { height: 300px; }
  .hm-float { padding: 9px 13px 9px 9px; }
  .hm-float-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 15px; }
  .hm-float b { font-size: 13px; }
  .hm-float small { font-size: 11px; }
  .hm-float-1 { top: 10px; left: 0; }
  .hm-float-2 { right: 0; bottom: 14px; }
  .hm-stat { padding: 18px 14px; gap: 12px; }
  .hm-stat-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; }
  .hm-stat-icon img { width: 22px; height: 22px; }
  .hm-stat-body .counter { font-size: 24px; }
  .hm-stat-body p { font-size: 12.5px; }
  .hm-service-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hm-service:last-child:nth-child(odd) { grid-column: span 2; }
  .hm-service { padding: 22px 18px; }
  .hm-service-no { font-size: 32px; }
  .hm-service h3 { font-size: 15.5px; }
  .hm-bento { grid-template-columns: 1fr; }
  .hm-tile-big { grid-column: auto; }
  .hm-tile-big h3 { font-size: 26px; }
  .hm-academy-card { padding: 36px 22px; border-radius: 24px; }
  .hm-cta-card { padding: 34px 24px; }
  body .hm-cta-card h2 { font-size: 26px; }
  .hm-where-stat strong { font-size: 52px; }
  body .hm-where .location-cards { grid-template-columns: 1fr 1fr; }
  body #partners.hm-partners .partner-logos .item { flex-basis: calc(50% - 9px); height: 90px; }
}
