/* ============================================================
   IHMS — Landing page styles  (depends on theme.css)
   ============================================================ */

/* ============================== Navbar ========================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  padding: 1.1rem 0;
  transition: padding var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: .55rem 0;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 24px rgba(0,27,72,.08);
  border-bottom-color: var(--mist);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__menu { display: flex; align-items: center; gap: 1.4rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 800; font-size: 1.32rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  background: var(--grad-brand); box-shadow: var(--shadow-brand);
}
.brand__mark i, .brand__mark svg { width: 23px; height: 23px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); line-height: 1; margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--text);
  padding: .5rem .9rem; border-radius: var(--r-pill); transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__links a:hover { color: var(--brand); background: var(--mist-50); }
.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }
.nav__toggle i, .nav__toggle svg { width: 28px; height: 28px; }

/* ============================== Hero ============================ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 16vw, 180px) 0 clamp(70px, 9vw, 120px);
  background:
    var(--grad-mesh),
    linear-gradient(180deg, var(--mist-50) 0%, var(--paper) 100%);
}
.hero__dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--soft) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(60% 60% at 50% 30%, #000 0%, transparent 75%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 1.2rem; }
.hero__lead { font-size: 1.18rem; color: var(--text-muted); max-width: 33rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }

.hero__trust { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; margin-left: -14px; box-shadow: var(--shadow-sm);
}
.avatars img:first-child { margin-left: 0; }
.hero__trust .stars { color: #f5a623; display: inline-flex; gap: 2px; }
.hero__trust .stars i, .hero__trust .stars svg { width: 16px; height: 16px; fill: #f5a623; }
.hero__trust b { color: var(--ink); font-family: var(--font-head); }
.hero__trust small { color: var(--text-muted); display: block; font-size: .85rem; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__photo {
  position: relative; z-index: 2;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  aspect-ratio: 4 / 4.5;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__blob {
  position: absolute; z-index: 1; inset: -8% -10% auto auto; width: 78%; aspect-ratio: 1;
  background: var(--grad-soft); filter: blur(6px); opacity: .8;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  animation: morph 12s ease-in-out infinite;
}
.hero__ring {
  position: absolute; z-index: 1; left: -7%; bottom: 8%; width: 120px; height: 120px;
  border: 14px solid var(--mist); border-radius: 50%; opacity: .8;
}
@keyframes morph {
  0%,100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  50%     { border-radius: 58% 42% 44% 56% / 44% 58% 42% 56%; }
}

/* Floating glass cards */
.float-card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  border: 1px solid #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: .8rem 1rem;
  display: flex; align-items: center; gap: .7rem;
  animation: float 6s ease-in-out infinite;
}
.float-card .fc-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.float-card .fc-ico i, .float-card .fc-ico svg { width: 21px; height: 21px; }
.float-card b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.15rem; line-height: 1; }
.float-card span { font-size: .78rem; color: var(--text-muted); }
.float-card--tl { top: 6%; left: -8%; animation-delay: -1s; }
.float-card--br { bottom: 9%; right: -7%; animation-delay: -3s; }
.fc-ico--green { background: linear-gradient(135deg,#16a37a,#33c79a); }
.fc-ico--accent { background: var(--grad-brand); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============================== Trust strip ===================== */
.trust-strip { background: var(--ink); color: var(--text-on-dark); }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; padding-top: 2.2rem; padding-bottom: 2.2rem; }
.trust-item { display: flex; align-items: center; gap: .9rem; }
.trust-item i, .trust-item svg { width: 30px; height: 30px; color: var(--soft); flex: 0 0 auto; }
.trust-item b { color: #fff; font-family: var(--font-head); font-size: 1.05rem; display: block; line-height: 1.2; }
.trust-item span { font-size: .85rem; color: var(--soft); }

/* ============================== Features ======================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.feature {
  background: #fff; border: 1px solid var(--mist); border-radius: var(--r-lg);
  padding: 2rem 1.8rem; position: relative; overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; transform: scaleX(0); transform-origin: left;
  background: var(--grad-brand); transition: transform var(--t) var(--ease);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature__ico {
  width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 1.2rem;
  color: var(--brand); background: var(--mist); transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.feature__ico i, .feature__ico svg { width: 28px; height: 28px; }
.feature:hover .feature__ico { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.05); }
.feature h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.feature p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* ============================== Platform preview =============== */
.platform__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.checklist { margin-top: 1.6rem; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; }
.checklist .ck { width: 30px; height: 30px; border-radius: 9px; background: var(--mist); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.checklist .ck i, .checklist .ck svg { width: 18px; height: 18px; }
.checklist b { font-family: var(--font-head); color: var(--ink); display: block; }
.checklist span { color: var(--text-muted); font-size: .95rem; }

.browser {
  border-radius: var(--r-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--mist);
}
.browser__bar { display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem; background: var(--mist-50); border-bottom: 1px solid var(--mist); }
.browser__bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.browser__bar .dot:nth-child(1){ background:#ff5f57; } .browser__bar .dot:nth-child(2){ background:#febc2e; } .browser__bar .dot:nth-child(3){ background:#28c840; }
.browser__bar .url { margin-left: .8rem; font-size: .76rem; color: var(--text-muted); background: #fff; border: 1px solid var(--mist); border-radius: 99px; padding: .25rem .8rem; }
.browser img { width: 100%; display: block; }

/* ============================== Departments ==================== */
.dept {
  background: #fff; border: 1px solid var(--mist); border-radius: var(--r-lg); padding: 1.7rem;
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.dept__ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); }
.dept__ico i, .dept__ico svg { width: 26px; height: 26px; }
.dept h3 { font-size: 1.15rem; margin: 0; }
.dept p { color: var(--text-muted); font-size: .93rem; margin: 0; flex: 1; }
.dept__more { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--accent); }
.dept__more i, .dept__more svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.dept:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.dept:hover .dept__more i, .dept:hover .dept__more svg { transform: translateX(4px); }

/* ============================== How it works =================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--soft) 0 12px, transparent 12px 22px); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; }
.step__num {
  width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff;
  background: var(--grad-brand); box-shadow: var(--shadow-brand); border: 5px solid var(--paper);
}
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--text-muted); font-size: .94rem; margin: 0; }

/* ============================== Stats band ==================== */
.stats { background: var(--grad-deep); color: #fff; position: relative; overflow: hidden; }
.stats::after { content:""; position:absolute; inset:0; background: var(--grad-mesh); opacity:.5; pointer-events:none; }
.stats .container { position: relative; z-index: 1; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.03em; }
.stat__num .text-grad-light { background: linear-gradient(135deg,#97CADB,#fff); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stat__label { color: var(--soft); margin-top: .5rem; font-size: 1rem; }

/* ============================== Doctors ======================= */
.doc {
  background: #fff; border: 1px solid var(--mist); border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.doc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doc__photo { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.doc:hover .doc__photo img { transform: scale(1.06); }
.doc__social {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; gap: .5rem; padding: .9rem;
  background: linear-gradient(to top, rgba(0,27,72,.78), transparent);
  transform: translateY(100%); opacity: 0; transition: all var(--t) var(--ease);
}
.doc:hover .doc__social { transform: translateY(0); opacity: 1; }
.doc__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--brand); display: grid; place-items: center; }
.doc__social a:hover { background: var(--accent); color: #fff; }
.doc__social i, .doc__social svg { width: 17px; height: 17px; }
.doc__body { padding: 1.2rem 1.3rem 1.5rem; text-align: center; }
.doc__body h3 { font-size: 1.2rem; margin-bottom: .15rem; }
.doc__spec { color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.doc__rate { margin-top: .5rem; color: #f5a623; display: inline-flex; gap: 2px; align-items:center; font-size:.85rem; color:var(--text-muted); }
.doc__rate .stars { display:inline-flex; gap:1px; color:#f5a623; }
.doc__rate i, .doc__rate svg { width: 15px; height: 15px; }

/* ============================== Testimonials ================== */
.testi {
  background: #fff; border: 1px solid var(--mist); border-radius: var(--r-lg); padding: 2rem 1.9rem;
  position: relative; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.testi:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testi__quote { position: absolute; top: 1.3rem; right: 1.6rem; font-family: var(--font-head); font-size: 4.5rem; line-height: 1; color: var(--mist); }
.testi .stars { color: #f5a623; display: inline-flex; gap: 2px; margin-bottom: .8rem; }
.testi .stars i, .testi .stars svg { width: 17px; height: 17px; fill:#f5a623; }
.testi p { color: var(--text); font-size: 1.02rem; position: relative; z-index: 1; }
.testi__who { display: flex; align-items: center; gap: .8rem; margin-top: 1.3rem; }
.testi__who img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testi__who b { font-family: var(--font-head); color: var(--ink); display: block; line-height: 1.2; }
.testi__who span { font-size: .85rem; color: var(--text-muted); }

/* ============================== CTA =========================== */
.cta { position: relative; }
.cta__box {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem); color: #fff; text-align: center;
  background: var(--grad-deep);
  box-shadow: var(--shadow-lg);
}
.cta__box::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .18;
  background: url("../img/cta-corridor.jpg") center/cover no-repeat;
}
.cta__box > * { position: relative; z-index: 1; }
.cta__box h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta__box p { color: var(--soft); max-width: 40rem; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ============================== Footer ======================== */
.footer { background: var(--ink); color: var(--text-on-dark); padding-top: clamp(56px, 7vw, 88px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.2rem; padding-bottom: 3rem; }
.footer .brand, .footer .brand:hover { color: #fff; }
.footer p { color: var(--soft); }
.footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
.footer__links a { color: var(--soft); display: inline-flex; align-items:center; gap:.5rem; padding: .3rem 0; }
.footer__links a:hover { color: #fff; padding-left: 4px; }
.footer__links li { margin: 0; }
.foot-contact li { display: flex; gap: .7rem; align-items: flex-start; color: var(--soft); margin-bottom: .8rem; }
.foot-contact i, .foot-contact svg { width: 18px; height: 18px; color: var(--accent-300); flex: 0 0 auto; margin-top: 3px; }
.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter input { flex: 1; padding: .8rem 1rem; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; outline: none; }
.newsletter input::placeholder { color: #8fb0cc; }
.newsletter input:focus { border-color: var(--accent); }
.newsletter button { flex: 0 0 auto; border-radius: var(--r-pill); padding: .8rem 1.1rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; display: grid; place-items: center; transition: all var(--t) var(--ease); }
.socials a:hover { background: var(--grad-brand); transform: translateY(-3px); }
.socials i, .socials svg { width: 19px; height: 19px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__bottom p { margin: 0; font-size: .9rem; }
.footer__bottom a { color: var(--soft); }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad-brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-brand); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: all var(--t) var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top i, .to-top svg { width: 22px; height: 22px; }

/* ============================== Responsive ==================== */
@media (max-width: 992px) {
  .hero__grid, .platform__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin: 0 auto; }
  .platform__media { order: -1; }
  .grid-3, .grid-4, .stats__grid, .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.2rem; }
  .steps::before { display: none; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--mist); box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; gap: .4rem; padding: 1rem 1.2rem 1.4rem;
    display: none;
  }
  .nav__menu.open { display: flex; }
  .nav__menu .nav__links { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__menu .nav__links a { padding: .85rem 1rem; }
  .nav__menu .nav__cta { flex-direction: column; align-items: stretch; gap: .5rem; margin-top: .4rem; }
  .nav__menu .btn { width: 100%; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .stats__grid, .footer__grid, .steps, .trust-strip .container { grid-template-columns: 1fr; }
  .float-card--tl { left: 0; } .float-card--br { right: 0; }
  .hero__actions .btn { width: 100%; }
}

/* ============================== AOS lightweight fallback ======= */
/* If the AOS CDN fails, elements still appear (no permanent hide). */
.no-aos [data-aos] { opacity: 1 !important; transform: none !important; }
