/* 0.3.1: restore the 0.2.2 navigation and give the homepage a calmer scale. */
.avm-site-header,
.home .avm-site-header {
  position: sticky;
  left: auto;
  right: auto;
  top: 0;
  padding: 0;
  border-bottom: 1px solid rgba(8,61,92,.08);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px);
}
body.admin-bar .avm-site-header { top: 32px; }
.avm-header-inner {
  width: var(--avm-container);
  min-height: 86px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  grid-template-columns: 230px 1fr auto;
}
.avm-brand img { width: 215px; }
.avm-menu { gap: clamp(18px,2.2vw,34px); }
.avm-menu a { padding: 30px 0; font-size: 14px; }
.avm-header-actions { gap: 13px; }
.avm-header-actions > a,
.avm-search-toggle { width: 38px; height: 38px; border: 1px solid rgba(8,61,92,.12); }
.avm-search-panel { width: 100%; margin: 0; border-top: 1px solid rgba(8,61,92,.08); border-radius: 0; box-shadow: none; }
.avm-program-rail { border-top: 1px solid rgba(8,61,92,.07); border-bottom: 1px solid rgba(8,61,92,.1); background: #fff; }
.avm-program-rail-inner { min-height: 64px; display: grid; grid-template-columns: 1fr 1fr .92fr; align-items: stretch; }
.avm-program-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 5px 25px; border-right: 1px solid rgba(8,61,92,.1); transition: background .2s; }
.avm-program-tab:first-child { border-left: 1px solid rgba(8,61,92,.1); }
.avm-program-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform: scaleX(0); transition: transform .2s; }
.avm-program-tab:hover::after,
body.avm-area-human .avm-program-tab--human::after,
body.avm-area-vet .avm-program-tab--vet::after,
body.avm-area-pet .avm-program-tab--pet::after { transform: scaleX(1); }
.avm-program-tab img { width: 142px; height: 52px; object-fit: contain; }
.avm-program-tab > span { color: var(--avm-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; }
.avm-program-tab--human::after { background: #44afe0; }
.avm-program-tab--human:hover { background: #eef9fd; }
.avm-program-tab--vet::after { background: #55a93f; }
.avm-program-tab--vet:hover { background: #f1faef; }
.avm-program-tab--pet::after { background: var(--avm-orange); }
.avm-program-tab--pet:hover { background: #fff6ef; }
.avm-program-tab--pet > strong { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--avm-orange); }
.avm-program-tab--pet span { color: var(--avm-navy); }
.avm-program-tab--pet small { display: block; color: var(--avm-muted); font-size: 9px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.avm-area-human .avm-program-tab--human,
body.avm-area-vet .avm-program-tab--vet,
body.avm-area-pet .avm-program-tab--pet { background: #f5fafb; }

/* Two editorial photos frame a compact text panel. The product row overlaps the photo edge. */
.avm-hero { min-height: 605px; margin-bottom: 70px; overflow: visible; background: #e7f1ed; }
.avm-hero::after { height: 125px; z-index: 1; background: linear-gradient(to top,rgba(2,48,68,.42),transparent); }
.avm-hero-scene { width: 39%; background-size: cover; }
.avm-hero-scene--human { background-image: linear-gradient(90deg,rgba(4,49,66,.06) 55%,#e7f1ed 100%),url("../images/scene/hero-human.webp"); background-position: 54% 42%; }
.avm-hero-scene--animals { background-image: linear-gradient(270deg,rgba(4,49,66,.05) 55%,#e7f1ed 100%),url("../images/scene/hero-animals.webp"); background-position: 52% 48%; }
.avm-hero-ribbon--navy { left: 30%; top: 0; width: 40%; height: 100%; border-radius: 20% 18% 20% 18% / 45% 48% 52% 55%; background: linear-gradient(160deg,#0c5275,#073c5d 72%); transform: rotate(-3deg); box-shadow: 0 12px 40px rgba(2,44,69,.16); }
.avm-hero-copy { width: min(560px,44%); padding-top: 104px; }
.avm-hero-overline { margin-bottom: 12px!important; font-size: 11px!important; }
.avm-hero-copy h1 { font-size: clamp(52px,5.2vw,76px); letter-spacing: -.05em; line-height: .96; }
.avm-hero-copy > p:last-of-type { margin-top: 16px; font-size: clamp(16px,1.3vw,19px); }
.avm-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; max-width: 500px; margin: 26px auto 0; }
.avm-hero-actions .avm-button { min-height: 42px; padding: 0 18px; font-size: 10px; letter-spacing: .02em; }
.avm-button--hero-human { color: #073f61; background: #fff; }
.avm-button--hero-vet { color: #fff; background: #3c9467; }
.avm-button--hero-pet { color: #fff; background: #e47b2f; }
.avm-hero-products { bottom: -59px; width: min(1040px,calc(100% - 64px)); grid-template-columns: 38px 1fr 38px; gap: 7px; }
.avm-product-viewport { padding: 0 4px 8px; }
.avm-product-track { gap: 18px; }
.avm-hero-product { flex-basis: calc((100% - 72px)/5); overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.avm-hero-product:hover { box-shadow: none; transform: translateY(-7px); }
.avm-hero-product img { width: 100%; height: 150px; aspect-ratio: auto; object-fit: contain; filter: drop-shadow(0 12px 8px rgba(3,40,57,.22)); }
.avm-hero-product span { padding: 3px 0 0; color: var(--avm-navy); font-size: 10px; text-shadow: 0 1px #fff; }
.avm-product-arrow { width: 34px; height: 34px; border: 0; color: var(--avm-navy); background: #fff; }
.avm-program-showcase { padding-top: 72px; }
.avm-program-tile { background-size: cover; background-position: center; }
.avm-program-tile--human { background-image: linear-gradient(to bottom,transparent 15%,rgba(18,89,121,.1) 38%,#155979 92%),url("../images/scene/program-human.webp"); }
.avm-program-tile--vet { background-image: linear-gradient(to bottom,transparent 15%,rgba(35,91,64,.1) 38%,#276547 92%),url("../images/scene/program-vet.webp"); }
.avm-program-tile--pet { background-image: linear-gradient(to bottom,transparent 15%,rgba(177,87,38,.1) 38%,#b65726 92%),url("../images/scene/program-pet.webp"); }

/* Footer navigation remains a vertical list even with an assigned WordPress menu. */
.avm-site-footer { background: linear-gradient(145deg,#063d5c,#032d46 72%); }
.avm-footer-top { gap: clamp(24px,3vw,55px); }
.avm-footer-column h2 { padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.17); }
.avm-footer-links,
.avm-footer-links .sub-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 0; list-style: none; }
.avm-footer-links li { display: block; width: 100%; margin: 0; }
.avm-footer-links .sub-menu { gap: 8px; padding: 9px 0 0 14px; }
.avm-footer-links a,
.avm-cookie-settings { text-align: left; line-height: 1.5; }
.avm-footer-links a:focus-visible,
.avm-cookie-settings:focus-visible { outline: 2px solid var(--avm-orange); outline-offset: 3px; }

@media (max-width: 1180px) {
  .avm-header-inner { grid-template-columns: 185px 1fr auto; gap: 16px; padding: 0; }
  .avm-brand img { width: 180px; }
  .avm-menu { gap: 16px; }
  .avm-menu a { font-size: 12px; }
  .avm-program-tab { padding-inline: 14px; }
  .avm-program-tab img { width: 120px; }
  .avm-program-tab > span { font-size: 10px; }
}
@media (max-width: 940px) {
  .avm-header-inner { width: var(--avm-container); min-height: 74px; grid-template-columns: 1fr auto auto; }
  .avm-primary-navigation { inset: 138px 0 0; border-radius: 0; box-shadow: none; transform: translateX(100%); }
  .avm-program-rail-inner { width: 100%; grid-template-columns: repeat(3,1fr); }
  .avm-program-tab { min-height: 62px; padding: 5px 10px; }
  .avm-program-tab img { width: 100px; }
  .avm-program-tab > span { display: none; }
  .avm-program-tab--pet > span { display: block; font-size: 10px; }
  .avm-program-tab--pet small { display: none; }
  .avm-hero { min-height: 600px; }
  .avm-hero-scene { width: 43%; opacity: .85; }
  .avm-hero-ribbon--navy { left: 26%; width: 48%; }
  .avm-hero-copy { width: 55%; padding-top: 105px; }
  .avm-hero-copy h1 { font-size: clamp(48px,7vw,66px); }
  .avm-hero-product { flex-basis: calc((100% - 36px)/3); }
}
@media (max-width: 640px) {
  body.admin-bar .avm-site-header { top: 46px; }
  .avm-header-inner { width: var(--avm-container); min-height: 68px; padding: 0; }
  .avm-brand img { width: 145px; }
  .avm-primary-navigation { top: 130px; }
  .avm-program-tab img { width: min(85px,100%); }
  .avm-program-tab--pet > strong { display: none; }
  .avm-program-tab--pet > span { font-size: 10px; }
  .avm-hero { min-height: 610px; margin-bottom: 62px; }
  .avm-hero-scene { width: 57%; height: 52%; opacity: .72; }
  .avm-hero-scene--human { background-image: linear-gradient(90deg,transparent 35%,#e7f1ed 100%),url("../images/scene/hero-human.webp"); background-position: 50% 45%; }
  .avm-hero-scene--animals { background-image: linear-gradient(270deg,transparent 35%,#e7f1ed 100%),url("../images/scene/hero-animals.webp"); background-position: 50% 45%; }
  .avm-hero-ribbon--navy { left: 4%; top: 145px; width: 92%; height: 385px; border-radius: 30% 28% 23% 25% / 12% 10% 15% 13%; opacity: .96; transform: rotate(-2deg); }
  .avm-hero-copy { width: 88%; padding-top: 192px; }
  .avm-hero-copy h1 { font-size: clamp(43px,12vw,62px); }
  .avm-hero-copy > p:last-of-type { font-size: 15px; }
  .avm-hero-actions { gap: 7px; margin-top: 18px; }
  .avm-hero-actions .avm-button { min-height: 35px; padding: 0 12px; font-size: 9px; }
  .avm-hero-products { bottom: -52px; width: calc(100% - 8px); grid-template-columns: 26px 1fr 26px; gap: 3px; }
  .avm-product-track { gap: 8px; }
  .avm-hero-product { flex-basis: calc((100% - 8px)/2); }
  .avm-hero-product img { height: 108px; }
  .avm-product-arrow { width: 26px; height: 26px; }
  .avm-program-showcase { padding-top: 54px; }
}
