/* ============================================================
   site.css — styles for site-wide injected components:
   cookie consent banner, smart CTA popup, footer newsletter.
   Injected on every page by functions/_middleware.js.
   Uses explicit brand colors so it renders correctly on the
   homepage (inline styles) and all subpages alike.
   ============================================================ */

.cme-btn {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.cme-btn-solid { background: #E0C798; color: #0E0C0A; border-color: #E0C798; }
.cme-btn-solid:hover { background: #C9A876; border-color: #C9A876; }
.cme-btn-ghost { background: transparent; color: #ECE3D1; border-color: rgba(236,227,209,0.35); }
.cme-btn-ghost:hover { border-color: #ECE3D1; }

/* ── Cookie consent banner ─────────────────────────────────── */
.cme-consent {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  width: min(920px, calc(100% - 32px));
  background: #15110D;
  color: #ECE3D1;
  border: 1px solid rgba(201,168,118,0.35);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  z-index: 9998;
  opacity: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
}
.cme-consent.is-in { transform: translate(-50%, 0); opacity: 1; }
.cme-consent-text {
  flex: 1 1 340px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(236,227,209,0.82);
  margin: 0;
}
.cme-consent-text a { color: #E0C798; text-decoration: underline; text-underline-offset: 2px; }
.cme-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Smart CTA popup ───────────────────────────────────────── */
.cme-cta {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cme-cta.is-in { opacity: 1; pointer-events: auto; }
.cme-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,12,10,0.62);
  backdrop-filter: blur(2px);
}
.cme-cta-card {
  position: relative;
  background: #F6F1E5;
  color: #0E0C0A;
  max-width: 420px;
  width: 100%;
  border-radius: 8px;
  padding: 44px 40px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: translateY(12px) scale(0.98);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  text-align: left;
}
.cme-cta.is-in .cme-cta-card { transform: translateY(0) scale(1); }
.cme-cta-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: rgba(14,12,10,0.4);
  transition: color .2s ease;
}
.cme-cta-x:hover { color: #0E0C0A; }
.cme-cta-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 700; color: #D8855B;
}
.cme-cta-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 12px 0 10px;
  color: #0E0C0A;
}
.cme-cta-body {
  font-family: 'Manrope', sans-serif;
  font-size: 0.94rem; line-height: 1.6;
  color: rgba(14,12,10,0.72);
  margin: 0 0 24px;
}
.cme-cta-btn {
  display: inline-block;
  background: #0E0C0A; color: #ECE3D1;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  padding: 15px 30px;
  border-radius: 2px;
  transition: background .3s ease;
}
.cme-cta-btn:hover { background: #1F1A14; }

/* ── Footer newsletter band ────────────────────────────────── */
.cme-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  flex-wrap: wrap;
  padding: 30px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(236,227,209,0.14);
}
.cme-newsletter-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 700; color: #C9A876;
}
.cme-newsletter-copy p {
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem; color: rgba(236,227,209,0.72);
  margin: 6px 0 0;
}
.cme-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cme-newsletter-form input[type="email"] {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  background: rgba(236,227,209,0.06);
  border: 1px solid rgba(236,227,209,0.2);
  color: #ECE3D1;
  padding: 13px 16px;
  border-radius: 2px;
  min-width: 240px;
}
.cme-newsletter-form input[type="email"]::placeholder { color: rgba(236,227,209,0.4); }
.cme-newsletter-form input[type="email"]:focus { outline: none; border-color: #C9A876; }
.cme-newsletter-form button {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  background: #E0C798; color: #0E0C0A;
  border: none; padding: 13px 26px; border-radius: 2px; cursor: pointer;
  transition: background .3s ease;
}
.cme-newsletter-form button:hover { background: #C9A876; }
.cme-newsletter-form button:disabled { opacity: 0.6; cursor: default; }
.cme-newsletter-status {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem; color: #E0C798; flex-basis: 100%;
}
.cme-newsletter-status.is-error { color: #D8855B; }
.cme-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .cme-consent { flex-direction: column; align-items: stretch; gap: 14px; text-align: left; }
  .cme-consent-actions { justify-content: flex-end; }
  .cme-cta-card { padding: 40px 26px 32px; }
}
