/* ═══════════════════════════════════════════════════════════
   PERAVIX — Design System: Components
   Sections · Cards · Forms · Footer · Animations · Responsive
   ═══════════════════════════════════════════════════════════ */

/* ── TRUST BAR (Soft Light) ── */
.trust-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 32px;
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-item .t-icon { color: var(--brand-primary); font-size: 18px; }

/* ── LAYOUT HELPERS ── */
.section-wrap { padding: 120px 32px; background: var(--bg-main); }
.section-wrap-alt { padding: 120px 32px; background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; }

/* ── SECTION LABELS & HEADINGS ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.section-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header-center .section-label { justify-content: center; }

/* ── SERVICE CARDS GRID ── */
.services-grid, .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card, .card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card::after, .card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-tertiary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover, .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::after, .card:hover::after { transform: scaleX(1); }

.service-icon, .card-icon {
  width: 56px; height: 56px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: var(--text-main);
}

.service-card:hover .service-icon, .card:hover .card-icon {
  background: var(--brand-glow);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--brand-primary);
  transform: scale(1.05);
}

.service-title, .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-description, .card-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.service-features { list-style: none; margin-bottom: 32px; }

.service-features li {
  padding: 6px 0 6px 24px;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  line-height: 1.5;
  font-weight: 500;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 6px;
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 800;
}

.service-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.service-link:hover { gap: 10px; color: var(--brand-secondary); }

/* ── TWO-COL FEATURE LAYOUT ── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-grid.reverse { direction: rtl; }
.split-grid.reverse > * { direction: ltr; }

.split-content > p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}

.feature-list { display: grid; gap: 20px; }

.feature-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
  width: 52px; height: 52px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background: var(--brand-glow);
  border-color: rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}

.feature-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.split-visual {
  position: relative;
  height: 600px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.split-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 80px;
  box-shadow: var(--shadow-md);
}

.stats-row .stat-cell {
  background: var(--bg-surface);
  padding: 48px 32px;
  text-align: center;
}

.stats-row .stat-cell .num {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stats-row .stat-cell .lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── CTA BAND (Dark Enterprise) ── */
.cta-band {
  padding: 120px 32px;
  background: var(--dark-main);
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--border-dark);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-band .section-label {
  color: var(--brand-tertiary);
}

.cta-band h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-band p {
  font-size: 20px;
  color: var(--dark-text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-info > p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact-methods { display: grid; gap: 20px; }

.contact-method {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}

.contact-icon {
  width: 52px; height: 52px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
  background: var(--brand-glow);
  border-color: rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}

.contact-details h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.contact-details p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.contact-details a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-details a:hover { text-decoration: underline; color: var(--brand-secondary); }

/* ── FORM ── */
.form-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.form-wrap h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.form-group { margin-bottom: 24px; }

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-light); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-glow);
  background: var(--bg-surface);
}

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

.form-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--text-main);
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.form-submit:hover {
  background: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.success-message, .error-message {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 24px;
  font-size: 15px;
  text-align: center;
  font-weight: 600;
}

.success-message {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ── FOOTER (Dark Enterprise) ── */
footer {
  background: var(--dark-main);
  color: var(--dark-text);
  padding: 100px 32px 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand img { height: 40px; margin-bottom: 24px; filter: brightness(0) invert(1); }

.footer-brand p {
  font-size: 16px;
  color: var(--dark-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 320px;
}

.footer-reg {
  font-size: 14px;
  color: var(--dark-text-muted);
  line-height: 1.6;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  max-width: 320px;
}

.footer-reg strong { color: #ffffff; font-weight: 600; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 16px; }

.footer-col a {
  color: var(--dark-text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 14px;
  color: var(--dark-text-muted);
}

.footer-legal {
  display: flex;
  gap: 32px;
}

.footer-legal a {
  font-size: 14px;
  color: var(--dark-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: #ffffff; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 900px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  z-index: 2000;
  display: none;
  box-shadow: var(--shadow-lg);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.cookie-banner p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  min-width: 280px;
  margin: 0;
}

.cookie-banner p a { color: var(--brand-primary); font-weight: 600; text-decoration: underline; }

.cookie-actions { display: flex; gap: 12px; }

/* ── PROSE (Privacy/Terms) ── */
.prose-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.prose-wrap h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin: 64px 0 24px;
  letter-spacing: -0.02em;
}

.prose-wrap h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 40px 0 16px;
}

.prose-wrap p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.prose-wrap ul, .prose-wrap ol {
  padding-left: 24px;
  margin-bottom: 32px;
}

.prose-wrap li {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.prose-wrap a { color: var(--brand-primary); font-weight: 600; text-decoration: underline; }
.prose-wrap a:hover { color: var(--brand-secondary); }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid, .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  header { width: 100%; top: 0; border-radius: 0; border-top: none; border-left: none; border-right: none; }
  header.scrolled { top: 0; }
  .header-container { padding: 0 20px; }
  
  .nav-desktop { display: none; }
  .mobile-menu-toggle { display: block; }

  .hero-container { grid-template-columns: 1fr; gap: 48px; padding: 120px 20px 60px; }
  .hero-card-stack { height: 400px; transform: none; }
  .hero-card-stack:hover { transform: none; }
  
  .hero-content h1 { font-size: clamp(36px, 10vw, 48px); }

  .section-wrap, .section-wrap-alt { padding: 80px 20px; }
  .trust-bar { padding: 20px; }

  .split-grid { grid-template-columns: 1fr; gap: 48px; }
  .split-grid.reverse { direction: ltr; }
  .split-visual { height: 360px; }

  .services-grid, .cards-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 32px 24px; }

  .cta-band { padding: 80px 20px; }
  
  .footer { padding-top: 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }

  .page-hero { padding: 120px 20px 80px; }
  
  .cookie-banner { bottom: 0; width: 100%; border-radius: 0; padding: 20px; }
}
