/* Fixed scroll-to-top + WhatsApp FAB + CTA lead form */

:root {
  --fab-inset: clamp(1rem, 2.5vw, 1.75rem);
  --wa-fab-size: 56px;
  --wa-fab-gap: 0.65rem;
}

/* —— Scroll to top —— */
.scroll-top {
  position: fixed;
  right: var(--fab-inset);
  bottom: calc(var(--fab-inset) + var(--wa-fab-size) + var(--wa-fab-gap));
  z-index: 8500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(224, 90, 26, 0.45);
  background: rgba(10, 8, 5, 0.88);
  color: var(--orange-em, var(--orange3));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  border-color: var(--orange-em, var(--orange));
  box-shadow: 0 8px 28px rgba(224, 90, 26, 0.28);
  outline: none;
}

body.theme-light .scroll-top {
  background: rgba(250, 247, 242, 0.92);
  border-color: rgba(143, 58, 20, 0.35);
  color: var(--orange-em);
  box-shadow: 0 4px 20px rgba(28, 24, 20, 0.08);
}

body.theme-light .scroll-top:hover,
body.theme-light .scroll-top:focus-visible {
  box-shadow: 0 8px 28px rgba(143, 58, 20, 0.18);
}

/* —— WhatsApp FAB (bottom-right) —— */
.whatsapp-fab {
  position: fixed;
  right: var(--fab-inset);
  bottom: var(--fab-inset);
  z-index: 8400;
  width: var(--wa-fab-size);
  height: var(--wa-fab-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 6px 22px rgba(37, 211, 102, 0.42),
    0 2px 8px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  display: block;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  background: #20bd5a;
  transform: scale(1.06);
  box-shadow:
    0 10px 32px rgba(37, 211, 102, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.2);
  outline: none;
}

/* —— CTA 60:40 layout —— */
:is(.theme-v1, .theme-v2) #cta {
  text-align: left;
}

.cta-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}

.cta-form-col {
  min-width: 0;
}

.cta-copy-col {
  min-width: 0;
  text-align: left;
}

.cta-copy-col .ctakk {
  margin-bottom: 1.25rem;
}

.cta-copy-col .ctah {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  margin-bottom: 0;
  line-height: 1.05;
}

.cta-copy-col .ctah em {
  font-style: normal;
  color: var(--text);
  display: inline;
}

.cta-copy-col .ctas {
  margin-bottom: 0;
}

/* Lead form */
.lead-form {
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-radius: 20px;
  border: 1px solid rgba(224, 90, 26, 0.22);
  background: rgba(17, 14, 8, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.theme-light .lead-form {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(143, 58, 20, 0.2);
  box-shadow: 0 16px 48px rgba(28, 24, 20, 0.06);
}

.lead-form__title {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}

.lead-form__hint {
  margin: -0.75rem 0 1.1rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
}

/* Footer contact */
.ft-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.35rem;
}

.ft-connect__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.ft-connect__link:hover,
.ft-connect__link:focus-visible {
  color: var(--orange-em, var(--orange));
  outline: none;
}

.ft-connect__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #25d366;
  transition: color 0.25s ease;
}

.ft-connect__link--wa:hover .ft-connect__icon,
.ft-connect__link--wa:focus-visible .ft-connect__icon {
  color: #2ee66f;
}

@media (max-width: 768px) {
  .site-footer__bar .ft-connect {
    order: 2;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.lead-field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

.lead-field {
  margin-bottom: 0.9rem;
}

.lead-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--faint);
  background: rgba(10, 8, 5, 0.45);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

body.theme-light .lead-field input,
body.theme-light .lead-field textarea {
  background: rgba(255, 255, 255, 0.95);
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
  color: rgba(138, 128, 120, 0.75);
}

.lead-field input:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--orange-em, var(--orange));
  box-shadow: 0 0 0 3px rgba(196, 104, 42, 0.18);
}

.lead-field textarea {
  min-height: 96px;
  resize: vertical;
}

.lead-form__submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1.25rem;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}

.lead-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.lead-form__status {
  margin: 0.85rem 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--orange-em, var(--orange));
}

.lead-form__status.is-error {
  color: #c44;
}

.lead-form.is-sent .lead-field,
.lead-form.is-sent .lead-form__submit {
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 960px) {
  .cta-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cta-copy-col .ctah {
    font-size: clamp(1.85rem, 7vw, 2.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top,
  .whatsapp-fab {
    transition: none;
  }
}
