/* ============================================================================
   HAWAII VIRTUAL CARE — header + footer chrome for the Elementor Pro Theme
   Builder templates written by ~/bin/hvc-wp/build-chrome.php.
   Hand-authored (not generator output). Follows nav-rebuild.md §2–3 and the
   live SiteHeader/SiteFooter: opaque sand-light panels, deep copy, lockup
   pinned left with flex-shrink 0, links centred, CTA pinned right.
   Contrast contract: deep on sand-light 12.37:1 · white on deep 13.10:1 ·
   mist on deep for secondary copy · coral is never text.
   ========================================================================== */

/* ── header bar ─────────────────────────────────────────────────────────── */
.hvc-header { border-bottom: 1px solid rgba(0, 53, 72, 0.10); }
.hvc-header.elementor-sticky--effects { box-shadow: 0 8px 28px rgba(0, 53, 72, 0.10); }
.hvc-header-lockup { flex-shrink: 0; }
.hvc-header-lockup img { display: block; height: auto; }
.hvc-header-cta { flex-shrink: 0; }
.elementor-widget-button.hvc-header-cta .elementor-button { padding: 0.8rem 1.4rem; }

/* ── primary nav (Elementor Pro nav-menu widget) ───────────────────────── */
.hvc-nav .elementor-nav-menu--main { justify-content: center; }
.hvc-nav .elementor-nav-menu--main > li > a,
.hvc-nav .elementor-nav-menu--main > li > .elementor-item {
  font-family: var(--hvc-font-body, Inter, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hvc-deep, #003548);
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
}
.hvc-nav .elementor-nav-menu--main > li > a:hover,
.hvc-nav .elementor-nav-menu--main > li > a.elementor-item-active,
.hvc-nav .elementor-nav-menu--main > li > a.highlighted { background: rgba(255, 255, 255, 0.7); color: var(--hvc-deep, #003548); }
.hvc-nav .elementor-nav-menu--main .sub-arrow { font-size: 0.55rem; margin-left: 0.35rem; opacity: 0.8; }

/* panels: OPAQUE sand-light card, never glass (nav-rebuild.md §3) */
.hvc-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container,
.hvc-nav .elementor-nav-menu--main .elementor-nav-menu--dropdown {
  margin-top: 0.75rem;
  min-width: 17rem;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 53, 72, 0.15);
  background: var(--hvc-sand-light, #FBF8F3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 18px 44px rgba(0, 53, 72, 0.26), 0 0 40px rgba(117, 173, 173, 0.20);
}
.hvc-nav .elementor-nav-menu--dropdown a,
.hvc-nav .elementor-nav-menu--dropdown .elementor-item {
  display: block;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hvc-deep, #003548);
  background: transparent;
}
.hvc-nav .elementor-nav-menu--dropdown a:hover,
.hvc-nav .elementor-nav-menu--dropdown a.highlighted { background: #ffffff; color: var(--hvc-deep, #003548); }
/* third level (the folded IOP tracks) sits inside the same card, indented */
.hvc-nav .elementor-nav-menu--dropdown .elementor-nav-menu--dropdown { margin: 0.25rem 0 0.25rem 0.75rem; min-width: 15rem; box-shadow: none; border-color: rgba(0, 53, 72, 0.10); }

/* mobile sheet */
.hvc-nav .elementor-menu-toggle { color: var(--hvc-deep, #003548); background: transparent; border: 0; }
.hvc-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container { margin-top: 0.5rem; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.hvc-footer { color: var(--hvc-mist, #AACCCB); }
.hvc-footer .hvc-eyebrow .elementor-heading-title,
.hvc-footer .hvc-footer-head .elementor-heading-title {
  font-family: var(--hvc-font-body, Inter, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hvc-sea-glass, #75ADAD);
}
.hvc-crisis .hvc-eyebrow .elementor-heading-title { color: var(--hvc-mist, #AACCCB); }
.hvc-crisis-body, .hvc-crisis-body p { color: #ffffff; font-size: 1.125rem; line-height: 1.6; margin: 0; }
.hvc-crisis-body a { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.hvc-footer-blurb p { color: rgba(170, 204, 203, 0.9); max-width: 32rem; }
.hvc-footer-lockup img { display: block; height: auto; }
.hvc-footer-menu .elementor-nav-menu--main { flex-direction: column; gap: 0.25rem; }
.hvc-footer-menu .elementor-nav-menu--main a,
.hvc-footer-menu .elementor-nav-menu--main .elementor-item {
  padding: 0.375rem 0;
  font-family: var(--hvc-font-body, Inter, sans-serif);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.hvc-footer-menu .elementor-nav-menu--main a:hover { color: #ffffff; background: transparent; }
.hvc-footer-copy { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 2rem; }
.hvc-footer-copy p { font-size: 0.875rem; color: rgba(170, 204, 203, 0.8); margin: 0; }

/* Pro paints the ACTIVE menu item with the Accent global (deep) — invisible on the deep footer. */
.elementor-widget-nav-menu.hvc-footer-menu .elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-widget-nav-menu.hvc-footer-menu .elementor-nav-menu--main .elementor-item.elementor-item-active:hover { color: #ffffff; }
.hvc-nav .elementor-nav-menu--dropdown a.elementor-item-active { color: var(--hvc-deep, #003548); background: #ffffff; }

/* panel width (SmartMenus writes an inline min-width) and keep the fold arrow on the label's line */
.hvc-nav ul.sub-menu.elementor-nav-menu--dropdown { min-width: 17rem !important; }
.hvc-nav ul.sub-menu.elementor-nav-menu--dropdown ul.sub-menu { min-width: 15rem !important; }
.hvc-nav .elementor-nav-menu--dropdown a.has-submenu { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.hvc-nav .elementor-nav-menu--dropdown .sub-arrow { margin: 0; }

/* below md the live header is lockup + burger only; the CTA lives in the page (nav-rebuild.md §2) */
@media (max-width: 767px) {
  .hvc-header .hvc-header-cta { display: none; }
  .hvc-header-lockup img { max-width: min(232px, 58vw); }
  .hvc-header { padding-top: 10px; padding-bottom: 10px; }
}

/* ============================================================================
   HERO — from 01-site-settings/hero-rebuild.md, verbatim geometry. Built by
   ~/bin/hvc-wp/build-hero.php. The subject is positioned in PERCENTAGES OF THE
   ART BOX; the art is driven off HEIGHT with aspect-ratio deriving width.
   ========================================================================== */
:root { --hvc-shell-x: clamp(1.5rem, 4vw, 3rem); }
.hvc-hero { position: relative; overflow: hidden; background: var(--hvc-sand, #F6F0E8); }
.hvc-hero > .e-con-inner, .hvc-hero .e-con-inner { max-width: none; }
.hvc-hero-inner { position: relative; width: 100%; }
.hvc-hero .elementor-widget-html, .hvc-hero .elementor-widget-html .elementor-widget-container { position: static; }
@media (min-width: 768px) { .hvc-hero-inner { display: flex; flex-direction: row; align-items: center; gap: 1rem; } }
@media (min-width: 1024px) { .hvc-hero-inner { display: block; height: min(80vh, 920px); min-height: 580px; overflow: hidden; } }

/* desktop plate — bottom/right anchored, sized off height */
.hvc-hero-art { display: none; }
@media (min-width: 1024px) {
  .hvc-hero-art, .hvc-hero .elementor-widget.hvc-hero-art > .elementor-widget-container {
    display: block; position: absolute; bottom: 0; right: 0; height: 100%; aspect-ratio: 2048 / 1345; width: auto; max-width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 100%);
  }
  .hvc-hero .elementor-widget.hvc-hero-art { position: static; }
}
.hvc-hero-art img[data-plate], .hvc-hero-plate img[data-plate] { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.hvc-hero-art img[data-plate="front"], .hvc-hero-plate img[data-plate="front"] { pointer-events: none; }
.hvc-hero-art [data-portrait] {
  position: absolute; object-fit: contain; left: 49.707%; top: 13.7167%; width: 43.9453%; height: 80.8922%;
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, rgba(0,0,0,0.35) 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 90%, rgba(0,0,0,0.35) 96%, transparent 100%);
}

/* portrait plate — 11% top crop, fixed, never vh */
.hvc-hero .elementor-widget.hvc-hero-art-mobile { width: 100%; }
.hvc-hero .elementor-widget.hvc-hero-art-mobile > .elementor-widget-container { position: relative; margin-inline: auto; aspect-ratio: 1080 / 1202; width: 100%; max-width: 26rem; overflow: hidden; }
.hvc-hero-plate { position: absolute; inset-inline: 0; bottom: 0; aspect-ratio: 1080 / 1350; width: 100%; }
@media (min-width: 768px) {
  .hvc-hero .elementor-widget.hvc-hero-art-mobile { order: 2; width: 42%; max-width: 22rem; flex-shrink: 0; }
  .hvc-hero .elementor-widget.hvc-hero-art-mobile > .elementor-widget-container { margin-inline: 0; aspect-ratio: 1080 / 1350; width: 100%; max-width: none; overflow: visible; }
  .hvc-hero-plate { position: static; height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 13%, #000 100%), linear-gradient(to bottom, transparent 0%, #000 9%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 13%, #000 100%), linear-gradient(to bottom, transparent 0%, #000 9%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
}
@media (min-width: 1024px) { .hvc-hero .elementor-widget.hvc-hero-art-mobile { display: none; } }
.hvc-hero-plate [data-portrait] {
  position: absolute; object-fit: contain; left: 19.4444%; top: 25.4222%; width: 75.9259%; height: 73.3333%;
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, rgba(0,0,0,0.35) 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 90%, rgba(0,0,0,0.35) 96%, transparent 100%);
}

/* copy — ONE block: normal flow below lg, absolute overlay from lg */
.hvc-hero-copy { padding-inline: var(--hvc-shell-x); padding-top: 1.5rem; padding-bottom: 3.5rem; width: 100%; }
.hvc-hero-copy-inner { max-width: 34rem; }
@media (min-width: 768px) { .hvc-hero-copy { order: 1; min-width: 0; flex: 1; padding-top: 2rem; padding-bottom: 2.5rem; } }
@media (min-width: 1024px) {
  .hvc-hero-copy { position: absolute; top: min(calc(100% * 0.1573), calc(100% - 26rem)); left: clamp(0px, calc((100vw - 1280px) * 0.55), 460px); width: min(52%, 46rem); padding: 0 1.5rem 0 0; z-index: 2; }
}
@media (min-width: 1280px) { .hvc-hero-copy { width: min(56%, 48rem); padding-right: 2rem; } .hvc-hero-copy-inner { max-width: 41rem; } }
.hvc-hero .hvc-hero-h1 .elementor-heading-title, .hvc-hero h1 {
  font-family: var(--hvc-font-display, Figtree, sans-serif); font-weight: 700; letter-spacing: -0.033em; line-height: 0.98; text-wrap: balance;
  color: var(--hvc-ink, #102E35); font-size: clamp(2.6rem, 3.4vw, 4.2rem); margin: 0;
}
.hvc-hero h1 .hvc-stop { color: var(--hvc-coral, #F25E26); }
.hvc-hero .hvc-hero-lead, .hvc-hero .hvc-hero-lead p { margin-top: 0.75rem; max-width: 36rem; font-size: 1.05rem; line-height: 1.375; color: var(--hvc-lagoon, #2D6C78); }
.hvc-hero .hvc-hero-lead p { margin-bottom: 0; }
.hvc-hero-features { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.375rem; }
.hvc-hero-features li { display: flex; align-items: center; gap: 0.75rem; }
.hvc-hero-features .chip { display: grid; place-items: center; height: 2.25rem; width: 2.25rem; flex-shrink: 0; border-radius: 999px; }
.hvc-hero-features .chip svg { height: 18px; width: 18px; }
.hvc-hero-features .chip-deep { background: var(--hvc-deep, #003548); color: #fff; }
.hvc-hero-features .chip-mist { background: var(--hvc-mist, #AACCCB); color: var(--hvc-deep, #003548); }
.hvc-hero-features .chip-coral { background: var(--hvc-coral, #F25E26); color: var(--hvc-ink, #102E35); } /* icon glyph only — ink on coral 4.37:1 */
.hvc-hero-features span:last-child { font-size: 0.95rem; font-weight: 700; color: var(--hvc-ink, #102E35); }
.hvc-hero-cta { margin-top: 1.5rem; }
.hvc-hero-cta .elementor-widget-button.hvc-btn-primary .elementor-button { padding: 0.875rem 1.75rem; font-size: 0.875rem; letter-spacing: 0.12em; }
.hvc-hero-cta a.hvc-hero-textlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 600; color: var(--hvc-deep, #003548); text-decoration: underline; text-decoration-color: var(--hvc-coral, #F25E26); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* the plates breathe — 1.2% over 28s */
.hvc-hero-shapes { filter: brightness(1.035) saturate(1.05); animation: hvc-shape-breathe 28s ease-in-out infinite alternate; will-change: transform; }
@keyframes hvc-shape-breathe { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.012) translate3d(0.35%, -0.3%, 0); } }
@media (prefers-reduced-motion: reduce) { .hvc-hero-shapes { animation: none; } }

/* Elementor 4 renders HTML widgets WITHOUT .elementor-widget-container — the widget element IS the art box. */
.hvc-hero.e-con { padding: 0 !important; }
.hvc-hero .elementor-widget.hvc-hero-art { display: none; }
@media (min-width: 1024px) {
  .hvc-hero .elementor-widget.hvc-hero-art {
    display: block; position: absolute; bottom: 0; right: 0; top: auto; left: auto;
    height: 100%; aspect-ratio: 2048 / 1345; width: auto; max-width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 100%);
  }
}
.hvc-hero .elementor-widget.hvc-hero-art-mobile { position: relative; margin-inline: auto; aspect-ratio: 1080 / 1202; width: 100%; max-width: 26rem; overflow: hidden; }
@media (min-width: 768px) { .hvc-hero .elementor-widget.hvc-hero-art-mobile { margin-inline: 0; aspect-ratio: 1080 / 1350; width: 42%; max-width: 22rem; overflow: visible; } }
@media (min-width: 1024px) { .hvc-hero .elementor-widget.hvc-hero-art-mobile { display: none; } }

/* footer metrics, measured off the live site: links 400 on a 1.5 line, heads on 1.43 */
.elementor-widget-nav-menu.hvc-footer-menu .elementor-nav-menu--main .elementor-item { font-weight: 400; line-height: 1.5; }
.hvc-footer .hvc-footer-head .elementor-heading-title { line-height: 1.43; }
