/* ═══════════════════════════════════════════
   DIVIOR GLOBAL COMPONENTS CSS
   Shared styles for nav, footer, modal,
   cookie banner, and mobile float CTA.
   Injected on every page via middleware.
═══════════════════════════════════════════ */

/* ── SCROLL PROGRESS BAR ─────────────────── */
#scroll-progress,
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #C4A050, #D4B060);
  z-index: 9999; transition: width 0.1s linear;
}

/* ── NAVIGATION ──────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 0;
  background: rgba(244,242,238,0.92);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-bottom: 0.5px solid rgba(45,48,47,0.06);
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}
#nav.scrolled {
  padding: 0.85rem 0;
  background: rgba(244,242,238,0.97);
  box-shadow: 0 1px 24px rgba(45,48,47,0.07);
}
/* Hide nav when footer is in viewport on mobile */
#nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.nav-w {
  max-width: 1200px; margin: 0 auto; padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
}
@media (max-width: 640px) { .nav-w { padding: 0 1.5rem; } }
.nav-logo {
  text-decoration: none; flex-shrink: 0; display: inline-flex; align-items: center;
}
.nav-logo img { height: 28px; width: auto; display: block; }
@media (max-width: 768px) { .nav-logo img { height: 22px; } }
.nav-links {
  display: flex; align-items: center; gap: 1.8rem; list-style: none;
}
.nav-links a {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(45,48,47,0.6); text-decoration: none;
  position: relative; padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: #C4A050;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover { color: #2D302F; }
.nav-links a:hover::after,
.nav-links a.nav-active::after { transform: scaleX(1); }
.nav-links a.nav-active { color: #2D302F; }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 0.65rem 1.6rem;
  background: #2D302F; color: #F4F2EE;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
  border-radius: 4px; transition: background 0.2s, color 0.2s;
  cursor: pointer; border: none;
}
.nav-cta:hover { background: #C4A050; color: #2D302F; }
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: #2D302F; border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY ─────────────────── */
.menu-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(45,48,47,0.45);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

/* ── MOBILE SLIDE-IN MENU ────────────────── */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200;
  width: min(320px, 85vw);
  background: #F4F2EE;
  padding: 5rem 2.5rem 3rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; gap: 0;
  box-shadow: -8px 0 40px rgba(45,48,47,0.12);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(45,48,47,0.06); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #2D302F;
  transition: background 0.2s;
}
.mobile-menu-close:hover { background: rgba(45,48,47,0.1); }
.mobile-menu nav ul { list-style: none; padding: 0; }
.mobile-menu nav ul li { border-bottom: 0.5px solid rgba(45,48,47,0.07); }
.mobile-menu nav ul li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #2D302F; text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu nav ul li a:hover { color: #C4A050; padding-left: 0.5rem; }
.mobile-menu nav ul li a.mobile-active { color: #C4A050; }
.mobile-menu-cta {
  margin-top: 2.5rem;
  display: block; text-align: center;
  padding: 1rem; background: #C4A050; color: #2D302F;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border-radius: 4px; transition: background 0.2s;
  cursor: pointer; border: none;
}
.mobile-menu-cta:hover { background: #D4B060; }

/* ── RESPONSIVE NAV ──────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
}

/* ── FOOTER ──────────────────────────────── */
#footer {
  background: #2D302F;
  color: rgba(244,242,238,0.5);
  padding-top: 5rem;
  border-top: 1px solid rgba(196,160,80,0.1);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 4rem; max-width: 1200px; margin: 0 auto; padding: 0 3rem 4rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 0 1.5rem 3rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem 2.5rem; }
}
.f-brand-logo {
  text-decoration: none; display: inline-block; margin-bottom: 1.4rem;
  position: relative;
}
.f-brand-logo img { height: 36px; width: auto; display: block; transition: opacity 0.3s; }
.f-brand-logo:hover img { opacity: 0.85; }
.f-brand-logo::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0%; height: 1.5px;
  background: linear-gradient(90deg, #C4A050, rgba(196,160,80,0.3));
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1) 0.5s;
}
.f-brand-logo.logo-animated::after { width: 100%; }
.f-brand-body { font-size: 0.8rem; font-weight: 400; line-height: 1.85; max-width: 280px; margin-bottom: 1.5rem; }
.f-fordivine { font-size: 0.7rem; font-weight: 400; color: rgba(244,242,238,0.25); letter-spacing: 0.04em; }
.f-col-head { font-size: 0.67rem; font-weight: 600; color: rgba(244,242,238,0.95); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.5rem; }
.f-links { list-style: none; padding: 0; }
.f-links li { margin-bottom: 0.85rem; }
.f-links a { font-size: 0.82rem; font-weight: 400; color: rgba(244,242,238,0.45); text-decoration: none; transition: color 0.2s; }
.f-links a:hover { color: #C4A050; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 2rem 3rem;
}
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: 1rem; padding: 1.5rem; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}
.footer-copy { font-size: 0.7rem; font-weight: 400; }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: 0.7rem; font-weight: 400; color: rgba(244,242,238,0.35); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: #C4A050; }
.footer-disclaimer {
  max-width: 1200px; margin: 0 auto;
  padding: 1.5rem 3rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-disclaimer p {
  font-size: 0.65rem; font-weight: 400;
  color: rgba(244,242,238,0.25);
  line-height: 1.7; text-align: center;
  max-width: 900px; margin: 0 auto;
}
@media (max-width: 768px) { .footer-disclaimer { padding: 1.5rem 1.5rem 7rem; } } /* Extra bottom padding for mobile floating CTA */

/* ── APPLICATION MODAL ───────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(28,31,30,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%; max-width: 520px;
  padding: 3rem 3rem 2.5rem;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), opacity 0.3s ease;
  opacity: 0;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: none; cursor: pointer;
  color: #6b7280; padding: 0.25rem;
  line-height: 1; transition: color 0.2s;
}
.modal-close:hover { color: #1c1f1e; }
.modal-progress {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 2rem;
}
.modal-progress-step {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: #9ca3af; font-weight: 500;
  transition: color 0.3s;
}
.modal-progress-step.active,
.modal-progress-step.done { color: #2D302F; }
.modal-progress-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: #e5e7eb; color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.modal-progress-step.active .modal-progress-dot { background: #C9A84C; color: #fff; }
.modal-progress-step.done .modal-progress-dot { background: #2D302F; color: #C9A84C; }
.modal-progress-line { flex: 1; height: 1px; background: #e5e7eb; margin: 0 0.75rem; }
.modal-step { display: none; }
.modal-step.active { display: block; }
.modal-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #C9A84C; margin-bottom: 0.5rem;
}
.modal-heading {
  font-size: 1.45rem; font-weight: 700; color: #2D302F;
  margin: 0 0 0.5rem; line-height: 1.25;
}
.modal-sub { font-size: 0.85rem; color: #6b7280; margin-bottom: 1.75rem; line-height: 1.5; }
.modal-field { margin-bottom: 1.1rem; }
.modal-field label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: #374151; margin-bottom: 0.35rem;
}
.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: 0.9rem; color: #1c1f1e;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.modal-select-wrap { position: relative; }
.modal-select-wrap::after {
  content: ''; position: absolute; right: 0.9rem; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: #6b7280;
  pointer-events: none;
}
.modal-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.modal-btn-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.5rem;
}
.modal-btn-next,
.modal-btn-submit {
  background: #C9A84C; color: #fff;
  border: none; border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.modal-btn-next:hover,
.modal-btn-submit:hover { background: #b8943e; transform: translateY(-1px); }
.modal-btn-back {
  background: none; border: none; color: #6b7280;
  font-size: 0.85rem; cursor: pointer; padding: 0;
  font-family: inherit; transition: color 0.2s;
}
.modal-btn-back:hover { color: #2D302F; }
.modal-confirm { display: none; text-align: center; padding: 1rem 0; }
.modal-confirm.active { display: block; }
.modal-confirm-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(201,168,76,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.modal-confirm-title { font-size: 1.35rem; font-weight: 700; color: #2D302F; margin-bottom: 0.5rem; }
.modal-confirm-text { font-size: 0.88rem; color: #6b7280; line-height: 1.6; margin-bottom: 1.5rem; }
.modal-confirm-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.modal-confirm-cal {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #2D302F; color: #C9A84C;
  padding: 0.7rem 1.5rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 700;
  text-decoration: none; transition: background 0.2s;
}
.modal-confirm-cal:hover { background: #1a1c1b; }
.modal-confirm-skip {
  background: none; border: none; color: #9ca3af;
  font-size: 0.82rem; cursor: pointer; font-family: inherit;
  transition: color 0.2s;
}
.modal-confirm-skip:hover { color: #2D302F; }
.modal-privacy {
  font-size: 0.7rem; color: #6b7280; opacity: 0.5;
  text-align: center; margin-top: 1.25rem; line-height: 1.5;
}
@media (max-width: 560px) {
  .modal-box { padding: 2rem 1.5rem; border-radius: 12px; }
  .modal-field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .modal-overlay { align-items: center; padding: 1rem; }
  .modal-box {
    width: 100%; max-width: 100%;
    max-height: 90svh;
    border-radius: 16px;
    padding: 1.75rem 1.5rem 2rem;
    transform: translateY(24px) scale(0.97);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
  .modal-close { top: 1rem; right: 1rem; }
  .modal-heading { font-size: 1.5rem; margin-bottom: 0.4rem; }
  .modal-sub { font-size: 0.82rem; margin-bottom: 1.25rem; }
  .modal-field { margin-bottom: 1rem; }
  .modal-field input, .modal-field select, .modal-field textarea {
    font-size: 1rem; padding: 0.9rem 1rem; border-radius: 10px;
  }
  .modal-btn-row { flex-direction: column-reverse; gap: 0.75rem; margin-top: 1.25rem; }
  .modal-btn-next, .modal-btn-submit { width: 100%; padding: 1rem 1.5rem; font-size: 0.9rem; }
  .modal-btn-back { width: 100%; text-align: center; justify-content: center; padding: 0.5rem; font-size: 0.85rem; opacity: 0.6; }
}

/* ── MODAL CONSENT CHECKBOX ─────────────── */
.modal-consent {
  margin-bottom: 1.1rem;
  margin-top: 0.25rem;
}
.modal-consent-label {
  display: flex; align-items: flex-start; gap: 0.6rem;
  cursor: pointer; font-size: 0.78rem; color: #6b7280; line-height: 1.5;
}
.modal-consent-label input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  margin-top: 1px;
  accent-color: #C9A84C;
  cursor: pointer;
  border-radius: 3px;
}
.modal-consent-label a {
  color: #C9A84C; text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.2s;
}
.modal-consent-label a:hover { color: #b8943e; }
.modal-consent-label.error { color: #B85C4A; }

/* ── COOKIE CONSENT BANNER ───────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - 3rem);
  background: rgba(28,31,30,0.97);
  border: 1px solid rgba(196,160,80,0.18);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.77rem;
  color: rgba(244,242,238,0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(196,160,80,0.08) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* transform handled above */
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner a { color: #C4A050; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-text { line-height: 1.6; }
.cookie-banner-actions { display: flex; gap: 0.5rem; }
.cookie-btn {
  flex: 1;
  padding: 0.42rem 0.6rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-btn-accept { background: #C4A050; color: #1E201F; }
.cookie-btn-accept:hover { background: #D4B060; }
.cookie-btn-decline {
  background: transparent;
  color: rgba(244,242,238,0.35);
  border: 1px solid rgba(244,242,238,0.1);
}
.cookie-btn-decline:hover {
  color: rgba(244,242,238,0.65);
  border-color: rgba(244,242,238,0.22);
}
@media (max-width: 640px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    transform: translateY(16px); /* override desktop centering */
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); /* Sit above mobile float CTA */
    max-width: none;
    width: auto;
    border-radius: 10px;
  }
  .cookie-banner.visible {
    transform: translateY(0);
  }
}

/* ── MOBILE FLOATING CTA ─────────────────── */
.mobile-float-cta {
  display: none; position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%);
  z-index: 900; opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}
.mobile-float-cta.visible { opacity: 1; pointer-events: all; }
.mobile-float-cta a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: #C4A050; color: #2D302F;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(196,160,80,0.45), 0 2px 8px rgba(0,0,0,0.2);
}
@media (max-width: 1024px) { .mobile-float-cta { display: block; } }
/* force redeploy Sun Mar 29 16:41:14 EDT 2026 */
/* build fix Sun Mar 29 16:55:56 EDT 2026 */
