/* ============================================================
   downloads.css  –  Downloads page for NutriconBio Life
   ============================================================ */

/* ── PAGE HERO ──────────────────────────────────────────── */
.downloads-hero {
  background: linear-gradient(135deg, #0D2B55 0%, #1a3f75 55%, #1E7A5A 100%);
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.downloads-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.downloads-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.downloads-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.downloads-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #a8d8c8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.downloads-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.downloads-hero h1 span { color: #4ecda4; }
.downloads-hero p { font-size: 16px; color: #b8d8f0; line-height: 1.7; }

/* Breadcrumb */
.breadcrumb {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 24px; font-size: 13px; color: #5a7a9a;
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: #2E5FA3; font-weight: 500; transition: color .2s; }
.breadcrumb a:hover { color: #1E7A5A; }
.breadcrumb .sep { color: #9ca3af; }

/* ── MAIN WRAP ───────────────────────────────────────────── */
.downloads-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* ── CATEGORY FILTER ────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.filter-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.filter-btn.active {
  background: linear-gradient(135deg, #0D2B55, #1E7A5A);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(13,43,85,0.25);
}

/* ── PRODUCT GRID (3 COLUMNS) ───────────────────────────── */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

/* Product card */
.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 3px 16px rgba(14,43,85,0.07);
  transition: border-color 0.28s, transform 0.28s, box-shadow 0.28s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: #2E5FA3;
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(46,95,163,0.15);
}

/* Card image */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #e8f0fc, #d4ede6);
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  display: block;
}
.product-card:hover .card-img-wrap img {
  transform: scale(1.07);
}
.card-category-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(13,43,85,0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Card body */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-name {
  font-size: 18px;
  font-weight: 800;
  color: #0D2B55;
  margin-bottom: 12px;
  line-height: 1.3;
}
.card-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f4f8;
}

/* Download Button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2E5FA3, #1E7A5A);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(46,95,163,0.3);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,95,163,0.4);
}

/* ── MODAL OVERLAY (FORM) ───────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,43,85,0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn 0.25s ease;
}
.modal-overlay.open { display: flex; }

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(13,43,85,0.3);
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: #f3f4f6;
  border: none;
  color: #4b5563;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.modal-close:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Modal Form Content */
.modal-form-header {
  padding: 32px 32px 16px;
  text-align: center;
}
.modal-form-icon {
  width: 60px; height: 60px;
  background: #eef3fb;
  color: #2E5FA3;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  margin: 0 auto 16px;
}
.modal-form-title {
  font-size: 22px;
  font-weight: 800;
  color: #0D2B55;
  margin-bottom: 8px;
}
.modal-form-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.modal-form-body {
  padding: 0 32px 32px;
}
.form-group {
  margin-bottom: 16px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: #2E5FA3;
  box-shadow: 0 0 0 4px rgba(46,95,163,0.1);
}

.btn-submit-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2E5FA3, #1E7A5A);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 16px rgba(46,95,163,0.25);
  font-family: 'Inter', sans-serif;
  margin-top: 10px;
}
.btn-submit-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(46,95,163,0.35);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) { 
  .downloads-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 640px)  {
  .downloads-grid { grid-template-columns: 1fr; }
  .modal-form-header { padding: 24px 24px 12px; }
  .modal-form-body { padding: 0 24px 24px; }
}
