/*
Theme Name: Escola Zoom
Theme URI: https://escolazoom.com/
Author: Escola Zoom
Description: Tema bilingüe a mida per a Escola Zoom.
Version: 1.0.1
Text Domain: escola-zoom
*/

.language-switch .lang-link,
.language .lang-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  min-height: 32px;
  min-width: 36px;
  padding: 4px 9px;
  text-decoration: none;
}

.language-switch .lang-link.active,
.language .lang-link.active {
  background: #9a79b3;
  color: #fff;
}

.site-mobile-menu { display: none; }
.back-to-top {
  align-items: center;
  background: rgba(154,121,179,.92);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  bottom: 100px;
  box-shadow: 0 8px 22px rgba(75,54,87,.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 400 1.15rem/1 "Avenir Next","Segoe UI",Arial,sans-serif;
  height: 42px;
  justify-content: center;
  left: auto;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 18px;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  width: 42px;
  z-index: 60;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
footer .footer-row .back-to-top {
  bottom: auto;
  justify-self: end;
  left: auto;
  opacity: 1;
  pointer-events: auto;
  position: static;
  right: auto;
  transform: none;
}

body.admin-bar header { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar header { top: 46px; }
  .nav-actions { gap: 7px; position: relative; }
  .language-switch,
  .language { padding: 2px; }
  .language-switch .lang-link,
  .language .lang-link {
    font-size: .7rem;
    min-height: 26px;
    min-width: 28px;
    padding: 2px 6px;
  }
  .site-mobile-menu { display: block; position: relative; }
  .site-mobile-menu summary {
    align-items: center;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(147,119,164,.25);
    border-radius: 999px;
    color: #514957;
    cursor: pointer;
    display: flex;
    font-size: .72rem;
    min-height: 30px;
    padding: 4px 9px;
    list-style: none;
  }
  .site-mobile-menu summary::-webkit-details-marker { display: none; }
  .site-mobile-menu-panel {
    backdrop-filter: blur(14px);
    background: rgba(230,214,240,.78);
    border: 1px solid rgba(147,119,164,.18);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(75,54,87,.11);
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 0;
    width: min(350px, calc(100vw - 16px));
    padding: 3px;
    position: absolute;
    right: 0;
    top: calc(100% + 9px);
    z-index: 40;
  }
  .site-mobile-menu-panel a {
    border-radius: 999px;
    color: #514957;
    font-size: .62rem;
    line-height: 1;
    padding: 7px 2px;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
  }
  .site-mobile-menu-panel a:hover { background: rgba(255,255,255,.72); }
  .back-to-top {
    bottom: 58px;
    height: 34px;
    left: auto;
    right: 12px;
    width: 34px;
    font-size: .9rem;
  }
}

@media (min-width: 783px) { .back-to-top { height: 44px; width: 44px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }

/* Escala tipografica comun para que las paginas interiores respiren en movil. */
@media (max-width: 600px) {
  main .hero h1,
  main .legal-hero h1,
  main .guide-heading h1 {
    font-size: clamp(2.2rem, 11vw, 3.25rem) !important;
    line-height: 1.02 !important;
  }
  main .section-head h2,
  main .intro h2,
  main .process h2,
  main .family h2,
  main .closing h2,
  main .feature h2,
  main .schedule h2,
  main .guide h2,
  main .contact-card h2,
  main .review-invite h2 {
    font-size: clamp(1.7rem, 8vw, 2.3rem) !important;
    line-height: 1.12 !important;
  }
}
