/* ============================================================
   EMTOP custom front page (The7 child front-page.php)
   Scoped to .emtop-front — accent: The7 #1ebbf0
   ============================================================ */

/* neutralize The7 content paddings/width on the front page only */
body.home #main { padding-top: 0; }
body.home #main .wf-wrap { width: 100% !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
body.home #main .wf-container-main { width: 100%; }

.emtop-front, .emtop-front * { box-sizing: border-box; }
.emtop-front { font-size: 16px; line-height: 1.6; color: #1c232b; }
.emtop-front img { max-width: 100%; height: auto; }
.emtop-front a { text-decoration: none; }

.ef-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- hero ---------- */
.ef-hero {
  width: 100vw; margin-left: calc(50% - 50vw);
  background: #0b1220;
  position: relative; overflow: hidden;
}
.ef-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.ef-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(860px 380px at 14% 0%, rgba(30,187,240,.17), transparent 62%),
    radial-gradient(640px 300px at 90% 100%, rgba(30,187,240,.08), transparent 60%);
}
.ef-hero .ef-wrap { padding-top: 92px; padding-bottom: 88px; }
.ef-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
  border-radius: 999px; padding: 5px 14px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .18em; color: rgba(255,255,255,.62);
}
.ef-eyebrow svg { width: 14px; height: 14px; color: #1ebbf0; }
.ef-hero h1 {
  margin: 26px 0 0; max-width: 780px;
  font-size: clamp(34px, 5vw, 58px); font-weight: 800;
  line-height: 1.08; letter-spacing: -.02em; color: #fff;
}
.ef-hero h1 span { color: #1ebbf0; }
.ef-lead { margin: 22px 0 0; max-width: 620px; font-size: 18px; color: rgba(255,255,255,.6); }
.ef-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.ef-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: 8px; font-size: 14px; font-weight: 700; border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.ef-btn svg { width: 16px; height: 16px; }
.ef-btn-primary { background: #1ebbf0; color: #fff; }
.ef-btn-primary:hover { background: #4ccdf5; color: #fff; }
.ef-btn-ghost { border-color: rgba(255,255,255,.22); color: #fff; background: transparent; }
.ef-btn-ghost:hover { background: rgba(255,255,255,.09); color: #fff; }
.ef-stats {
  margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px; overflow: hidden;
}
.ef-stats > div { background: #0b1220; padding: 16px 20px; }
.ef-stats dt { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.45); }
.ef-stats dd { margin: 5px 0 0; font-size: 14px; font-weight: 800; color: #fff; }

/* ---------- sections ---------- */
.ef-section { padding: 76px 0; }
.ef-tint { background: #f5f8fa; }
.ef-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.ef-head-center { justify-content: center; text-align: center; }
.ef-kicker { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: #1ebbf0; }
.ef-head h2 { margin: 8px 0 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em; color: #101b2b; line-height: 1.15; }
.ef-more { font-size: 13px; font-weight: 700; color: #5b636c; white-space: nowrap; }
.ef-more:hover { color: #1ebbf0; }

/* product line cards */
.ef-lines { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.ef-line {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e6ebf0; border-radius: 12px; overflow: hidden;
  color: inherit; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ef-line:hover { transform: translateY(-3px); border-color: rgba(30,187,240,.5); box-shadow: 0 16px 38px -18px rgba(11,18,32,.2); color: inherit; }
.ef-line-img {
  height: 150px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-bottom: 1px solid #eef1f4; padding: 20px;
}
.ef-line-img img { max-height: 100%; object-fit: contain; transition: transform .25s; }
.ef-line:hover .ef-line-img img { transform: scale(1.05); }
.ef-line-img em { font-style: normal; font-size: 12px; color: #9aa3ab; }
.ef-line-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.ef-line-body strong { font-size: 15px; font-weight: 800; color: #101b2b; }
.ef-line:hover .ef-line-body strong { color: #1ebbf0; }
.ef-line-body small { font-size: 12px; color: #8b939c; }

/* featured */
.ef-feats { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.ef-feat {
  background: #fff; border: 1px solid #e6ebf0; border-radius: 12px; overflow: hidden;
  color: inherit; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ef-feat:hover { transform: translateY(-3px); border-color: rgba(30,187,240,.5); box-shadow: 0 16px 38px -18px rgba(11,18,32,.2); color: inherit; }
.ef-feat-img { height: 170px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 18px; }
.ef-feat-img img { max-height: 100%; object-fit: contain; transition: transform .25s; }
.ef-feat:hover .ef-feat-img img { transform: scale(1.05); }
.ef-feat-body { border-top: 1px solid #eef1f4; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.ef-feat-body small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #8b939c; }
.ef-feat-body strong { font-size: 14px; font-weight: 800; color: #101b2b; }
.ef-feat:hover .ef-feat-body strong { color: #1ebbf0; }

/* why band */
.ef-dark {
  width: 100vw; margin-left: calc(50% - 50vw);
  background:
    radial-gradient(800px 320px at 85% 0%, rgba(30,187,240,.1), transparent 60%),
    #0b1220;
}
.ef-dark .ef-head h2 { color: #fff; }
.ef-why { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.ef-why-item {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: 22px;
  transition: border-color .2s, background .2s;
}
.ef-why-item:hover { border-color: rgba(30,187,240,.5); background: rgba(30,187,240,.07); }
.ef-why-item strong { display: block; font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.ef-why-item span { font-size: 13px; color: rgba(255,255,255,.6); }

/* services */
.ef-svcs { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.ef-svc {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e6ebf0; border-radius: 12px; padding: 26px;
  color: inherit; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ef-svc:hover { transform: translateY(-3px); border-color: rgba(30,187,240,.5); box-shadow: 0 16px 38px -18px rgba(11,18,32,.2); color: inherit; }
.ef-svc svg { width: 28px; height: 28px; color: #1ebbf0; }
.ef-svc strong { margin: 16px 0 8px; font-size: 17px; font-weight: 800; color: #101b2b; }
.ef-svc:hover strong { color: #1ebbf0; }
.ef-svc span { flex: 1; font-size: 14px; color: #5b636c; }
.ef-svc em { margin-top: 16px; font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #1ebbf0; }

/* responsive */
@media (max-width: 1100px) {
  .ef-lines, .ef-feats { grid-template-columns: repeat(3, 1fr); }
  .ef-why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .ef-lines, .ef-feats { grid-template-columns: repeat(2, 1fr); }
  .ef-svcs { grid-template-columns: 1fr; }
  .ef-hero .ef-wrap { padding-top: 60px; padding-bottom: 60px; }
}
@media (max-width: 560px) {
  .ef-lines, .ef-feats, .ef-why { grid-template-columns: 1fr; }
  .ef-stats { grid-template-columns: 1fr; }
  .ef-section { padding: 52px 0; }
}
