/* =========================================================
   Home (hm-)
   File: /css/pages/home.css
   Clean + Stable (no duplicate selectors)
   ========================================================= */

/* -------------------------
   HERO (image background)
------------------------- */
.hm-hero{
  position:relative;
  padding:96px 0 72px;
  color:#fff;
  background:
    linear-gradient(rgba(15,23,42,0.58), rgba(15,23,42,0.58)),
    url('/images/hero-home.jpg') center/cover no-repeat;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.hm-hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:start;
}

@media(max-width:980px){
  .hm-hero{ padding:72px 0 56px; }
  .hm-hero__grid{ grid-template-columns:1fr; }
}

.hm-kicker{ font-weight:950; color:rgba(255,255,255,.82); letter-spacing:.2px; }
.hm-h1{ margin:10px 0 10px; font-size:44px; letter-spacing:-.6px; line-height:1.08; }
@media(max-width:560px){ .hm-h1{ font-size:34px; } }

.hm-sub{
  color:rgba(255,255,255,.82);
  max-width:760px;
  line-height:1.8;
  font-size:1.05rem;
}

.hm-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.hm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:12px;
  font-weight:950;
  background:var(--brand);
  color:#fff;
  text-decoration:none;
  box-shadow:0 14px 40px rgba(0,102,204,.25);
}

.hm-btn--ghost{
  background:rgba(255,255,255,.92);
  color:#0f172a;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:none;
}

.hm-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:16px;
}

.hm-badge{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;
  color:rgba(255,255,255,.85);
  font-size:.85rem;
}

/* Right hero card */
.hm-hero__card .hm-card{
  background:rgba(255,255,255,.96);
  border:1px solid rgba(230,234,242,.95);
  border-radius:18px;
  padding:18px;
  box-shadow:0 18px 60px rgba(15,23,42,.14);
  color:var(--text);
}

.hm-card__t{ font-weight:950; margin-bottom:10px; }
.hm-list{ margin:0; padding-left:18px; color:var(--muted); line-height:1.7; }
.hm-list strong{ color:var(--text); }
.hm-miniCta{
  display:inline-flex;
  margin-top:12px;
  font-weight:950;
  color:var(--brand);
  text-decoration:none;
}

/* -------------------------
   SECTION
------------------------- */
.hm-section{ padding:70px 0; }
.hm-head{ margin-bottom:16px; }
.hm-h2{ margin:0; font-size:28px; font-weight:950; letter-spacing:-.3px; }
.hm-muted{ color:var(--muted); margin-top:8px; line-height:1.7; }

.hm-grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
@media(max-width:980px){
  .hm-grid3{ grid-template-columns:1fr; }
}

/* -------------------------
   SERVICE CARD (image + white content)
   No overlay blocking text.
------------------------- */
.hm-svc{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  box-shadow:0 10px 35px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex;
  flex-direction:column;
}

.hm-svc:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 44px rgba(15,23,42,.12);
  border-color: rgba(0,102,204,.22);
}

/* Top image area */
.hm-svc__media{
  height:180px;
  background:#f1f5f9;
  background-size:cover;
  background-position:center;
}

/* Content area */
.hm-svc__body{
  padding:18px;
}

.hm-svc__h{
  font-weight:950;
  font-size:1.05rem;
  color:var(--text);
}

.hm-svc__p{
  margin-top:8px;
  color:var(--muted);
  line-height:1.7;
}

.hm-svc__more{
  margin-top:12px;
  font-weight:950;
  color:var(--brand);
}

/* Individual images */
.hm-svc--corporate .hm-svc__media{ background-image:url('/images/svc-corporate.jpg'); }
.hm-svc--aiserve   .hm-svc__media{ background-image:url('/images/svc-aiserve.jpg'); }
.hm-svc--training  .hm-svc__media{ background-image:url('/images/svc-training.jpg'); }

/* Mobile tuning */
@media(max-width:560px){
  .hm-svc__media{ height:160px; }
  .hm-svc__body{ padding:16px; }
}

/* -------------------------
   CTA BAR
------------------------- */
.hm-ctaBar{ padding:70px 0; }
.hm-ctaBar__in{
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:22px;
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}

.hm-ctaBar__in{
  background: linear-gradient(135deg,#0b5cab 0%, #052a56 100%);
  color:#fff;
}

.hm-ctaBar .hm-muted{
  color:rgba(255,255,255,.85);
}

.hm-ctaBar .hm-btn{
  background:#fff;
  color:#0f172a;
  font-weight:900;
}