/* ============================================================
   TODOMA LOGISTICS — Production Stylesheet
   Version: 1.0 | Language: Arabic (RTL) Primary
   Colors: #0A2540 (Navy) | #FF6B35 (Orange) | #FFFFFF
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Cairo', 'Inter', sans-serif;
  color: #0A2540;
  background: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ---- DESIGN TOKENS ---- */
:root {
  --navy:        #0A2540;
  --navy-2:      #0F3258;
  --orange:      #FF6B35;
  --orange-2:    #e55a24;
  --white:       #FFFFFF;
  --bg-light:    #F8FAFC;
  --border:      #E2E8F0;
  --muted:       #5B6B82;
  --muted-dark:  #9FB0C5;
  --green:       #1A7F4A;
  --green-bg:    #EEF6F0;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-card: 0 2px 8px rgba(10,37,64,0.07);
  --shadow-float:0 20px 48px -16px rgba(10,37,64,0.28);
  --maxw:        1200px;
  --section-py:  48px;
}

/* ---- LAYOUT ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 80px;
}
.section       { padding: var(--section-py) 0; }
.section-light { background: var(--bg-light); }
.section-dark  { background: var(--navy); }
.center        { text-align: center; }

.section-head {
  margin-bottom: 32px;
}
.section-head.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}
.section-head p { margin-top: 14px; }

/* ---- TYPOGRAPHY ---- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: normal; text-transform: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1    { font-size: 56px; letter-spacing: -0.02em; line-height: 1.1; }
html[lang="ar"] h1 { letter-spacing: normal; }
h2    { font-size: 38px; }
h3    { font-size: 21px; }
h4    { font-size: 15px; }
p     { color: var(--muted); font-size: 16px; line-height: 1.75; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  padding: 13px 28px;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border: 2px solid #25D366;
}
.btn-whatsapp:hover { background: #1dba58; border-color: #1dba58; }

.btn-lg   { padding: 16px 36px; font-size: 16px; }
.btn-sm   { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }

.wa-icon {
  width: 18px;
  height: 18px;
  fill: var(--white);
  flex-shrink: 0;
}
.btn-lg .wa-icon { width: 20px; height: 20px; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-wrap {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo-sub { font-weight: 400; opacity: 0.6; }
.logo-white .logo-mark { background: var(--orange); }
.logo-white .logo-text { color: var(--white); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}
.hamburger span {
  height: 2px;
  background: var(--navy);
  width: 100%;
  display: block;
  transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 84px;
  background: var(--navy);
  z-index: 101;
  padding: 32px 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 96px 0 108px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-h1 {
  font-size: 58px;
  color: var(--white);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted-dark);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.section-dark .eyebrow { color: var(--orange); }
.section-dark h2       { color: var(--white); }

/* HERO DASHBOARD CARD */
.dash-card {
  background: linear-gradient(155deg, #0F3258 0%, #16426A 55%, #0A2540 100%);
  border-radius: var(--radius-lg);
  padding: 28px 28px 56px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  aspect-ratio: 4 / 3.1;
  border: 1px solid rgba(255,255,255,0.08);
}
.dash-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 60% 40%, black, transparent 75%);
}
.dash-label {
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-dark);
  position: relative;
  z-index: 2;
  font-weight: 600;
}
.dash-route {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  z-index: 3;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,53,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(255,107,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); }
}
.float-card {
  position: absolute;
  bottom: -2px;
  right: 24px;
  left: 24px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-float);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
}
.float-stat { display: flex; align-items: center; gap: 10px; }
.float-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.status-chip {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-active  { background: var(--green-bg);            color: var(--green); }
.status-monitor { background: #FFF1E8; color: var(--orange); }
.status-chip .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ============================================================
   WHY TODOMA
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.why-item h3  { margin: 14px 0 8px; }
.why-item p   { font-size: 15px; }
.why-icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
}
.why-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   SERVICES GRID (5 cards: 3+2)
   ============================================================ */
@media (min-width: 981px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
  }
  .services-grid .card            { grid-column: span 2; }
  .services-grid .card:nth-child(4) { grid-column: 2 / span 2; }
  .services-grid .card:nth-child(5) { grid-column: 4 / span 2; }
}

/* CARDS */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color 0.2s, transform 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--navy); transform: translateY(-3px); }
}
.badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.badge svg {
  width: 24px;
  height: 24px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-bottom: 10px; font-size: 18px; }
.card p  { font-size: 15px; margin-bottom: 16px; }
.card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.card-link:hover { gap: 8px; }

/* ============================================================
   HOW WE OPERATE (TIMELINE)
   ============================================================ */
.operate-section { padding: var(--section-py) 0; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255,255,255,0.16);
}
.t-marker {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.t-body h3 { color: var(--white); margin-bottom: 8px; font-size: 18px; }
.t-body p  { color: var(--muted-dark); font-size: 15px; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.industries-standard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.ind-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .ind-card:hover { border-color: var(--navy); transform: translateY(-3px); }
  .ind-card:hover .scene { transform: scale(1.04); }
}
.ind-visual {
  position: relative;
  overflow: hidden;
}
.ind-card.featured .ind-visual { aspect-ratio: 16 / 9; }
.ind-card.standard .ind-visual { aspect-ratio: 4 / 3; }
.ind-visual svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s ease; }

.ind-icon {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}
.priority-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,107,53,0.92);
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 3;
}
.ind-body { padding: 20px 22px 26px; }
.ind-body h3 { margin-bottom: 8px; font-size: 17px; }
.ind-body p  { font-size: 14px; line-height: 1.6; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid h2    { margin-bottom: 20px; }
.about-grid p     { margin-bottom: 16px; max-width: 520px; }
.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 24px rgba(10,37,64,0.06);
  max-width: 88%;
  margin: 0 auto;
}
.about-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,37,64,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,37,64,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.about-icon-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-icon-center::before {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
}
.about-icon-center::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  top: calc(50% - 66px);
  right: calc(50% - 66px);
  transform: translate(50%, -50%);
}
.about-icon-center svg {
  position: relative;
  width: 60px;
  height: 60px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: flex-start;
}
.contact-grid h2    { margin-bottom: 14px; }
.contact-grid > div > p { margin-bottom: 14px; }
.contact-quote {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.55;
  margin: 20px 0 28px;
  padding-inline-start: 18px;
  border-inline-start: 3px solid var(--orange);
}
.contact-info-block { display: flex; flex-direction: column; gap: 14px; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
}
.contact-info-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.contact-info-item a { color: var(--muted); }
.contact-info-item a:hover { color: var(--navy); }

/* FORM */
.form-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s;
  direction: rtl;
}
.field input,
.field select { height: 48px; }
.field textarea {
  padding: 12px 14px;
  min-height: 100px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field input.field-error,
.field select.field-error,
.field textarea.field-error {
  border-color: #D64545;
}
.field-error-msg {
  display: none;
  color: #D64545;
  font-size: 13px;
  margin-top: 6px;
}
.field-error-msg.show { display: block; }
.field input::placeholder,
.field textarea::placeholder { color: #A0AEC0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  color: var(--muted-dark);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
html[lang="ar"] .dash-label,
html[lang="ar"] .priority-tag,
html[lang="ar"] .footer-grid h4 { letter-spacing: normal; text-transform: none; }
.footer-grid a {
  display: block;
  color: var(--muted-dark);
  font-size: 14.5px;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--white); }
.footer-contact-info {
  font-size: 13.5px;
  color: var(--muted-dark);
  line-height: 1.9;
  margin-top: 16px;
}
.footer-bottom {
  text-align: center;
  padding: 22px 0;
}
.footer-bottom p { font-size: 13px; color: #6E83A0; }

/* ============================================================
   RESPONSIVE — TABLET (max-width: 1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .wrap           { padding: 0 48px; }
  :root           { --section-py: 40px; }
  h1              { font-size: 46px; }
  h2              { font-size: 32px; }
  .hero-h1        { font-size: 44px; }
  .why-grid       { grid-template-columns: 1fr 1fr; gap: 36px; }
  .services-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .services-grid .card,
  .services-grid .card:nth-child(4),
  .services-grid .card:nth-child(5) { grid-column: auto; }
  .contact-grid   { gap: 40px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .wrap         { padding: 0 20px; }
  :root         { --section-py: 32px; }
  h1            { font-size: 36px; }
  h2            { font-size: 28px; }
  .hero-h1      { font-size: 36px; }
  .hero-sub     { font-size: 16px; }

  .nav-links    { display: none; }
  .nav-actions .btn:not(.hamburger) { display: none; }
  .hamburger    { display: flex; }
  .nav-wrap     { height: 84px; }

  .hero         { padding: 48px 0 56px; }
  .hero-grid    { grid-template-columns: 1fr; gap: 36px; }
  .hero-ctas    { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .why-grid     { grid-template-columns: 1fr; gap: 32px; }

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

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline::before { display: none; }
  .t-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    padding-bottom: 32px;
    position: relative;
  }
  .t-step::before {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 0;
    right: 19px;
    width: 1px;
    background: rgba(255,255,255,0.15);
  }
  .t-step:last-child::before { display: none; }
  .t-marker { margin-bottom: 0; }

  .industries-featured { grid-template-columns: 1fr; }
  .industries-standard { grid-template-columns: 1fr; max-width: 100%; }

  .about-grid   { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { order: -1; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-card    { padding: 28px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-brand p { max-width: 100%; }

  .section-head.center { margin-bottom: 40px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal         { transition: none; }
  .pulse-dot      { animation: none; }
  *               { transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mt-48  { margin-top: 48px; }
.mb-0   { margin-bottom: 0; }
.text-white { color: var(--white) !important; }
.text-orange { color: var(--orange) !important; }
.text-muted  { color: var(--muted) !important; }
