/* =============================================================================
   Little Rock Zoo — header, mega menus, mobile drawer, quick bar
   Shared by every prototype. Each theme sets the --hdr-* / --mega-* variables.
   Signature: the saw-tooth edge from the zoo's logo.
   ============================================================================= */

:root {
  --util-bg: var(--navy-deep);
  --util-ink: #fff;
  --hdr-bg: #fff;
  --hdr-ink: var(--navy);
  --hdr-line: rgba(0, 51, 88, .08);
  --mega-bg: #fff;
  --mega-ink: var(--ink);
  --mega-muted: #4a5b6c;
  --tab-bg: var(--mist);
  --tab-ink: var(--navy);
  --tab-on-bg: var(--navy);
  --tab-on-ink: #fff;
  --chip-bg: var(--mist);
  --chip-ink: var(--teal-ink);
  --feature-bg: var(--mist);
  --feature-ink: var(--ink);
  --foot-bg: var(--paper);
  --foot-ink: var(--navy);
  --accent: var(--aqua);
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cg fill='none' stroke='%23004771' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M-20 80c60-40 120 30 190-5s120-60 210-10'/%3E%3Cpath d='M-20 110c70-35 125 35 195 0s125-55 205-5'/%3E%3Cpath d='M-20 140c75-30 130 40 200 5s130-50 200 0'/%3E%3Cpath d='M-20 200c60 30 140-20 200 15s120 40 200 0'/%3E%3Cpath d='M-20 230c65 30 145-15 205 20s115 35 195-5'/%3E%3Cpath d='M-20 260c70 30 150-10 210 25s110 30 190-10'/%3E%3Cellipse cx='250' cy='300' rx='60' ry='26'/%3E%3Cellipse cx='250' cy='300' rx='38' ry='15'/%3E%3Cellipse cx='90' cy='30' rx='50' ry='18'/%3E%3C/g%3E%3C/svg%3E");
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }

/* Saw-tooth helper: a strip of triangles in currentColor ---------------------- */
.teeth, .mega::before {
  --tooth: 14px;
  background:
    linear-gradient(135deg, var(--accent) 50%, transparent 50%) 0 0 / var(--tooth) var(--tooth) repeat-x,
    linear-gradient(225deg, var(--accent) 50%, transparent 50%) 0 0 / var(--tooth) var(--tooth) repeat-x;
}

/* ----- Skip link -------------------------------------------------------------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ----- Utility bar -------------------------------------------------------------- */
.utility { background: var(--util-bg); color: var(--util-ink); font-size: .84rem; }
.utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.utility__hours { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility__hours .ico { color: var(--aqua); }
.utility__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.utility__links a, .utility__search { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; font-weight: 500; }
.utility__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.utility__search { background: none; border: 0; cursor: pointer; padding: 0 8px; }
.utility__search .ico { width: 18px; height: 18px; }
.pill { font-weight: 600 !important; padding: 0 14px !important; }
.pill .ico { width: 16px; height: 16px; }
.pill--coral { background: var(--coral-ink); color: #fff !important; }
.pill--lime { background: var(--lime); color: var(--navy) !important; }
.pill:hover { text-decoration: none !important; filter: brightness(1.06); }

/* ----- Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--hdr-bg); color: var(--hdr-ink); border-bottom: 1px solid var(--hdr-line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 51, 88, .12); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 86px; position: relative; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 150px; height: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { display: flex; align-items: center; }
.nav__link { color: var(--hdr-ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; padding: 10px 4px 10px 12px; border-radius: 10px; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 4px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--item-accent, var(--aqua)); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__item:hover .nav__link::after, .nav__item.is-open .nav__link::after { transform: scaleX(1); }
.nav__toggle { background: none; border: 0; color: var(--hdr-ink); cursor: pointer; width: 34px; height: 44px; display: grid; place-items: center; border-radius: 10px; padding: 0; }
.nav__toggle .ico { width: 18px; height: 18px; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav__item--aqua { --item-accent: var(--aqua); }
.nav__item--lime { --item-accent: var(--lime); }
.nav__item--coral { --item-accent: var(--coral); }
.nav__item--sky { --item-accent: var(--sky); }

.header__cta { flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.1; }
.btn .ico { width: 18px; height: 18px; }
.btn--coral { background: var(--coral-ink); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--lime { background: var(--lime); color: var(--navy); }
.btn:hover { filter: brightness(1.07); }
.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-ink); font-weight: 600; text-decoration: none; }
.textlink .ico { width: 16px; height: 16px; transition: transform .2s; }
.textlink:hover .ico { transform: translateX(3px); }

.mobile-actions, .drawer__head, .drawer__foot, .drawer-scrim, .quick-bar { display: none; }

/* ----- Mega menu (desktop) ------------------------------------------------------ */
@media (min-width: 1100px) {
  .mega { position: absolute; left: 50%; top: calc(100% - 6px); transform: translateX(-50%); width: min(1180px, calc(100vw - 40px)); background: var(--mega-bg); color: var(--mega-ink); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: 0 30px 60px rgba(0, 51, 88, .22); overflow: hidden; }
  .mega:not([hidden]) { animation: mega-in .22s ease-out; }
  @keyframes mega-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
  .mega::before { content: ""; display: block; height: 14px; background-color: transparent; }
  .mega--aqua { --accent: var(--aqua); }
  .mega--lime { --accent: var(--lime); }
  .mega--coral { --accent: var(--coral); }
  .mega--sky { --accent: var(--sky); }
  /* The tooth strip sits on a solid band in the accent's partner color so the teeth read as "logo" spikes */
  .mega::before { background-color: var(--navy); }

  .mega__inner { display: grid; grid-template-columns: 250px 1fr 300px; min-height: 340px; }
  .mega__tabs { padding: 26px 18px 26px 26px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--hdr-line); }
  .mega__tab { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--tab-bg); color: var(--tab-ink); font: 600 .98rem/1.2 inherit; font-family: inherit; text-align: left; cursor: pointer; position: relative; transition: background .15s; }
  .mega__tab span { flex: 1; }
  .mega__tab .tab-chev { opacity: 0; width: 16px; height: 16px; transition: opacity .15s; }
  /* Signpost: the active tab points at its links, like a trail marker */
  .mega__tab[aria-selected="true"] { background: var(--tab-on-bg); color: var(--tab-on-ink); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-right: 24px; }
  .mega__tab[aria-selected="true"] .tab-chev { opacity: 1; }
  .mega__tab[aria-selected="true"] .ico:first-child { color: var(--accent); }
  .mega__overview { margin-top: auto; padding: 10px 14px; color: var(--teal-ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
  .mega__overview .ico { width: 16px; height: 16px; }

  .mega__panels { padding: 22px 26px; }
  .mega__group { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mega__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
  .mega__links a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; color: var(--mega-ink); text-decoration: none; min-height: 52px; transition: background .15s; }
  .mega__links a:hover { background: var(--tab-bg); }
  .chip { width: 40px; height: 40px; border-radius: 12px; background: var(--chip-bg); color: var(--chip-ink); display: grid; place-items: center; flex: none; transition: transform .2s; }
  .chip .ico { width: 22px; height: 22px; }
  .mega__links a:hover .chip { transform: rotate(-6deg) scale(1.06); }
  .lbl { display: flex; flex-direction: column; font-weight: 600; font-size: .96rem; line-height: 1.25; }
  .lbl small { font-weight: 400; font-size: .8rem; color: var(--mega-muted); margin-top: 2px; }

  .portraits { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
  .portraits a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--mega-ink); font-weight: 600; font-size: .9rem; text-align: center; }
  .portrait { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: block; position: relative; box-shadow: 0 0 0 3px var(--mega-bg), 0 0 0 5px var(--tab-bg); transition: box-shadow .2s, transform .2s; }
  .portrait img { width: 100%; height: 100%; object-fit: cover; }
  .portraits a:hover .portrait, .portraits a:focus-visible .portrait { box-shadow: 0 0 0 3px var(--mega-bg), 0 0 0 6px var(--accent); transform: translateY(-3px); }
  .mega__more { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-ink); font-weight: 600; text-decoration: none; margin-top: 6px; }
  .mega__more .ico { width: 16px; height: 16px; }

  .mega__feature { background: var(--feature-bg) var(--topo); color: var(--feature-ink); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
  .mega__feature p { margin: 0; font-size: .93rem; line-height: 1.5; }
  .mega__feature .eyebrow { font-family: Atma, system-ui, sans-serif; font-weight: 700; color: var(--teal-ink); letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }
  .feature__big { font-weight: 700; color: var(--navy); font-size: 1.05rem !important; }
  .feature__title { font-weight: 700; color: var(--navy); font-size: 1.15rem !important; line-height: 1.25 !important; }
  .feature__actions { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .today-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; }
  .today-list li { background: rgba(255, 255, 255, .8); border-radius: 12px; padding: 9px 12px; font-size: .9rem; display: flex; gap: 10px; color: var(--ink); }
  .today-list strong { color: var(--navy); min-width: 66px; }
  .mega__feature--photo { padding: 0; }
  .mega__feature--photo img { width: 100%; height: 150px; object-fit: cover; }
  .mega__feature--photo .feature__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
  .feature__lettered { font-family: Atma, system-ui, sans-serif; font-weight: 700; font-size: 2rem !important; color: var(--navy); line-height: 1 !important; transform: rotate(-3deg); }
  .feature__since { font-family: Atma, system-ui, sans-serif; font-weight: 700; color: var(--navy); font-size: 1.3rem !important; }
  .feature__since span { display: block; font-size: 4rem; line-height: .9; color: var(--coral-ink); }
  .member-card { position: relative; background: var(--navy); color: #fff; border-radius: 16px; padding: 28px 18px 16px; display: grid; gap: 2px; box-shadow: 0 12px 24px rgba(0, 51, 88, .25); transform: rotate(-3deg); margin-bottom: 8px; overflow: hidden; }
  .member-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 12px; --accent: var(--lime); background: linear-gradient(135deg, var(--accent) 50%, transparent 50%) 0 0 / 12px 12px repeat-x, linear-gradient(225deg, var(--accent) 50%, transparent 50%) 0 0 / 12px 12px repeat-x; }
  .member-card__word { font-family: Atma, system-ui, sans-serif; font-weight: 700; font-size: 2rem; color: var(--aqua); line-height: 1; }
  .member-card__org { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
  .member-card__year { font-size: .75rem; opacity: .85; }

  .mega__foot { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; padding: 12px 26px; background: var(--foot-bg); color: var(--foot-ink); font-size: .86rem; border-top: 1px solid var(--hdr-line); }
  .mega__foot > * { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
  .mega__foot a:hover { text-decoration: underline; }
  .mega__foot .ico { width: 16px; height: 16px; color: var(--teal-ink); }
}

/* ----- Mobile & tablet: drawer + quick bar ------------------------------------- */
@media (max-width: 1099.98px) {
  .header__inner { min-height: 70px; gap: 12px; }
  .brand img { width: 118px; }
  .header__cta { display: none; }
  .utility__links { display: none; }
  .utility__hours { margin-inline: auto; }
  .drawer-open .site-header { z-index: 160; }
  .mobile-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .mini-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; }
  .mini-btn--coral { background: var(--coral-ink); color: #fff; }
  .mini-btn--lime { background: var(--lime); color: var(--navy); }
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: 700 .9rem/1 inherit; font-family: inherit; cursor: pointer; }
  .menu-btn .ico { width: 18px; height: 18px; }

  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); background: #fff; z-index: 150; flex-direction: column; justify-content: flex-start; overflow-y: auto; transform: translateX(105%); transition: transform .28s ease; visibility: hidden; }
  .main-nav.is-open { transform: none; visibility: visible; }
  .drawer-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 31, 54, .5); z-index: 140; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
  .drawer-open { overflow: hidden; }
  .drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--hdr-line); position: relative; }
  .drawer__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; --accent: var(--aqua); background: linear-gradient(135deg, var(--accent) 50%, transparent 50%) 0 0 / 10px 10px repeat-x, linear-gradient(225deg, var(--accent) 50%, transparent 50%) 0 0 / 10px 10px repeat-x; }
  .drawer__head img { width: 104px; height: auto; }
  .drawer__close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--mist); color: var(--navy); font: 700 .9rem/1 inherit; font-family: inherit; cursor: pointer; }
  .drawer__close .ico { width: 18px; height: 18px; }

  .nav__list { flex-direction: column; padding: 14px 10px; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--hdr-line); }
  .nav__link { flex: 1; font-size: 1.15rem; padding: 14px 10px; color: var(--navy); }
  .nav__link::after { display: none; }
  .nav__item::before { content: ""; width: 6px; height: 26px; border-radius: 3px; background: var(--item-accent); margin-left: 6px; }
  .nav__toggle { width: 48px; height: 48px; color: var(--navy); background: var(--mist); border-radius: 12px; margin-right: 4px; }
  .mega { flex-basis: 100%; padding: 4px 6px 16px 18px; }
  .mega__inner { display: block; }
  .mega__tabs, .mega__feature, .mega__foot { display: none; }
  .mega__panel[hidden] { display: block !important; }
  .mega__group { font-family: Atma, system-ui, sans-serif; font-weight: 700; color: var(--teal-ink); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; margin: 14px 0 4px; }
  .mega__links, .portraits { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .mega__links a, .portraits a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 500; padding: 4px 6px; border-radius: 10px; }
  .chip { width: 34px; height: 34px; border-radius: 10px; background: var(--mist); color: var(--teal-ink); display: grid; place-items: center; flex: none; }
  .chip .ico { width: 20px; height: 20px; }
  .lbl small { display: none; }
  .portraits { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .portraits a { flex-direction: column; font-size: .78rem; text-align: center; gap: 4px; padding: 4px 0; }
  .portrait { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; display: block; box-shadow: 0 0 0 3px var(--mist); }
  .portrait img { width: 100%; height: 100%; object-fit: cover; }
  .mega__more { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-ink); font-weight: 600; text-decoration: none; margin: 8px 0 0; min-height: 44px; }
  .mega__more .ico { width: 16px; height: 16px; }
  .drawer__foot { display: grid; gap: 10px; padding: 18px; margin-top: auto; background: var(--paper); }
  .drawer__foot p { margin: 4px 0 0; text-align: center; font-size: .9rem; }
  .drawer__foot a:not(.btn) { color: var(--navy); }

  .quick-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; box-shadow: 0 -6px 20px rgba(0, 51, 88, .15); padding-bottom: env(safe-area-inset-bottom); }
  .quick-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; color: var(--navy); text-decoration: none; font-size: .78rem; font-weight: 600; }
  .quick-bar .ico { width: 22px; height: 22px; color: var(--teal-ink); }
  .quick-bar__tickets { background: var(--coral-ink); color: #fff !important; }
  .quick-bar__tickets .ico { color: #fff; }
  body { padding-bottom: 64px; }
}

@media (max-width: 520px) {
  .utility__hours { font-size: .78rem; }
  .mini-btn--lime { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mega:not([hidden]) { animation: none; }
  .main-nav, .nav__link::after, .chip, .portrait, .textlink .ico, .nav__toggle .ico { transition: none !important; }
}
