/* ═══════════════════════════════════════════════════════
   MAX HOLOD — WordPress + Tailwind CSS Theme
   Design System & Custom Styles v2.0
   ═══════════════════════════════════════════════════════ */

/* ─── WORDPRESS RESET — override WP defaults that break layout ─── */
body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove WP p margins ONLY from WP content wrappers — NOT from our custom HTML */
.page-content p,
.entry-content p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove WP-injected empty p tags */
#page .entry-content p:empty,
#page .page-content p:empty {
  display: none !important;
}

/* Remove WP autop <br> that breaks Tailwind layout */
#page .entry-content br,
#page .page-content br {
  display: none;
}

/* Override WP is-layout-flex / is-layout-grid gaps */
.is-layout-flex,
.is-layout-grid {
  gap: 0 !important;
}

/* Override WP default button styles */
.wp-element-button,
.wp-block-button__link {
  all: unset !important;
  box-sizing: border-box !important;
}

/* ─── CUSTOM SCROLLBAR ─── */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #6b7280; }

/* ─── SCROLL FADE-IN ANIMATIONS ─── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Stagger children delays */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 60ms; }
.stagger-children > *:nth-child(3) { transition-delay: 120ms; }
.stagger-children > *:nth-child(4) { transition-delay: 180ms; }
.stagger-children > *:nth-child(5) { transition-delay: 240ms; }
.stagger-children > *:nth-child(6) { transition-delay: 300ms; }
.stagger-children > *:nth-child(7) { transition-delay: 360ms; }
.stagger-children > *:nth-child(8) { transition-delay: 420ms; }

/* After reveal animation completes, reset transition-delay so hover is instant */
.reveal.revealed > * { transition-delay: 0ms !important; }

/* ─── CARD HOVER ─── */
.card-hover {
  transition: all 0.15s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}
.card-hover:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(59, 130, 246, 0.06);
}

/* ─── FORM CARD HOVER ─── */
.form-card {
  transition: box-shadow 0.15s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}
.form-card:hover {
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(59, 130, 246, 0.06);
}

/* ─── HERO BUTTONS ─── */
.btn-hero-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #2563eb; color: #fff; font-size: 1rem; font-weight: 700;
  height: 64px; padding: 0 2.5rem; border-radius: 0.875rem; border: none;
  cursor: pointer; outline: none; letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  -webkit-tap-highlight-color: transparent;
}
.btn-hero-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 0 24px rgba(37, 99, 235, 0.4); }
.btn-hero-primary:active { transform: translateY(0); box-shadow: 0 0 8px rgba(37, 99, 235, 0.3); }

.btn-hero-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #3D288F; color: #fff; font-size: 1rem; font-weight: 700;
  height: 64px; padding: 0 2.5rem; border-radius: 0.875rem;
  border: 2px solid #3D288F; cursor: pointer; outline: none;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  -webkit-tap-highlight-color: transparent; letter-spacing: 0.01em;
}
.btn-hero-outline:hover { background: #4c35a8; border-color: #4c35a8; transform: translateY(-2px); box-shadow: 0 0 24px rgba(61, 40, 143, 0.4); }
.btn-hero-outline:active { transform: translateY(0); box-shadow: 0 0 8px rgba(61, 40, 143, 0.3); }

/* ─── PRIMARY / OUTLINE / SUBMIT BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #2563eb; color: #fff; font-size: 0.9375rem; font-weight: 700;
  padding: 0.9375rem 2rem; height: auto; border-radius: 0.875rem; border: none;
  cursor: pointer; outline: none;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #2563eb; color: #fff; font-size: 0.9375rem; font-weight: 700;
  padding: 0.9375rem 2rem; height: auto; border-radius: 0.875rem; border: none;
  cursor: pointer; outline: none;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-outline:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }

.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; background: #2563eb; color: #fff; font-size: 1rem; font-weight: 700;
  padding: 0; height: 3.5rem; border-radius: 0.875rem; border: none;
  cursor: pointer; outline: none;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-submit:hover { background: #1d4ed8; box-shadow: 0 0 24px rgba(37, 99, 235, 0.35); }
.btn-submit:active { box-shadow: 0 0 8px rgba(37, 99, 235, 0.3); }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ─── SECTION LABEL ─── */
.section-label {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #2563eb; margin-bottom: 0.75rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  background: rgba(37, 99, 235, 0.06); border: 1px solid rgba(37, 99, 235, 0.12);
}

/* ─── GRADIENT HEADING ─── */
.gradient-heading {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAV LINK ─── */
.nav-link {
  position: relative; display: flex; align-items: center;
  height: 49px; padding: 0 1.25rem; font-size: 1rem; font-weight: 600;
  color: #0f356b; cursor: pointer; border-radius: 0; white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease;
  letter-spacing: 0.01em; text-decoration: none;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2.5px; background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 2px; transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-link:hover { color: #0a254a; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #2564eb; background-color: rgba(37, 100, 235, 0.06); }
.nav-link.active::after { width: 100%; }

/* ─── GRADIENT LOGO ─── */
.logo-text {
  background: linear-gradient(135deg, #225ADE, #3173ED);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 800; letter-spacing: -0.025em;
}

/* ─── HERO BADGE ─── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.625rem 1.5rem; border-radius: 9999px;
  background: rgba(49, 115, 237, 0.15); border: 1px solid rgba(49, 115, 237, 0.3);
  color: #93c5fd; font-size: 0.9375rem; font-weight: 600;
  letter-spacing: 0.04em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ─── HERO GLOW ─── */
.hero-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ─── INPUT STYLE ─── */
.input-clean {
  width: 100%; height: 3.25rem; padding: 0 1rem;
  border-radius: 0.75rem; border: 1px solid #e5e7eb;
  background: #ffffff; font-size: 0.9375rem; color: #111827;
  transition: all 0.2s ease; outline: none;
  box-sizing: border-box;
}
.input-clean::placeholder { color: #6b7280; }
.input-clean:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

/* ─── FORM REQUIRED ASTERISK ─── */
.form-required { color: #ef4444; transition: color 0.2s ease; }
.form-required.filled { color: #22c55e; }

/* ─── DIVIDER LINE ─── */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
}

/* ─── ICON LIGHT ─── */
.icon-light {
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 0.875rem;
  background-color: #eff6ff; color: #2563eb; flex-shrink: 0;
}

/* ─── CARD BASE ─── */
.card {
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem;
  transition: all 0.3s ease;
}
.card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-dark {
  background: #0f172a; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; padding: 1.5rem;
  transition: all 0.3s ease;
}
.card-dark:hover { border-color: rgba(59,130,246,0.3); box-shadow: 0 10px 25px -5px rgba(59,130,246,0.15); }

/* ─── ICON CONTAINERS ─── */
.icon-accent {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: #2563eb; color: #ffffff; flex-shrink: 0;
}
.icon-dark {
  display: flex; align-items: center; justify-content: center;
  width: 3.75rem; height: 3.75rem; border-radius: 0.875rem;
  background: #2563eb; border: none; color: #ffffff; flex-shrink: 0;
  transition: all 0.3s ease;
}
.card-dark:hover .icon-dark { background: #1d4ed8; }
.icon-large {
  display: flex; align-items: center; justify-content: center;
  width: 4.5rem; height: 4.5rem; border-radius: 1rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.35);
}

/* ─── STAT NUMBER ─── */
.stat-number {
  font-size: 2.5rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff, #93c5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── GLASS HEADER ─── */
.glass-header {
  background: #ffffff; border-bottom: 1px solid #f3f4f6;
}

/* ─── BTN DISABLED ─── */
.btn-primary:disabled, .btn-hero-primary:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ─── MOBILE MENU ─── */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.5); opacity: 0;
  transition: opacity 0.3s ease; pointer-events: none;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 340px; max-width: 90vw; z-index: 101;
  background: #fff; transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  overflow-y: auto;
}
.mobile-menu-panel.active { transform: translateX(0); }

/* ─── MOBILE NAV ACTIVE ITEM ─── */
.mobile-nav-active {
  color: #2563eb !important;
  background-color: #eff6ff;
  border-left: 3px solid #2563eb;
}

/* ─── FLOATING CALL BUTTON ─── */
.floating-pulse {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
}

/* ─── SCROLL INDICATOR ─── */
@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-indicator { animation: bounce-gentle 2s ease-in-out infinite; }

/* ─── SMOOTH SCROLL ─── */
html { scroll-behavior: smooth; }

/* ─── FONT ─── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── ACCORDION CHEVRON TRANSITION ─── */
.accordion-chevron {
  transition: transform 0.2s ease;
}
.accordion-chevron.open {
  transform: rotate(90deg);
}

/* ─── EXPAND/COLLAPSE TEXT ─── */
.text-expandable {
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.text-expand-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2rem;
  background: linear-gradient(to top, white 0%, transparent 100%);
  pointer-events: none;
}

/* ─── TAB BUTTONS ─── */
.tab-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
}
.tab-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}
.tab-btn:hover:not(.active) {
  background: #f9fafb;
  border-color: #d1d5db;
}
