:root {
  --brand: #3B82F6;
  --brand-2: #06B6D4;
  --brand-dark: #1E3A8A;
  --ink: #1E3A8A;
  --muted: #64748B;
  --bg: #F8FAFC;
  --card: #ffffff;
  --line: #E2E8F0;
  --accent: #EBF8FF;
  --maxw: 1160px;
  --radius: 14px;
  --pad: 20px;
  --primary: #3B82F6;
  --primary-dark: #1E3A8A;
  --primary-light: #06B6D4;
  --text: #1E3A8A;
}

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

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Top Navigation Bar */
.top-nav {
  background: white;
  padding: 16px var(--pad);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 18px;
}

.nav-logo::before {
  content: '●';
  color: var(--primary);
  font-size: 14px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-contact {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-contact:hover {
  background: var(--primary-dark);
  color: white;
}

/* Main Header Section */
header {
  background: var(--accent);
  color: var(--text);
  padding: 80px var(--pad) 60px;
}

.header-tag {
  background: white;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-weight: bold;
  letter-spacing: 0.5px;
  font-size: 18px;
  color: var(--text);
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(22px, 3.2vw, 34px);
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

p.lead {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 24px;
  max-width: 60ch;
}

a.btn {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

a.btn:hover, button.btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--brand-dark));
}

a.btn.secondary {
  background: white;
  border: 1.5px solid #e5e7eb;
  color: var(--text);
}

a.btn.secondary:hover {
  background: #f9fafb;
  border-color: var(--primary);
}

button.btn, button[type="submit"] {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

button.btn:hover, button[type="submit"]:hover {
  background: var(--primary-dark);
}

section {
  padding: 60px var(--pad);
}

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

ul.list {
  padding-left: 18px;
  margin-top: 6px;
}

ul.list li {
  margin-bottom: 8px;
}

.kpis {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.kpi {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--primary-light);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.blockquote {
  background: var(--accent);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.muted {
  color: #555;
}

.tiny {
  font-size: 12px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: var(--text);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox styling */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-group label {
  margin: 0;
  font-size: 14px;
  cursor: pointer;
}

/* Flash Messages */
#flash-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
}

.flash {
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.flash-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flash-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

.flash-close:hover {
  opacity: 1;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

footer {
  background: var(--primary-dark);
  color: #dceddf;
  padding: 40px var(--pad);
}

footer a {
  color: #dceddf;
  text-decoration: underline;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Image responsiveness */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile responsiveness improvements */
@media (max-width: 799px) {
  section img {
    height: 200px !important;
  }
  
  .nav-menu {
    display: none;
  }
  
  header {
    padding: 60px var(--pad) 40px;
  }
  
  section {
    padding: 40px var(--pad);
  }
  
  .card {
    padding: 20px;
  }
  
  #flash-messages {
    left: 20px;
    right: 20px;
    max-width: none;
  }
  
  .logo {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .logo img {
    height: 45px;
  }
}
