/* static/css/pages/home.css */
/* Modern Public Homepage Styles */

.nptor-home {
  color: var(--nptor-text, #0f172a);
}

.nptor-section {
  padding: 3.5rem 1.25rem;
}

.nptor-hero-section {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.nptor-container {
  max-width: 1180px;
  margin: 0 auto;
}

/* 1. Compact Hero */
.nptor-hero {
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--nptor-surface, #ffffff) 0%, var(--nptor-surface-soft, #f8fafc) 100%);
  overflow: hidden;
  border: 1px solid var(--nptor-border, #e2e8f0);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.nptor-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--nptor-primary, #2563eb);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nptor-hero-title {
  max-width: 780px;
  margin: 0.85rem auto;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 850;
  color: var(--nptor-text, #0f172a);
}

.nptor-hero-subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--nptor-text-muted, #64748b);
}

/* 2. Responsive Grid */
.nptor-grid {
  display: grid;
  gap: 1.5rem;
}

.nptor-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nptor-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nptor-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nptor-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--nptor-border, #e2e8f0);
  border-radius: 1rem;
  background: var(--nptor-surface, #ffffff);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nptor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

/* Service Card Styles */
.nptor-service-card {
  display: flex;
  flex-direction: column;
}

.nptor-service-card h3 {
  font-weight: 800;
  color: var(--nptor-text, #0f172a);
}

.nptor-service-card p {
  color: var(--nptor-text-muted, #64748b);
  line-height: 1.6;
  font-size: 0.95rem;
}

.nptor-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--nptor-primary, #2563eb);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nptor-service-card:hover .nptor-service-icon {
  background: var(--nptor-primary, #2563eb);
  color: #ffffff;
  transform: scale(1.05);
}

/* 3. NPTOR Store Banner */
.nptor-store-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 2.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.12) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nptor-store-banner:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12);
}

.nptor-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--nptor-primary, #2563eb);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.nptor-store-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.65rem;
}

.nptor-store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--nptor-primary, #2563eb);
  color: #ffffff;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nptor-store-desc {
  font-weight: 600;
  color: var(--nptor-text, #0f172a);
}

.nptor-store-subtext {
  color: var(--nptor-text-muted, #64748b);
  line-height: 1.6;
  max-width: 680px;
  font-size: 0.95rem;
}

.nptor-store-action {
  flex-shrink: 0;
}

/* 4. Bottom CTA */
.nptor-cta {
  padding: 3rem 2rem;
  border-radius: 1.25rem;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.22);
}

.nptor-cta h2,
.nptor-cta p {
  color: #ffffff !important;
}

.nptor-cta p {
  opacity: 0.95;
  font-size: 1.05rem;
}

/* =====================================================
   DARK MODE OVERRIDES
   ===================================================== */

html[data-theme="dark"] .nptor-hero,
:root[data-theme="dark"] .nptor-hero {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  border-color: #334155;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .nptor-hero-title,
:root[data-theme="dark"] .nptor-hero-title {
  color: #f8fafc;
}

html[data-theme="dark"] .nptor-hero-subtitle,
:root[data-theme="dark"] .nptor-hero-subtitle {
  color: #94a3b8;
}

html[data-theme="dark"] .nptor-eyebrow,
:root[data-theme="dark"] .nptor-eyebrow {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

html[data-theme="dark"] .nptor-card,
:root[data-theme="dark"] .nptor-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .nptor-card:hover,
:root[data-theme="dark"] .nptor-card:hover {
  border-color: #475569;
}

html[data-theme="dark"] .nptor-service-card h3,
:root[data-theme="dark"] .nptor-service-card h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .nptor-service-card p,
:root[data-theme="dark"] .nptor-service-card p {
  color: #94a3b8;
}

html[data-theme="dark"] .nptor-service-icon,
:root[data-theme="dark"] .nptor-service-icon {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

html[data-theme="dark"] .nptor-service-card:hover .nptor-service-icon,
:root[data-theme="dark"] .nptor-service-card:hover .nptor-service-icon {
  background: #2563eb;
  color: #ffffff;
}

html[data-theme="dark"] .nptor-store-banner,
:root[data-theme="dark"] .nptor-store-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: #334155;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .nptor-store-badge,
:root[data-theme="dark"] .nptor-store-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

html[data-theme="dark"] .nptor-store-desc,
:root[data-theme="dark"] .nptor-store-desc {
  color: #f8fafc;
}

html[data-theme="dark"] .nptor-store-subtext,
:root[data-theme="dark"] .nptor-store-subtext {
  color: #94a3b8;
}

/* =====================================================
   RESPONSIVE BEHAVIOR
   ===================================================== */

@media (max-width: 900px) {
  .nptor-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nptor-store-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nptor-store-action {
    width: 100%;
  }

  .nptor-store-action .button {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .nptor-section {
    padding: 2.5rem 1rem;
  }

  .nptor-hero {
    padding: 2.25rem 1.25rem;
  }

  .nptor-grid-2,
  .nptor-grid-3,
  .nptor-grid-4 {
    grid-template-columns: 1fr;
  }

  .nptor-store-banner {
    padding: 1.75rem 1.25rem;
  }

  .nptor-store-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
