/* AISCO - AI Integration Services Company */
/* Shared Styles */

:root {
  --primary: #0b2347;
  --primary-light: #0f2d5c;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #dbeafe;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 640px;
}

/* Header */
.header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav { display: flex; gap: 32px; align-items: center; }

.nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover, .nav a.active { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  color: #fff;
  padding: 100px 0 120px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.card .price {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

/* Why / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Alerts / Messages */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: none;
}

.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.alert.show { display: block; }

/* Quote Builder */
.quote-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.quote-service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.quote-service-item:hover { border-color: var(--accent); }

.quote-service-item.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.quote-service-item input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.quote-service-item .service-label { font-weight: 600; font-size: 0.95rem; }
.quote-service-item .service-price { font-size: 0.85rem; color: var(--text-light); }

.company-size-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.size-option {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.size-option:hover { border-color: var(--accent); }
.size-option.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

.quote-estimate {
  background: var(--primary);
  color: #fff;
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  margin: 32px 0;
}

.quote-estimate .range {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 12px 0;
}

.quote-estimate .note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Admin */
.admin-login {
  max-width: 400px;
  margin: 80px auto;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-login h1 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leads-table-wrapper {
  overflow-x: auto;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.leads-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.leads-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.leads-table tr:hover { background: var(--bg-alt); }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-new { background: #dbeafe; color: #1e40af; }
.status-contacted { background: #fef3c7; color: #92400e; }
.status-qualified { background: #d1fae5; color: #065f46; }
.status-closed { background: #e2e8f0; color: #475569; }

.lead-detail {
  display: none;
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 8px;
}

.lead-detail.show { display: block; }

.lead-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #fff; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
  .hero { padding: 60px 0 80px; }

  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }

  .nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 16px 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }

  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .company-size-options { flex-direction: column; }
  .quote-services { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  .header, .footer, .btn, .nav { display: none; }
  .section { padding: 24px 0; }
}

/* Hero Small (subpages) */
.hero-sm {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  color: #fff;
  padding: 48px 0 56px;
  text-align: center;
}

.hero-sm h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-sm p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto;
}

/* Contact page grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--primary);
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Dashboard header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-top: 32px;
}

.dashboard-header h1 {
  font-size: 1.5rem;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
}

.modal-close:hover { color: var(--text); }

.detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.detail-label {
  font-weight: 600;
  color: var(--text-light);
}

/* Nav toggle hamburger lines */
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* Card CTA link */
.card .btn {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-sm h1 { font-size: 1.75rem; }
}

/* Acronym breakdown */
.acronym-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.acronym-item {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}

.acronym-letter {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.acronym-word {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.acronym-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.hero-brand {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Service pillar labels */
.pillar-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pillar-security { background: #fef3c7; color: #92400e; }
.pillar-consulting { background: #dbeafe; color: #1e40af; }
.pillar-operations { background: #d1fae5; color: #065f46; }

@media (max-width: 768px) {
  .acronym-grid { grid-template-columns: 1fr; gap: 16px; }
  .acronym-letter { font-size: 2rem; }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }
