/* assets/css/style.css */
/* Muscat Auditing & Accounting Services - Enterprise Design System */
/* Palette: Navy #173A60, Blue #1769AA, Pale Blue #F1F6FB, White #FFFFFF */

:root {
  --navy: #173A60;
  --navy-dark: #0f2742;
  --blue: #1769AA;
  --blue-light: #2588d6;
  --pale-blue: #F1F6FB;
  --white: #FFFFFF;
  --dark: #0F172A;
  --slate: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 12px;
  --shadow: 0 4px 20px -2px rgba(23, 58, 96, 0.08);
  --shadow-lg: 0 12px 36px -4px rgba(23, 58, 96, 0.12);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #475569;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--navy);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Top Notification / Contact Bar */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-links a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-links a:hover {
  color: var(--white);
}

/* Main Navigation Header */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(23, 58, 96, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(23, 105, 170, 0.25);
}

.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 58, 96, 0.3);
}

.btn-secondary {
  background: var(--pale-blue);
  color: var(--navy);
}

.btn-secondary:hover {
  background: #e2edf8;
  color: var(--navy);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1eb857;
  color: var(--white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2238 100%);
  color: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: radial-gradient(circle at center, rgba(23, 105, 170, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Section Common */
.section {
  padding: 80px 0;
}

.section-pale {
  background-color: var(--pale-blue);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-kicker {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Service Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--pale-blue);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--navy);
  color: var(--white);
}

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 5-Stage Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.process-step {
  background: var(--white);
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  color: #bfdbfe;
  line-height: 1;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Clients Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
}

.client-logo-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition);
}

.client-logo-box:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
}

.client-logo-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-answer {
  display: none;
  padding: 0 24px 24px;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-card.open .faq-answer {
  display: block;
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--blue);
  transition: transform 0.25s;
}

.faq-card.open .faq-icon {
  transform: rotate(180deg);
}

/* Form Styles */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--slate);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.15);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 70px 0 24px;
  border-top: 4px solid var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--blue);
}

[dir="rtl"] .footer-col h4::after {
  left: auto;
  right: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.footer-contact-item i {
  color: var(--blue-light);
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* Floating WhatsApp / Phone Action */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.fab:hover {
  transform: scale(1.08);
}

.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--blue); }

/* Responsive Queries */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-actions .btn-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 56px 0; }
  .form-card { padding: 24px; }
}

/* --- CREATIVE HERO BANNERS & RICH IMAGERY SYSTEM --- */
.page-hero-banner {
    position: relative;
    padding: 90px 0 80px 0;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.page-hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(14, 30, 51, 0.94) 0%, rgba(23, 58, 96, 0.88) 60%, rgba(23, 105, 170, 0.82) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f1f6fb;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 15px;
}
.hero-breadcrumb a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.2s;
}
.hero-breadcrumb a:hover {
    color: #ffffff;
}

.page-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

.page-hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: #e2e8f0;
    max-width: 800px;
    margin-bottom: 25px;
}

.hero-glass-card {
    background: rgba(23, 58, 96, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 28px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.hero-stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.hero-stat-pill .num {
    font-size: 26px;
    font-weight: 800;
    color: #38bdf8;
    display: block;
    font-family: 'Outfit', sans-serif;
}
.hero-stat-pill .lbl {
    font-size: 11px;
    color: #cbd5e1;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Partner & Client Cards */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(23, 105, 170, 0.12);
    border-color: #1769AA;
}

.partner-card-header {
    background: #f8fafc;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.partner-logo-img {
    height: 55px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
    transition: transform 0.3s ease;
}
.partner-card:hover .partner-logo-img {
    transform: scale(1.05);
}

.partner-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.partner-industry-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #173A60;
    margin: 0 0 8px 0;
}

.partner-scope-text {
    font-size: 13px;
    font-weight: 600;
    color: #1769AA;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.partner-desc-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.partner-quote-box {
    background: #f8fafc;
    border-left: 3px solid #1769AA;
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

/* Service Detail Banner & Cards */
.service-photo-banner {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 320px;
    margin-bottom: 35px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-photo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-photo-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(14,30,51,0.92) 0%, rgba(14,30,51,0) 100%);
    padding: 30px;
    color: #ffffff;
}

.service-photo-overlay h4 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

.service-photo-overlay p {
    margin: 0;
    font-size: 14px;
    color: #cbd5e1;
}

.story-photo-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}
.story-photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}
.story-badge-float {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(23, 58, 96, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* --- REFINED HEADER STYLES --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}

.header-logo-img {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.header-logo-img:hover {
  transform: scale(1.02);
}

.header-cta-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(23, 105, 170, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.header-cta-btn:hover {
  box-shadow: 0 6px 20px rgba(23, 105, 170, 0.45);
  transform: translateY(-2px);
}

/* --- CONTINUOUS CLIENT LOGO MARQUEE --- */
.marquee-section {
  background: #ffffff;
  padding: 40px 0 45px 0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.marquee-header {
  text-align: center;
  margin-bottom: 25px;
}

.marquee-header span {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1769AA;
  background: #f1f6fb;
  padding: 6px 16px;
  border-radius: 20px;
}

.client-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.client-marquee-track {
  display: flex;
  gap: 25px;
  width: max-content;
  animation: marquee-infinite 28s linear infinite;
  will-change: transform;
}

.client-marquee-wrapper:hover .client-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-infinite {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 26px;
  min-width: 175px;
  height: 82px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-item:hover {
  transform: translateY(-4px);
  border-color: #1769AA;
  box-shadow: 0 12px 24px rgba(23, 105, 170, 0.14);
}

.logo-item img {
  max-height: 52px;
  max-width: 135px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}

.logo-item:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & RTL (ARABIC) COMPREHENSIVE SUITE
   ========================================================================== */

/* Global Mobile Fixes */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* RTL & Arabic Typography */
html[dir="rtl"], html.rtl-mode {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] body,
html.rtl-mode body {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif !important;
}

/* Ensure phone numbers, emails and codes stay LTR */
.tel-ltr,
a[href^="tel:"],
a[href^="mailto:"],
[dir="rtl"] .tel-ltr,
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"] {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block !important;
}

/* RTL Header & Nav alignment */
html[dir="rtl"] .topbar-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .main-nav {
  direction: rtl;
}

html[dir="rtl"] .hero-stats-row {
  direction: rtl;
}

html[dir="rtl"] .card,
html[dir="rtl"] .service-card,
html[dir="rtl"] .partner-card-body {
  text-align: right;
}

html[dir="rtl"] .partner-quote-box {
  border-left: none;
  border-right: 3px solid #1769AA;
  border-radius: 8px 0 0 8px;
}

html[dir="rtl"] .story-badge-float {
  left: auto;
  right: 20px;
}

/* Language Switcher Button */
.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #f1f6fb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 1050;
  transition: background 0.2s;
}

.mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #173A60;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active .bar1 {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar2 {
  opacity: 0;
}

.mobile-toggle.active .bar3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Component */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html[dir="rtl"] .mobile-drawer {
  right: auto;
  left: -100%;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  right: 0;
}

html[dir="rtl"] .mobile-drawer.open {
  left: 0;
  right: auto;
}

.mobile-drawer-inner {
  padding: 24px 20px 40px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.mobile-close-btn {
  background: #f1f6fb;
  border: none;
  font-size: 28px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #173A60;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 25px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #e0f2fe;
  color: #0369a1;
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
  color: #1769AA;
}

.mobile-drawer-lang {
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
}

.mobile-drawer-contact {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14, 30, 51, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Hide Google Translate Banner Artifacts */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0px !important;
}

.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   BREAKPOINTS: 1024px, 768px, 480px, 360px
   ========================================================================== */

/* Medium Devices (Tablets, small laptops <= 1024px) */
@media (max-width: 1024px) {
  .main-nav {
    gap: 15px;
  }
  .nav-link {
    font-size: 14px;
    padding: 6px 10px;
  }
  .header-logo-img {
    height: 46px;
    max-width: 210px;
  }
  .page-hero-title {
    font-size: 34px;
  }
}

/* Small Devices (Tablets, Mobile <= 991px) */
@media (max-width: 991px) {
  .main-nav {
    display: none !important;
  }
  .mobile-toggle {
    display: flex;
  }
  
  /* Hero stack */
  .page-hero-banner {
    padding: 70px 0 60px 0;
  }
  .page-hero-banner .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 35px !important;
  }
  
  /* Two-column layout wrappers stack */
  section div[style*="grid-template-columns: 1fr 1fr"],
  section div[style*="grid-template-columns: 1.1fr 0.9fr"],
  section div[style*="grid-template-columns: 2fr 1fr"],
  section div[style*="grid-template-columns: 1fr 1.2fr"],
  section div[style*="grid-template-columns: 1fr 1.3fr"] {
    grid-template-columns: 1fr !important;
    gap: 35px !important;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }
}

/* Handheld Mobile (Smartphones <= 768px) */
@media (max-width: 768px) {
  .topbar {
    padding: 8px 0;
    font-size: 11px;
  }
  .topbar-inner {
    flex-direction: column !important;
    gap: 8px;
    text-align: center;
  }
  .topbar-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .header-inner {
    padding: 10px 0;
  }
  .header-logo-img {
    height: 42px;
    max-width: 190px;
  }
  .header-cta-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .page-hero-title {
    font-size: 28px;
  }
  .page-hero-lead {
    font-size: 15px;
  }
  
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hero-stat-pill {
    padding: 10px 6px;
  }
  .hero-stat-pill .num {
    font-size: 22px;
  }
  .hero-stat-pill .lbl {
    font-size: 10px;
  }
  
  .services-grid,
  .partner-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Form columns stack */
  form div[style*="grid-template-columns:1fr 1fr"],
  form div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
}

/* Extra Small Phones (360px - 480px, e.g. iPhone SE, Galaxy, Pixel) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px !important;
  }
  
  .header-cta-btn span {
    display: none;
  }
  .header-cta-btn {
    padding: 8px 10px;
    border-radius: 8px;
  }
  
  .header-logo-img {
    height: 36px;
    max-width: 160px;
  }
  
  .page-hero-title {
    font-size: 24px;
    line-height: 1.25;
  }
  
  .hero-pill {
    font-size: 11px;
    padding: 4px 12px;
  }
  
  .btn {
    padding: 11px 18px;
    font-size: 13px;
  }
  
  .logo-item {
    min-width: 140px;
    height: 70px;
    padding: 10px 18px;
  }
  .logo-item img {
    max-height: 42px;
    max-width: 110px;
  }
}


/* ==========================================================================
   ADVANCED MOBILE RESPONSIVE & RTL ENHANCEMENTS (360px - 1024px)
   ========================================================================== */

/* Prevent Horizontal Window Overflow */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* LTR Phone & Email Enforcement in all contexts */
.tel-ltr {
  direction: ltr !important;
  unicode-bidi: embed !important;
  text-align: left !important;
  display: inline-block !important;
}

/* RTL Mode Polish */
html[dir="rtl"],
body.rtl-layout {
  font-family: 'Cairo', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  text-align: right;
}

html[dir="rtl"] .topbar-links,
html[dir="rtl"] .main-nav {
  direction: rtl;
}

html[dir="rtl"] .mobile-drawer {
  right: auto !important;
  left: 0 !important;
  transform: translateX(-100%) !important;
}

html[dir="rtl"] .mobile-drawer.open {
  transform: translateX(0) !important;
}

html[dir="rtl"] .mobile-nav-link i {
  margin-right: 0 !important;
  margin-left: 12px !important;
}

html[dir="rtl"] .hero-pill i,
html[dir="rtl"] .story-badge-float i {
  margin-right: 0 !important;
  margin-left: 6px !important;
}

/* Hide Google Translate Bar Frames seamlessly */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
body {
  top: 0px !important;
  position: static !important;
}
.skiptranslate:not(.goog-te-combo) {
  display: none !important;
}
#goog-gt-tt, .goog-te-balloon-frame {
  display: none !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Tablet & iPad Viewports (<= 991px) */
@media (max-width: 991px) {
  .hero-grid-responsive,
  .story-grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 35px !important;
  }
  
  .form-row-responsive {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .consultation-form-card {
    padding: 28px 20px !important;
  }
}

/* Handheld Mobile Viewports (<= 768px) */
@media (max-width: 768px) {
  .hero-grid-responsive,
  .story-grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
  
  .hero-btns-responsive {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  
  .hero-btns-responsive .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Form inputs touch targets */
  .form-control {
    min-height: 48px !important;
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
  }
}

/* Extra Small Mobile (360px - 480px, e.g. iPhone SE, Galaxy S) */
@media (max-width: 480px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .topbar-links a,
  .topbar-links span {
    font-size: 11px !important;
  }

  .header-logo-img {
    height: 34px !important;
    max-width: 150px !important;
  }

  .header-cta-btn {
    padding: 7px 10px !important;
  }
  .header-cta-btn span {
    display: none !important;
  }

  .page-hero-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .page-hero-lead {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .hero-stat-pill {
    padding: 8px 4px !important;
  }
  .hero-stat-pill .num {
    font-size: 20px !important;
  }
  .hero-stat-pill .lbl {
    font-size: 10px !important;
  }

  .consultation-form-card {
    padding: 20px 14px !important;
    border-radius: 12px !important;
  }

  .logo-item {
    min-width: 120px !important;
    height: 60px !important;
    padding: 6px 12px !important;
  }
  .logo-item img {
    max-height: 36px !important;
    max-width: 90px !important;
  }
}
