/*
  Site chrome for converted pages: header (Pages/Shared/_SiteHeader.cshtml), footer (_SiteFooter.cshtml)
  and the cookie-consent banner (_CookieConsent.cshtml). Clean rewrite of the prototype's
  site-nav.css / vitalcare-footer.css / site-refresh.css chrome rules plus the approved header refresh.
*/

/* ============================== Header ============================== */

#siteHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .98);
  transition: box-shadow .25s ease;
}
#siteHeader.is-scrolled { box-shadow: 0 1px 0 var(--vc-line), 0 10px 30px -22px rgba(10, 63, 58, .45); }

#siteHeader > .wrap {
  max-width: var(--vc-container);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* The header never changes height while scrolling (a height change moves the page under the sticky
   header, which re-triggers the scroll state and made the header "vibrate"). Only the logo scales visually. */

#siteHeader .brand { display: flex; flex: 0 0 auto; }
#siteHeader .brand-logo { display: block; width: auto; height: 50px; transform-origin: left center; transition: transform .25s ease; }
#siteHeader.is-scrolled .brand-logo { transform: scale(.84); }

/* Desktop navigation */
#siteHeader nav.main { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
#siteHeader nav.main > a,
#siteHeader nav.main > .services-dropdown > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--vc-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
}
#siteHeader nav.main > a::after,
#siteHeader nav.main .nav-dropdown-label::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--vc-teal);
  transform: scaleX(0);
  transition: transform .2s ease;
}
#siteHeader nav.main > a:hover,
#siteHeader nav.main > a[aria-current="page"],
#siteHeader nav.main > .services-dropdown > summary:hover,
#siteHeader nav.main > .services-dropdown[open] > summary,
#siteHeader nav.main > .services-dropdown.is-current > summary { color: var(--vc-deep); }
#siteHeader nav.main > a:hover::after,
#siteHeader nav.main > a[aria-current="page"]::after,
#siteHeader nav.main > .services-dropdown > summary:hover .nav-dropdown-label::after,
#siteHeader nav.main > .services-dropdown.is-current .nav-dropdown-label::after { transform: scaleX(1); }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > summary { list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
#siteHeader nav.main > .services-dropdown > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  opacity: .7;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
#siteHeader nav.main > .services-dropdown[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
#siteHeader nav.main .nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 18px;
  width: min(590px, calc(100vw - 36px));
  padding: 22px;
  background: var(--vc-deep);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(10, 63, 58, .28);
}
#siteHeader nav.main .nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--vc-deep);
  transform: translateX(-50%) rotate(45deg);
}
#siteHeader nav.main .nav-dropdown-group { display: flex; flex-direction: column; gap: 3px; }
#siteHeader nav.main .nav-dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
#siteHeader nav.main .nav-dropdown-panel a:hover,
#siteHeader nav.main .nav-dropdown-panel a[aria-current="page"] { background: rgba(255, 255, 255, .1); transform: translateX(3px); }

/* Online Consult / E-Pharmacy icons */
#siteHeader a.nav-online-link::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: var(--vc-teal);
  -webkit-mask: var(--vc-icon) center / contain no-repeat;
  mask: var(--vc-icon) center / contain no-repeat;
}
#siteHeader nav.main > a.nav-online-link { margin-left: 4px; }
#siteHeader nav.main > a.nav-online-link + a.nav-online-link { margin-left: 0; }
#siteHeader nav.main > a.nav-online-link::after { left: 35px; }
#siteHeader a.nav-online-consult {
  --vc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v2.4l3.3-2.2A1.1 1.1 0 0 1 22 7.1v9.8a1.1 1.1 0 0 1-1.7.9L17 15.6V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}
#siteHeader a.nav-pharmacy {
  --vc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 13.6l9-9a5 5 0 0 1 7.1 7.1l-9 9a5 5 0 0 1-7.1-7.1zm1.4 1.4a3 3 0 0 0 4.3 4.2l4.2-4.2-4.3-4.3z'/%3E%3C/svg%3E");
}

/* Header actions */
#siteHeader .header-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
#siteHeader .vc-call-btn,
#siteHeader .vc-mobile-call {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--vc-line);
  background: #fff;
  color: var(--vc-teal);
  transition: background-color .18s ease, color .18s ease;
}
#siteHeader .vc-call-btn svg,
#siteHeader .vc-mobile-call svg { width: 19px; height: 19px; }
#siteHeader .vc-call-btn:hover { background: var(--vc-mint); color: var(--vc-deep); }
#siteHeader .header-cta > .btn-primary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
}
#siteHeader .vc-mobile-call,
#siteHeader .mobile-menu { display: none; }

@media (max-width: 1240px) and (min-width: 1041px) {
  #siteHeader nav.main > a,
  #siteHeader nav.main > .services-dropdown > summary { padding-inline: 8px; font-size: 13.5px; }
  #siteHeader nav.main > a::after,
  #siteHeader nav.main .nav-dropdown-label::after { left: 8px; right: 8px; }
  #siteHeader .brand-logo { height: 42px; }
}

/* Mobile / tablet header */
@media (max-width: 1040px) {
  #siteHeader > .wrap { padding: 11px 16px; gap: 10px; justify-content: flex-start; }
  #siteHeader .brand-logo { height: 34px; }
  #siteHeader nav.main,
  #siteHeader .header-cta:not(:has(.pharmacy-header-actions)) { display: none; }
  #siteHeader .vc-mobile-call {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-left: auto;
    order: 4;
    border: 0;
    background: var(--vc-mint);
  }
  #siteHeader:has(.pharmacy-header-actions) .vc-mobile-call { display: none; }
  #siteHeader .mobile-menu { display: block; order: 5; }
  #siteHeader .mobile-menu > summary {
    list-style: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--vc-coral);
    color: transparent;
    font-size: 0;
    cursor: pointer;
    box-shadow: 0 8px 18px -10px rgba(232, 90, 59, .9);
  }
  #siteHeader .mobile-menu > summary::-webkit-details-marker { display: none; }
  /* Hamburger / close icon */
  #siteHeader .mobile-menu > summary::before {
    content: "";
    width: 18px;
    height: 14px;
    background:
      linear-gradient(#fff, #fff) top / 100% 2px no-repeat,
      linear-gradient(#fff, #fff) center / 100% 2px no-repeat,
      linear-gradient(#fff, #fff) bottom / 100% 2px no-repeat;
  }
  #siteHeader .mobile-menu[open] > summary { background: var(--vc-coral-dark); }
  #siteHeader .mobile-menu[open] > summary::before {
    width: 18px;
    height: 18px;
    background:
      linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
      linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
  }

  /* Full-screen menu */
  #siteHeader .mobile-menu-panel {
    position: fixed;
    top: var(--vc-header-h, 64px);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 20px 0;
    background: #fff;
    border-top: 1px solid var(--vc-line);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: vc-menu-in .2s ease-out;
  }
  #siteHeader .mobile-menu-nav { display: flex; flex-direction: column; flex: 1 0 auto; }
  #siteHeader .mobile-menu-nav > a,
  #siteHeader .mobile-menu-nav > .services-dropdown > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 4px;
    border-bottom: 1px solid var(--vc-line);
    color: var(--vc-deep);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  }
  #siteHeader .mobile-menu-nav > .services-dropdown > summary { justify-content: space-between; }
  #siteHeader .mobile-menu-nav > .services-dropdown > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-right: 2px solid var(--vc-teal);
    border-bottom: 2px solid var(--vc-teal);
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
  #siteHeader .mobile-menu-nav > .services-dropdown[open] > summary::after { transform: rotate(-135deg); }
  #siteHeader .mobile-menu-nav > a[aria-current="page"],
  #siteHeader .mobile-menu-nav > .services-dropdown.is-current > summary {
    color: var(--vc-teal);
    box-shadow: inset 3px 0 0 var(--vc-teal);
    padding-left: 14px;
  }
  #siteHeader .mobile-menu-nav .nav-dropdown-panel {
    display: grid;
    padding: 4px 0 8px 16px;
    border-bottom: 1px solid var(--vc-line);
  }
  #siteHeader .mobile-menu-nav .nav-dropdown-group { display: grid; }
  #siteHeader .mobile-menu-nav .nav-dropdown-group a {
    padding: 11px 4px;
    color: var(--vc-text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
  }
  #siteHeader .mobile-menu-nav .nav-dropdown-group a[aria-current="page"] { color: var(--vc-teal); font-weight: 700; }
  #siteHeader .mobile-menu-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    gap: 10px;
    margin: 16px -20px 0;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--vc-line);
    box-shadow: 0 -12px 24px -20px rgba(10, 63, 58, .35);
  }
  #siteHeader .mobile-menu-actions > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }
  #siteHeader .mobile-menu-cta { background: var(--vc-coral); color: #fff; }
  #siteHeader .mobile-menu-call { border: 1px solid var(--vc-line); color: var(--vc-deep); }
}
body.vc-mobile-menu-open { overflow: hidden; }

@keyframes vc-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============================== Footer ============================== */
.vc-site-footer {
  padding: 46px 0 20px;
  background: var(--vc-deep);
  color: #c9d6d2;
  font-size: .84rem;
}
.vc-footer-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.vc-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .58fr .72fr 1.15fr;
  gap: 22px;
  align-items: start;
}
.mobile-footer-nav { display: contents; }
.vc-footer-logo { display: block; width: 205px; height: 56px; object-fit: contain; object-position: left center; margin-bottom: 10px; }
.vc-site-footer p { max-width: 270px; margin: 0; color: #9db3ad; line-height: 1.65; }
.vc-site-footer h5 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--vc-font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vc-site-footer ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vc-site-footer a { color: #c9d6d2; text-decoration: none; }
.vc-site-footer a:hover { color: #fff; }
.vc-footer-community-body { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.vc-footer-qr-link { display: block; width: 112px; height: 112px; padding: 7px; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .2); }
.vc-footer-qr { display: block; width: 100%; height: 100%; border-radius: 7px; object-fit: cover; }
.vc-site-footer .vc-footer-community p { max-width: 190px; margin-bottom: 8px; font-size: .76rem; line-height: 1.45; }
.vc-site-footer .vc-footer-viber-join { color: #e4c9f7; font-weight: 700; font-size: .78rem; }
.vc-footer-legal { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 24px; }
.vc-footer-legal a,
.vc-footer-legal button { padding: 0; border: 0; background: none; color: #a9c1ba; font-size: .76rem; font-weight: 700; cursor: pointer; }
.vc-footer-legal a:hover,
.vc-footer-legal button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.vc-footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #7d938d;
  font-size: .76rem;
}

@media (max-width: 980px) {
  .vc-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 34px; }
}
@media (max-width: 600px) {
  .vc-site-footer { padding: 38px 0 18px; }
  .vc-footer-wrap { width: 100%; padding: 0 24px; }
  .vc-footer-grid { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin: 0 auto; }
  .vc-footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .vc-footer-brand .vc-footer-logo { margin: 0 auto 10px; object-position: center; }
  .vc-footer-brand p { max-width: 320px; }
  .mobile-footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
  }
  .mobile-footer-nav ul { align-items: center; }
  .vc-footer-community { padding-top: 24px; text-align: center; }
  .vc-footer-community-body { display: flex; flex-direction: column; align-items: center; }
  .vc-site-footer .vc-footer-community p { max-width: 260px; }
  .vc-footer-legal { justify-content: center; margin-top: 22px; }
  .vc-footer-bottom { margin-top: 22px; padding-top: 16px; text-align: center; }
}

/* ============================== Cookie consent ============================== */
.vc-cookie-banner {
  position: fixed;
  z-index: 1500;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  color: var(--vc-ink);
  border: 1px solid #cfe3dc;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(10, 63, 58, .2);
}
.vc-cookie-banner[hidden] { display: none; }
.vc-cookie-banner h2 { font-size: 1.05rem; margin: 0 0 5px; }
.vc-cookie-banner p { margin: 0 0 14px; color: #506a63; font-size: .9rem; line-height: 1.5; }
.vc-cookie-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.vc-cookie-banner .btn,
.vc-cookie-dialog .btn { --bs-btn-padding-x: 14px; --bs-btn-padding-y: 9px; --bs-btn-border-radius: 9px; --bs-btn-font-size: .95rem; }
.vc-cookie-manage {
  --bs-btn-color: var(--vc-ocean);
  --bs-btn-bg: #eef8f5;
  --bs-btn-border-color: var(--vc-ocean);
  --bs-btn-hover-color: var(--vc-ocean);
  --bs-btn-hover-bg: var(--vc-mint);
  --bs-btn-hover-border-color: var(--vc-ocean);
}
.vc-cookie-dialog { width: min(520px, calc(100% - 36px)); padding: 24px; border: 0; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .24); }
.vc-cookie-dialog::backdrop { background: rgba(10, 63, 58, .42); }
.vc-cookie-dialog h2 { font-size: 1.3rem; margin: 0 0 8px; }
.vc-cookie-dialog p { color: #506a63; font-size: .9rem; }
.vc-cookie-choice { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid #e3efeb; }
.vc-cookie-choice strong { display: block; color: var(--vc-ink); }
.vc-cookie-choice small { display: block; color: var(--vc-muted); font-size: .82rem; }
.vc-cookie-choice .form-check-input { width: 2.4em; height: 1.3em; margin: 0; flex: 0 0 auto; }
.vc-cookie-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
