/* =====================================================================
   BetPro Account — base.css
   Shared design system (used by EVERY page on the site)
   - CSS reset
   - Design tokens (colors, type, spacing, radius, shadows)
   - Typography
   - Reusable utilities & buttons
   - Keyframe animations

   Page-specific styles live in their own files (home.css, page-*.css).
   All classes are BEM and prefixed by block to avoid conflicts.
   ===================================================================== */

/* ------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------ */
:root {
  /* Brand — green is the main color */
  --color-primary: #10b981;
  --color-primary-dark: #059669;
  --color-primary-darker: #047857;
  --color-primary-light: #34d399;
  --color-primary-soft: #d1fae5;

  /* Liquid accent colors (used in blobs / gradients) */
  --color-accent: #22d3ee;     /* teal  */
  --color-accent-2: #a3e635;   /* lime  */

  /* Neutrals */
  --color-ink: #0b1726;
  --color-heading: #0f2e22;
  --color-text: #334155;
  --color-muted: #64748b;
  --color-line: #e6f0ea;

  /* Surfaces (white base + whisper-green tint) */
  --color-bg: #ffffff;
  --color-bg-soft: #f2fbf7;
  --color-bg-tint: #ecfdf5;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-primary-soft: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --gradient-liquid: radial-gradient(circle at 30% 30%, #34d399, #10b981 60%, #059669 100%);
  --gradient-hero-text: linear-gradient(120deg, #059669, #10b981 40%, #22d3ee);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Fluid type scale (mobile -> desktop) */
  --fs-h1: clamp(2.4rem, 1.4rem + 4.2vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadows (soft, Apple-like) */
  --shadow-xs: 0 1px 2px rgba(15, 46, 34, 0.06);
  --shadow-sm: 0 4px 14px -6px rgba(15, 46, 34, 0.12);
  --shadow-md: 0 14px 34px -14px rgba(5, 150, 105, 0.25);
  --shadow-lg: 0 30px 60px -24px rgba(5, 150, 105, 0.35);
  --shadow-glow: 0 0 0 6px rgba(16, 185, 129, 0.12);

  /* Liquid glass material (Apple-style, light theme) */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.74);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur: blur(20px) saturate(180%);
  /* bright top "specular" highlight + faint green under-edge */
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(16, 185, 129, 0.05);
  --glass-shadow: 0 18px 44px -22px rgba(5, 150, 105, 0.3),
    0 6px 16px -10px rgba(15, 46, 34, 0.12);

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --header-h: 92px; /* floating liquid-glass capsule height + top gap */

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.4s;
}

/* ------------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--color-primary-darker);
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  color: var(--color-heading);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  text-wrap: pretty;
}

strong {
  color: var(--color-heading);
  font-weight: 700;
}

/* ------------------------------------------------------------------
   4. LAYOUT UTILITIES (shared by all pages)
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
  position: relative;
  /* faint colour wash so glass cards have something to refract */
  background:
    radial-gradient(1000px 460px at 85% -8%, rgba(16, 185, 129, 0.06), transparent 55%),
    #ffffff;
}

.section--soft {
  background:
    radial-gradient(900px 520px at 10% -6%, rgba(16, 185, 129, 0.12), transparent 55%),
    radial-gradient(820px 520px at 92% 106%, rgba(34, 211, 238, 0.1), transparent 55%),
    var(--color-bg-soft);
}

.section--tint {
  background: var(--color-bg-tint);
}

/* Add to the FIRST section on a page so its content clears the fixed
   header (the home hero sets its own top padding instead). */
.section--first {
  padding-top: calc(var(--header-h) + var(--space-6));
}

/* ------------------------------------------------------------------
   LIQUID GLASS MATERIAL  (.glass) — shared Apple-style surface
   ------------------------------------------------------------------ */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inner);
}

.section__head {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-7);
  text-align: center;
}

.section__title {
  margin-bottom: var(--space-3);
}

.section__subtitle {
  font-size: var(--fs-lead);
  color: var(--color-muted);
  line-height: 1.6;
}

/* Eyebrow label above a section title */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 18px -10px rgba(5, 150, 105, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

/* Gradient text accent */
.text-gradient {
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Visually hidden (for screen readers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
  will-change: transform;
  position: relative;
  isolation: isolate;
}

.btn::after {
  /* liquid shine on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  z-index: -1;
}

.btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.1);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px);
}

.btn--primary {
  /* default .btn look */
}

.btn--ghost {
  background: var(--glass-bg-strong);
  color: var(--color-primary-dark);
  box-shadow: var(--glass-shadow), var(--glass-inner);
  border: 1px solid var(--glass-border);
}

.btn--ghost:hover {
  color: var(--color-primary-darker);
  background: rgba(255, 255, 255, 0.9);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.7rem 1.15rem;
  font-size: 0.95rem;
}

.btn__icon {
  width: 1.15em;
  height: 1.15em;
}

/* ------------------------------------------------------------------
   6. DECORATIVE — liquid blobs
   ------------------------------------------------------------------ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: float 14s var(--ease) infinite alternate;
}

.blob--green {
  background: var(--color-primary-light);
}

.blob--teal {
  background: var(--color-accent);
}

.blob--lime {
  background: var(--color-accent-2);
}

/* ------------------------------------------------------------------
   7. SCROLL-REVEAL ANIMATION
   ------------------------------------------------------------------ */
/* Hidden state is scoped to .js so content stays visible if scripting is
   unavailable or main.js fails to load. Never hide .reveal unconditionally. */
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------
   8. KEYFRAMES
   ------------------------------------------------------------------ */
@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(18px, -26px) scale(1.12);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------
   9. ACCESSIBILITY — reduced motion
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   SITE CHROME — shared header, nav, mobile menu & footer (EVERY page)
   Add class `liquid-header--overlay` to the <header> only on pages whose
   hero is dark, so the bar starts as dark-glass + light text.
   ===================================================================== */
/* =====================================================================
   LIQUID GLASS HEADER  ( .liquid-header )
   Apple-style floating capsule that hovers over the page, with a
   "liquid" pill that glides between nav items + a frosted mobile menu.
   ===================================================================== */
.liquid-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: clamp(0.55rem, 0.3rem + 0.8vw, 1rem) var(--space-4);
  pointer-events: none; /* only the glass surfaces catch clicks */
}

/* The floating capsule */
.liquid-header__bar {
  pointer-events: auto;
  width: 100%;
  max-width: var(--container);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 10px 34px -10px rgba(5, 150, 105, 0.28),
    0 4px 12px -6px rgba(15, 46, 34, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px rgba(16, 185, 129, 0.06);
  transition:
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    height var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

/* Condense + deepen the glass once the page is scrolled */
.liquid-header.is-scrolled .liquid-header__bar {
  height: 56px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 16px 40px -12px rgba(5, 150, 105, 0.34),
    0 6px 16px -8px rgba(15, 46, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ---------------------------------------------------------------
   THEME SWITCH — at the top the header floats over the DARK hero,
   so it goes dark-glass + light text. Once scrolled onto the light
   body it flips to light-glass + dark text (the default rules).
   --------------------------------------------------------------- */
.liquid-header--overlay:not(.is-scrolled) .liquid-header__bar {
  background: rgba(9, 24, 18, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 36px -14px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.liquid-header--overlay:not(.is-scrolled) .liquid-header__name {
  color: #fff;
}

.liquid-header--overlay:not(.is-scrolled) .liquid-header__name span {
  color: var(--color-primary-light);
}

.liquid-header--overlay:not(.is-scrolled) .liquid-nav__link {
  color: rgba(255, 255, 255, 0.72);
}

.liquid-header--overlay:not(.is-scrolled) .liquid-nav__link:hover,
.liquid-header--overlay:not(.is-scrolled) .liquid-nav__link.is-active {
  color: #fff;
}

/* softer, glassy pill on the dark theme (keeps light text readable) */
.liquid-header--overlay:not(.is-scrolled) .liquid-nav__pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.liquid-header--overlay:not(.is-scrolled) .liquid-header__toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.liquid-header--overlay:not(.is-scrolled) .liquid-header__toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Brand */
.liquid-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.liquid-header__name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--color-heading);
}

.liquid-header__name span {
  color: var(--color-primary-dark);
}

/* Logo tile — holds the SVG mark; reused by the footer via .site-header__logo */
.liquid-header__logo,
.site-header__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(5, 150, 105, 0.5);
}

.liquid-header__logo img,
.site-header__logo img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Desktop nav with the sliding liquid pill */
.liquid-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem;
}

.liquid-nav__pill {
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 0;
  height: calc(100% - 0.4rem);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 12px -4px rgba(5, 150, 105, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition:
    transform 0.45s var(--ease),
    width 0.45s var(--ease),
    opacity 0.35s var(--ease);
}

.liquid-nav__link {
  position: relative;
  z-index: 1;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.liquid-nav__link:hover,
.liquid-nav__link.is-active {
  color: var(--color-primary-darker);
}

/* Actions */
.liquid-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Hamburger / close toggle */
.liquid-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.liquid-header__toggle:hover {
  background: #fff;
}

.liquid-header__toggle:active {
  transform: scale(0.94);
}

.liquid-header__toggle-box {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.liquid-header__toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.35s var(--ease),
    opacity 0.2s var(--ease),
    top 0.35s var(--ease);
}

.liquid-header__toggle-box span:nth-child(1) { top: 0; }
.liquid-header__toggle-box span:nth-child(2) { top: 6px; }
.liquid-header__toggle-box span:nth-child(3) { top: 12px; }

.liquid-header__toggle[aria-expanded="true"] .liquid-header__toggle-box span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.liquid-header__toggle[aria-expanded="true"] .liquid-header__toggle-box span:nth-child(2) {
  opacity: 0;
}
.liquid-header__toggle[aria-expanded="true"] .liquid-header__toggle-box span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Frosted-glass dropdown menu (mobile) */
.liquid-menu {
  pointer-events: auto;
  width: 100%;
  max-width: var(--container);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 24px 50px -16px rgba(5, 150, 105, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 0.4rem;
  transform-origin: top center;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px) scale(0.98);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s var(--ease);
}

.liquid-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.liquid-menu__nav {
  display: grid;
  gap: 0.25rem;
}

.liquid-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-heading);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.liquid-menu__link span {
  color: var(--color-primary);
  transition: transform var(--dur) var(--ease);
}

.liquid-menu__link:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-primary-darker);
}

.liquid-menu__link:hover span {
  transform: translateX(4px);
}

.liquid-menu__cta {
  margin-top: 0.35rem;
}

/* =====================================================================
   FOOTER  ( .site-footer )
   ===================================================================== */
.site-footer {
  background: #06281f;
  color: #b8d4c9;
  padding-block: var(--space-7) var(--space-5);
  margin-top: var(--space-8);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}

.site-footer__about {
  max-width: 38ch;
  font-size: 0.94rem;
}

.site-footer__col-title {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.site-footer__list li + li {
  margin-top: var(--space-2);
}

.site-footer__list a {
  color: #b8d4c9;
  font-size: 0.94rem;
}

.site-footer__list a:hover {
  color: var(--color-primary-light);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: 0.85rem;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-footer__age {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-light);
  color: var(--color-primary-light);
  font-weight: 800;
  font-size: 0.78rem;
}

/* ---- site chrome responsive ---- */
@media (min-width: 821px) {
  .liquid-menu {
    display: none;
  }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .liquid-nav__link {
    padding: 0.5rem 0.55rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 820px) {
  .liquid-nav {
    display: none;
  }

  .liquid-header__cta {
    display: none; /* CTA lives inside the liquid menu on mobile */
  }

  .liquid-header__toggle {
    display: inline-flex;
  }
}

@media (max-width: 980px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

/* Chrome fallback where backdrop-filter is unsupported: solid glass.
   Only the OVERLAY header (dark hero pages) gets the dark bar. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .liquid-header__bar {
    background: rgba(255, 255, 255, 0.94);
  }

  .liquid-header--overlay:not(.is-scrolled) .liquid-header__bar {
    background: rgba(9, 24, 18, 0.92);
  }

  .liquid-menu {
    background: rgba(255, 255, 255, 0.97);
  }
}

/* ------------------------------------------------------------------
   MOBILE BOTTOM APP BAR (liquid glass) — phones only (<= 820px)
   ------------------------------------------------------------------ */
.app-bar {
  display: none; /* desktop: hidden — shown in the mobile media query below */
}

.app-bar__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.35rem 0.15rem;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  border-radius: var(--radius-md);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.app-bar__item svg {
  width: 22px;
  height: 22px;
}

.app-bar__item:hover,
.app-bar__item.is-active {
  color: var(--color-primary-dark);
}

.app-bar__item.is-active {
  background: rgba(16, 185, 129, 0.1);
}

/* raised center call-to-action */
.app-bar__cta {
  flex: 0 0 auto;
  margin-top: -1.7rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gradient-primary);
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease);
}

.app-bar__cta:hover {
  transform: translateY(-2px);
}

.app-bar__cta svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 820px) {
  .app-bar {
    position: fixed;
    left: 50%;
    bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 900;
    width: min(430px, calc(100% - 1.4rem));
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.1rem;
    padding: 0.35rem 0.55rem;
    border-radius: var(--radius-pill);
    /* frosted, but light enough to stay readable over the dark footer */
    background: rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    backdrop-filter: blur(22px) saturate(185%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
      0 12px 36px -10px rgba(5, 150, 105, 0.3),
      0 6px 16px -8px rgba(15, 46, 34, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.85),
      inset 0 -1px 1px rgba(16, 185, 129, 0.06);
  }

  /* keep page content + footer clear of the floating bar */
  body {
    padding-bottom: 5.75rem;
  }
}

/* solid-glass fallback where backdrop-filter is unsupported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .app-bar {
    background: rgba(255, 255, 255, 0.96);
  }
}

/* ------------------------------------------------------------------
   WHATSAPP BUTTONS (WhatsApp green)
   ------------------------------------------------------------------ */
/* center button in the mobile bottom bar */
.app-bar__cta--wa {
  background: #25d366;
}

/* floating WhatsApp button — desktop */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6), var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.wa-float:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.04);
}

.wa-float svg {
  width: 32px;
  height: 32px;
}

/* on phones the bottom bar already shows WhatsApp, so hide the floating one */
@media (max-width: 820px) {
  .wa-float {
    display: none;
  }
}

