/* Mouratoglou Zephyrhills: center menu with dropdown groups + sub-pages (zephyrhills-*.html).
   Builds on atlanta-pages.css (generic .center-menu-header / .center-subpage / .center-menu-page and .atl-* blocks),
   centers.css and center-international.css (academy theme, --academy-accent #449dd7 on .academy-center-zephyrhills).
   Dropdown behaviour: zephyrhills-menu.js (adds html.zh-menu-js); without JS, hover / focus-within still open the groups.
   Mobile: center-mobile-nav.js turns every .generic-header-links link into the burger menu; sub-items are indented here. */

/* ---------- Desktop menu: dropdown groups ---------- */
.zh-menu-group{position:relative;display:flex;align-items:center;gap:2px}
.zh-menu-group>a{display:flex;align-items:center;min-height:42px;line-height:1;box-sizing:border-box}
.zh-menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:32px;margin:0;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;cursor:pointer}
.zh-menu-toggle:before{content:"";width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s ease}
.zh-menu-group.is-open .zh-menu-toggle:before{transform:translateY(1px) rotate(-135deg)}
.zh-menu-toggle:focus-visible{outline:2px solid var(--academy-accent,#449dd7);outline-offset:2px}
.zh-submenu{position:absolute;top:calc(100% + 20px);left:-20px;z-index:60;min-width:250px;margin:0;padding:10px 0;list-style:none;background:#001937;border:1px solid rgba(255,255,255,.14);border-top:2px solid var(--academy-accent,#449dd7);border-radius:0 0 10px 10px;box-shadow:0 18px 40px rgba(0,10,30,.38);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s}
/* Invisible bridge so the pointer can travel from the label to the panel. */
.zh-submenu:before{content:"";position:absolute;left:0;right:0;top:-24px;height:22px}
html:not(.zh-menu-js) .zh-menu-group:is(:hover,:focus-within) .zh-submenu,.zh-menu-group.is-open .zh-submenu{opacity:1;visibility:visible;transform:none;transition:opacity .18s ease,transform .18s ease}
.zh-submenu li{margin:0}
.zh-submenu a{display:block;padding:12px 22px;color:#fff!important;font-size:10px;letter-spacing:.12em;line-height:1.3;white-space:nowrap}
.zh-submenu a:hover,.zh-submenu a:focus-visible{background:rgba(255,255,255,.06);color:var(--academy-accent,#449dd7)!important}
.zh-submenu a:focus-visible{outline:2px solid var(--academy-accent,#449dd7);outline-offset:-2px}
.zh-submenu a[aria-current="page"]{color:var(--academy-accent,#449dd7)!important;box-shadow:inset 3px 0 0 var(--academy-accent,#449dd7)}
.zh-submenu a[aria-current="page"]:after{display:none!important}
@media(min-width:901px){
  .center-menu-header .generic-header-links a[aria-current="true"]{position:relative;color:var(--academy-accent,#449dd7)!important}
  .center-menu-header .generic-header-links a[aria-current="true"]:after{content:"";position:absolute;left:0;right:0;bottom:6px;height:2px;background:currentColor}
  .zh-menu-group.is-open>a,.zh-menu-group:hover>a{color:var(--academy-accent,#449dd7)!important}
}
@media(min-width:901px) and (max-width:1200px){
  .zh-menu-toggle{width:18px}
  .zh-submenu{left:-14px}
  .zh-submenu a{font-size:9px}
}
@media(max-width:900px){.zh-menu-toggle,.zh-submenu{display:none}}

/* ---------- Mobile burger (center-mobile-nav.js): indent the group sub-items ---------- */
@media(max-width:900px){
  .center-mobile-menu a:is([href="zephyrhills-tennis-school.html"],[href="zephyrhills-tennis-lessons.html"],[href="zephyrhills-junior-program.html"],[href="zephyrhills-junior-clinics.html"],[href="zephyrhills-camps.html"],[href="zephyrhills-adult-programs.html"],[href="zephyrhills-summer-camps-2026.html"],[href="zephyrhills-orange-bowl-2026.html"],[href="zephyrhills-campus.html"],[href="zephyrhills-contact.html"]){position:relative;padding:13px 0 13px 24px;border-bottom-color:rgba(255,255,255,.08);font-size:16px;font-weight:400}
  .center-mobile-menu a:is([href="zephyrhills-tennis-school.html"],[href="zephyrhills-tennis-lessons.html"],[href="zephyrhills-junior-program.html"],[href="zephyrhills-junior-clinics.html"],[href="zephyrhills-camps.html"],[href="zephyrhills-adult-programs.html"],[href="zephyrhills-summer-camps-2026.html"],[href="zephyrhills-orange-bowl-2026.html"],[href="zephyrhills-campus.html"],[href="zephyrhills-contact.html"]):before{content:"";position:absolute;left:4px;top:50%;width:10px;height:1px;background:var(--academy-accent,#449dd7)}
}


/* ---------- Sub-pages ---------- */
.zh-note{margin:22px 0 0;max-width:720px;font-size:14px;line-height:1.7;color:rgba(255,255,255,.72)}
.zh-note strong{color:#fff}
.zh-inline-link{color:#fff!important;border-bottom:1px solid var(--academy-accent);text-decoration:none}
.zh-inline-link:hover{color:var(--academy-accent)!important}
.center-subpage .program-grid.zh-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.center-subpage .program-card .zh-card-meta{width:100%;margin:0 0 20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.25);font-size:13px;line-height:1.6;color:rgba(255,255,255,.86)}
.center-subpage .program-card .zh-card-meta strong{display:block;margin-bottom:6px;font-size:10px;letter-spacing:.17em;text-transform:uppercase;color:var(--academy-accent)}
.center-subpage .program-card .zh-card-meta+.zh-card-meta{padding-top:14px}
.center-subpage .program-card .atl-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;width:100%;margin-top:auto}
.center-subpage .program-card .atl-card-actions .program-book-link{margin-top:0}
.center-subpage .program-card h3 a{color:inherit}
.center-subpage .program-card h3 a:hover{color:var(--academy-accent)}

/* Schedule list (time | activity) */
.zh-schedule{margin:0;padding:0;list-style:none;border-top:2px solid var(--academy-accent)}
.zh-schedule li{display:grid;grid-template-columns:minmax(150px,.42fr) 1fr;gap:18px;padding:18px 0;border-bottom:1px solid rgba(255,255,255,.18);font-size:16px;line-height:1.45;color:rgba(255,255,255,.9)}
.zh-schedule time,.zh-schedule b{font-weight:700;color:#fff}

/* Membership plans */
.zh-plans{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.zh-plan{display:flex;flex-direction:column;padding:28px 26px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:var(--intl-blue)}
.zh-plan.is-featured{border-color:var(--academy-accent);box-shadow:inset 0 3px 0 var(--academy-accent)}
.zh-plan h3{margin:0 0 6px;font-size:22px;line-height:1.15;color:#fff}
.zh-plan>p{margin:0 0 22px;font-size:13px;line-height:1.55;color:rgba(255,255,255,.76)}
.zh-plan dl{display:grid;gap:12px;margin:auto 0 0;padding-top:18px;border-top:1px solid rgba(255,255,255,.22)}
.zh-plan dl div{display:flex;justify-content:space-between;align-items:baseline;gap:14px}
.zh-plan dt{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.zh-plan dd{margin:0;font-size:18px;font-weight:700;color:#fff;text-align:right;white-space:nowrap}
.zh-plan dd small{font-size:11px;font-weight:400;color:rgba(255,255,255,.7)}
.zh-plan dd.is-free{color:var(--academy-accent)}

/* Contact blocks */
.zh-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.18)}
.zh-contact-grid>div{padding:28px 26px;background:var(--intl-navy)}
.zh-contact-grid h3{margin:0 0 10px;font-size:10px;font-weight:700;letter-spacing:.17em;text-transform:uppercase;color:var(--academy-accent)}
.zh-contact-grid p{margin:0;font-size:17px;font-weight:700;line-height:1.5;color:#fff}
.zh-contact-grid p a{color:#fff!important;border-bottom:1px solid var(--academy-accent)}

/* Explore grid: flexible column count (more pages than Atlanta) */
.center-subpage .atl-explore-grid.zh-explore-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}

@media(max-width:1050px){.zh-contact-grid{grid-template-columns:1fr 1fr}}
@media(max-width:900px){
  .center-subpage .program-grid.zh-grid-3{grid-template-columns:1fr}
  .zh-schedule li{grid-template-columns:1fr;gap:4px;font-size:15px}
  .center-subpage .atl-explore-grid.zh-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .center-subpage .zh-explore-grid .atl-explore-card{min-height:190px}
  .center-subpage .zh-explore-grid .atl-explore-card span{left:14px;right:14px;bottom:14px}
  .center-subpage .zh-explore-grid .atl-explore-card strong{font-size:17px}
}
@media(max-width:600px){
  .zh-contact-grid{grid-template-columns:1fr}
  .zh-plans{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.zh-submenu,.zh-menu-toggle:before{transition:none!important}}
