/* MEDCARE 360 · V15 / CAMPUS MEDICAL
   Navigare instituțională, home concentrat și experiență mobilă. */

:root {
  --utility-h: 32px;
  --nav-bar-h: 76px;
  --nav-h: 108px;
  --app-dock-h: 0px;
  --content-max: 1320px;
  --campus-paper: #f6f4f1;
  --campus-white: #fff;
  --campus-ink: #171315;
  --campus-muted: #675c60;
  --campus-line: rgba(64, 30, 36, .14);
}

body { color: var(--campus-ink); background: var(--campus-paper); }
.event-utility { min-height: var(--utility-h); background: #26070c; }
.event-utility-inner { width: min(var(--content-max), calc(100% - 64px)); min-height: var(--utility-h); font-size: .64rem; }
.event-utility-facts strong { color: #fff; letter-spacing: .14em; }

.nav-enhanced .navbar {
  top: var(--utility-h);
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-bar-h);
  padding: 0 max(28px, calc((100vw - var(--content-max)) / 2));
  transform: none;
  border: 0;
  border-bottom: 1px solid var(--campus-line);
  border-radius: 0;
  background: rgba(255,255,255,.975);
  box-shadow: 0 10px 30px rgba(40,8,14,.055);
}

.nav-enhanced .navbar.scrolled { background: rgba(255,255,255,.99); box-shadow: 0 12px 34px rgba(40,8,14,.1); }
.nav-enhanced .logo { width: 44px; height: 44px; box-shadow: none; }
.nav-enhanced .brand-text strong { font-size: .88rem; letter-spacing: .055em; }
.nav-enhanced .brand-text span { margin-top: 2px; font-size: .56rem; letter-spacing: .13em; }
.nav-enhanced .nav-links { gap: 2px; }
.nav-enhanced .nav-links > a,
.nav-enhanced .nav-group > summary {
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 5px;
  color: #4f4548;
  font-size: .73rem;
  font-weight: 600;
}
.nav-enhanced .nav-links > a:hover,
.nav-enhanced .nav-group > summary:hover,
.nav-enhanced .nav-group.active > summary,
.nav-enhanced .nav-home.active { color: var(--red-dark); background: #f6eded; }
.nav-enhanced .nav-dropdown { top: calc(100% + 11px); width: 300px; padding: 12px; border-radius: 10px; box-shadow: 0 24px 60px rgba(49,7,13,.16); }
.nav-enhanced .nav-dropdown a { min-height: 45px; border-radius: 6px; }
.nav-enhanced .nav-actions a { min-height: 42px; border-radius: 6px; }
.nav-enhanced .nav-register { box-shadow: none; }
.menu-scrim,
.mobile-app-dock { display: none; }

/* Home: un singur mesaj, datele evenimentului și două decizii principale. */
.home-hero-v15 {
  min-height: auto;
  background:
    radial-gradient(circle at 84% 26%, rgba(235,109,124,.2), transparent 21rem),
    linear-gradient(118deg, #2b070c 0%, #66101d 56%, #98182a 100%);
}
.home-hero-v15::before {
  background:
    linear-gradient(118deg, transparent 0 73%, rgba(255,255,255,.055) 73% 73.12%, transparent 73.12%),
    radial-gradient(circle at 78% 50%, transparent 0 174px, rgba(255,255,255,.07) 175px 176px, transparent 177px);
}
.home-hero-v15 .hero-inner {
  max-width: var(--content-max);
  min-height: 625px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding-top: 66px;
  padding-bottom: 66px;
}
.home-hero-v15 .hero-content { max-width: 760px; }
.home-hero-v15 .hero-kicker {
  max-width: 680px;
  margin: 0 0 28px;
  color: #ebd8db;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.55;
  text-transform: uppercase;
}
.home-hero-v15 .badge-pill {
  width: fit-content;
  margin-bottom: 23px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  font-size: .62rem;
  letter-spacing: .09em;
}
.home-hero-v15 .hero-title {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .98;
}
.home-hero-v15 .hero-title em { color: #e9a7b0; font-family: var(--font-ui); font-style: normal; font-weight: 400; }
.home-hero-v15 .hero-statement {
  max-width: 17ch;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.8vw, 3.7rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.home-hero-v15 .hero-lead { max-width: 620px; margin-bottom: 28px; color: #ead5d8; font-size: .93rem; line-height: 1.72; }
.home-hero-v15 .hero-actions { margin-bottom: 33px; }
.home-hero-v15 .hero-actions .btn { border-radius: 6px; }

.hero-facts {
  max-width: 720px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr .8fr 1.1fr;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.hero-facts > div { min-width: 0; padding: 16px 18px 16px 0; }
.hero-facts > div + div { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.16); }
.hero-facts dt { margin-bottom: 5px; color: #cf9ca4; font-size: .55rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-facts dd { margin: 0; color: #fff; font-size: .72rem; font-weight: 600; line-height: 1.45; }

.hero-signature {
  position: relative;
  min-height: 410px;
  padding: 31px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.035));
}
.hero-signature::before,
.hero-signature::after { content: ''; position: absolute; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.hero-signature::before { top: 64px; left: 53px; }
.hero-signature::after { top: 92px; left: 23px; }
.hero-signature > * { position: relative; z-index: 1; }
.hero-signature > span,
.hero-signature small { font-size: .57rem; font-weight: 700; letter-spacing: .19em; }
.hero-signature strong { align-self: center; font-family: var(--font-display); font-size: 5.2rem; font-weight: 500; line-height: 1; }
.hero-signature strong sup { font-family: var(--font-ui); font-size: 1rem; }
.hero-signature p { align-self: flex-end; margin: 0; color: #ecd4d8; font-size: .68rem; letter-spacing: .07em; line-height: 1.7; text-align: right; text-transform: uppercase; }

/* Maximum patru alegeri pe primul nivel. */
.home-task-hub {
  position: relative;
  z-index: 4;
  width: min(var(--content-max), calc(100% - 48px));
  margin: -30px auto 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  border: 1px solid var(--campus-line);
  background: var(--campus-white);
  box-shadow: 0 20px 55px rgba(43,7,13,.09);
}
.home-task-heading { padding: 30px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--campus-line); }
.home-task-heading .eyebrow { margin-bottom: 12px; }
.home-task-heading h2 { margin: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.16; }
.home-task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-task-grid a {
  position: relative;
  min-width: 0;
  min-height: 154px;
  padding: 25px 23px;
  display: flex;
  flex-direction: column;
  color: var(--campus-ink);
  border-right: 1px solid var(--campus-line);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.home-task-grid a:last-child { border-right: 0; }
.home-task-grid a > span { color: #9a5b64; font-size: .57rem; font-weight: 700; letter-spacing: .12em; }
.home-task-grid strong { margin-top: auto; font-size: .91rem; line-height: 1.35; }
.home-task-grid small { margin-top: 6px; color: var(--campus-muted); font-size: .66rem; line-height: 1.45; }
.home-task-grid i { position: absolute; top: 22px; right: 20px; color: var(--red); font-size: .9rem; font-style: normal; }
@media (hover: hover) {
  .home-task-grid a:hover { color: #fff; background: #66101d; }
  .home-task-grid a:hover > span,
  .home-task-grid a:hover small,
  .home-task-grid a:hover i { color: #f1cbd0; }
}

.home-page .section { max-width: var(--content-max); padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); }
.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .85fr);
  align-items: center;
  gap: clamp(54px, 9vw, 130px);
}
.home-overview-copy h2,
.home-author-intro h2,
.home-page .closing-cta h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.home-overview-copy > p:not(.eyebrow),
.home-author-intro > p:not(.eyebrow) { max-width: 660px; color: var(--campus-muted); font-size: .91rem; line-height: 1.82; }
.home-overview-copy .text-link { display: inline-flex; margin-top: 22px; }
.home-overview-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); color: #fff; background: #2c090f; }
.home-overview-facts article { min-width: 0; min-height: 245px; padding: 30px 25px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.14); }
.home-overview-facts article:last-child { border-right: 0; }
.home-overview-facts strong { color: #eeb2ba; font-family: var(--font-display); font-size: 3rem; font-weight: 500; }
.home-overview-facts span { color: #f2e2e4; font-size: .71rem; line-height: 1.55; }

.home-author-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .85fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  border-top: 1px solid var(--campus-line);
}
.home-author-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--campus-line); }
.home-author-steps li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--campus-line); }
.home-author-steps li > span { color: #a65a65; font-family: var(--font-display); font-size: 1.4rem; }
.home-author-steps strong { font-size: .86rem; }
.home-author-steps p { margin: 5px 0 0; color: var(--campus-muted); font-size: .72rem; line-height: 1.65; }
.home-author-panel .button-row { gap: 20px; }
.home-author-panel .btn { border-radius: 6px; }

.home-closing { padding-top: 0 !important; }
.home-page .closing-cta { padding: clamp(40px, 5vw, 64px); border-radius: 4px; background: linear-gradient(112deg, #2b070c, #8e1728); box-shadow: none; }
.home-page .closing-cta h2 { margin-bottom: 10px; color: #fff; }
.home-page .closing-cta p:not(.eyebrow) { color: #ecd3d7; }
.home-page .closing-cta .btn { border-radius: 6px; }

@media (max-width: 1320px) {
  .nav-enhanced .navbar { left: 12px; right: 12px; width: auto; padding: 0 22px; border: 1px solid var(--campus-line); border-top: 0; border-radius: 0 0 12px 12px; }
}

@media (max-width: 1024px) {
  .home-hero-v15 .hero-inner { grid-template-columns: minmax(0, 1fr) 290px; gap: 45px; }
  .hero-signature { min-height: 355px; }
  .home-task-hub { grid-template-columns: 220px minmax(0, 1fr); }
  .home-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-task-grid a:nth-child(2) { border-right: 0; }
  .home-task-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--campus-line); }
  .home-overview,
  .home-author-panel { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .home-overview-facts { max-width: 680px; }
}

@media (max-width: 768px) {
  :root { --utility-h: 0px; --nav-bar-h: 66px; --nav-h: 78px; --app-dock-h: 76px; }
  html { font-size: 20px; }
  body { padding-bottom: calc(var(--app-dock-h) + env(safe-area-inset-bottom, 0px)); }
  body.menu-open { overflow: hidden; }
  .event-utility { display: none; }
  .nav-enhanced .navbar {
    z-index: 125;
    top: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    height: 62px;
    padding: 0 12px;
    border: 1px solid rgba(80,34,42,.14);
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(42,8,14,.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-enhanced .logo { width: 39px; height: 39px; }
  .nav-enhanced .brand { gap: 9px; }
  .nav-enhanced .brand-text strong { font-size: .72rem; }
  .nav-enhanced .brand-text span { display: none; }
  .nav-enhanced .menu-toggle {
    min-height: 40px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red-dark);
    border: 1px solid #dfc9cc;
    border-radius: 10px;
    background: #fff;
    font-size: .65rem;
    font-weight: 700;
  }
  .nav-enhanced .menu-toggle::before { content: '☰'; font-size: .8rem; line-height: 1; }
  body.menu-open .nav-enhanced .menu-toggle::before { content: '×'; }
  .nav-enhanced .nav-links {
    position: fixed;
    inset: 80px 10px calc(var(--app-dock-h) + 10px);
    z-index: 122;
    max-height: none;
    padding: 15px;
    overflow-y: auto;
    border: 1px solid rgba(80,34,42,.15);
    border-radius: 22px;
    background: rgba(255,255,255,.99);
    box-shadow: 0 28px 80px rgba(35,5,11,.25);
  }
  .nav-enhanced .nav-links.open { display: flex; }
  .nav-enhanced .nav-links > a,
  .nav-enhanced .nav-group > summary { min-height: 49px; padding: 12px 14px; border-radius: 10px; font-size: .76rem; }
  .nav-enhanced .nav-dropdown { margin: 2px 7px 10px; border-left-color: #b55c68; }
  .nav-enhanced .nav-dropdown a { min-height: 44px; font-size: .72rem; }
  .nav-enhanced .nav-actions { position: sticky; bottom: -1px; padding-top: 9px; background: #fff; }
  .menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 110;
    border: 0;
    background: rgba(25,5,9,.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  body.menu-open .menu-scrim { display: block; }
  .mobile-app-dock {
    position: fixed;
    z-index: 130;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 8px));
    min-height: 66px;
    padding: 7px 7px 6px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(80,34,42,.15);
    border-radius: 20px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 14px 45px rgba(38,7,12,.2);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .mobile-app-dock a {
    min-width: 0;
    min-height: 52px;
    padding: 6px 2px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #776a6d;
    border-radius: 13px;
    text-decoration: none;
    font-size: .54rem;
    font-weight: 650;
    line-height: 1;
  }
  .mobile-app-dock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-app-dock a.active { color: #fff; background: var(--red-dark); }
  .back-top { bottom: calc(var(--app-dock-h) + 22px); }

  .home-hero-v15 .hero-inner { min-height: auto; display: block; padding: 62px 22px 52px; }
  .home-hero-v15 .hero-content { max-width: none; }
  .home-hero-v15 .hero-kicker { margin-bottom: 20px; font-size: .57rem; line-height: 1.6; }
  .home-hero-v15 .badge-pill { margin-bottom: 18px; font-size: .56rem; }
  .home-hero-v15 .hero-title { margin-bottom: 13px; font-size: clamp(2.55rem, 13vw, 3.55rem); line-height: 1; }
  .home-hero-v15 .hero-title em { display: inline; }
  .home-hero-v15 .hero-statement { max-width: 16ch; font-size: clamp(1.95rem, 9.5vw, 2.65rem); line-height: 1.15; }
  .home-hero-v15 .hero-lead { margin-bottom: 24px; font-size: .78rem; line-height: 1.7; }
  .home-hero-v15 .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 28px; }
  .home-hero-v15 .hero-actions .btn { width: 100%; min-height: 50px; justify-content: space-between; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-facts > div { padding: 13px 8px 13px 0; }
  .hero-facts > div + div { padding-left: 10px; }
  .hero-facts dt { font-size: .48rem; }
  .hero-facts dd { font-size: .58rem; line-height: 1.5; }
  .hero-signature { display: none; }

  .home-task-hub { width: calc(100% - 24px); margin-top: -17px; grid-template-columns: minmax(0, 1fr); border-radius: 18px; overflow: hidden; }
  .home-task-heading { padding: 23px 20px 18px; border-right: 0; border-bottom: 1px solid var(--campus-line); }
  .home-task-heading .eyebrow { margin-bottom: 7px; }
  .home-task-heading h2 { font-size: 1.45rem; }
  .home-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-task-grid a { min-height: 150px; padding: 20px 17px; }
  .home-task-grid a:nth-child(2) { border-right: 0; }
  .home-task-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--campus-line); }
  .home-task-grid strong { font-size: .79rem; }
  .home-task-grid small { font-size: .6rem; }

  .home-page .section { width: calc(100% - 36px); padding-top: 58px; padding-bottom: 58px; }
  .home-overview,
  .home-author-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-overview-copy h2,
  .home-author-intro h2,
  .home-page .closing-cta h2 { font-size: clamp(2rem, 10vw, 2.65rem); line-height: 1.14; }
  .home-overview-copy > p:not(.eyebrow),
  .home-author-intro > p:not(.eyebrow) { font-size: .78rem; line-height: 1.75; }
  .home-overview-facts { grid-template-columns: minmax(0, 1fr); }
  .home-overview-facts article { min-height: 112px; padding: 21px 22px; flex-direction: row; align-items: center; gap: 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .home-overview-facts article:last-child { border-bottom: 0; }
  .home-overview-facts strong { font-size: 2.3rem; }
  .home-overview-facts span { max-width: 17ch; text-align: right; }
  .home-author-panel { border-top: 1px solid var(--campus-line); }
  .home-author-panel .button-row { align-items: stretch; }
  .home-author-panel .button-row .btn,
  .home-author-panel .button-row .text-link { width: 100%; }
  .home-author-panel .button-row .text-link { padding: 8px 0; }
  .home-author-steps li { grid-template-columns: 45px minmax(0, 1fr); }
  .home-closing { padding-top: 0 !important; }
  .home-page .closing-cta { padding: 31px 24px; border-radius: 18px; }
  .home-page .closing-cta .btn { width: 100%; margin-top: 8px; justify-content: space-between; }
  .footer-enhanced .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; }
  .footer-enhanced .footer-brand { grid-column: 1 / -1; }
  .footer-enhanced .footer-col a { font-size: .64rem; line-height: 1.45; }
}

@media (max-width: 360px) {
  .nav-enhanced .brand-text strong { font-size: .66rem; }
  .nav-enhanced .menu-toggle { padding-inline: 9px; }
  .home-hero-v15 .hero-inner { padding-right: 18px; padding-left: 18px; }
  .home-hero-v15 .hero-title { font-size: 2.45rem; }
  .home-hero-v15 .hero-statement { font-size: 1.9rem; }
  .hero-facts dd { font-size: .54rem; }
  .home-task-grid a { padding-inline: 14px; }
  .home-task-grid strong { font-size: .73rem; }
  .mobile-app-dock a { font-size: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-task-grid a,
  .mobile-app-dock a { transition: none; }
}

@media print {
  .mobile-app-dock,
  .menu-scrim { display: none !important; }
}
