/* SHAQ Logistics — Website Styles
   Design inspired by Maersk: clean, professional, deep blue palette
============================================================ */

:root {
  --navy: #0A2540;
  --navy-light: #1a3a5c;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --accent: #00b4d8;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --white: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  border-radius: 4px;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1px;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 6px;
  transition: all .2s;
}

.main-nav li a:hover,
.main-nav li.active a {
  color: var(--navy);
  background: var(--gray-100);
}

/* Nav dropdown */
.main-nav li.has-dropdown { position: relative; }
.main-nav li.has-dropdown > a::after {
  content: " ▾";
  font-size: 11px;
  opacity: .6;
}
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 1100;
}
.main-nav li.has-dropdown:hover .dropdown,
.main-nav li.has-dropdown:focus-within .dropdown {
  display: block;
}
.main-nav .dropdown li { list-style: none; }
.main-nav .dropdown li a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gray-700);
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav .dropdown li a:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  gap: 2px;
}

.lang-btn {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all .2s;
}

.lang-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.lang-btn.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

.btn-wa {
  background: #25d366;
  color: white;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
}

.btn-wa:hover { background: #1da851; color: white; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0d3b5c 40%, #15406b 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(0,180,216,.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(37,99,235,.10) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--navy-light));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 760px;
}

.hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--navy);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin-top: 8px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray-500);
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .3s;
}

.service-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.icon-ship { background: #e0f2fe; }
.icon-ship::before { content: "🚢"; }
.icon-plane { background: #fef3c7; }
.icon-plane::before { content: "✈️"; }
.icon-project { background: #fce7f3; }
.icon-project::before { content: "🏗️"; }
.icon-warehouse { background: #d1fae5; }
.icon-warehouse::before { content: "📦"; }
.icon-customs { background: #e0e7ff; }
.icon-customs::before { content: "📋"; }
.icon-door { background: #f3e8ff; }
.icon-door::before { content: "🚛"; }

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.why-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== ROUTES TABLE ===== */
.routes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
}

.routes-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.routes-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.routes-table tbody tr:hover {
  background: var(--gray-50);
}

.routes-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 56px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
}

/* ===== LEAD TEXT ===== */
.lead {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.9;
  max-width: 900px;
}

/* ===== INFO GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== CLIENTS ===== */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.client-tag {
  padding: 12px 28px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-700);
  transition: all .2s;
}

.client-tag:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ===== FACTS ===== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.fact-item {
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: 8px;
  font-size: 14px;
}

.fact-item strong {
  color: var(--navy);
  display: inline-block;
  min-width: 120px;
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 32px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}

.faq-q:hover { background: var(--gray-50); }

.faq-icon {
  font-size: 22px;
  color: var(--gray-400);
  transition: transform .2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
}

.faq-item.open .faq-a { max-height: 300px; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.contact-item strong {
  color: var(--navy);
  font-size: 14px;
}

.contact-item a {
  font-size: 16px;
  color: var(--blue);
}

.contact-wa {
  margin-top: 32px;
}

.contact-form-box {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: 14px; }
.footer-col a:hover { color: var(--white); }

.footer-about img { margin-bottom: 16px; border-radius: 4px; }
.footer-about p { font-size: 13px; line-height: 1.8; }

.footer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 4px;
}

.footer-lang-label {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-right: 4px;
}

.footer-lang .lang-btn {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
}

.footer-lang .lang-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--accent);
  color: var(--white);
}

.footer-lang .lang-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .main-nav ul { flex-wrap: nowrap; }
  .hero-content h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 24px; }
  .routes-table { font-size: 12px; }
  .routes-table th, .routes-table td { padding: 10px 12px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 48px 24px; }
  .hero-content h1 { font-size: 24px; }
}


/* ===== RTL (Arabic) ===== */
html[dir="rtl"] {
  text-align: right;
}
html[dir="rtl"] .main-nav ul {
  flex-direction: row-reverse;
}
html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}
html[dir="rtl"] .lang-switch {
  flex-direction: row-reverse;
}
html[dir="rtl"] .footer-grid {
  direction: rtl;
}
html[dir="rtl"] .routes-table th,
html[dir="rtl"] .routes-table td {
  text-align: right;
}
html[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
}
html[dir="rtl"] .why-grid,
html[dir="rtl"] .services-grid,
html[dir="rtl"] .info-grid,
html[dir="rtl"] .facts-grid {
  direction: rtl;
}
