/* ============================================================
   erdms.css — Shared stylesheet for all erdms.com pages
   Font stack: Avenir (Apple) → Nunito (Google, all devices)
   Import this in every page's <head> BEFORE any page-specific
   <style> block. Page-specific styles (hero backgrounds, dots,
   curves, tablet showcase, etc.) stay in each page's own <style>.
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #0a2a6e;
  --blue:       #1565c0;
  --mid-blue:   #1976d2;
  --sky:        #2196f3;
  --light-blue: #bbdefb;
  --pale:       #e3f2fd;
  --white:      #ffffff;
  --text:       #1a2340;
  --muted:      #5a7098;
  --dot-blue:   #90caf9;
  --error:      #e53935;
  --error-bg:   #ffebee;
  --red:        #f44336;

  /* Font stacks — Avenir first for Apple, Nunito fallback for all */
  --font-display: 'Avenir', 'Avenir Next', 'Nunito', 'Century Gothic', sans-serif;
  --font-body:    'Source Sans 3', 'Avenir', 'Nunito', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21,101,192,0.1);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav-links {
  display: flex; gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 16px; font-weight: 600;
  color: var(--text); text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
}

.nav-links a:hover { color: var(--red); font-size: 18px; font-weight: 700; }
.nav-links a.active { color: var(--sky); }

.nav-cta {
  background: var(--blue); color: var(--white);
  padding: 10px 24px; border-radius: 6px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .1s;
}

.nav-cta:hover { background: var(--navy); transform: translateY(-1px); }

.nav-back {
  font-size: 14px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}

.nav-back:hover { color: var(--navy); }

/* ============================================================
   PAGE HERO (inner-page hero — not the home hero)
   ============================================================ */
.page-hero {
  padding: 140px 48px 80px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 60%, var(--sky) 100%);
  text-align: center;
  position: relative; overflow: hidden;
}

.page-hero > * { position: relative; z-index: 1; }

.page-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15); color: var(--light-blue);
  padding: 6px 16px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900; color: var(--white);
  line-height: 1.1; margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px; color: rgba(255,255,255,0.8);
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section { padding: 80px 48px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 12px;
}

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800; color: var(--navy);
  line-height: 1.15; margin-bottom: 16px;
}

p.section-lead {
  font-size: 16px; color: var(--muted);
  line-height: 1.8; max-width: 1100px;
  margin-bottom: 48px;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800; color: var(--navy); line-height: 1.15;
}
.section-header p {
  margin-top: 14px; font-size: 16px;
  color: var(--muted); max-width: 560px;
  margin-left: auto; margin-right: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--white); color: var(--navy);
  padding: 14px 32px; border-radius: 6px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; display: inline-block;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.25); }

.btn-ghost {
  background: transparent; color: var(--white);
  padding: 14px 32px; border-radius: 6px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; display: inline-block;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-blue {
  background: var(--blue); color: var(--white);
  padding: 13px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-blue:hover { background: var(--navy); transform: translateY(-1px); }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars-section { padding: 50px 48px; background: var(--white); }
.pillars { background: var(--white); padding: 80px 48px; }
.pillars-inner { max-width: 1200px; margin: 0 auto; }

.pillars-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 24px;
}

.pillar {
  background: var(--pale); border-radius: 12px;
  padding: 36px 28px; text-align: center;
  border-top: 3px solid var(--sky);
  transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(21,101,192,0.12); }
.pillar-icon { font-size: 36px; margin-bottom: 16px; }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.pillar p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features { padding: 100px 48px; background: var(--white); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; }

.feature-card {
  padding: 36px 28px; border-radius: 14px;
  border: 1px solid #dde9f8;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(21,101,192,0.1);
  border-color: var(--sky);
}
.feature-icon {
  width: 60px; height: 60px; border-radius: 12px;
  /*background: var(--pale);*/
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   DARK CTA STRIP
   ============================================================ */
.dark-cta { 
  background: linear-gradient(135deg, var(--navy), var(--blue)); 
  padding: 80px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.dark-cta::before {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.dark-cta-inner {
  max-width: 800px; margin: 0 auto;
  text-align: center; position: relative; z-index: 2;
}
.dark-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900; color: var(--white); margin-bottom: 16px;
}
.dark-cta p {
  font-size: 17px; color: rgba(255,255,255,0.75);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.dark-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FORMS (shared between contact.html and client_info.html)
   ============================================================ */
.form-group { margin-bottom: 20px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--navy); margin-bottom: 6px; letter-spacing: .03em;
}
label .req  { color: var(--sky); margin-left: 2px; }
label .opt  { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 4px; }

input, select, textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #d0ddf0; border-radius: 8px;
  font-family: var(--font-body); font-size: 14px;
  color: var(--text); background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.12);
}
textarea { resize: vertical; min-height: 130px; }

input.error, select.error { border-color: var(--error); background: var(--error-bg); }
input.valid, select.valid { border-color: #4caf50; }

.field-error { font-size: 11px; color: var(--error); margin-top: 4px; display: none; }
.field-error.visible { display: block; }

.global-error {
  background: var(--error-bg); border: 1px solid #ef9a9a;
  border-radius: 8px; padding: 12px 16px;
  font-size: 13px; color: var(--error); font-weight: 600;
  margin-bottom: 16px; display: none;
}
.global-error.visible { display: block; }

.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

.form-submit {
  width: 100%; padding: 14px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; letter-spacing: .03em;
  transition: background .2s, transform .1s;
}
.form-submit:hover { background: var(--navy); transform: translateY(-1px); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #060f28;
  color: rgba(255,255,255,0.6);
  padding: 60px 48px 32px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900;
  color: var(--white); margin-bottom: 12px;
}
.footer-brand span { color: var(--dot-blue); font-weight: 400; }

.footer-tagline { font-size: 13px; line-height: 1.7; }

.footer-col h4 {
  font-size: 13px; font-weight: 700;
  color: var(--white); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 13px;
  color: rgba(255,255,255,0.55); text-decoration: none;
  margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; font-size: 12px;
}

.footer-icons { display: flex; gap: 16px; }
.footer-icons a {
  color: rgba(255,255,255,0.5);
  text-decoration: none; font-size: 16px;
  transition: color .2s;
}
.footer-icons a:hover { color: var(--white); }

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag {
  display: inline-block;
  background: var(--pale); color: var(--blue);
  padding: 3px 10px; border-radius: 10px;
  font-size: 11px; font-weight: 700;
}
.tag-green  { background: #e8f5e9; color: #2e7d32; }
.tag-orange { background: #fff3e0; color: #e65100; }
.tag-red    { background: #fce4ec; color: #c62828; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }

  .page-hero { padding: 100px 24px 60px; }

  .section { padding: 60px 24px; }
  .features { padding: 60px 24px; }
  .pillars  { padding: 60px 24px; }
  .dark-cta { padding: 60px 24px; }

  .pillars-grid  { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  footer { padding: 48px 24px 28px; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-top   { grid-template-columns: 1fr; }
  .dark-cta-actions { flex-direction: column; align-items: center; }
}
