/* docconduit.com — Document Automation Spoke */
:root {
  --bg: #F8F6F1;
  --surface: #FFFFFF;
  --surface-alt: #F0EDE6;
  --navy: #1E3A5F;
  --navy-dark: #152B47;
  --green: #2D6A4F;
  --green-light: #3A8A65;
  --sienna: #8B7355;
  --text: #1a1a1a;
  --text-muted: #6B6B6B;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 6px;
  --transition: 200ms ease;
  --max-w: 1100px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.nav-logo:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}
.nav-links a:active { opacity: 0.7; }

.nav-cta {
  background: var(--navy);
  color: white;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--navy-dark); transform: translateY(-1px); }
.nav-cta:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.nav-cta:active { transform: translateY(0); }

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  background: linear-gradient(135deg, #F8F6F1 0%, #EDE8DF 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; }

.hero-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  max-width: 700px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.25);
}
.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.35);
}
.btn-navy:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.btn-navy:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(30,58,95,0.2); }

section { padding: 96px 40px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pain-card {
  background: var(--surface);
  border: 1px solid rgba(30, 58, 95, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pain-card .icon { font-size: 24px; margin-bottom: 12px; }
.pain-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; font-style: italic; }

.process-steps { display: flex; flex-direction: column; gap: 24px; }

.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(30,58,95,0.08);
}

.step-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  line-height: 1;
  min-width: 48px;
}

.step-content h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.step-content p  { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

.case-teaser {
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.case-teaser h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}
.case-teaser p { font-size: 16px; opacity: 0.8; line-height: 1.6; max-width: 520px; }

.btn-ghost {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition);
}
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-ghost:focus-visible {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 3px;
}
.btn-ghost:active { background: rgba(255,255,255,0.15); }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.industry-chip {
  background: var(--surface);
  border: 1px solid rgba(30,58,95,0.12);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-align: center;
}

.final-cta { background: var(--surface-alt); text-align: center; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
}
.final-cta p { color: var(--text-muted); font-size: 17px; margin-bottom: 32px; }

.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(30,58,95,0.2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.form-input:focus { border-color: var(--navy); }
.form-input::placeholder { color: #aaa; }

footer {
  padding: 32px 40px;
  border-top: 1px solid rgba(30,58,95,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer p { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--navy); }
.footer-links a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}
.footer-links a:active { opacity: 0.7; }

/* Scroll reveal — applied via JS for progressive enhancement */
.reveal-hidden {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 350ms ease, transform 350ms ease;
}
.reveal-hidden.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger — hidden on desktop, visible on mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy, #1E3A5F);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  nav { padding: 16px 20px; position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: flex;
    position: fixed;
    inset: 64px 0 0 0;
    height: calc(100dvh - 64px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 24px 24px 32px;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    z-index: 50;
    overflow-y: auto;
  }
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex;
    align-items: center;
    padding: 16px 4px;
    min-height: 44px;
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
  .nav-links a[aria-current="page"] {
    color: var(--navy);
    font-weight: 700;
  }
  .nav-links a[aria-current="page"]::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--navy);
    border-radius: 2px;
    margin-right: 12px;
  }
  .nav-cta { margin-left: auto; }
  .hero { padding: 100px 20px 60px; }
  section { padding: 64px 20px; }
  .case-teaser { padding: 32px 24px; flex-direction: column; }
  footer { padding: 24px 20px; flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .col-2 { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* Sister-sites cross-link row (footer) */
.sister-sites { font-size: 12px; opacity: 0.55; margin: 0 0 10px; letter-spacing: 0.01em; }
.sister-sites a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.sister-sites a:hover { opacity: 1; }
