/* ============================================================
   D.E. SYSTEMS — THEME BASE STYLES
   Shared across every template: reset, global type, site header
   (nav + dropdown + mobile menu) and the shared button system.
   Page-specific styling stays inline in each page template.
   ============================================================ */

/* ── Base reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #111827; background: #fff; margin: 0; }

/* ── Section label ── */
.eyebrow { font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #0084c7; }

/* ── Clip dividers (used by several page heroes) ── */
.clip-down  { clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); }
.clip-up    { clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%); margin-top: -3rem; }

/* ── Site nav ── */
#site-nav { transition: background 0.3s, box-shadow 0.3s; }
#site-nav.scrolled { background: rgba(0,26,43,0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav-item { position: relative; }

.nav-dropdown {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s linear 0.15s;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

/* ── Mobile menu ── */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ── Shared CTA buttons (also used throughout page content) ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #0084c7; color: #fff;
  padding: 0.85rem 2rem; border-radius: 6px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: #006ba3; transform: translateY(-1px); }
.btn-primary:disabled { background: #9ca3af; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: #fff;
  padding: 0.85rem 2rem; border-radius: 6px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: #0084c7;
  padding: 0.75rem 1.75rem; border-radius: 6px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; border: 2px solid #0084c7;
  transition: background 0.2s, color 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-outline-brand:hover { background: #0084c7; color: #fff; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  #site-nav,
  .nav-dropdown,
  .btn-primary,
  .btn-secondary,
  .btn-outline-brand { transition: none; }
}
