/* ============================================================
   FLOKSTUDIO — layout.css
   Site chrome shared by every page: nav, mobile menu,
   section scaffolding, footer.
   ============================================================ */

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: var(--nav-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity .25s ease;
}
.nav__logo:hover .nav__logo-img { opacity: .85; }
.nav__links {
  display: flex;
  gap: 38px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color .25s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.nav__links a:hover { color: var(--purple-soft); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.active { color: var(--purple-soft); }
.nav__links a.active::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 16px; }

/* ---------- Burger + mobile menu ---------- */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 0 10px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 10px) var(--pad) 30px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.25;
  transition: color .25s ease;
}
.mobile-menu a:hover { color: var(--purple-soft); }
.mobile-menu__cta { color: var(--purple); }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(56px, 8vw, 110px) var(--pad) 0; }
.section--flush { padding-top: 0; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: clamp(24px, 3.5vw, 44px);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section__label { color: var(--text); font-weight: 700; }
.section__index { color: var(--muted); }
.section__lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 56ch;
  margin: -14px 0 clamp(24px, 3.5vw, 40px);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(70px, 9vw, 130px);
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 110px) var(--pad) 30px;
}
.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__cta-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8.6vw, 9rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.footer__cta-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 6rem);
  line-height: 1;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), color .3s ease;
}
.footer__cta:hover .footer__cta-arrow {
  transform: translateX(16px);
  color: var(--purple);
}

.footer__grid {
  margin-top: clamp(56px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: clamp(40px, 5vw, 70px);
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__label {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer__link {
  width: fit-content;
  color: var(--text);
  font-size: .98rem;
  transition: color .25s ease;
}
.footer__link:hover { color: var(--purple-soft); }
.footer__link--social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__link--social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: .82rem;
  color: var(--muted);
}

/* Slim footer (inner pages): bottom bar only, no big CTA block */
.footer--slim { margin-top: clamp(70px, 9vw, 120px); border-top: none; padding-top: 0; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 2.5vw, 34px);
  bottom: clamp(16px, 2.5vw, 34px);
  z-index: 80; /* above content, below the nav (100) and mobile menu (90) */
  display: flex;
  align-items: center;
}
.wa-float__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.wa-float__icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
.wa-float:hover .wa-float__icon { transform: scale(1.06); }
.wa-float__label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 0;
  margin-right: 0;
  transition:
    max-width .45s cubic-bezier(.22,.61,.36,1),
    opacity .3s ease,
    padding .45s cubic-bezier(.22,.61,.36,1),
    margin-right .45s cubic-bezier(.22,.61,.36,1);
}
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label {
  max-width: 240px;
  opacity: 1;
  padding: 12px 18px;
  margin-right: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav__right .btn--pill { display: none; }
  .footer__cta { flex-wrap: wrap; }
  .wa-float__icon { width: 50px; height: 50px; }
  .wa-float__icon svg { width: 27px; height: 27px; }
}

/* Short screens (landscape phones): keep the mobile menu scrollable and compact */
@media (max-height: 560px) {
  .mobile-menu { align-items: flex-start; }
  .mobile-menu a { font-size: clamp(1.5rem, 9vh, 2.6rem); }
}
