/* ═══════════════════════════════════════════════════════════════════════════
   Diako Academy — Design System  v3
   Single source of truth: tokens + component library.
   Load this FIRST, before main.css and any page stylesheet.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────────────── */
:root {
  /* ── Color Primitives ── */
  --ds-navy-900: #0F172A;
  --ds-navy-800: #1E293B;
  --ds-navy-700: #334155;
  --ds-navy-600: #475569;
  --ds-navy-400: #94A3B8;
  --ds-navy-300: #CBD5E1;

  --ds-gray-50:  #F8FAFC;
  --ds-gray-100: #F1F5F9;
  --ds-gray-200: #E2E8F0;
  --ds-gray-300: #CBD5E1;
  --ds-gray-400: #94A3B8;
  --ds-gray-500: #64748B;
  --ds-gray-600: #475569;
  --ds-gray-900: #0F172A;

  --ds-orange-700: #C2410C;
  --ds-orange-600: #EA580C;
  --ds-orange-500: #F97316;
  --ds-orange-100: #FFF7ED;

  --ds-green-600:  #16A34A;
  --ds-red-600:    #DC2626;
  --ds-amber-500:  #F59E0B;

  /* ── Semantic Tokens ── */
  --bg:            var(--ds-gray-50);
  --surface:       #FFFFFF;
  --surface-soft:  var(--ds-gray-100);
  --text:          var(--ds-navy-900);
  --text-muted:    var(--ds-gray-500);
  --text-light:    var(--ds-navy-400);
  --border:        var(--ds-gray-200);
  --border-soft:   var(--ds-gray-100);

  /* ── Brand ── */
  --navy:          var(--ds-navy-800);
  --navy-dark:     var(--ds-navy-900);
  --cta:           var(--ds-orange-500);
  --cta-dark:      var(--ds-orange-600);

  /* ── Navigation ── */
  --nav-bg:           rgba(15, 23, 42, 0.94);
  --nav-text:         rgba(226, 232, 240, 0.88);
  --nav-hover-bg:     rgba(255, 255, 255, 0.10);
  --nav-hover-border: rgba(255, 255, 255, 0.18);

  /* ── Fonts ── */
  --font-body:    "Vazirmatn", "Tahoma", sans-serif;
  --font-brand:   "Playfair Display", Georgia, serif;
  --font-mono:    "Fira Code", "Consolas", monospace;

  /* ── Type Scale ── */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */

  /* ── Spacing (4px base) ── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* ── Border Radius ── */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ── Shadows (subtle, 2 levels) ── */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -4px rgba(15, 23, 42, 0.10), 0 2px 6px -2px rgba(15, 23, 42, 0.06);

  /* ── Transitions ── */
  --transition:    150ms ease;
  --transition-md: 250ms ease;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. BASE RESET
   ───────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.8;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2vw, var(--text-2xl)); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }

p  { margin-top: 0; line-height: 1.85; }
a  { color: inherit; text-decoration: none; }

::selection {
  background: rgba(249, 115, 22, 0.12);
  color: var(--ds-navy-900);
}

/* ─────────────────────────────────────────────────────────────────────────
   3. LAYOUT
   ───────────────────────────────────────────────────────────────────────── */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.container-lg {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--sp-12) 0;
}

.section-muted {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.section-head h1,
.section-head h2 { margin-bottom: 0; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

/* ─────────────────────────────────────────────────────────────────────────
   4. COMPONENT LIBRARY
   ───────────────────────────────────────────────────────────────────────── */

/* ── 4a. Card ── */
.card, .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-4) 0;
}

.detail-grid > div {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--sp-4);
}

/* ── 4b. Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  user-select: none;
  white-space: nowrap;
}
.btn:hover   { transform: translateY(-1px); text-decoration: none; }
.btn:active  { transform: translateY(0); }
.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Variants */
.btn-primary {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}
.btn-primary:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
  box-shadow: 0 4px 20px -6px rgba(234, 88, 12, 0.45);
  color: #fff;
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.25);
  color: #fff;
}

.btn-soft {
  background: var(--surface-soft);
  color: var(--navy);
  border-color: var(--border);
}
.btn-soft:hover {
  background: var(--ds-gray-200);
  color: var(--navy-dark);
  border-color: var(--ds-gray-300);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-soft);
  border-color: var(--ds-gray-300);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--surface-soft);
  border-color: var(--ds-gray-400);
  color: var(--text);
}

.btn-danger {
  background: var(--ds-red-600);
  color: #fff;
  border-color: var(--ds-red-600);
}
.btn-danger:hover {
  background: #B91C1C;
  border-color: #B91C1C;
  color: #fff;
}

/* Sizes */
.btn--sm   { padding: 6px 14px;  font-size: var(--text-xs);  border-radius: var(--radius-sm); }
.btn--lg   { padding: 14px 32px; font-size: var(--text-base); border-radius: var(--radius-lg); }
.btn--full, .btn-block { width: 100%; }

/* Hero CTA buttons (over dark/image backgrounds) */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--cta);
  color: #fff;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--cta);
  box-shadow: 0 4px 24px -8px rgba(234, 88, 12, 0.55);
  transition: all var(--transition);
  text-decoration: none;
}
.btn-hero-primary:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
  box-shadow: 0 8px 32px -8px rgba(234, 88, 12, 0.65);
  transform: translateY(-2px);
  color: #fff;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.07);
  transition: all var(--transition);
  text-decoration: none;
}
.btn-hero-outline:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  color: #fff;
}

/* ── 4c. Input ── */
.input,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font: inherit;
  font-size: var(--text-base);
  background: var(--surface);
  color: var(--text);
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.10);
}

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

/* ── 4d. Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-navy   { background: var(--navy);         color: #fff; }
.badge-orange { background: var(--cta);          color: #fff; }
.badge-soft   { background: var(--surface-soft); color: var(--text-muted); border: 1px solid var(--border); }

/* Chip — semantic level tag */
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
  color: var(--ds-navy-700);
  padding: 3px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
}

/* ── 4e. Dropdown panel ── */
.dropdown-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 16px 40px -16px rgba(15, 23, 42, 0.18);
  padding: var(--sp-3);
}

/* ── 4f. Hero ── */
.hero {
  padding: var(--sp-20) 0 var(--sp-12);
}
.hero-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.hero-subtitle {
  font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 52ch;
}

/* ── 4g. Language cards (hero) ── */
.hero-lang-grid {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  min-width: 90px;
  transition: transform var(--transition-md), background var(--transition-md),
              box-shadow var(--transition-md);
}
.lang-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.20);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}
.lang-card__flag { font-size: 1.9rem; line-height: 1; }
.lang-card__fa   { font-size: 0.82rem; font-weight: 700; }
.lang-card__en   { font-size: 0.7rem; opacity: 0.7; font-family: var(--font-brand); font-style: italic; }

/* ── 4h. Section helpers ── */
.eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.9;
}

.muted      { color: var(--text-muted); }
.text-link  {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1.5px solid rgba(30, 41, 59, 0.18);
  transition: border-color var(--transition);
}
.text-link:hover { border-bottom-color: var(--navy); }

/* ── 4i. Progress bar ── */
.progress-bar {
  height: 6px;
  background: var(--ds-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--cta);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* ── 4j. Flash / Alert ── */
.flash-wrapper { margin-top: var(--sp-4); }
.flash-message {
  background: #FFF7ED;
  color: var(--ds-orange-700);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: var(--text-sm);
}

/* ── 4k. Form helpers ── */
.auth-form   { display: grid; gap: var(--sp-3); }
.auth-panel  { max-width: 520px; margin: 0 auto; }
.error-text  { font-size: var(--text-xs); color: var(--ds-red-600); }

/* ── 4l. Feature list ── */
.feature-list { display: grid; gap: var(--sp-3); }
.feature-list div {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}

/* ── 4m. Animations ── */
.fade-in-up { animation: fadeInUp 0.45s ease both; }
.delay-1    { animation-delay: 0.10s; }
.delay-2    { animation-delay: 0.20s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 4n. Utility ── */
.hidden      { display: none !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ─────────────────────────────────────────────────────────────────────────
   5. HEADER & NAVIGATION
   ───────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Utility strip */
.header-utility-wrap {
  background: rgba(8, 14, 28, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-utility {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 6px 0;
}

.utility-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(241, 245, 249, 0.80);
  font-size: var(--text-xs);
  font-weight: 600;
  background: transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.utility-pill:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Orange CTA — placement test only */
.utility-pill--placement {
  background: var(--cta);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
.utility-pill--placement:hover {
  background: var(--cta-dark);
  border-color: transparent;
  transform: translateY(-1px);
}

/* Remove per-type rainbow colors — all pills look the same (navy transparent) */
.utility-pill--portal,
.utility-pill--classes,
.utility-pill--phone,
.utility-pill--login,
.utility-pill--chat { /* inherits base .utility-pill */ }

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.55rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: 220px;
  object-fit: contain;
}

/* Navbar */
.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: center;
}

.nav-links > li { position: relative; }

.nav-links > li > a,
.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--nav-text);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  text-decoration: none;
}

.nav-links > li > a:hover,
.nav-dropdown__trigger:hover,
.nav-dropdown__details[open] .nav-dropdown__trigger {
  background: var(--nav-hover-bg);
  border-color: var(--nav-hover-border);
  color: #fff;
}

/* Orange accent underline on hover */
.nav-links > li > a:hover::after,
.nav-dropdown__trigger:hover::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 4px;
  right: 0.6rem;
  left: 0.6rem;
  height: 2px;
  background: var(--cta);
  border-radius: var(--radius-full);
  opacity: 0.75;
}

.nav-arrow {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform var(--transition-md), opacity var(--transition-md);
}
.nav-dropdown__details[open] .nav-arrow {
  transform: rotate(180deg);
  opacity: 0.9;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Navbar auth button (dark bg) */
.auth-actions .btn-outline,
.auth-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.30);
  color: rgba(226, 232, 240, 0.88);
  background: transparent;
}
.auth-actions .btn-outline:hover,
.auth-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.welcome {
  font-size: var(--text-sm);
  color: var(--nav-text);
}

/* ─────────────────────────────────────────────────────────────────────────
   6. MEGA MENU
   ───────────────────────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown__details { position: relative; }
.nav-dropdown__trigger::-webkit-details-marker { display: none; }

.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(560px, 88vw);
  min-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 16px 40px -16px rgba(15, 23, 42, 0.18);
  padding: var(--sp-3);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.988);
  transition: opacity var(--transition-md), transform var(--transition-md), visibility var(--transition-md);
  z-index: 120;
}

.mega-menu::before { display: none; }

.nav-dropdown__details[open] .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mega-menu__group {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.mega-menu__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}

.mega-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.mega-menu__list li a {
  display: block;
  padding: 5px 8px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), padding-right var(--transition);
}

.mega-menu__list li a:hover {
  background: var(--surface-soft);
  color: var(--navy);
  padding-right: 12px;
  border-right: 2px solid var(--cta);
}

.mega-menu__group--primary-link { display: none !important; }

/* ─────────────────────────────────────────────────────────────────────────
   7. FOOTER — all rules live in footer.css
   ───────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────
   8. HERO MODE STRIP (online / in-person boxes under hero)
   ───────────────────────────────────────────────────────────────────────── */
.hero-mode-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin: var(--sp-6) 0 var(--sp-8);
}

.hero-mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}
.hero-mode-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}
.hero-mode-card__icon  { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.hero-mode-card__title { font-weight: 700; font-size: var(--text-base); margin-bottom: 3px; }
.hero-mode-card__sub   { font-size: var(--text-xs); color: var(--text-muted); }

/* ─────────────────────────────────────────────────────────────────────────
   9. RESPONSIVE
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .split-grid,
  .footer-grid,
  .detail-grid { grid-template-columns: 1fr; }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-2) 0;
    min-height: auto;
    gap: var(--sp-2);
  }

  .nav-links {
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .nav-links > li > a,
  .nav-dropdown__trigger {
    width: 100%;
    justify-content: space-between;
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
  }

  .auth-actions { justify-content: flex-start; }

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

  .mega-menu {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    padding: var(--sp-2);
    background: rgba(15, 23, 42, 0.50);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    grid-template-columns: 1fr;
    gap: var(--sp-2);
    margin-top: var(--sp-2);
  }
  .mega-menu__group {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);
  }
  .mega-menu__heading { color: rgba(226, 232, 240, 0.9); border-bottom-color: rgba(255,255,255,0.10); }
  .mega-menu__list li a { color: rgba(226, 232, 240, 0.80); }
  .mega-menu__list li a:hover { background: rgba(255,255,255,0.10); color: #fff; }

  .nav-dropdown__details[open] .mega-menu { display: grid; }
}

@media (max-width: 640px) {
  .brand-logo { height: 38px; max-width: 180px; }

  .header-utility { padding: 6px 0; }

  .utility-pill { width: 100%; }

  .card-grid { grid-template-columns: 1fr; }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-mode-strip { grid-template-columns: 1fr; }

  .hero-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
    max-width: 300px;
    margin-inline: auto;
  }
  .lang-card { padding: var(--sp-3) var(--sp-3); min-width: 0; width: 100%; }
}
