/* ==========================================================
   Go2German — Shared Stylesheet
   All pages import this file.
   Page-specific overrides stay inline in each HTML file.
   ========================================================== */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --blue-dark:    #1e3a8a;
  --blue:         #3b82f6;
  --blue-mid:     #2563eb;
  --amber:        #f59e0b;
  --amber-dark:   #d97706;
  --red:          #dc2626;
  --red-dark:     #b91c1c;
  --green:        #10b981;
  --dark:         #1e293b;
  --gray:         #64748b;
  --gray-dark:    #475569;
  --light:        #f8fafc;
  --light-blue:   #e0e7ff;
  --border:       #e2e8f0;
  --shadow:       0 10px 40px rgba(0,0,0,0.10);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
  --radius:       12px;
  --radius-lg:    16px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Base ──────────────────────────────────────────────── */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  padding-top: 52px; /* room for the fixed urgency bar */
}

/* Arabic / RTL override */
[dir="rtl"] body,
html[dir="rtl"] body {
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  line-height: 1.7;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 20px;
}

/* ── Typography ─────────────────────────────────────────── */
.section-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
  color: var(--blue-dark);
  font-weight: 900;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 1.05em;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  background: #dbeafe;
  color: var(--blue-dark);
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 0.88em;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ── Fixed urgency bar ──────────────────────────────────── */
.urgency-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--red);
  color: white;
  text-align: center;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}
.urgency-bar:hover { background: var(--red-dark); }

/* ── Top Navigation ─────────────────────────────────────── */
.topnav {
  background: var(--blue-dark);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  position: relative;
  z-index: 100;
}
.topnav .logo {
  color: white;
  font-size: 1.45em;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.topnav .logo span { color: var(--amber); }
.topnav .nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.topnav .nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 7px 14px;
  font-weight: 600;
  font-size: 0.9em;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.topnav .nav-links a:hover,
.topnav .nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.12);
}
.topnav .nav-links .nav-cta {
  background: var(--amber);
  color: var(--dark) !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  margin-left: 8px;
}
.topnav .nav-links .nav-cta:hover { background: var(--amber-dark); }
[dir="rtl"] .topnav .nav-links .nav-cta { margin-left: 0; margin-right: 8px; }
@media (max-width: 640px) {
  .topnav .nav-links { display: none; }
  .topnav { padding: 12px 16px; }
}

/* ── Language switcher ──────────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 999;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  overflow: hidden;
}
[dir="rtl"] .lang-switcher { right: auto; left: 20px; }

.lang-switcher a {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  color: var(--gray);
  transition: all 0.2s;
}
.lang-switcher a.active       { background: var(--blue-dark); color: white; }
.lang-switcher a:hover:not(.active) { background: #f1f5f9; color: var(--blue-dark); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: 900;
}
.hero .subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* ── Buttons ─────────────────────────────────────────────── */
.cta-primary,
.btn-primary {
  background: var(--amber);
  color: white;
  padding: 18px 40px;
  font-size: 1.2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.cta-primary:hover,
.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245,158,11,0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 1.15em;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all 0.3s;
  display: inline-block;
}
.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

/* ── Stats band (compact with dividers) ─────────────────── */
.stats-band {
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.stats-band .stats-grid {
  gap: 0;
  padding: 30px 20px;
}
.stats-band .stat-item {
  border-left: 1px solid var(--border);
}
[dir="rtl"] .stats-band .stat-item {
  border-left: none;
  border-right: 1px solid var(--border);
}
.stats-band .stat-item:last-child { border: none; }

/* ── Stats section (spaced) ─────────────────────────────── */
.stats { background: white; text-align: center; }

/* ── Stats shared grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-item { padding: 20px; text-align: center; }
.stat-item .number,
.stat-item .num {
  font-size: 3.2em;
  font-weight: 900;
  color: var(--blue-dark);
  margin-bottom: 8px;
  line-height: 1;
}
.stat-item .label,
.stat-item .lbl {
  font-size: 1em;
  color: var(--gray);
}

/* ── Benefit cards ───────────────────────────────────────── */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.benefit-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--light);
  border: 2px solid var(--border);
  transition: all 0.3s;
}
.benefit-card:hover {
  border-color: var(--blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59,130,246,0.15);
}
.benefit-card h3 {
  color: var(--blue-dark);
  margin-bottom: 15px;
  font-size: 1.4em;
}

/* ── Pricing section ─────────────────────────────────────── */
.pricing {
  background: linear-gradient(to bottom, var(--light), var(--light-blue));
}
.pricing-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1em;
  margin-top: -35px;
  margin-bottom: 50px;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
  margin: 0 auto;
}

/* ── Pricing card ── */
.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.pricing-card.featured {
  border: 3px solid var(--amber);
  transform: scale(1.05);
}
.pricing-card.featured .badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--amber);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9em;
}
[dir="rtl"] .pricing-card.featured .badge { right: auto; left: 20px; }

.pricing-card h3         { font-size: 1.8em; color: var(--blue-dark); margin-bottom: 15px; font-weight: 700; }
.pricing-card .price     { font-size: 3em; font-weight: 700; color: var(--blue); margin: 20px 0 5px; }
.pricing-card ul         { list-style: none; margin: 30px 0; }
.pricing-card ul li      { padding: 12px 0; border-bottom: 1px solid var(--border); }
.pricing-card ul li::before { content: "✓ "; color: var(--green); font-weight: bold; margin-right: 10px; }
[dir="rtl"] .pricing-card ul li::before { margin-right: 0; margin-left: 10px; }

/* ── Pricing CTA button ── */
.pricing-card .cta-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.pricing-card .cta-button:hover              { background: var(--blue-mid); }
.pricing-card.featured .cta-button           { background: var(--amber); }
.pricing-card.featured .cta-button:hover     { background: var(--amber-dark); }
.cta-button.cta-amber                        { background: var(--amber); }
.cta-button.cta-amber:hover                  { background: var(--amber-dark); }
.cta-button.cta-outline                      { background: white; color: var(--blue-dark); border: 2px solid var(--blue-dark); }
.cta-button.cta-outline:hover                { background: var(--blue-dark); color: white; }

/* ── Pricing badges & labels ── */
.launch-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), #ef4444);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82em;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.pack-icon    { font-size: 2.5em; margin-bottom: 10px; display: block; }
.price-strike { text-decoration: line-through; font-size: 0.45em; color: #94a3b8; font-weight: 400; vertical-align: middle; margin-left: 8px; }
[dir="rtl"] .price-strike { margin-left: 0; margin-right: 8px; }
.price-note     { font-size: 0.9em; color: var(--gray); margin-top: -10px; margin-bottom: 20px; }
.price-on-demand{ font-size: 2.2em; font-weight: 700; color: var(--blue-dark); margin: 20px 0 5px; }

/* ── Form sections ───────────────────────────────────────── */
.form-section,
.form-wrapper {
  background: white;
  max-width: 700px;
  margin: 0 auto;
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-header { text-align: center; margin-bottom: 35px; }
.form-header h3 { font-size: 1.8em; font-weight: 900; color: var(--blue-dark); margin-bottom: 8px; }
.form-header p  { color: var(--gray); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials { background: var(--blue-dark); color: white; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.testimonial-card {
  background: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.testimonial-card .quote  { font-style: italic; margin-bottom: 20px; font-size: 1.1em; }
.testimonial-card .author { font-weight: 700; color: var(--amber); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { background: var(--light); }
.faq-item {
  background: white;
  margin-bottom: 20px;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.faq-item h3 { color: var(--blue-dark); margin-bottom: 15px; font-size: 1.3em; font-weight: 700; }
.faq-item p  { color: var(--gray-dark); line-height: 1.7; }

/* ── Modal ───────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.modal.active   { display: flex; }
.modal-content  {
  background: white; padding: 40px; border-radius: var(--radius-lg);
  max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-close    { position: absolute; top: 20px; right: 20px; font-size: 2em; cursor: pointer; color: var(--gray); transition: color 0.3s; }
.modal-close:hover { color: var(--red); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 40px 20px;
}
footer a { color: #94a3b8; text-decoration: underline; }
footer a:hover { color: var(--amber); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin: 15px 0;
  font-size: 0.9em;
}

/* ── Pulse animation ─────────────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: #22c55e;
  border-radius: 50%;
  margin-left: 8px;
  animation: pulse 1.8s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(34,197,94,0.6); }
  50%       { box-shadow: 0 0 0 8px rgba(34,197,94,0);   }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1               { font-size: 2em; }
  .section-title         { font-size: 1.8em; }
  .pricing-card.featured { transform: scale(1); }
  .form-section,
  .form-wrapper          { padding: 30px 20px; }
  .stats-band .stat-item { border: none; border-bottom: 1px solid var(--border); }
  .stats-band .stat-item:last-child { border-bottom: none; }
  .stats-grid            { gap: 20px; }
  .lang-switcher         { top: 54px; }
}
