/* ============================================================
   site-global.css — Discover Communications
   Shared nav, footer, modal, and brand styles
   Generated: 2026-07-02
============================================================ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --color-primary:    #0F172A;
  --color-secondary:  #334155;
  --color-cta:        #0369A1;
  --color-cta-hover:  #0284C7;
  --color-bg:         #F8FAFC;
  --color-surface:    #FFFFFF;
  --color-text:       #020617;
  --color-muted:      #475569;
  --color-subtle:     #94A3B8;
  --color-border:     #E2E8F0;
  --color-accent:     #F59E0B;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow:     0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 20px 48px rgba(0,0,0,.10), 0 8px 20px rgba(0,0,0,.05);
  --shadow-xl:  0 32px 64px rgba(0,0,0,.12), 0 16px 32px rgba(0,0,0,.06);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Source Sans 3', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5 { font-family: 'Lexend', system-ui, sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Lexend', system-ui, sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--color-cta); color: #fff;
  box-shadow: 0 4px 14px rgba(3,105,161,.3);
}
.btn-primary:hover { background: var(--color-cta-hover); box-shadow: 0 6px 20px rgba(3,105,161,.4); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.65); }

/* ── Fade-up animations ──────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* ════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(15,23,42,.98);
  transition: background var(--transition), box-shadow var(--transition);
}
#nav.scrolled {
  background: rgba(15,23,42,.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 8px 24px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo img { height: 57px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  font-family: 'Lexend', system-ui, sans-serif;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.78);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: block;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links > li > ul.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); padding-top: 8px;
  background: rgba(15,23,42,0.99); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; min-width: 220px; padding: 8px 0; z-index: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,.35); list-style: none;
}
.nav-links > li:hover > ul.dropdown-menu { display: block; }
.nav-links > li > ul.dropdown-menu > li > a {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.85); white-space: nowrap; background: none; border-radius: 0;
}
.nav-links > li > ul.dropdown-menu > li > a:hover { background: rgba(244,121,32,.15); color: #F97316; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 20px; height: 2px; min-height: 2px; flex-shrink: 0; background: #fff; border-radius: 2px; transition: all var(--transition); }
.mobile-menu {
  display: none; flex-direction: column;
  background: #0F172A; padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.mobile-menu a {
  font-family: 'Lexend', system-ui, sans-serif;
  color: rgba(255,255,255,.80); font-size: 15px; font-weight: 500;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.mobile-menu .mobile-indent { padding-left: 16px; font-size: 14px; opacity: .85; }
.mobile-menu .btn { margin-top: 18px; justify-content: center; width: 100%; }
.mobile-menu.open { display: flex !important; }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
footer { background: var(--color-primary); padding: 72px 0 0; color: rgba(255,255,255,.5); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 53px; width: auto; margin-bottom: 18px; display: block; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-family: 'Lexend', system-ui, sans-serif;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.50); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.30);
  flex-wrap: wrap; gap: 12px;
}

/* ════════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--color-surface); border-radius: var(--radius-xl);
  width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto;
  padding: 44px; position: relative; box-shadow: var(--shadow-xl);
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: 50%; width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); transition: all var(--transition);
}
.modal-close:hover { background: var(--color-border); color: var(--color-primary); }
.modal-title { font-family: 'Lexend', system-ui, sans-serif; font-size: 22px; font-weight: 800; color: var(--color-primary); margin-bottom: 5px; }
.modal-sub { font-size: 14px; color: var(--color-muted); margin-bottom: 28px; }

/* Modal form */
.cf { display: flex; flex-direction: column; gap: 16px; }
.cf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 5px; }
.cf-field label { font-family: 'Lexend', system-ui, sans-serif; font-size: 12.5px; font-weight: 600; color: var(--color-primary); letter-spacing: .02em; }
.cf-field label .req { color: #EF4444; margin-left: 2px; }
.cf-input {
  padding: 11px 13px; font-size: 14px; font-family: 'Source Sans 3', system-ui, sans-serif;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition); width: 100%;
}
.cf-input:focus { outline: none; border-color: var(--color-cta); box-shadow: 0 0 0 3px rgba(3,105,161,.12); }
.cf-textarea { resize: vertical; min-height: 110px; }
.cf-upload-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 13px; font-size: 14px; font-family: 'Source Sans 3', system-ui, sans-serif;
  border: 1.5px dashed var(--color-border); border-radius: var(--radius-sm);
  color: var(--color-subtle); background: var(--color-bg); transition: all var(--transition);
}
.cf-upload-label:hover { border-color: var(--color-cta); color: var(--color-primary); background: var(--color-surface); }
#cfFile, #mFile { display: none; }
.cf-checks-label { font-family: 'Lexend', system-ui, sans-serif; font-size: 12.5px; font-weight: 600; color: var(--color-primary); }
.cf-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cf-check { display: flex; align-items: center; gap: 8px; }
.cf-check input { accent-color: var(--color-cta); width: 14px; height: 14px; cursor: pointer; }
.cf-check label { font-size: 13.5px; color: var(--color-muted); cursor: pointer; }
.cf-submit-btn {
  width: 100%; padding: 14px; justify-content: center; font-size: 15px; cursor: pointer;
  background: var(--color-primary); color: #fff;
  font-family: 'Lexend', system-ui, sans-serif; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  border: none; border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(15,23,42,.18); transition: all var(--transition);
}
.cf-submit-btn:hover { background: #1e293b; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15,23,42,.25); }
.cf-success { display: none; text-align: center; padding: 48px 24px; }
.cf-success-icon { color: #22C55E; margin-bottom: 16px; }
.cf-success h3 { font-size: 21px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; }
.cf-success p { font-size: 15px; color: var(--color-muted); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-links, .nav-actions { display: none !important; }
  .hamburger { display: flex !important; }
  .cf-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .modal { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   MODAL CACHE-BYPASS FIX (2026-07-03)
   Cached pages have #quoteModal{display:none} (no !important)
   trapping #modalOverlay inside. Make quoteModal a zero-size
   fixed box so the nested position:fixed #modalOverlay escapes
   to the viewport. !important beats the non-!important inline rule.
   ============================================================ */
#quoteModal {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
