/* SOCATRAD - Societe de Communication et d'Appui a la Traduction */
/* Brand: Navy #0D1B2A, Silver #C0C0C0, Accent #1B3A5C */

:root {
  --navy: #0D1B2A;
  --navy-light: #1B3A5C;
  --navy-dark: #060F18;
  --silver: #C0C0C0;
  --silver-light: #E8E8E8;
  --silver-dark: #8A8A8A;
  --white: #FFFFFF;
  --bg: #F7F8FA;
  --text: #2C2C2C;
  --text-light: #6B7280;
  --accent: #2563EB;
  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(13,27,42,0.08);
  --shadow-lg: 0 8px 32px rgba(13,27,42,0.12);
  --transition: 0.3s ease;
  --max-w: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* RTL */
[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { color: var(--navy-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ========== NAVBAR ========== */
.navbar {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar-brand img {
  height: 42px;
  width: auto;
}
.navbar-brand span {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--silver-light);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--silver);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--silver);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
  background: var(--white);
  color: var(--navy);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 5rem 0 4rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192,192,192,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero-text { flex: 1; }
.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
}
.hero-text p {
  font-size: 1.15rem;
  color: var(--silver-light);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-visual {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
}
.hero-hexagon {
  width: 260px;
  height: 260px;
  position: relative;
}
.hero-hexagon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

/* CTA buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--silver-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}
.btn-outline {
  border-color: var(--silver);
  color: var(--silver-light);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #1ebe57;
  color: var(--white);
  transform: translateY(-2px);
}
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== SECTIONS ========== */
section {
  padding: 4rem 0;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  margin-bottom: 0.5rem;
}
.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  color: var(--white);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* Languages */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.lang-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
}
.lang-card .flag { font-size: 2.5rem; margin-bottom: 0.8rem; }
.lang-card h3 { margin-bottom: 0.3rem; }
.lang-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

/* Arrows between lang cards */
.lang-arrows {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1.5rem;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Credentials */
.credentials {
  background: var(--white);
}
.cred-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--navy);
}
[dir="rtl"] .cred-item {
  border-left: none;
  border-right: 3px solid var(--navy);
}
.cred-item .icon { font-size: 1.3rem; }
.cred-item span { font-weight: 500; font-size: 0.95rem; }

/* ========== VERIFICATION ========== */
.verify-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.verify-input-group {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.verify-input-group input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--silver-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  transition: border-color var(--transition);
}
.verify-input-group input:focus {
  outline: none;
  border-color: var(--navy);
}
.verify-input-group button {
  padding: 14px 28px;
  white-space: nowrap;
}
.verify-result {
  display: none;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}
.verify-result.success {
  display: block;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}
.verify-result.error {
  display: block;
  background: #FEF2F2;
  border: 1px solid #FECACA;
}
.verify-result h4 {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.verify-result.success h4 { color: var(--success); }
.verify-result.error h4 { color: var(--error); }
.verify-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.9rem;
}
.verify-detail:last-child { border: none; }
.verify-detail .label { color: var(--text-light); }
.verify-detail .value { font-weight: 600; }

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.price-card.featured {
  border-color: var(--navy);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.price-card h3 { margin-bottom: 0.3rem; }
.price-card .price-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.3rem;
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
  width: 100%;
}
.price-unit {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  direction: ltr;
  unicode-bidi: isolate;
}
.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
[dir="rtl"] .price-features { text-align: right; }
.price-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.price-features .check { color: var(--success); font-weight: 700; }
.price-card .btn { width: 100%; text-align: center; }

/* Quote form */
.quote-section {
  background: var(--white);
  padding: 3rem 0;
}
.quote-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 12px;
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--silver-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ========== FOOTER ========== */
.footer {
  background: var(--navy);
  color: var(--silver);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--silver-dark);
  line-height: 1.7;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: var(--silver);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--white); }
.footer-contact li {
  list-style: none;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--silver-dark);
}
.footer-bottom a { color: var(--silver); }

/* ========== PAYMENT METHODS ========== */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.payment-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid var(--silver-light);
  transition: all var(--transition);
}
.payment-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
}
.payment-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.payment-icon.orange { background: #FF6600; color: white; }
.payment-icon.paypal { background: #003087; color: white; }
.payment-card h3 { margin-bottom: 0.3rem; }
.payment-card p { color: var(--text-light); font-size: 0.9rem; }
.payment-card .btn { margin-top: 1rem; }
.btn-orange { background: #FF6600; color: var(--white); border-color: #FF6600; }
.btn-orange:hover { background: #e55c00; color: var(--white); transform: translateY(-2px); }
.btn-paypal { background: #003087; color: var(--white); border-color: #003087; }
.btn-paypal:hover { background: #001e5a; color: var(--white); transform: translateY(-2px); }
.payment-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  max-width: 500px;
  margin: 1.5rem auto 0;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
}
@media (max-width: 768px) {
  .payment-grid { grid-template-columns: 1fr; max-width: 360px; }
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all var(--transition);
  text-decoration: none;
}
[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
  }
  .menu-toggle { display: block; }

  .hero .container { flex-direction: column; text-align: center; }
  .hero-text p { margin: 0 auto 2rem; }
  .hero-visual { flex: 0; }
  .hero-hexagon { width: 180px; height: 180px; }
  .btn-group { justify-content: center; }

  .lang-grid { grid-template-columns: 1fr; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .verify-input-group { flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .cred-list { flex-direction: column; align-items: center; }
}
