/* ============================================
   components.css v4 — No Gradients
   Clean minimal solid-color system
   ============================================ */

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  border: 1px solid transparent;
  line-height: 1;
}

/* Primary — solid dark charcoal, NO gradient */
.btn-primary {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}
.btn-primary:hover {
  background: #1E293B;
  border-color: #1E293B;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* btn-gradient is now identical to btn-primary — no gradient */
.btn-gradient,
.btn-primary.btn-gradient {
  background: var(--text-primary) !important;
  border-color: var(--text-primary) !important;
  box-shadow: none !important;
  color: #fff !important;
}
.btn-gradient:hover,
.btn-primary.btn-gradient:hover {
  background: #1E293B !important;
  border-color: #1E293B !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm) !important;
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-medium);
}
.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--bg-muted);
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover { box-shadow: var(--shadow-sm); }

.btn-lg   { padding: 13px 28px; font-size: var(--text-base); }
.btn-sm   { padding: 7px 16px;  font-size: var(--text-xs); }
.btn-full { width: 100%; }

.btn-arrow { display: inline-block; transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* WhatsApp CTA variant */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,211,102,.25);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-muted);
  position: relative;
  transition: var(--transition);
}
/* Underline — solid dark, NO gradient */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
  border-radius: var(--radius-full);
}
.nav-link:hover,
.nav-link.active          { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after   { transform: scaleX(1); }

.nav-admin {
  color: var(--text-muted) !important;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}
.nav-admin:hover { background: var(--bg-muted); color: var(--text-primary) !important; }
.nav-admin::after { display: none !important; }

/* Nav right grouping */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 100vw);
  height: 100vh;
  background: var(--bg-surface);
  z-index: calc(var(--z-nav) + 10);
  padding: 80px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  transition: right 0.35s var(--ease);
}
.mobile-menu.active { right: 0; }

.mobile-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: var(--transition);
}
.mobile-close:hover { background: var(--text-primary); color: #fff; border-color: transparent; }

.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  display: block;
}
/* Hover — solid dark underline, no color flash */
.mobile-nav-link:hover { color: var(--text-secondary); padding-left: 8px; }

/* Mobile overlay backdrop */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9,9,11,.2);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-nav) + 9);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-backdrop.active { opacity: 1; visibility: visible; }

/* ========== FORM ELEMENTS ========== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(15,23,42,.07);
  outline: none;
}
.form-group input.error,
.form-group textarea.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-error {
  font-size: var(--text-xs);
  color: #EF4444;
  font-weight: 600;
  min-height: 16px;
}

/* Success message — neutral, no green gradient */
.form-success {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-top: 6px;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,9,11,.35);
  backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  transform: scale(0.94) translateY(20px);
  transition: transform .3s var(--ease-bounce);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: var(--text-xl); font-weight: 700; }

.modal-close,
.lightbox-close {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close:hover,
.lightbox-close:hover { background: var(--text-primary); color: #fff; border-color: transparent; }

.modal-form { display: flex; flex-direction: column; gap: 16px; }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,9,11,.55);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }

.lightbox {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border);
  transform: scale(0.93);
  transition: transform .3s var(--ease-bounce);
}
.lightbox-overlay.active .lightbox { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 10;
}

.lightbox-body { padding: 28px; }

/* Results block — neutral, no green tint */
.lightbox-results {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 18px;
}
.lightbox-results h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.lightbox-results p { color: var(--text-secondary); font-size: var(--text-sm); margin: 0; }

/* ========== SOCIAL LINKS ========== */
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }

.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-muted);
}
.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.social-link:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ========== PORTFOLIO TAGS ========== */
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.portfolio-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}
