/*
Theme Name: Multimedigital
Theme URI: https://www.multimedigital.com
Author: Multimedigital
Author URI: https://www.multimedigital.com
Description: Thème WordPress professionnel pour Multimedigital — Agence Digitale Internationale basée à Marrakech. Multilingue (FR/EN/AR), RTL-ready, SEO-optimisé, rapide.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: multimedigital
Tags: multilingual, rtl-language-support, custom-logo, custom-menu, threaded-comments, translation-ready, one-column, two-columns, full-width-template
*/

/* ═══════════════════════════════════════ */
/*         CUSTOM PROPERTIES              */
/* ═══════════════════════════════════════ */
:root {
  --c-red: #E31E24;
  --c-red-hover: #ff2d33;
  --c-red-dark: #b8181d;
  --c-red-glow: rgba(227, 30, 36, 0.15);
  --c-red-glow-strong: rgba(227, 30, 36, 0.3);
  --c-black: #000000;
  --c-dark-1: #0a0a0a;
  --c-dark-2: #111111;
  --c-dark-3: #1a1a1a;
  --c-dark-4: #222222;
  --c-white: #ffffff;
  --c-light: #f5f5f5;
  --c-gray-100: #eeeeee;
  --c-gray-200: #d4d4d4;
  --c-gray-300: #a3a3a3;
  --c-gray-400: #737373;
  --c-gray-500: #525252;
  --c-text: #e5e5e5;
  --c-text-muted: #888888;
  --c-text-dark: #1a1a1a;
  --ff-heading: 'Outfit', -apple-system, sans-serif;
  --ff-body: 'DM Sans', -apple-system, sans-serif;
  --ff-arabic: 'Noto Sans Arabic', 'Outfit', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 50px;
  --shadow: 0 4px 30px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 50px rgba(0,0,0,0.4);
  --shadow-red: 0 8px 32px rgba(227,30,36,0.3);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1280px;
  --nav-h: 80px;
}

/* ═══════════════════════════════════════ */
/*              RESET & BASE              */
/* ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}
body {
  font-family: var(--ff-body);
  background: var(--c-black);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL Arabic */
html[lang="ar"] body,
body.rtl { font-family: var(--ff-arabic); direction: rtl; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6 { font-family: var(--ff-arabic); }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-heading);
  line-height: 1.15;
  font-weight: 800;
  color: var(--c-white);
}

::selection { background: var(--c-red); color: var(--c-white); }
::-moz-selection { background: var(--c-red); color: var(--c-white); }

/* ═══════════════════════════════════════ */
/*         RETINA / HIGH-DPI             */
/* ═══════════════════════════════════════ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body { -webkit-font-smoothing: subpixel-antialiased; }
}

/* ═══════════════════════════════════════ */
/*            UTILITIES                   */
/* ═══════════════════════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-red { color: var(--c-red); }
.section { padding: 120px 0; position: relative; }
.section-light { background: var(--c-light); color: var(--c-text-dark); }
.section-light h2, .section-light h3 { color: var(--c-text-dark); }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; color: var(--c-red);
  margin-bottom: 20px;
}
.section-label::before {
  content: ''; width: 40px; height: 2px; background: var(--c-red);
}
html[lang="ar"] .section-label::before { display: none; }
html[lang="ar"] .section-label::after {
  content: ''; width: 40px; height: 2px; background: var(--c-red);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--c-text-muted);
  max-width: 640px; line-height: 1.8;
}
.section-light .section-subtitle { color: var(--c-gray-500); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: var(--radius-xl);
  font-family: var(--ff-heading); font-weight: 700;
  font-size: 15px; cursor: pointer; border: none;
  transition: var(--transition); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn-red {
  background: var(--c-red); color: var(--c-white);
  box-shadow: var(--shadow-red);
}
.btn-red:hover {
  background: var(--c-red-hover); transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(227,30,36,0.4);
}
.btn-outline {
  background: transparent; color: var(--c-white);
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--c-red); color: var(--c-red); }
.btn-white {
  background: var(--c-white); color: var(--c-black);
}
.btn-white:hover { background: var(--c-gray-100); transform: translateY(-3px); }
.btn-dark {
  background: var(--c-dark-2); color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-dark:hover { border-color: var(--c-red); }

/* ═══════════════════════════════════════ */
/*         SCROLL REVEAL ANIMATIONS       */
/* ═══════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

@keyframes slideUp { from { opacity:0; transform:translateY(50px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
@keyframes lineGrow { from { width:0; } to { width:40px; } }

/* ═══════════════════════════════════════ */
/*           NAVIGATION                   */
/* ═══════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.site-nav.scrolled {
  background: rgba(0,0,0,0.92);
  height: 68px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav-logo img { height: 36px; width: auto; }
.site-nav.scrolled .nav-logo img { height: 30px; }

.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu a {
  font-size: 14px; font-weight: 500; color: var(--c-gray-300);
  position: relative; padding: 4px 0;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--c-white); }
.nav-menu a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--c-red);
  transition: var(--transition);
}
.nav-menu a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; }

/* Language Switch */
.lang-switcher {
  display: flex; gap: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-xl); padding: 3px;
}
.lang-switcher a {
  padding: 6px 14px; border-radius: var(--radius-xl);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--c-gray-400); letter-spacing: 1px;
}
.lang-switcher a.current,
.lang-switcher a:hover { background: var(--c-red); color: var(--c-white); }

.nav-cta {
  padding: 10px 24px; border-radius: var(--radius-xl);
  background: var(--c-red); color: var(--c-white);
  font-size: 13px; font-weight: 700; font-family: var(--ff-heading);
}
.nav-cta:hover { background: var(--c-red-hover); }

/* Mobile Toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 1001;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--c-white);
  position: absolute; left: 0; transition: var(--transition); border-radius: 2px;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ═══════════════════════════════════════ */
/*               HERO                     */
/* ═══════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
  background: #000;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,30,36,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 5;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, #000, transparent);
  pointer-events: none; z-index: 5;
}
.hero-content { position: relative; z-index: 10; padding: 60px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-red-glow);
  border: 1px solid rgba(227,30,36,0.2);
  border-radius: var(--radius-xl); padding: 10px 24px;
  margin-bottom: 36px;
  }

.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-red); animation: pulse 2s infinite;
}
.hero-badge span {
  font-size: 13px; color: var(--c-red); font-weight: 600;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 32px; letter-spacing: -0.03em;
}
.hero h1 .text-red {
  background: linear-gradient(135deg, #E31E24, #ff4444);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.2rem; color: var(--c-text-muted);
  max-width: 580px; line-height: 1.8; margin-bottom: 44px;
  
}
.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 80px;
  
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  max-width: 640px;
  
}
.hero-stat-number {
  font-family: var(--ff-heading); font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900; color: var(--c-white);
}
.hero-stat-label { font-size: 12px; color: var(--c-gray-500); margin-top: 4px; font-weight: 500; }

/* ═══════════════════════════════════════ */
/*             SERVICES                   */
/* ═══════════════════════════════════════ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 60px;
}
.service-card {
  background: var(--c-dark-2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg); padding: 40px 32px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--c-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(227,30,36,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.service-icon {
  font-size: 44px; margin-bottom: 24px;
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.15); }
.service-card h3 {
  font-size: 1.25rem; margin-bottom: 14px; font-weight: 700;
}
.service-card p {
  color: var(--c-text-muted); font-size: 0.95rem; line-height: 1.7;
  margin-bottom: 24px;
}
.service-tag {
  display: inline-block; padding: 6px 18px;
  border-radius: var(--radius-xl);
  background: var(--c-red-glow);
  color: var(--c-red); font-size: 13px; font-weight: 600;
}

/* ═══════════════════════════════════════ */
/*              MARKETS                   */
/* ═══════════════════════════════════════ */
.markets { background: var(--c-dark-1); }
.markets-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 60px;
}
.market-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 32px;
  transition: var(--transition);
}
.market-card:hover {
  border-color: var(--c-red);
  transform: translateY(-4px);
  background: rgba(227,30,36,0.03);
}
.market-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.market-flag { font-size: 40px; }
.market-name { font-size: 1.15rem; font-weight: 700; }
.market-lang { font-size: 12px; color: var(--c-gray-500); }
.market-desc { color: var(--c-text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ═══════════════════════════════════════ */
/*             WHY US                     */
/* ═══════════════════════════════════════ */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 60px;
}
.why-card {
  display: flex; gap: 24px; padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--c-dark-2);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.why-card:first-child {
  background: linear-gradient(135deg, rgba(227,30,36,0.08), rgba(227,30,36,0.02));
  border-color: rgba(227,30,36,0.15);
}
.why-card:hover { border-color: rgba(227,30,36,0.3); }
.why-icon { font-size: 36px; flex-shrink: 0; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 10px; font-weight: 700; }
.why-card p { color: var(--c-text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ═══════════════════════════════════════ */
/*             PROCESS                    */
/* ═══════════════════════════════════════ */
.process { background: var(--c-dark-1); }
.process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 60px;
}
.process-card {
  padding: 36px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.process-card:hover { background: var(--c-dark-3); }
.process-number {
  font-family: var(--ff-heading); font-size: 3rem;
  font-weight: 900; color: rgba(255,255,255,0.05);
  margin-bottom: 16px; transition: var(--transition);
}
.process-card:hover .process-number { color: var(--c-red); }
.process-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.process-card p { color: var(--c-text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ═══════════════════════════════════════ */
/*              CTA SECTION               */
/* ═══════════════════════════════════════ */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #E31E24 0%, #b8181d 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 20V60L40 80L0 60V20Z' fill='none' stroke='white' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.3;
}
.cta-section h2 { margin-bottom: 20px; font-size: clamp(1.8rem, 4vw, 2.8rem); position: relative; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; line-height: 1.8; max-width: 600px; margin: 0 auto 40px; position: relative; }
.cta-trust { margin-top: 20px; font-size: 13px; opacity: 0.75; position: relative; }

/* ═══════════════════════════════════════ */
/*             CONTACT                    */
/* ═══════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  align-items: start; margin-top: 60px;
}
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-info-icon { font-size: 24px; }
.contact-info-text { color: var(--c-text-muted); line-height: 1.7; }
.contact-info-text a { color: var(--c-red); font-weight: 600; }
.contact-info-text a:hover { color: var(--c-red-hover); }

.contact-status {
  margin-top: 36px; padding: 24px;
  background: var(--c-dark-2); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
}
.contact-status-dot {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.contact-status-dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #10b981; animation: pulse 2s infinite;
}
.contact-status-label { font-size: 14px; font-weight: 600; color: #10b981; }
.contact-status p { font-size: 13px; color: var(--c-gray-500); }

.contact-form {
  background: var(--c-dark-2);
  border-radius: var(--radius-lg); padding: 44px;
  border: 1px solid rgba(255,255,255,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field {
  width: 100%; padding: 16px 20px;
  border-radius: var(--radius); border: 1.5px solid rgba(255,255,255,0.08);
  background: var(--c-dark-3); color: var(--c-white);
  font-family: var(--ff-body); font-size: 14px;
  transition: var(--transition);
}
.form-field::placeholder { color: var(--c-gray-500); }
.form-field:focus {
  outline: none; border-color: var(--c-red);
  box-shadow: 0 0 0 3px var(--c-red-glow);
}
textarea.form-field { resize: vertical; min-height: 140px; }
select.form-field { appearance: none; cursor: pointer; }
.form-submit {
  width: 100%; padding: 18px; border-radius: var(--radius);
  background: var(--c-red); color: var(--c-white);
  font-family: var(--ff-heading); font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-red);
}
.form-submit:hover {
  background: var(--c-red-hover); transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(227,30,36,0.4);
}

/* ═══════════════════════════════════════ */
/*               FOOTER                   */
/* ═══════════════════════════════════════ */
.site-footer {
  background: var(--c-dark-1);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 60px;
}
.footer-brand img { height: 32px; margin-bottom: 20px; }
.footer-desc { color: var(--c-gray-500); font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-gray-400); font-size: 16px; transition: var(--transition);
}
.footer-social a:hover { background: var(--c-red); color: var(--c-white); }

.footer-title {
  font-size: 0.85rem; font-weight: 700; color: var(--c-gray-300);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.footer-links a {
  display: block; color: var(--c-gray-500); font-size: 0.9rem;
  margin-bottom: 12px; transition: var(--transition);
}
.footer-links a:hover { color: var(--c-red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 13px; color: var(--c-gray-500); }

/* ═══════════════════════════════════════ */
/*         RESPONSIVE — TABLET            */
/* ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.97);
    justify-content: center; align-items: center; gap: 32px;
    z-index: 1001;
  }
  .nav-menu.open a { font-size: 1.5rem; color: var(--c-white); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ═══════════════════════════════════════ */
/*         RESPONSIVE — MOBILE            */
/* ═══════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .section { padding: 80px 0; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-sub { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .nav-cta { display: none; }
  .lang-switcher { gap: 2px; }
  .lang-switcher a { padding: 5px 10px; font-size: 10px; }
}

/* ═══════════════════════════════════════ */
/*              PAGE / BLOG               */
/* ═══════════════════════════════════════ */
.page-header {
  padding: 160px 0 80px;
  background: var(--c-dark-1);
  text-align: center;
}
.page-content {
  padding: 60px 0;
  max-width: 800px; margin: 0 auto;
}
.page-content p { margin-bottom: 1.5em; color: var(--c-text-muted); }
.page-content h2 { margin: 2em 0 1em; }
.page-content a { color: var(--c-red); }
.page-content a:hover { text-decoration: underline; }
.page-content ul, .page-content ol { margin: 1em 0 1.5em 1.5em; }
.page-content li { margin-bottom: 0.5em; color: var(--c-text-muted); }

/* 404 */
.page-404 {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  background: var(--c-black);
}
.page-404 h1 {
  font-size: 8rem; font-weight: 900; color: var(--c-red);
  line-height: 1; margin-bottom: 16px;
}
.page-404 p { font-size: 1.2rem; color: var(--c-text-muted); margin-bottom: 40px; }

/* ═══════════════════════════════════════ */
/*         VIDEO HERO                     */
/* ═══════════════════════════════════════ */
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.25) saturate(1.2);
}
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.95) 100%);
}
.hero-scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-line {
  width: 2px; height: 50px; background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden; border-radius: 2px;
}
.hero-scroll-line::after {
  content: ''; position: absolute; top: -50px; left: 0;
  width: 100%; height: 20px; background: var(--c-red);
  animation: scrollDown 2s ease infinite;
}
@keyframes scrollDown {
  0% { top: -20px; } 100% { top: 50px; }
}

/* ═══════════════════════════════════════ */
/*       ENTRANCE ANIMATIONS              */
/* ═══════════════════════════════════════ */
.anim-up {
  animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-d1 { animation-delay: 0.15s; opacity: 0; animation-fill-mode: both; }
.anim-d2 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: both; }
.anim-d3 { animation-delay: 0.45s; opacity: 0; animation-fill-mode: both; }
.anim-d4 { animation-delay: 0.6s; opacity: 0; animation-fill-mode: both; }

/* Button glow pulse */
.btn-glow {
  animation: btnGlow 2.5s ease-in-out infinite;
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(227,30,36,0.3); }
  50% { box-shadow: 0 8px 48px rgba(227,30,36,0.5), 0 0 80px rgba(227,30,36,0.15); }
}
.btn-glow-white {
  animation: btnGlowWhite 2.5s ease-in-out infinite;
}
@keyframes btnGlowWhite {
  0%, 100% { box-shadow: 0 8px 32px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 8px 48px rgba(255,255,255,0.35); }
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn:hover .btn-arrow { transform: translateX(5px); }

/* Service card link + arrow */
a.service-card { display: block; color: inherit; position: relative; }
a.service-card:hover { text-decoration: none; }
.card-arrow {
  position: absolute; bottom: 24px; right: 24px;
  font-size: 20px; color: var(--c-red);
  opacity: 0; transform: translateX(-10px);
  transition: var(--transition);
}
html[dir="rtl"] .card-arrow { right: auto; left: 24px; transform: translateX(10px) scaleX(-1); }
.service-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════ */
/*         TRUST MARQUEE BAR              */
/* ═══════════════════════════════════════ */
.trust-bar {
  padding: 18px 0;
  background: var(--c-red);
  overflow: hidden;
  width: 100%;
}
.trust-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}
.trust-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}
.trust-content span {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}
.trust-dot {
  font-size: 8px !important;
  opacity: 0.6;
  letter-spacing: 0 !important;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .trust-content span { font-size: 11px; letter-spacing: 1px; }
  .trust-content { gap: 14px; padding-right: 14px; }
  .trust-bar { padding: 14px 0; }
}

/* ═══════════════════════════════════════ */
/*      WHATSAPP FLOATING BUTTON          */
/* ═══════════════════════════════════════ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 1001;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: waPulse 3s ease infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 36px rgba(37,211,102,0.6), 0 0 60px rgba(37,211,102,0.15); }
}
html[dir="rtl"] .whatsapp-float { right: auto; left: 28px; }

/* ═══════════════════════════════════════ */
/*      HERO STAT COUNT ANIMATION         */
/* ═══════════════════════════════════════ */
.hero-stat {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid rgba(227,30,36,0.3);
}
html[dir="rtl"] .hero-stat { padding-left: 0; padding-right: 16px; border-left: none; border-right: 2px solid rgba(227,30,36,0.3); }

/* ═══════════════════════════════════════ */
/*       MOBILE VIDEO HERO FIX            */
/* ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-video { object-position: center; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

/* ═══ E-A-T TRUST GRID RESPONSIVE ═══ */
@media (max-width: 768px) {
  .section [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .section [style*="display:flex;justify-content:center;gap:40px"] {
    gap: 16px !important;
    flex-direction: column;
    align-items: flex-start !important;
    padding: 0 16px;
  }
}

/* ═══ HERO CONTAINER FORCE VISIBLE ═══ */
.hero > .container {
  position: relative !important;
  z-index: 100 !important;
}


/* ═══ HERO ANIMATION (safe - no opacity:0) ═══ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-up {
  animation: heroFadeUp 0.8s ease both;
}

/* ═══ REDUCED MOTION SUPPORT ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .anim-up { opacity: 1 !important; transform: none !important; }
}

/* ═══ MOBILE VIDEO OPTIMIZATION ═══ */
@media (max-width: 768px) {
  .hero video {
    /* On mobile, reduce video quality impact */
    filter: brightness(0.15) !important;
  }
  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.15 !important;
  }
  .hero-sub {
    font-size: 0.95rem !important;
  }
  .hero-badge {
    padding: 8px 16px !important;
  }
  .hero-badge span {
    font-size: 11px !important;
  }
  .hero-stat-number {
    font-size: 1.5rem !important;
  }
  .hero-content {
    padding: 40px 0 30px !important;
  }
}

/* ═══ TABLET FIXES ═══ */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero h1 {
    font-size: 2.8rem !important;
  }
  .services-grid,
  .markets-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ═══ SMALL MOBILE (iPhone SE etc) ═══ */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.6rem !important;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .btn {
    padding: 12px 24px !important;
    font-size: 13px !important;
  }
  .section-title {
    font-size: 1.5rem !important;
  }
  .service-card, .market-card, .why-card, .process-card {
    padding: 24px 18px !important;
  }
}

/* ═══ ACCESSIBILITY IMPROVEMENTS ═══ */
.form-field:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 3px;
}
.nav-menu a:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 4px;
}

/* ═══ PRINT STYLES ═══ */
@media print {
  .site-nav, .whatsapp-float, .hero-video, .hero-scroll-indicator,
  .trust-bar, .cta-section { display: none !important; }
  body { background: white !important; color: black !important; }
  .hero { min-height: auto !important; padding: 40px 0 !important; }
}

/* ═══ FINAL FIXES v10 ═══ */

/* Skip to content link */
.sr-only:focus {
  position: fixed; top: 10px; left: 10px;
  width: auto; height: auto; padding: 12px 24px;
  background: var(--c-red); color: white;
  z-index: 10000; clip: auto; margin: 0;
  font-size: 14px; font-weight: 700;
  border-radius: var(--radius-sm);
}

/* Admin bar fix */
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }
.admin-bar .hero { padding-top: calc(var(--nav-h) + 32px); }
@media (max-width: 782px) { .admin-bar .hero { padding-top: calc(var(--nav-h) + 46px); } }

/* CTA section button fix - white on red */
.cta-section .btn-white { color: var(--c-red); font-weight: 800; }
.cta-section .btn-white:hover { color: var(--c-red-dark); }

/* Page header responsive */
@media (max-width: 640px) {
  .page-header { padding: 120px 0 50px; }
  .page-header .section-title { font-size: 1.8rem; }
  .page-404 h1 { font-size: 5rem; }
}

/* Service card - ensure clickable on mobile */
a.service-card { -webkit-tap-highlight-color: transparent; }

/* Smooth hover transition on ALL cards */
.service-card, .market-card, .why-card, .process-card {
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Fix inline style grids on mobile */
@media (max-width: 640px) {
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="display:grid;grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Contact form - ensure select arrow visible on dark bg */
select.form-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
html[dir="rtl"] select.form-field {
  background-position: left 16px center;
  padding-right: 20px;
  padding-left: 40px;
}

/* Prevent layout shift on images */
img { aspect-ratio: attr(width) / attr(height); }

/* Better text rendering for hero */
.hero h1, .hero-sub, .hero-badge span {
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* ═══ HERO CONTENT GUARANTEED VISIBLE ═══ */
/* Fallback: if animation doesn't play, content stays visible */
.hero-content .anim-up {
  animation: heroFadeUp 0.8s ease both;
}
/* After 1.5s, force everything visible regardless */
.hero-content {
  animation: forceVisible 0s 1.5s both;
}
@keyframes forceVisible {
  to { opacity: 1; }
}
/* Nuclear: if no animation support at all */
@supports not (animation-name: heroFadeUp) {
  .anim-up, .anim-d1, .anim-d2, .anim-d3, .anim-d4 {
    opacity: 1 !important;
    transform: none !important;
  }
}
