/* Efferd Header 1 adaptation for the existing Arsenal Pune site.
   Reference/license: https://efferd.com/blocks/header#header-1 and /license.
   Existing club lockup; subtle frosted/beveled material inspired by supplied GlassIcons,
   restrained links and full-height animated mobile navigation. */
:root { --apsc-header-height:72px; }
html { scrollbar-gutter:stable; scroll-padding-top:calc(var(--apsc-header-height) + 16px); }
html.header-menu-open { overflow:hidden; }
.skip { z-index:110; }
.site-header {
  position:sticky; top:0; z-index:50; display:block; width:100%; max-width:none;
  height:var(--apsc-header-height); margin:0; padding:0; background:#fffcf7;
  border-bottom:1px solid transparent; color:#1b1b1b;
  transition:background-color .2s ease, border-color .2s ease;
}
.site-header.is-scrolled, .site-header[data-menu-open="true"] {
  border-color:#e1dcd4; background:rgba(255,252,247,.97);
  box-shadow:inset 0 1px 0 #ffffffcc, 0 3px 18px #32251608;
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
}
@supports ((backdrop-filter:blur(8px)) or (-webkit-backdrop-filter:blur(8px))) {
  .site-header.is-scrolled, .site-header[data-menu-open="true"] { background:linear-gradient(115deg,#ffffffb8,#fffaf0b3); }
}
.header-inner {
  width:100%; max-width:1200px; height:100%; margin:0 auto; padding:0 16px;
  padding-left:max(16px,env(safe-area-inset-left)); padding-right:max(16px,env(safe-area-inset-right));
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.site-header .editorial-brand {
  min-height:44px; display:flex; flex-direction:row; align-items:center; gap:.25em;
  flex-shrink:0; padding:4px 0; font-size:clamp(22px,1.9vw,26px); line-height:1.12;
}
.site-header .club-logo { display:block; width:168px; height:auto; max-height:50px; }
.site-header #main-nav { display:flex; position:static; align-items:center; gap:4px; padding:0; margin:0; max-height:none; overflow:visible; box-shadow:none; background:none; font-size:14px; font-weight:500; }
.site-header #main-nav a { min-height:44px; display:flex; align-items:center; padding:10px 12px; border-radius:7px; line-height:1.3; transition:background-color .16s,color .16s; white-space:nowrap; }
.site-header #main-nav a:hover { background:#f1efec; text-decoration:none; }
.site-header #main-nav .header-join { margin-left:8px; padding-inline:20px; background:#8d2c2a; color:#fff; }
.site-header #main-nav .header-join:hover { background:#762422; }
.site-header .menu { display:none; }
.site-header a:focus-visible, .site-header button:focus-visible { outline:2px solid #8d2c2a; outline-offset:3px; }
@media(max-width:1100px) { :root { --apsc-header-height:72px; } }
@media(max-width:767px) {
  :root { --apsc-header-height:68px; }
  .site-header .editorial-brand { flex-direction:row; align-items:center; justify-content:center; gap:0; font-size:22px; }
  .site-header .club-logo { width:146px; max-height:44px; }
  .site-header[data-header-ready] .menu { display:grid; place-items:center; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; border:1px solid #ddd8d3; border-radius:9px; background:linear-gradient(135deg,#ffffffcc,#fffaf080); box-shadow:inset 0 1px 0 #fff,0 2px 5px #34271408; color:#1b1b1b; }
  .site-header .menu:hover { background:#f1efec; }
  /* A filtered ancestor would trap the fixed panel's backdrop sampling. */
  .site-header[data-menu-open="true"] { background:#fff; -webkit-backdrop-filter:none; backdrop-filter:none; }
  .site-header .menu svg { width:20px; height:20px; }
  .site-header .menu .menu-close { display:none; }
  .site-header .menu[aria-expanded="true"] .menu-lines { display:none; }
  .site-header .menu[aria-expanded="true"] .menu-close { display:block; }
  .site-header[data-header-ready] #main-nav {
    position:fixed; inset:var(--apsc-header-height) 0 0; z-index:1;
    height:calc(100vh - var(--apsc-header-height)); height:calc(100dvh - var(--apsc-header-height));
    display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start;
    max-height:none; gap:8px; padding:24px 20px; padding-bottom:max(24px,env(safe-area-inset-bottom));
    padding-left:max(16px,env(safe-area-inset-left)); padding-right:max(16px,env(safe-area-inset-right));
    overflow-y:auto; overscroll-behavior:contain; background:rgba(255,255,255,.96);
    -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
    opacity:0; visibility:hidden; pointer-events:none; transform:scale(.97); transform-origin:50% 0;
    transition:opacity .2s ease-out, transform .2s ease-out, visibility 0s .2s;
  }
  @supports ((backdrop-filter:blur(8px)) or (-webkit-backdrop-filter:blur(8px))) {
    .site-header[data-header-ready] #main-nav { background:rgba(255,252,247,.94); }
  }
  .site-header[data-header-ready] #main-nav.open { opacity:1; visibility:visible; pointer-events:auto; transform:none; transition-delay:0s; }
  .site-header #main-nav a { flex-shrink:0; justify-content:flex-start; font-size:26px; padding:18px 12px; }
  .site-header #main-nav .header-join { margin:auto 0 0; justify-content:center; font-size:16px; min-height:52px; }
  .site-header:not([data-header-ready]) { height:auto; }
  .site-header:not([data-header-ready]) .header-inner { flex-wrap:wrap; padding-block:12px; gap:12px; }
  .site-header:not([data-header-ready]) #main-nav { flex-wrap:wrap; width:100%; }
}
@media(prefers-reduced-motion:reduce) {
  .site-header, .site-header #main-nav, .site-header #main-nav a { transition:none!important; }
  .site-header[data-header-ready] #main-nav { transform:none; }
}
