/*
 * Open-source type system:
 * Assistant, Barlow Condensed and Noto Serif Hebrew are distributed under
 * the SIL Open Font License and are approved for commercial web use.
 */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&family=Barlow+Condensed:wght@500;600;700;800;900&family=Noto+Serif+Hebrew:wght@500;600;700;800;900&display=swap');

:root {
  --font-display: "Assistant", Arial, sans-serif;
  --font-body: "Assistant", Arial, sans-serif;
  --font-ui: "Assistant", Arial, sans-serif;
  --font-brand: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-quote: "Noto Serif Hebrew", "Times New Roman", serif;
}

html,
body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

:where(h1, h2, .hero-title, .page-title) {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

:where(.testimonial blockquote, .value-quote, .testimonial-quote, .philosophy-quote) {
  font-family: var(--font-quote);
  font-weight: 650;
  letter-spacing: -0.018em;
}

:where(h3, h4, h5, h6) {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

:where(button, input, select, textarea, nav, label, .nav-cta, .member-login,
  .section-tag, .eyebrow, .badge, .status, .season-banner, .category-tabs,
  .primary-action, .admin-sidebar, .portal-nav, .store-benefits, .hero-proof) {
  font-family: var(--font-ui);
}

:where(p, li, dd, summary) {
  font-family: var(--font-body);
}

:where(.brand b, .store-brand b, .admin-brand b, .achievement-number,
  .metric-grid b, .competition-summary b, .hero-copy > small, .card-head small,
  .timeline b, .portal-stats b, .parent-overview b, .summary-grid strong,
  time, [data-number]) {
  font-family: var(--font-brand);
  font-variant-numeric: tabular-nums;
}

:lang(en) :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-brand);
  letter-spacing: -0.015em;
}

html[lang="he"] :where(body, button, input, select, textarea, nav, label,
  h1, h2, h3, h4, h5, h6, p, li, dd, dt, summary, figcaption) {
  font-family: var(--font-body);
}

html[lang="he"] :where(.testimonial blockquote, .value-quote, .testimonial-quote, .philosophy-quote) {
  font-family: var(--font-quote);
}

html[lang="he"] :where(.brand b, .store-brand b, .admin-brand b, .staff-brand b,
  .achievement-number, .metric-grid b, .competition-summary b,
  .timeline b, .portal-stats b, .parent-overview b, .summary-grid strong,
  time, [data-number]) {
  font-family: var(--font-brand);
}

@media (max-width: 700px) {
  :where(h1, h2, blockquote) {
    letter-spacing: -0.025em;
  }
}

.whatsapp {
  width: 72px;
  height: 72px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 32% 24%, #62f28d 0 12%, transparent 34%),
    linear-gradient(145deg, #35df70 0%, #20bd5a 48%, #118a3d 100%);
  box-shadow:
    0 16px 24px rgba(0, 0, 0, 0.34),
    0 7px 0 #087832,
    0 0 0 6px rgba(37, 211, 102, 0.16),
    inset 0 3px 5px rgba(255, 255, 255, 0.55),
    inset 0 -7px 12px rgba(0, 85, 33, 0.3);
  isolation: isolate;
  transform: translateY(-3px) translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.whatsapp img {
  width: 39px;
  height: 39px;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 3px 2px rgba(0, 72, 28, 0.45));
  transition: transform 180ms ease, filter 180ms ease;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  transform: translateY(-7px) scale(1.055);
  box-shadow:
    0 22px 31px rgba(0, 0, 0, 0.38),
    0 9px 0 #087832,
    0 0 0 9px rgba(37, 211, 102, 0.2),
    inset 0 3px 5px rgba(255, 255, 255, 0.62),
    inset 0 -7px 12px rgba(0, 85, 33, 0.3);
}

.whatsapp:hover img,
.whatsapp:focus-visible img {
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 4px 3px rgba(0, 72, 28, 0.55));
}

@media (max-width: 700px) {
  .whatsapp {
    width: 62px;
    height: 62px;
    left: 18px;
    bottom: 18px;
    border-width: 2px;
    box-shadow:
      0 12px 20px rgba(0, 0, 0, 0.34),
      0 6px 0 #087832,
      0 0 0 4px rgba(37, 211, 102, 0.15),
      inset 0 3px 5px rgba(255, 255, 255, 0.5),
      inset 0 -6px 10px rgba(0, 85, 33, 0.28);
  }

  .whatsapp img {
    width: 33px;
    height: 33px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp,
  .whatsapp img {
    transition: none;
  }
}

/* Mobile navigation and touch system shared by all public pages. */
@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { perspective: none !important; }
  body .nav {
    z-index: 1000 !important;
    gap: 8px !important;
    padding-inline: 14px !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  body .nav .brand { min-width: 0; margin-inline-end: auto !important; order: 0; }
  body .nav .brand-logo,
  body .nav.nav-scrolled .brand-logo { width: 64px !important; height: 64px !important; }
  body .nav .header-socials { display: none !important; }
  body .nav .language-switch { display: flex !important; order: 1; margin: 0 !important; gap: 0; }
  body .nav .language-switch button,
  .language-switch-floating button { width: 40px; min-width: 40px; height: 44px; padding: 0 !important; }
  body .nav .language-switch span { display: none; }
  body .nav .member-login {
    width: 44px !important; height: 44px !important; min-width: 44px;
    padding: 0 !important; order: 2;
  }
  body .nav .member-login:after { content: none !important; }
  body .nav .menu {
    display: grid !important; place-items: center; width: 44px; height: 44px;
    min-width: 44px; margin: 0 !important; padding: 0; order: 3;
    position: relative; z-index: 102;
  }
  body .nav :is(.brand, .language-switch, .member-login) { position: relative; z-index: 102; }
  body .nav nav {
    display: none !important; position: fixed !important; inset: 0 !important;
    width: 100% !important; height: 100dvh !important;
    padding: 132px 22px calc(44px + env(safe-area-inset-bottom)) !important;
    flex-direction: column !important; align-items: stretch !important; gap: 0 !important;
    overflow-y: auto !important; background: rgba(10,11,12,.985) !important; z-index: 99 !important;
  }
  body .nav.menu-open nav { display: flex !important; }
  body .nav nav a {
    display: flex !important; align-items: center; min-height: 58px;
    padding: 12px 4px !important; border-bottom: 1px solid rgba(255,255,255,.12);
    color: #fff !important; font-size: 19px !important; text-align: right; opacity: 1 !important;
  }
  html[dir="ltr"] body .nav nav a { text-align: left; }
  body.menu-open { overflow: hidden !important; }
  body.menu-open :is(.mobile-trial, .whatsapp) { visibility: hidden; }
  :is(a, button, summary, select, input):focus-visible { outline: 3px solid rgba(213,29,36,.48); outline-offset: 3px; }
  .page-subnav a, .trust-subnav a { min-height: 44px; display: inline-flex; align-items: center; }
  .mobile-trial {
    right: 84px !important; left: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    min-height: 54px; display: flex; align-items: center; justify-content: center;
    padding: 10px 12px !important;
  }
  .whatsapp {
    left: 14px !important; bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    width: 58px !important; height: 58px !important;
  }
  footer { padding-bottom: calc(105px + env(safe-area-inset-bottom)) !important; }
  .asai-hero h1 { font-size: clamp(49px,16vw,62px) !important; overflow-wrap: anywhere; }
  .asai-hero-actions a { min-height: 48px; display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 420px) {
  body .nav { padding-inline: 9px !important; gap: 4px !important; }
  body .nav .brand-logo,
  body .nav.nav-scrolled .brand-logo { width: 58px !important; height: 58px !important; }
  body .nav .language-switch button { width: 35px; min-width: 35px; }
}

.social-hub{display:grid;gap:12px;min-width:min(100%,410px)}.social-hub>span{color:#8f9297;font-size:12px;font-weight:750;letter-spacing:.08em}.social-hub>div{display:flex;gap:8px;flex-wrap:wrap}.social-hub a{display:flex;align-items:center;gap:8px;color:#d8dadd;text-decoration:none;font-size:12px;font-weight:700;padding:6px 10px 6px 12px;border:1px solid #ffffff1c;background:#ffffff08;transition:transform .2s,border-color .2s,background .2s}.social-hub a:hover,.social-hub a:focus-visible{transform:translateY(-3px);border-color:#ffffff4d;background:#ffffff12}.social-hub i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;overflow:hidden}.social-hub img{width:16px!important;height:16px!important;object-fit:contain!important;filter:none!important;transform:none!important}.social-hub .facebook i{background:#1877f2}.social-hub .instagram i{background:linear-gradient(135deg,#833ab4,#fd1d1d 60%,#fcb045)}.social-hub .tiktok i{background:#080808;box-shadow:inset 2px 0 #25f4ee,inset -2px 0 #fe2c55}.social-hub .google-business i{background:#fff}.social-hub .whatsapp-social i{background:#25d366}@media(max-width:620px){.social-hub{justify-items:center}.social-hub>div{justify-content:center}.social-hub a{padding:7px}.social-hub a b{display:none}.social-hub i{width:34px;height:34px}.social-hub img{width:19px!important;height:19px!important}}
.header-socials{display:flex!important;flex-direction:row!important;align-items:center;gap:5px!important;flex:0 0 auto}.header-socials a{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;border:1px solid #ffffff29;background:#ffffff0d;transition:transform .2s,background .2s,border-color .2s}.header-socials a:hover,.header-socials a:focus-visible{transform:translateY(-2px) scale(1.08);border-color:#ffffff80}.header-socials img{width:13px!important;height:13px!important;object-fit:contain!important;filter:none!important;transform:none!important}.header-socials .facebook:hover{background:#1877f2}.header-socials .instagram:hover{background:linear-gradient(135deg,#833ab4,#fd1d1d 60%,#fcb045)}.header-socials .tiktok:hover{background:#080808;box-shadow:inset 2px 0 #25f4ee,inset -2px 0 #fe2c55}.header-socials .google-business{background:#fff}.header-socials .whatsapp-social:hover{background:#25d366}@media(max-width:1120px){.header-socials{gap:3px!important}.header-socials a{width:25px;height:25px}}@media(max-width:560px){.header-socials a{width:22px;height:22px}.header-socials img{width:11px!important;height:11px!important}}

body .nav .brand > span > b,
body .store-brand > span > b,
body .admin-brand > span > b,
body > header > a > span > b {
  display: inline-block;
  position: relative;
  color: #fff;
  font-family: var(--font-brand);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1.7px;
  white-space: nowrap;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.72);
}

body .nav .brand > span > b::after,
body .store-brand > span > b::after,
body .admin-brand > span > b::after,
body > header > a > span > b::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ef343b, #941016);
  box-shadow: 0 0 10px rgba(213, 29, 36, 0.48);
}

body .nav .brand > span > small,
body .store-brand > span > small,
body .admin-brand > span > small,
body > header > a > span > small {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1.45px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  body .nav .brand > span > b,
  body .store-brand > span > b {
    font-size: 19px;
    letter-spacing: 1.1px;
  }

  body .nav .brand > span > b::after,
  body .store-brand > span > b::after {
    width: 36px;
    height: 2px;
    margin-top: 6px;
  }

  body .nav .brand > span > small,
  body .store-brand > span > small {
    margin-top: 7px;
    font-size: 7px;
    letter-spacing: 0.9px;
  }
}

@media (max-width: 520px) {
  body .nav .brand > span > small,
  body .store-brand > span > small {
    display: none;
  }
}

/* Ryoku-Do brand mark: large, flat and legible. */
body .nav .brand-logo,
body .store-brand img,
body .admin-brand img,
body > header > a > img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  filter: none;
  transform: none;
  transition: none;
}

body :where(.brand, .store-brand, .admin-brand, header > a):hover > img,
body :where(.brand, .store-brand, .admin-brand, header > a):focus-visible > img {
  transform: none;
  filter: none;
}

body .nav {
  height: 108px;
}

body .store-nav {
  height: 108px;
}

body .nav.nav-scrolled .brand-logo {
  width: 82px;
  height: 82px;
}

body .nav.nav-scrolled {
  height: 88px;
}

body footer .brand-logo-footer {
  width: 132px;
  height: 132px;
}

@media (max-width: 900px) {
  body .nav .brand-logo,
  body .store-brand img {
    width: 76px;
    height: 76px;
  }

  body .nav,
  body .store-nav {
    height: 86px;
  }

  body .nav.nav-scrolled .brand-logo {
    width: 68px;
    height: 68px;
  }

  body .nav.nav-scrolled {
    height: 78px;
  }

  body footer .brand-logo-footer {
    width: 104px;
    height: 104px;
  }
}

@keyframes ryokudo-logo-reveal {
  0% {
    opacity: 0;
    transform: scale(0.56) rotate(-11deg);
    filter: blur(7px) brightness(0.7);
  }
  48% {
    opacity: 1;
    transform: scale(1.12) rotate(2deg);
    filter:
      blur(0)
      brightness(1.18)
      drop-shadow(0 0 18px rgba(213, 29, 36, 0.72));
  }
  72% {
    transform: scale(0.96) rotate(-1deg);
    filter: drop-shadow(0 0 8px rgba(213, 29, 36, 0.35));
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: none;
  }
}

@keyframes ryokudo-logo-pulse {
  0%, 100% {
    transform: scale(1);
    filter: none;
  }
  45% {
    transform: scale(1.09);
    filter:
      brightness(1.12)
      drop-shadow(0 0 13px rgba(213, 29, 36, 0.58));
  }
}

body .nav .brand-logo:not(.brand-logo-footer),
body .store-brand img,
body .admin-brand img,
body > header > a > img {
  animation: ryokudo-logo-reveal 1.05s cubic-bezier(0.2, 0.78, 0.22, 1) both;
  transform-origin: center;
  will-change: transform, filter, opacity;
}

body :where(.brand, .store-brand, .admin-brand, header > a):hover > img,
body :where(.brand, .store-brand, .admin-brand, header > a):focus-visible > img {
  animation: ryokudo-logo-pulse 540ms ease-out both;
}

body footer .brand:hover .brand-logo-footer,
body footer .brand:focus-visible .brand-logo-footer {
  animation: ryokudo-logo-pulse 540ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  body .nav .brand-logo,
  body .store-brand img,
  body .admin-brand img,
  body > header > a > img,
  body footer .brand-logo-footer {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    will-change: auto;
  }
}
[hidden]{display:none!important}
