/* ════════════════════════════════════════════════════════════
   ENTAPPS — MAIN STYLES
   AOS overrides, feature lists, product solution blocks,
   security section, IT management section, partners, etc.
   ════════════════════════════════════════════════════════════ */

/* ─── AOS Overrides ──────────────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ─── Product Solution Cards ──────────────────────────────── */
.product-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--color-brand-teal);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand-h);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.product-card:hover::before { opacity: 1; }

.product-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,184,107,0.10), rgba(0,124,168,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-brand-teal);
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.product-card-vendor {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-2);
}

.product-card-title {
  font-weight: var(--fw-bold);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--lh-snug);
}

.product-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-5);
  flex: 1;
}

.product-card-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.product-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.product-feature-item i {
  color: var(--color-brand-green);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.product-card-link {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-brand-teal);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  transition: gap var(--transition-fast);
}
.product-card:hover .product-card-link { gap: var(--space-3); }

/* ─── Security Dashboard Block ─────────────────────────────── */
.security-dashboard-mock {
  background: #0f1923;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-2xl);
}

.security-dash-header {
  background: #161f2e;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.security-dash-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.80);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.security-dash-title i { color: var(--color-brand-green); }

.security-dash-status {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(0,184,107,0.15);
  color: var(--color-brand-green);
  border: 1px solid rgba(0,184,107,0.25);
}

.security-dash-body {
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.security-metric-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.security-metric-label {
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: rgba(255,255,255,0.40);
  margin-bottom: var(--space-2);
}

.security-metric-value {
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.security-metric-value--green  { color: var(--color-brand-green); }
.security-metric-value--orange { color: #F6AD55; }
.security-metric-value--red    { color: #FC8181; }

.security-metric-change {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}

/* Threat feed */
.threat-feed {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.threat-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.threat-severity {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.threat-severity--high   { background: #FC8181; box-shadow: 0 0 6px rgba(252,129,129,0.5); }
.threat-severity--medium { background: #F6AD55; }
.threat-severity--low    { background: var(--color-brand-green); }

.threat-name { font-size: var(--text-xs); color: rgba(255,255,255,0.70); flex: 1; }
.threat-time { font-size: 0.65rem; color: rgba(255,255,255,0.35); font-family: var(--font-mono); white-space: nowrap; }

/* ─── Backup Progress / Bar Charts (mock) ─────────────────── */
.backup-stat-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stat-bar-item {}
.stat-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  margin-bottom: var(--space-1);
}
.stat-bar-label { color: var(--color-text-secondary); font-weight: var(--fw-medium); }
.stat-bar-value { color: var(--color-text-primary); font-weight: var(--fw-bold); }

.stat-bar-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-bg-surface);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-brand-h);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.stat-bar-fill.animated { /* JS sets width */ }

/* ─── IT Management Monitor Mockup ─────────────────────────── */
.rmm-dashboard {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.rmm-dash-sidebar {
  width: 220px;
  background: #f8fafc;
  border-right: 1px solid var(--color-border);
  padding: var(--space-5);
  flex-shrink: 0;
}

.rmm-dash-sidebar-title {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.rmm-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-bottom: 2px;
}
.rmm-nav-item i { font-size: 0.9rem; color: var(--color-text-muted); }
.rmm-nav-item.active {
  background: linear-gradient(135deg, rgba(0,184,107,0.10), rgba(0,124,168,0.10));
  color: var(--color-brand-teal);
  font-weight: var(--fw-semibold);
}
.rmm-nav-item.active i { color: var(--color-brand-teal); }

/* Status dots */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot--online  { background: var(--color-brand-green); }
.status-dot--warning { background: #F6AD55; }
.status-dot--offline { background: #FC8181; }
.status-dot--unknown { background: var(--color-text-muted); }

/* ─── FAQ Accordion ───────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-3);
  transition: all var(--transition-fast);
}
.faq-item:hover { border-color: var(--color-brand-teal); }

.faq-question {
  padding: var(--space-5) var(--space-6);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--color-bg-muted); }

.faq-chevron {
  font-size: 0.9rem;
  color: var(--color-brand-teal);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  margin: 0 var(--space-6);
}

/* ─── Contact Form ────────────────────────────────────────── */
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,184,107,0.10), rgba(0,124,168,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-teal);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.contact-info-value {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

/* ─── Map Embed ────────────────────────────────────────────── */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 350px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ─── 404 / Error Page ────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16);
}

.error-code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: var(--fw-extrabold);
  font-family: var(--font-heading);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-4);
}

/* ─── Swiper Custom Styles ────────────────────────────────── */
.swiper-pagination-bullet {
  background: var(--color-border-strong);
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: var(--color-brand-teal);
  transform: scale(1.3);
}

.swiper-button-next,
.swiper-button-prev {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  color: var(--color-brand-teal);
}
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 1rem; }
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--color-brand-teal);
  color: #fff;
  border-color: var(--color-brand-teal);
}

/* ─── Bootstrap Overrides ─────────────────────────────────── */
.form-check-input:checked {
  background-color: var(--color-brand-teal);
  border-color: var(--color-brand-teal);
}

.alert-success { background: rgba(0,184,107,0.10); border-color: rgba(0,184,107,0.25); color: #007a47; }
.alert-danger  { background: rgba(229,62,62,0.10); border-color: rgba(229,62,62,0.25); color: #c53030; }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up   { animation: fadeInUp   0.6s ease both; }
.animate-fade-left { animation: fadeInLeft  0.6s ease both; }
.animate-fade-right{ animation: fadeInRight 0.6s ease both; }
.animate-scale-in  { animation: scaleIn     0.5s ease both; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ─── Loading Spinner ────────────────────────────────────── */
.spinner-brand {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-brand-teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
