/* IEP Assure — shared site styles.
   Brand tokens + everything that used to be copy-pasted into every page.
   Page-specific layout rules stay in each page's own <style> block. */

:root {
  --brand: #3286d5;
  --brand-hover: #2b73bd;
  --brand-tint: #EAF3FC;
  --brand-tint-border: #CFE2F6;
  --ink: #1D1D35;
  --ink-2: #3A3F52;
  --ink-3: #545C6A;
  --muted: #6E7683;
  --muted-2: #8990A0;
  --bg-soft: #F4F6F8;
  --line: #E2E5EB;
  --line-soft: #ECEEF2;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* ---- Reset / base (was duplicated in every page) ---- */
html, body { margin: 0; padding: 0; background: #fff; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
* { box-sizing: border-box; }
a { color: var(--brand); text-decoration: none; }
::selection { background: #CFE2F6; }
.hd { font-family: var(--font-head); }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(50,134,213,0.55); border-radius: 6px; }
a:focus-visible, button:focus-visible { border-radius: 10px; }
[hidden] { display: none !important; }
.lucide { stroke-width: 1.75; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 900px) { .wrap { padding: 0 22px; } }

/* Scroll-reveal (main.js adds .in-view via IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---- Article prose (was duplicated in all 16 blog posts) ---- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1.22; letter-spacing: -0.015em; margin: 46px 0 14px; color: var(--ink); }
.prose h3 { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 30px 0 8px; color: var(--ink); }
.prose p { font-size: 17.5px; line-height: 1.72; color: var(--ink-2); margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 20px; }
.prose li { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 10px; }
.prose strong { color: var(--ink); font-weight: 700; }
.qa { background: #F3F8FD; border: 1px solid var(--brand-tint-border); border-radius: 14px; padding: 22px 24px; margin: 8px 0 8px; }
.faq-q { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); margin: 22px 0 6px; }
.faq-a { font-size: 16px; line-height: 1.65; color: var(--ink-3); margin: 0; }

/* Hover utilities (replace the old DC style-hover attribute) */
.hover-brand-border { transition: border-color .15s; }
.hover-brand-border:hover { border-color: var(--brand) !important; }
.hover-brand-bg:hover { background: var(--brand-hover) !important; }

/* ---- Forms (demo/contact) ---- */
input.in, select.in, textarea.in { font-family: var(--font-body); width: 100%; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #D3D8E0; border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
input.in:focus, select.in:focus, textarea.in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(50,134,213,0.20); }
.lbl { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }

/* ---- Accordion (FAQ and anywhere else; main.js drives [data-accordion]) ---- */
.acc-q { font-family: var(--font-head); width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: transparent; border: 0; padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--ink); }
.acc-a { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.65; color: var(--ink-3); max-width: 70ch; }
.pm { position: relative; flex: none; width: 18px; height: 18px; }
.pm::before, .pm::after { content: ''; position: absolute; background: var(--muted-2); border-radius: 2px; transition: opacity 160ms ease, transform 160ms ease; }
.pm::before { left: 2px; right: 2px; top: 8px; height: 2px; }
.pm::after { top: 2px; bottom: 2px; left: 8px; width: 2px; }
.pm.open::after { opacity: 0; transform: scaleY(0); }

/* ---- Site header / nav (was SiteNav.dc.html + its DCLogic styles) ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line-soft); box-shadow: none; transition: box-shadow 200ms ease, border-color 200ms ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -12px rgba(20,45,80,0.28); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header a, .site-header button, .site-header nav a { font-family: var(--font-head) !important; }
.site-header a:focus-visible, .site-header button:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(50,134,213,0.55); border-radius: 8px; }
.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-link { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: color 140ms cubic-bezier(.2,.7,.2,1); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand); }
.nav-res-btn { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.navdd { position: relative; }
.navpanel { position: absolute; top: 100%; right: 0; padding-top: 12px; z-index: 60; }
.navpanel-card { min-width: 236px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 44px -18px rgba(20,45,80,0.3); padding: 8px; }
.ddi { display: block; padding: 10px 12px; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: background 120ms, color 120ms; }
.ddi:hover { background: var(--bg-soft); color: var(--brand); }
.nav-cta { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: #fff; background: var(--brand); border-radius: 10px; padding: 10px 18px; transition: background 140ms cubic-bezier(.2,.7,.2,1); }
.nav-cta:hover { background: var(--brand-hover); }
.nav-mobile-btn { display: grid; place-items: center; width: 42px; height: 42px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
@media (min-width: 900px) { .nav-mobile-btn { display: none; } }
@media (max-width: 899.98px) { .nav-desktop { display: none; } }

/* Mobile drawer (markup lives in the nav partial, toggled by main.js) */
.mnav-backdrop { position: fixed; inset: 0; background: rgba(14,17,22,0.44); z-index: 80; opacity: 0; animation: mnav-fade 180ms ease forwards; }
@keyframes mnav-fade { to { opacity: 1; } }
.mnav-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); background: #fff; z-index: 90; box-shadow: -16px 0 44px -20px rgba(20,45,80,0.4); display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; transform: translateX(100%); animation: mnav-slide 220ms cubic-bezier(.16,1,.3,1) forwards; }
@keyframes mnav-slide { to { transform: none; } }
.mnav-drawer a:focus-visible, .mnav-drawer button:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(50,134,213,0.55); border-radius: 8px; }
.mnav-link { display: block; padding: 13px 6px; border-bottom: 1px solid var(--bg-soft); font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink); }
.mnav-link[aria-current="page"] { color: var(--brand); }
.mnav-sub { display: block; padding: 11px 6px; border-bottom: 1px solid var(--bg-soft); font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
body.mnav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mnav-backdrop { animation: none; opacity: 1; }
  .mnav-drawer { animation: none; transform: none; }
}

/* ---- Site footer (was SiteFooter.dc.html) ---- */
.ft-link { color: #9BA2AE; font-size: 14px; text-decoration: none; transition: color 140ms ease; display: block; padding: 5px 0; }
.ft-link:hover { color: var(--brand-tint); }
.ft-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr; gap: 40px; }
.ft-cols { display: contents; }
@media (max-width: 820px) {
  .ft-grid { display: block; }
  .ft-brand { margin-bottom: 40px; max-width: none; }
  .ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
