/*
 * Alga Corsi — Unified Site Chrome
 * Header, navigation, footer, WhatsApp floating button.
 * Used by header.php / footer.php and by standalone templates via partials.
 * Tokens: assets/css/tokens.css.
 *
 * Namespace: .site-header, .site-nav, .site-logo, .site-footer, .wa-float
 * Source extracted from template-campo-estivo-2026.php + page-campo-estivo.css
 * during Design System v2 consolidation (F2).
 */

/* ===================================================================
   Header
   =================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  transition: box-shadow 240ms cubic-bezier(.2, .7, .2, 1),
              border-color 240ms cubic-bezier(.2, .7, .2, 1);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

/* ===================================================================
   Navigation
   =================================================================== */

.site-header nav.links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-header nav.links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--charcoal-light);
  transition: color 240ms cubic-bezier(.2, .7, .2, 1);
}

.site-header nav.links a:hover {
  color: var(--coral);
}

/* Header CTA — pill shape independent of per-page button systems. */
.site-header .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  border: none;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light, #FFAB91) 100%);
  color: var(--white, #FFFFFF);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 107, 74, 0.35);
  transition: transform 240ms cubic-bezier(.2,.7,.2,1),
              box-shadow 240ms cubic-bezier(.2,.7,.2,1);
}

.site-header .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 74, 0.5);
}

/* ===================================================================
   Logo
   Note: source used .ce-header-logo / .ce-header-logo-text;
   renamed to .site-logo / .site-logo__text.
   =================================================================== */

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo__text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* ===================================================================
   Mobile menu
   (nav.links is hidden below 720 px; a drawer toggle is added in F3)
   =================================================================== */

/* placeholder — toggle markup added in Task 3 (F3) */

/* ===================================================================
   Footer
   Note: .ce-footer-grid → .site-footer__grid
         .ce-footer-bottom → .site-footer__bottom
   =================================================================== */

footer.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 64px 0 32px;
}

footer.site-footer a:hover {
  color: var(--sunshine);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer__bottom {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 248, 243, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 248, 243, 0.6);
}

.site-footer__social {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 248, 243, 0.85);
  transition: color 200ms ease, transform 200ms ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  color: var(--sunshine);
  transform: translateY(-2px);
}

.site-footer__social a:focus-visible {
  outline: 2px solid var(--sunshine);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__social svg {
  display: block;
  width: 25px;
  height: 25px;
}

/* ===================================================================
   WhatsApp float
   =================================================================== */

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 14px 22px 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: transform 240ms cubic-bezier(.2, .7, .2, 1),
              box-shadow 240ms cubic-bezier(.2, .7, .2, 1);
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.45);
}

/* ===================================================================
   Body state classes (scroll, menu open)
   =================================================================== */

/* Reserved for Task 3 (F3) when toggle drawer is added.
   Example states: body.menu-open .site-header, body.has-scrolled etc. */

/* ===================================================================
   Responsive (media queries)
   =================================================================== */

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

@media (max-width: 720px) {
  .site-header nav.links {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   Contact form section (Formspree partial)
   =================================================================== */

.contact-form-section {
  background: var(--white);
  padding: var(--space-xl) 0;
}

.contact-form-section__inner {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  overflow: hidden;
  position: relative;
}

.contact-form-section__inner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.contact-form-section__left {
  position: relative;
  z-index: 1;
}

.contact-form-section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.contact-form-section__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.contact-form-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--white);
  color: var(--mint-dark);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-form-section__cta:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.contact-form-section__right {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  z-index: 1;
}

.contact-form__heading {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  text-align: center;
}

.contact-form__intro {
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--charcoal-light);
  font-size: 0.95rem;
}

.contact-form__row {
  margin-bottom: var(--space-sm);
}

.contact-form__label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--charcoal);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--mint);
}

.contact-form__textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form__submit {
  width: 100%;
  margin-top: var(--space-sm);
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 720px) {
  .contact-form-section__inner {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
  }
}
