/* PoolComply v2 site chrome: navbar, mobile menu, footer, cookie notice (2026-11-23).
   Every rule is scoped inside .v2c so it can sit on OLD pages (shop_style.css / style.css)
   without the old styles leaking in or these leaking out. Used by:
     - redesigned pages (includes/v2_header.php + v2_footer.php), alongside site-v2.css
     - old public pages via header.php/footer.php when site_v2() is on
   Markup: includes/v2_nav.php, includes/v2_footbar.php. */

:root {
  --deep: #04293a; --teal: #0e7490; --teal-dark: #155e75; --cyan: #32c8e6; --ink: #0c2733; --line: #d5e3e7;
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px; --nav-h: 84px;
}

/* ---------- local reset (beats the old stylesheets' element rules) ---------- */
.v2c, .v2c *, .v2c *::before, .v2c *::after { box-sizing: border-box; }
.v2c { font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; text-align: left; }
.v2c ul, .v2c ol, .v2c li { margin: 0; padding: 0; list-style: none; }
.v2c p, .v2c h2 { margin: 0; padding: 0; }
.v2c img { display: block; max-width: 100%; height: auto; border: 0; }
.v2c a { text-decoration: none; }
.v2c button { font: inherit; }
.v2c .wrap { width: min(var(--wrap), 100% - 32px); margin-left: auto; margin-right: auto; }
.v2c .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v2c :focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons used in the chrome ---------- */
.v2c .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0; box-shadow: none;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; text-transform: none; letter-spacing: 0;
  transition: background-color .15s, border-color .15s, color .15s;
}
.v2c .btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.v2c .btn-primary { background: var(--teal); color: #fff; }
.v2c .btn-primary:hover { background: var(--teal-dark); color: #fff; }
.v2c .btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.v2c .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.v2c .btn-outline { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.v2c .btn-outline:hover { background: var(--teal); color: #fff; }

/* ---------- navbar: floats over a dark hero; solid bar on old pages ---------- */
.v2c .v2-navbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: #fff; }
.v2c.v2c-solid .v2-navbar { position: relative; background: var(--deep); }
.v2c .nav { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.v2c .brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.35rem/1 var(--head); letter-spacing: -0.01em; color: #fff; }
.v2c .brand img { border-radius: 9px; }
.v2c .nav-links { display: flex; gap: 24px; margin: 0 0 0 auto; }
.v2c .nav-links a, .v2c .nav-login { color: rgba(255,255,255,.86); font-weight: 700; font-size: .98rem; }
.v2c .nav-links a:hover, .v2c .nav-login:hover, .v2c .nav-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.v2c .nav-actions { display: flex; align-items: center; gap: 18px; }
.v2c .nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid rgba(255,255,255,.4); border-radius: 10px; background: transparent; cursor: pointer; place-items: center; }
.v2c .nav-toggle .bars, .v2c .nav-toggle .bars::before, .v2c .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: ""; }
.v2c .nav-toggle .bars::before { position: absolute; top: -6px; }
.v2c .nav-toggle .bars::after { position: absolute; top: 6px; }
.v2c .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.v2c .nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.v2c .nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
.v2c .v2-menu { background: var(--deep); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.v2c .v2-menu[hidden] { display: none; }
.v2c .v2-menu ul { padding: 8px 0 20px; }
.v2c .v2-menu li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; font: 700 1.15rem/1.2 var(--head); }
.v2c .v2-menu li .btn { width: 100%; margin-top: 16px; }

/* ---------- footer ---------- */
.v2c .foot { background: var(--deep); color: rgba(255,255,255,.72); border-top: 1px solid rgba(255,255,255,.1); padding: 48px 0 40px; font-size: .95rem; }
.v2c .foot-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; }
.v2c .foot-about p { margin-top: 14px; max-width: 26em; color: rgba(255,255,255,.72); }
.v2c .foot .brand { font-size: 1.15rem; }
.v2c .foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.v2c .foot-cols h2 { font: 700 1rem/1.3 var(--head); color: #fff; margin-bottom: 10px; letter-spacing: 0; text-transform: none; }
.v2c .foot-cols ul { display: grid; gap: 8px; }
.v2c .foot a { color: rgba(255,255,255,.85); }
.v2c .foot a:hover { color: #fff; text-decoration: underline; }
.v2c .foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: rgba(255,255,255,.6); }
.v2c .foot-legal p { color: rgba(255,255,255,.6); }
.v2c .foot-legal p + p { margin-top: 4px; }

/* ---------- cookie notice ---------- */
.v2c .cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px;
  background: #fff; color: var(--ink); box-shadow: 0 12px 32px rgba(4,41,58,.28); font-size: .95rem; }
.v2c .cookie-note[hidden] { display: none; }
.v2c .cookie-note p { color: var(--ink); }
.v2c .cookie-note a { color: var(--teal); font-weight: 700; }
.v2c .cookie-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.v2c .cookie-actions .btn { white-space: nowrap; }
@media (max-width: 520px) { .v2c .cookie-note { flex-direction: column; align-items: stretch; } .v2c .cookie-actions { flex-direction: row; } .v2c .cookie-actions .btn { flex: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .v2c .nav-links { display: none; }
  .v2c .nav-actions { margin-left: auto; }
  .v2c .nav-toggle { display: grid; }
  .v2c .foot-top { grid-template-columns: 1fr; }
}
@media (min-width: 981px) { .v2c .v2-menu { display: none; } }
@media (max-width: 640px) {
  .v2c .nav { gap: 12px; }
  .v2c .nav-login, .v2c .nav-actions > .btn { display: none; }
  .v2c .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .v2c .btn { transition: none; } }
