/* Digital+Mente — Client Proposal Stylesheet */
:root {
  --dm-primary: #00C853;
  --dm-dark: #1a1a2e;
  --dm-darker: #0f0f1a;
  --dm-light: #f8f9fa;
  --dm-white: #ffffff;
  --dm-grey: #6c757d;
  --dm-text: #2d2d2d;
  --dm-border: #e0e0e0;
  --dm-accent: #AAFF00;
  --dm-warning: #ff6b00;
  --dm-success: #00C853;
  --dm-danger: #dc3545;
  --radius: 8px;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dm-text);
  background: var(--dm-light);
  line-height: 1.7;
  font-size: 16px;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--dm-dark), var(--dm-darker));
  color: white;
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.header .brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dm-accent);
  text-decoration: none;
}
.header .brand span { color: white; font-weight: 300; }
.header nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.header nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.header nav a:hover, .header nav a.active {
  background: rgba(170,255,0,0.15);
  color: var(--dm-accent);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dm-dark), #16213e);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero .subtitle { color: var(--dm-accent); font-size: 1.2rem; font-weight: 600; }
.hero .meta { color: rgba(255,255,255,0.6); margin-top: 1rem; font-size: 0.9rem; }

/* Content */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* Sections */
section {
  background: var(--dm-white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid var(--dm-border);
}
section h2 {
  font-size: 1.5rem;
  color: var(--dm-dark);
  margin-bottom: 0.3rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--dm-accent);
}
section h2 .pt { display: block; font-size: 0.85rem; color: var(--dm-grey); font-weight: 400; margin-top: 0.2rem; }
section h3 {
  font-size: 1.15rem;
  color: var(--dm-dark);
  margin: 1.5rem 0 0.8rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
th {
  background: var(--dm-dark);
  color: white;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--dm-border);
  vertical-align: top;
}
tr:hover td { background: rgba(170,255,0,0.04); }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-danger { background: #fde8e8; color: var(--dm-danger); }
.badge-success { background: #e8fde8; color: #0a7c0a; }
.badge-warning { background: #fff3e0; color: var(--dm-warning); }
.badge-info { background: #e3f2fd; color: #1565c0; }
.badge-high { background: #fde8e8; color: var(--dm-danger); }
.badge-medium { background: #fff3e0; color: var(--dm-warning); }
.badge-low { background: #e8fde8; color: #0a7c0a; }

/* Score */
.score {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.score-bar {
  display: inline-block;
  width: 60px;
  height: 8px;
  background: var(--dm-border);
  border-radius: 4px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 4px;
}

/* Callout boxes */
.callout {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  border-left: 4px solid;
}
.callout-critical { background: #fde8e8; border-color: var(--dm-danger); }
.callout-success { background: #e8fde8; border-color: var(--dm-success); }
.callout-info { background: #e3f2fd; border-color: #1565c0; }
.callout-warning { background: #fff3e0; border-color: var(--dm-warning); }
.callout strong { display: block; margin-bottom: 0.3rem; }

/* Roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.roadmap-phase {
  background: var(--dm-light);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--dm-border);
}
.roadmap-phase h4 {
  color: var(--dm-accent);
  background: var(--dm-dark);
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}
.roadmap-phase ul { list-style: none; }
.roadmap-phase li { padding: 0.2rem 0; font-size: 0.85rem; }
.roadmap-phase li::before { content: "✓ "; color: var(--dm-success); font-weight: 700; }

/* Footer */
.footer {
  background: var(--dm-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}
.footer strong { color: var(--dm-accent); }
.footer a { color: var(--dm-accent); text-decoration: none; }

/* Links between docs */
.doc-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.doc-link {
  display: block;
  background: var(--dm-light);
  border: 1px solid var(--dm-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-decoration: none;
  color: var(--dm-text);
  transition: all 0.2s;
}
.doc-link:hover {
  border-color: var(--dm-accent);
  box-shadow: 0 2px 8px rgba(170,255,0,0.15);
  transform: translateY(-2px);
}
.doc-link .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.doc-link .title { font-weight: 700; color: var(--dm-dark); }
.doc-link .desc { font-size: 0.8rem; color: var(--dm-grey); margin-top: 0.3rem; }

/* Bilingual */
.bilingual { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0; }
.bilingual .lang-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--dm-grey); margin-bottom: 0.3rem; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--dm-grey); }
.text-small { font-size: 0.85rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
p { margin-bottom: 0.8rem; }
ul, ol { margin: 0.5rem 0 0.5rem 1.5rem; }
li { margin-bottom: 0.3rem; }

/* Hero CTA */
.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.2rem;
  background: var(--dm-accent);
  color: var(--dm-dark);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-cta:hover {
  background: #c4ff33;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(170,255,0,0.4);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--dm-accent);
  color: var(--dm-dark);
  border: none;
  border-radius: 50px;
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(170,255,0,0.4);
  z-index: 90;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(170,255,0,0.5);
}
.floating-cta-icon { font-size: 1.2rem; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--dm-white);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dm-grey);
  line-height: 1;
}
.modal-close:hover { color: var(--dm-dark); }
.modal-header { text-align: center; margin-bottom: 1.5rem; }
.modal-header h2 { font-size: 1.4rem; color: var(--dm-dark); border: none; padding: 0; margin: 0; }
.modal-header p { color: var(--dm-grey); font-size: 0.9rem; margin-top: 0.3rem; }

/* Form */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--dm-dark);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--dm-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dm-accent);
  box-shadow: 0 0 0 3px rgba(170,255,0,0.15);
}
.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--dm-dark);
  color: var(--dm-accent);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.form-submit:hover {
  background: var(--dm-darker);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--dm-grey);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Print */
@media print {
  .header { position: relative; }
  section { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .floating-cta, .modal-overlay { display: none !important; }
}

/* Mobile */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .bilingual { grid-template-columns: 1fr; }
  section { padding: 1.2rem; }
  .header nav { display: none; }
  .floating-cta { bottom: 1rem; right: 1rem; padding: 0.7rem 1rem; font-size: 0.8rem; }
  .modal { padding: 1.5rem; margin: 0.5rem; }
}
