/* =========================================================
   Line In — About Us
   Palette: Navy Gold
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --primary: #1C75BC;
  --primary-600: #155F9C;
  --accent: #D6AB84;
  --accent-soft: #E5C09E;
  --accent-strong: #AB896A;

  --dark-bg: #071526;
  --dark-surface: #0B1F33;

  --light-bg: #F0F2F5;
  --light-surface: #FFFFFF;

  --service-taxi: #F5C518;
  --on-service-taxi: #141414;
  --service-food: #E07A33;
  --service-private-driver: #AB896A;
  --service-maintenance: #EB353C;
  --service-car-wash: #1C75BC;

  --success: #2E9E6B;
  --warning: #E0A030;
  --error: #EB353C;
  --info: #1C75BC;

  --text: #0E1B2A;
  --text-muted: #5A6B7E;
  --text-invert: #EAF1F8;
  --text-invert-muted: #A9BCD0;

  --border: rgba(14, 27, 42, 0.08);
  --border-strong: rgba(14, 27, 42, 0.14);
  --border-dark: rgba(255, 255, 255, 0.10);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(7, 21, 38, 0.05), 0 4px 14px rgba(7, 21, 38, 0.05);
  --shadow: 0 12px 34px rgba(7, 21, 38, 0.10), 0 2px 6px rgba(7, 21, 38, 0.05);
  --shadow-lg: 0 28px 64px rgba(7, 21, 38, 0.18);

  --container: 1120px;
  --header-h: 72px;

  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-ar: 'Cairo', 'Inter', system-ui, 'Segoe UI', Tahoma, sans-serif;

  --ease: cubic-bezier(0.22, 0.72, 0.18, 1);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-en);
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

html[lang='ar'] body {
  font-family: var(--font-ar);
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 21, 38, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  min-width: 0;
}

.brand-logo {
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.brand-name {
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  flex: 0 0 auto;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}

.lang-btn:hover:not(.is-active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn:active {
  transform: scale(0.97);
}

.lang-btn.is-active {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #1a1408;
  box-shadow: 0 4px 14px rgba(214, 171, 132, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--text-invert);
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 112px);
  background:
    radial-gradient(1200px 520px at 88% -12%, rgba(28, 117, 188, 0.30), transparent 62%),
    radial-gradient(860px 420px at 8% 0%, rgba(214, 171, 132, 0.16), transparent 60%),
    linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 22px;
}

.hero-eyebrow-logo {
  border-radius: 8px;
  flex: 0 0 auto;
}

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 22ch;
}

html[lang='ar'] .hero-title {
  letter-spacing: 0;
  line-height: 1.3;
  max-width: 26ch;
}

.hero-summary {
  margin-top: 18px;
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--text-invert-muted);
}

.hero-summary .skeleton + .skeleton {
  margin-top: 12px;
}

/* Service chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-invert);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

/* Meta line */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.58);
  min-height: 1.2em;
}

.hero-meta .sep {
  opacity: 0.4;
}

/* ---------- Skeletons ---------- */
.skeleton {
  display: block;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 20%,
    rgba(255, 255, 255, 0.18) 40%,
    rgba(255, 255, 255, 0.06) 60%
  );
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

.sk-title {
  height: 1.05em;
  width: min(440px, 70%);
}

.sk-text {
  height: 0.78em;
  width: 100%;
  max-width: 560px;
}

.sk-text.sk-short {
  width: 60%;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- Content ---------- */
.content {
  position: relative;
  z-index: 2;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 104px);
}

.overview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.overview-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

html[lang='ar'] .overview-title {
  letter-spacing: 0;
}

.overview-title::before {
  content: '';
  width: 6px;
  height: 1.05em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent-strong));
  flex: 0 0 auto;
}

/* Notice */
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  background: #FCF3E2;
  border: 1px solid #EBC98C;
  color: #6B4A10;
  font-size: 0.92rem;
  margin-bottom: 24px;
  animation: cardIn 0.45s var(--ease) both;
}

.notice[hidden] {
  display: none;
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--warning);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 auto;
}

.notice-text {
  flex: 1 1 220px;
}

.notice-retry {
  margin-inline-start: auto;
  border: 1px solid rgba(224, 160, 48, 0.55);
  background: #fff;
  color: #7A5510;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.notice-retry:hover {
  background: #FFF7E8;
}

.notice-retry:active {
  transform: scale(0.97);
}

/* Cards */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
  position: relative;
  background: var(--light-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  animation: cardIn 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(28, 117, 188, 0.18);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--icon-color, var(--primary));
  background: var(--icon-bg, rgba(28, 117, 188, 0.10));
  border: 1px solid var(--icon-border, rgba(28, 117, 188, 0.14));
  flex: 0 0 auto;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.card-index {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}

.card-heading {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

html[lang='ar'] .card-heading {
  letter-spacing: 0;
  font-size: 1.12rem;
}

.card-body {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-invert-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 42px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(214, 171, 132, 0.45),
    transparent
  );
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.footer-note {
  font-size: 0.94rem;
  max-width: 60ch;
  margin: 0;
}

.footer-rights {
  font-size: 0.8rem;
  opacity: 0.65;
  margin: 0;
}

/* ---------- Legal pages ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.contents {
  background: var(--light-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.contents-title {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[lang='ar'] .contents-title {
  letter-spacing: 0;
}

.contents-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contents-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.contents-list a:hover {
  background: rgba(28, 117, 188, 0.07);
  color: var(--primary);
}

.contents-num {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.legal-body {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.legal-section {
  padding: clamp(22px, 3vw, 34px);
  background: var(--light-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 24px);
  animation: cardIn 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.legal-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.legal-index {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(171, 137, 106, 0.2);
  border-radius: 8px;
  background: rgba(171, 137, 106, 0.12);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.legal-heading {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

html[lang='ar'] .legal-heading {
  letter-spacing: 0;
}

.legal-heading .anchor {
  margin-inline-start: 8px;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.legal-section:hover .anchor,
.legal-heading .anchor:focus-visible {
  opacity: 1;
}

.legal-section p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
}

.legal-list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.legal-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-strong));
}

/* Footer navigation */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.88rem;
}

.footer-nav a {
  color: var(--text-invert-muted);
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-nav a[aria-current='page'] {
  color: var(--accent-soft);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-aside {
    position: static;
  }

  .contents-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .hero {
    padding-block: 44px 72px;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
  }

  .hero-summary {
    margin-top: 14px;
  }

  .chips {
    margin-top: 24px;
    gap: 8px;
  }

  .chip {
    font-size: 0.82rem;
    padding: 7px 12px;
  }

  .hero-meta {
    margin-top: 22px;
    font-size: 0.78rem;
  }

  .card {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .lang-btn {
    padding: 6px 11px;
  }

  .card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .card-icon svg {
    width: 22px;
    height: 22px;
  }

  .notice-retry {
    margin-inline-start: 0;
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}