/**
 * Psyrup — footer-newsletter.css
 * Injected via style.css @import or directly enqueued.
 * Embedded at the bottom of style.css for simplicity.
 */

/* ── Newsletter Strip ────────────────────────────────────── */
.psyrup-newsletter-strip {
  background: linear-gradient(135deg, var(--psyrup-cream) 0%, #EDE4D5 100%);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(107, 83, 68, 0.1);
  border-bottom: 1px solid rgba(107, 83, 68, 0.08);
}

.psyrup-newsletter-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.psyrup-newsletter-copy {
  flex: 1;
  min-width: 280px;
}

.psyrup-newsletter-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.psyrup-newsletter-copy p {
  color: var(--psyrup-earth-light);
  margin-bottom: 0;
}

.psyrup-newsletter-form {
  flex: 1;
  min-width: 280px;
  max-width: 460px;
}

.psyrup-newsletter-fields {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.psyrup-newsletter-fields input[type="email"] {
  flex: 1;
  min-width: 180px;
  border-radius: var(--radius-pill) !important;
}

.psyrup-newsletter-fields button {
  flex-shrink: 0;
  white-space: nowrap;
}

.psyrup-newsletter-message {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  min-height: 1.2em;
}

.psyrup-newsletter-message.success { color: var(--psyrup-sage); }
.psyrup-newsletter-message.error   { color: var(--psyrup-terracotta); }

.psyrup-newsletter-fine {
  font-size: 0.72rem;
  color: var(--psyrup-earth-light);
  margin-top: 0.4rem;
  margin-bottom: 0;
}

/* ── Footer columns (default Explore / Support blocks) ──── */
.footer-widget-col h3 {
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: rgba(253, 250, 245, 0.35) !important;
  margin: 0 0 1.25rem !important;
}

.footer-widget-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-widget-col a {
  color: rgba(253, 250, 245, 0.65);
  text-decoration: none;
}

.footer-widget-col a:hover {
  color: var(--psyrup-amber-light);
}

/* ── Footer Brand Column ─────────────────────────────────── */
.footer-brand {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-site-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(253, 250, 245, 0.9) !important;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.875rem;
  font-style: italic;
  font-family: var(--font-display);
  color: rgba(253, 250, 245, 0.45) !important;
  margin-bottom: 0;
}

.psyrup-social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.psyrup-social-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253, 250, 245, 0.45);
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(253, 250, 245, 0.12);
  border-radius: var(--radius-pill);
  transition: all var(--duration-sm) ease;
}

.psyrup-social-link:hover {
  color: var(--psyrup-amber-light);
  border-color: var(--psyrup-amber-light);
}

/* ── Footer Legal Row ─────────────────────────────────────── */
.footer-legal-menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-menu li a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Sticky Header State ──────────────────────────────────── */
.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(44, 36, 32, 0.08);
}

.site-header.is-hidden {
  transform: translateY(-100%);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header {
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}

/* ── Mobile Nav Open State ────────────────────────────────── */
body.nav-open {
  overflow: hidden;
}

.main-navigation.is-open ul {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  /* Below sticky nav bar; admin-bar offsets mirror WP toolbar */
  top: var(--psyrup-mobile-overlay-top, 52px);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--psyrup-warm-white);
  padding: var(--space-md);
  z-index: 999;
  gap: 0.25rem;
  overflow-y: auto;
  animation: slideDown 350ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.admin-bar .main-navigation.is-open ul {
  top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--psyrup-primary-nav-inner-height, 52px));
}

@media screen and (max-width: 782px) {
  body.admin-bar .main-navigation.is-open ul {
    top: calc(var(--wp-admin--admin-bar--height, 46px) + var(--psyrup-primary-nav-inner-height, 52px));
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.menu-toggle {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem !important;
  cursor: pointer;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--psyrup-charcoal);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
  }

  .main-navigation ul {
    display: none;
  }
}
