/* ============================================
   International DL — Stitch Theme Design System
   ============================================ */
:root {
  --color-primary: #1b2a4b;
  --color-primary-light: #243460;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-bg-light: #f6f7f8;
  --color-bg-dark: #14171e;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-green-500: #22c55e;
  --color-white: #ffffff;
  --font-display: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.15), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --max-width: 80rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body { font-family: var(--font-display); font-size: 1rem; line-height: 1.6; color: var(--color-slate-900); background-color: var(--color-bg-light); -webkit-font-smoothing: antialiased; max-width: 100%; overflow-x: hidden; position: relative; }

.idp-icon {
    width: 1.25em;
    height: 1.25em;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem; font-family: var(--font-display); font-size: 0.9375rem;
  font-weight: 700; border-radius: var(--radius-md); border: 2px solid transparent;
  transition: all var(--transition-base); cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-accent); color: var(--color-primary); box-shadow: 0 4px 14px 0 rgba(245,158,11,0.35); }
.btn-primary:hover { background: var(--color-accent-hover); box-shadow: 0 6px 20px 0 rgba(245,158,11,0.45); }
.btn-outline-white { border-color: rgba(255,255,255,0.35); color: var(--color-white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-outline-primary { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline-primary:hover { background: var(--color-primary); color: var(--color-white); }
.btn-lg { height: 3rem; padding: 0 1.75rem; font-size: 1rem; min-width: 180px; border-radius: var(--radius-lg); }

/* --- Form Elements --- */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--color-slate-700); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.75rem 1rem; font-family: var(--font-display); font-size: 0.9375rem;
  color: var(--color-slate-900); background: var(--color-white); border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-md); outline: none; transition: border-color var(--transition-base), box-shadow var(--transition-base); appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(27,42,75,0.12);
}
.form-input::placeholder { color: var(--color-slate-400); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; padding-right: 2.5rem;
}

/* --- Cards --- */
.card { background: var(--color-white); border: 1px solid var(--color-slate-200); border-radius: var(--radius-2xl); padding: 2rem; box-shadow: var(--shadow-md); }
.card-featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-2xl); }

/* --- Badges --- */
.badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-white { background: rgba(255,255,255,0.12); color: var(--color-white); backdrop-filter: blur(8px); }
.badge-accent { background: var(--color-accent); color: var(--color-primary); }

/* --- Section --- */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.25rem; font-weight: 800; color: var(--color-primary); line-height: 1.2; }
.section-header p { margin-top: 1rem; color: var(--color-slate-500); font-size: 1.0625rem; }

/* --- Patterns & Backgrounds --- */
.world-map-bg { background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.06) 1px, transparent 0); background-size: 40px 40px; }

/* --- Animations --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } 50% { box-shadow: 0 0 0 8px rgba(245,158,11,0.2); } }
.animate-fade-up { animation: fadeInUp 0.6s ease both; }
.animate-fade-in { animation: fadeIn 0.5s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* --- Wizard Progress --- */
.wizard-progress { display: flex; align-items: flex-start; }
.wizard-step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.wizard-step-item:not(:last-child)::after { content: ''; position: absolute; top: 1.25rem; left: 50%; width: 100%; height: 2px; background: var(--color-slate-200); z-index: 0; transition: background var(--transition-slow); }
.wizard-step-item.done::after { background: var(--color-accent); }
.wizard-step-circle { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--color-slate-200); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; background: var(--color-white); color: var(--color-slate-400); position: relative; z-index: 1; transition: all var(--transition-slow); }
.wizard-step-item.active .wizard-step-circle { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-white); box-shadow: 0 0 0 4px rgba(27,42,75,0.15); }
.wizard-step-item.done .wizard-step-circle { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-primary); }
.wizard-step-label { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--color-slate-400); text-align: center; }
.wizard-step-item.active .wizard-step-label { color: var(--color-primary); }
.wizard-step-item.done .wizard-step-label { color: var(--color-accent-hover); }

/* --- Upload Zone --- */
.upload-zone { border: 2px dashed var(--color-slate-300); border-radius: var(--radius-xl); padding: 3rem 2rem; text-align: center; cursor: pointer; transition: all var(--transition-base); background: var(--color-bg-light); }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--color-primary); background: rgba(27,42,75,0.04); }
.upload-zone.has-file { border-color: var(--color-green-500); background: rgba(34,197,94,0.04); }
.upload-preview { display: none; margin-top: 1rem; }
.upload-preview img { max-height: 140px; border-radius: var(--radius-lg); margin: 0 auto; object-fit: cover; box-shadow: var(--shadow-md); }

/* --- FAQ --- */
.faq-item { border: 1px solid var(--color-slate-200); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition-base); }
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; background: var(--color-white); font-weight: 700; font-size: 0.9375rem; color: var(--color-slate-900); cursor: pointer; text-align: left; gap: 1rem; transition: background var(--transition-base); }
.faq-trigger:hover { background: var(--color-bg-light); }
.faq-trigger.open { background: var(--color-primary); color: var(--color-white); }
.faq-trigger .faq-icon { flex-shrink: 0; transition: transform var(--transition-base); }
.faq-trigger.open .faq-icon { transform: rotate(180deg); color: var(--color-accent); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); background: var(--color-white); }
.faq-body.open { max-height: 300px; }
.faq-body-inner { padding: 1rem 1.5rem 1.25rem; font-size: 0.9375rem; color: var(--color-slate-600); line-height: 1.7; }

/* --- Country Search --- */
.country-search-box { position: relative; max-width: 520px; width: 100%; }
.country-search-input { width: 100%; padding: 1rem 1.25rem 1rem 3.25rem; font-size: 1rem; font-family: var(--font-display); border: 2px solid rgba(255,255,255,0.2); border-radius: var(--radius-full); background: rgba(255,255,255,0.12); color: var(--color-white); outline: none; backdrop-filter: blur(12px); transition: all var(--transition-base); }
.country-search-input::placeholder { color: rgba(255,255,255,0.5); }
.country-search-input:focus { border-color: var(--color-accent); background: rgba(255,255,255,0.18); }
.country-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); }
.country-results { position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0; background: var(--color-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl); overflow: hidden; z-index: 100; max-height: 260px; overflow-y: auto; display: none; }
.country-results.show { display: block; }
.country-result-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; cursor: pointer; font-size: 0.9375rem; transition: background var(--transition-fast); color: var(--color-slate-900); }
.country-result-item:hover { background: var(--color-bg-light); }
.country-result-item .flag { font-size: 1.375rem; }
.country-result-item .country-name { font-weight: 600; }
.country-result-item .country-status { margin-left: auto; font-size: 0.75rem; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: var(--radius-full); background: rgba(34,197,94,0.12); color: #16a34a; }

/* --- Pricing --- */
.pricing-card { display: flex; flex-direction: column; border-radius: var(--radius-2xl); padding: 2.5rem 2rem; border: 1px solid var(--color-slate-200); background: var(--color-white); transition: transform var(--transition-slow), box-shadow var(--transition-slow); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pricing-card.featured { border: 3px solid var(--color-accent); background: var(--color-primary); box-shadow: var(--shadow-2xl); }

/* --- Payment --- */
.payment-method-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem; border: 2px solid var(--color-slate-200); border-radius: var(--radius-lg); background: var(--color-white); cursor: pointer; font-weight: 600; font-size: 0.9375rem; color: var(--color-slate-700); transition: all var(--transition-base); font-family: var(--font-display); }
.payment-method-btn:hover, .payment-method-btn.selected { border-color: var(--color-primary); background: rgba(27,42,75,0.05); color: var(--color-primary); }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 1000; background: white; border-bottom: 1px solid var(--color-slate-200); box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: box-shadow var(--transition-base); }
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 1rem; padding: 0.75rem 1rem; }

.site-logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; text-decoration: none; }
.site-logo__icon { width: 2rem; height: 2rem; max-height: 2rem; background: var(--color-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.site-logo__text { font-size: 1.25rem; font-weight: 800; color: var(--color-primary); letter-spacing: -0.02em; white-space: nowrap; }

.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav__link { font-size: 0.9rem; font-weight: 600; color: var(--color-slate-600); transition: color 0.2s; white-space: nowrap; }
.header-nav__link:hover { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header-cta { border-radius: var(--radius-lg); white-space: nowrap; align-self: center; }

/* Hamburger button — hidden on desktop */
.hamburger-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 2.25rem; height: 2.25rem; align-self: center; padding: 0.4rem; background: none; border: 1.5px solid var(--color-slate-200); cursor: pointer; border-radius: var(--radius-md); transition: background var(--transition-fast), border-color var(--transition-fast); flex-shrink: 0; }
.hamburger-btn:hover { background: var(--color-slate-100); border-color: var(--color-slate-300); }
.hamburger-bar { display: block; width: 1.125rem; height: 2px; background: var(--color-primary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav { display: none; flex-direction: column; padding: 0.75rem 1rem 1.25rem; border-top: 1px solid var(--color-slate-100); background: white; gap: 0.25rem; }
.mobile-nav--open { display: flex; }
.mobile-nav__link { display: block; padding: 0.75rem 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--color-slate-700); border-radius: var(--radius-md); transition: background var(--transition-fast), color var(--transition-fast); }
.mobile-nav__link:hover { background: var(--color-bg-light); color: var(--color-primary); }

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger-btn { display: flex; }
  .header-actions { gap: 0.5rem; }
  .header-cta { font-size: 0.875rem; padding: 0.5rem 1rem; height: auto; min-width: 0; line-height: 1.4; border-radius: var(--radius-md); }
  .site-logo__text { font-size: 1.1rem; }
}

/* --- Scrollbar Hide --- */
.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* --- Language Switcher --- */
.lang-switcher { position: relative; display: inline-flex; }
.lang-btn {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; 
  border-radius: var(--radius-md); border: 1.5px solid var(--color-slate-200); 
  color: var(--color-slate-700); font-weight: 600; font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.lang-btn:hover { background: var(--color-slate-100); border-color: var(--color-slate-300); }
.lang-btn .material-symbols-outlined { font-size: 1.25rem; color: var(--color-slate-500); }

.lang-dropdown {
  position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 160px;
  background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-slate-100); z-index: 1100;
  display: none; flex-direction: column; padding: 0.5rem;
}
.lang-switcher:hover .lang-dropdown { display: flex; }
.lang-item {
  padding: 0.625rem 0.875rem; font-size: 0.875rem; color: var(--color-slate-700);
  border-radius: var(--radius-md); transition: all var(--transition-fast);
}
.lang-item:hover { background: var(--color-bg-light); color: var(--color-primary); }

/* --- RTL Support (Arabic) --- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .material-symbols-outlined { transform: scaleX(-1); }
[dir="rtl"] .site-header .header-inner { flex-direction: row; }
[dir="rtl"] .header-nav { margin-right: 2rem; margin-left: 0; }
[dir="rtl"] .header-actions { flex-direction: row-reverse; }
[dir="rtl"] .btn span { margin-left: 0.5rem; margin-right: 0; }
[dir="rtl"] .form-select { background-position: left 1rem center; padding-left: 2.5rem; padding-right: 1rem; }
[dir="rtl"] .country-search-input { padding: 1rem 3.25rem 1rem 1.25rem; }
[dir="rtl"] .country-search-icon { left: auto; right: 1rem; }
[dir="rtl"] .faq-trigger { text-align: right; flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

/* --- Responsive --- */
.grid-responsive-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-responsive-2 > *, .grid-responsive-3 > *, .stats-grid > * { min-width: 0; }
.grid-responsive-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }

@media (max-width: 1024px) {
  .grid-responsive-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .section-header h2 { font-size: 1.75rem; }
  .section-header p { font-size: 1rem; }
  .grid-responsive-2, .grid-responsive-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero-headline { font-size: 2.25rem !important; }
  .wizard-step-label { display: none; }
  .mobile-hide { display: none; }
  .card { padding: 1.5rem; }
  .pricing-card { padding: 2rem 1.5rem; }
  .lang-label { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section-header h2 { font-size: 1.5rem; }
  .btn-lg { width: 100%; min-width: 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-headline { font-size: 2rem !important; }
}
