/* MARCOSJF I.T. SERVICES - Business portal styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0b2b4c;
  --ink-2: #163a5f;
  --brand: #1e88e5;
  --brand-2: #6a5acd;
  --mint: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(11, 43, 76, 0.12);
  --shadow: 0 10px 30px rgba(11, 43, 76, 0.12);
  --shadow-2: 0 14px 40px rgba(11, 43, 76, 0.18);
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar {
  background: linear-gradient(90deg, var(--ink) 0%, #0b3a6e 40%, #0a2a4d 100%);
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 14px; }
.topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-text { opacity: 0.92; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  letter-spacing: 0.4px;
}
.topbar-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topbar-link { color: rgba(255,255,255,0.95); text-decoration: none; font-weight: 600; }
.topbar-link:hover { text-decoration: underline; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 248, 251, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 42px; height: 42px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-weight: 900; letter-spacing: 1px; }
.brand-tag { font-weight: 700; color: var(--brand); font-size: 0.86rem; letter-spacing: 0.8px; }

.nav-menu { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-menu a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.nav-menu a:hover { color: var(--brand); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 15% 0%, rgba(30,136,229,0.25) 0%, rgba(30,136,229,0) 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(106,90,205,0.22) 0%, rgba(106,90,205,0) 55%),
    radial-gradient(800px 480px at 50% 80%, rgba(34,197,94,0.14) 0%, rgba(34,197,94,0) 60%),
    linear-gradient(135deg, #071f38 0%, #0b2b4c 35%, #0b3c73 100%);
  opacity: 0.98;
}
.hero-inner {
  position: relative;
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.kicker { color: rgba(255,255,255,0.88); font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; font-size: 0.9rem; }
.hero-title { color: #fff; font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 1.12; margin-top: 10px; }
.hero-subtitle { color: rgba(255,255,255,0.9); margin-top: 14px; font-size: 1.08rem; max-width: 60ch; }
.hero-cta { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-metrics { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.metric-value { color: #fff; font-weight: 900; letter-spacing: 0.4px; }
.metric-label { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-top: 2px; }

.hero-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  padding: 18px 18px 16px;
}
.hero-card-title { color: var(--ink); font-size: 1.15rem; font-weight: 900; margin-bottom: 10px; }
.checklist { list-style: none; display: grid; gap: 8px; margin: 10px 0 14px; }
.checklist li {
  position: relative;
  padding-left: 26px;
  color: #223248;
  font-weight: 650;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mint);
  font-weight: 900;
}
.hero-card-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-large { padding: 14px 22px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 12px 28px rgba(30, 136, 229, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(30, 136, 229, 0.36); }
.btn-secondary {
  color: #0b2b4c;
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
.btn-light {
  color: #0b2b4c;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }
.link { color: var(--brand); font-weight: 800; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Sections */
.section { padding: 76px 0; background: var(--bg); }
.section-tint {
  background:
    radial-gradient(900px 420px at 15% 30%, rgba(30,136,229,0.10) 0%, rgba(30,136,229,0) 60%),
    radial-gradient(700px 360px at 85% 10%, rgba(106,90,205,0.10) 0%, rgba(106,90,205,0) 55%),
    var(--bg);
}
.section-dark {
  background:
    radial-gradient(900px 450px at 20% 0%, rgba(30,136,229,0.16) 0%, rgba(30,136,229,0) 60%),
    linear-gradient(135deg, #071f38 0%, #0b2b4c 60%, #092744 100%);
}
.section-head { margin-bottom: 26px; }
.section-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: 0.2px; color: var(--ink); }
.section-subtitle { margin-top: 8px; color: var(--muted); max-width: 78ch; }
.section-head-dark .section-title { color: #fff; }
.section-head-dark .section-subtitle { color: rgba(255,255,255,0.85); }

/* Cards / Grids */
.grid { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card h3 { color: var(--ink); font-weight: 900; margin-bottom: 10px; }
.card p { color: #2b3b52; }
.card.accent {
  border: 1px solid rgba(30,136,229,0.35);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(30,136,229,0.12) 0%, rgba(30,136,229,0) 60%),
    #ffffff;
}

.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.about-long { color: #2b3b52; line-height: 1.85; }
.bullets { display: grid; gap: 12px; margin-top: 8px; }
.bullet { padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: rgba(11, 43, 76, 0.02); }
.bullet-title { font-weight: 900; color: var(--ink); }
.bullet-text { color: #2b3b52; margin-top: 4px; }

.service-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.service-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.service-icon { font-size: 2.1rem; margin-bottom: 10px; }
.service-card h3 { color: var(--ink); font-weight: 900; }
.service-card p { color: #2b3b52; margin-top: 8px; }

.mini-list { margin-top: 10px; margin-left: 18px; color: #2b3b52; }
.mini-list li { margin: 6px 0; }

/* Dark section stats */
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.stat-title { color: #fff; font-weight: 900; margin-bottom: 6px; }
.stat-text { color: rgba(255,255,255,0.88); }

.cta-band {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(30,136,229,0.18) 0%, rgba(106,90,205,0.18) 100%);
  border: 1px solid rgba(255,255,255,0.14);
}
.cta-band-title { color: #fff; font-weight: 900; }
.cta-band-text { color: rgba(255,255,255,0.88); margin-top: 4px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: start; }
.contact-lines { margin-top: 12px; display: grid; gap: 8px; }
.label { display: inline-block; min-width: 92px; color: var(--muted); font-weight: 800; }
.value { color: #2b3b52; font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.muted { color: var(--muted); }

.form { display: grid; gap: 12px; }
.form h3 { margin-bottom: 2px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-weight: 900; color: var(--ink); }
.req { color: var(--danger); }
input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,43,76,0.18);
  background: rgba(255,255,255,0.95);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(30,136,229,0.65);
  box-shadow: 0 0 0 4px rgba(30,136,229,0.16);
}
.checkbox label { color: #2b3b52; font-weight: 700; }
.checkbox input { width: auto; margin-right: 10px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.alert { border-radius: 12px; padding: 10px 12px; font-weight: 800; }
.alert.success { background: rgba(34,197,94,0.14); border: 1px solid rgba(34,197,94,0.35); color: #0f5132; }
.alert.error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #7f1d1d; }

/* Footer */
.footer { background: #071f38; color: rgba(255,255,255,0.92); border-top: 1px solid rgba(255,255,255,0.10); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 44px; height: 44px; }
.footer-brand { font-weight: 900; letter-spacing: 0.6px; }
.footer-note { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin-top: 2px; }
.footer-right { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.footer-right a { color: rgba(255,255,255,0.92); text-decoration: none; font-weight: 800; }
.footer-right a:hover { text-decoration: underline; }

/* Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.55);
  padding: 18px;
}
.modal.show { display: grid; place-items: center; }
.modal-content {
  width: min(980px, 96vw);
  max-height: min(86vh, 920px);
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 22px 60px rgba(0,0,0,0.32);
}
.modal-large { width: min(1040px, 96vw); }
.modal-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-header h2 { font-size: 1.2rem; font-weight: 950; color: var(--ink); }
.modal-close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}
.modal-body { padding: 16px; }
.modal-body h3 { color: var(--ink); margin-top: 16px; margin-bottom: 8px; font-weight: 950; }
.modal-body p { color: #2b3b52; margin-bottom: 10px; line-height: 1.85; }
.modal-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: rgba(255,255,255,0.95);
}

/* Logs */
.log-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.log-content {
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  color: #d1e7ff;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  max-height: 560px;
  overflow: auto;
  white-space: pre-wrap;
}
.log-entry { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.log-entry:last-child { border-bottom: none; }
.log-time { color: rgba(209,231,255,0.65); }
.log-level-info { color: #7dd3fc; }
.log-level-warn { color: #fbbf24; }
.log-level-error { color: #fb7185; }
.log-level-success { color: #34d399; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .nav-menu {
    display: none;
    position: absolute;
    left: 20px; right: 20px;
    top: calc(100% + 10px);
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav-menu.show { display: flex; }
  .nav-menu a { padding: 10px 10px; border-radius: 12px; }
  .nav-menu a:hover { background: rgba(30,136,229,0.08); }
  .hero-metrics { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
