/* ==========================================================================
   الشركة الكويتية للتوصيل | Kuwait Delivery Company
   Main Stylesheet — Pure Static CSS (Mobile-First, RTL/LTR Bilingual)
   ========================================================================== */

:root {
  /* Brand Palette */
  --color-primary: #0F5240;
  --color-primary-dark: #0A3A2D;
  --color-primary-light: #176953;
  --color-gold: #C7A44E;
  --color-gold-light: #DFC47B;
  --color-gold-muted: rgba(199, 164, 78, 0.16);
  --color-white: #FFFFFF;
  --color-cream: #F7F5EF;
  --color-cream-alt: #EFECE2;
  --color-text: #14231E;
  --color-text-secondary: #5B6B65;
  --color-border: rgba(20, 35, 30, 0.1);
  --color-border-gold: rgba(199, 164, 78, 0.35);

  /* Semantic States */
  --color-success: #0F5240;
  --color-success-bg: #EAF4F0;
  --color-error: #9B2C2C;
  --color-error-bg: #FDF2F2;
  --color-info: #1E4E68;
  --color-info-bg: #EEF6FA;

  /* Typography */
  --font-sans: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Arial, sans-serif;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 14px rgba(15, 82, 64, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 82, 64, 0.08);
  --shadow-lg: 0 24px 56px rgba(10, 58, 45, 0.14);

  /* Spacing & Layout */
  --container-max: 1200px;
  --header-height: 68px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (min-width: 768px) {
  :root {
    --header-height: 76px;
  }
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

main,
section,
header,
footer {
  max-width: 100%;
}

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

img {
  height: auto;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 9999;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   Scroll Progress Bar & Page Transition
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  width: 100%;
  max-width: 100%;
  height: 3px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}

.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
  transform-origin: right center;
  transform: scaleX(0);
  will-change: transform;
}

[dir="ltr"] .scroll-progress__bar {
  transform-origin: left center;
}

.page-transition {
  position: fixed;
  inset: 0;
  background-color: var(--color-primary-dark);
  z-index: 9500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-smooth);
}

.page-transition.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ==========================================================================
   Splash Screen (Intro Curtain — Once Per Session)
   ========================================================================== */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9800;
  padding: 24px 16px;
  text-align: center;
  background: radial-gradient(circle at center, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--color-white);
  transition: transform 0.75s var(--ease-out-expo), opacity 0.6s ease;
  will-change: transform, opacity;
}

.splash-screen.is-leaving {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.splash-screen.is-hidden {
  display: none;
}

.splash-logo-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.splash-ring circle {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 2.5;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: splashRingDraw 1.05s var(--ease-out-expo) forwards;
}

.splash-badge {
  width: 78px;
  height: 78px;
  background-color: var(--color-white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.84);
  animation: splashLogoIn 0.65s var(--ease-out-expo) 0.15s forwards;
}

.splash-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splash-title {
  font-size: clamp(1.0625rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(10px);
  animation: splashTextIn 0.6s var(--ease-out-expo) 0.38s forwards;
}

@keyframes splashRingDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes splashLogoIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Layout Utilities & Typography
   ========================================================================== */
.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
  padding-inline: clamp(16px, 2.5vw, 32px);
}

.section {
  padding-block: clamp(3rem, 6vw, 6rem);
  position: relative;
  overflow-x: clip;
}

.section--cream {
  background-color: var(--color-cream);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--dark-deep {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.section-header {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: clamp(0.8125rem, 1vw + 0.55rem, 0.9rem);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.section--dark .eyebrow,
.section--dark-deep .eyebrow {
  color: var(--color-gold-light);
}

.section-title {
  font-size: clamp(1.5rem, 2.6vw + 0.75rem, 2.5rem);
  font-weight: 800;
  line-height: 1.32;
  color: var(--color-text);
  margin-bottom: 16px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.section--dark .section-title,
.section--dark-deep .section-title {
  color: var(--color-white);
}

.section-subtitle {
  font-size: clamp(0.96875rem, 0.9vw + 0.72rem, 1.125rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
  overflow-wrap: break-word;
}

.section--dark .section-subtitle,
.section--dark-deep .section-subtitle {
  color: rgba(255, 255, 255, 0.86);
}

/* Self-Drawing Gold Hairline Divider */
.gold-rule {
  width: 88px;
  height: 4px;
  display: block;
  margin-top: 14px;
  margin-bottom: 18px;
  overflow: visible;
}

.section-header--center .gold-rule,
.gold-rule--center {
  margin-inline: auto;
}

.gold-rule line {
  stroke: var(--color-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s var(--ease-out-expo);
}

.gold-rule.is-visible line {
  stroke-dashoffset: 0;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-gold), transparent);
}

/* ==========================================================================
   Header & Navigation (Sticky, Single-Row 3-Zone)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(15, 82, 64, 0.08);
  background-color: var(--color-white);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Brand Lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
}

.brand__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--color-white);
  flex-shrink: 0;
}

.brand__name {
  font-size: clamp(0.75rem, 2.4vw, 1.0625rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 479px) {
  .header-inner {
    gap: 6px;
  }

  .brand {
    gap: 7px;
  }

  .brand__logo {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-toggle {
    min-width: 40px;
    height: 40px;
    padding-inline: 8px;
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) {
  .brand {
    gap: 12px;
  }

  .brand__logo {
    width: 42px;
    height: 42px;
  }
}

/* Desktop Nav */
.main-nav {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 1080px) {
  .main-nav {
    display: flex;
  }
}

@media (min-width: 1240px) {
  .main-nav {
    gap: 24px;
  }
}

.main-nav__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  padding-block: 6px;
  transition: color 0.2s ease;
}

.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out-expo);
}

.main-nav__link:hover,
.main-nav__link.is-active {
  color: var(--color-primary);
}

.main-nav__link:hover::after,
.main-nav__link.is-active::after {
  transform: scaleX(1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding-inline: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-cream);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .lang-toggle:hover {
    border-color: var(--color-gold);
    background-color: var(--color-white);
  }
}

.header-cta {
  display: none;
}

@media (min-width: 1080px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hamburger Button */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  background-color: var(--color-white);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-toggle.is-active {
  background-color: var(--color-cream);
  border-color: var(--color-gold);
}

.menu-toggle__line {
  transition: transform 0.25s var(--ease-out-expo), opacity 0.2s ease;
  transform-origin: center;
}

.menu-toggle.is-active .menu-toggle__line--top {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__line--mid {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle__line--bot {
  transform: translateY(-5px) rotate(-45deg);
}

@media (min-width: 1080px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Fullscreen Drawer */
.mobile-drawer {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  height: calc(100dvh - var(--header-height));
  z-index: 990;
  background-color: var(--color-white);
  padding: 24px clamp(16px, 5vw, 32px) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s var(--ease-out-expo), visibility 0.28s ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

@media (min-width: 1080px) {
  .mobile-drawer {
    display: none;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav__link.is-active,
.mobile-nav__link:active {
  background-color: var(--color-cream);
  color: var(--color-primary);
  border-color: var(--color-border-gold);
}

.mobile-drawer .btn {
  width: 100%;
  min-height: 50px;
}

/* ==========================================================================
   Buttons (Primary Gold, Primary Green, Outline, Disabled Soon)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 640px) {
  .btn {
    white-space: nowrap;
    padding: 12px 24px;
  }
}

.btn--sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn--lg {
  min-height: 50px;
  padding: 14px 26px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.btn-group--center {
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .btn-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-text);
  box-shadow: 0 8px 20px rgba(199, 164, 78, 0.25);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--outline-white {
  background-color: rgba(0, 0, 0, 0.34);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn--outline-primary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

@media (hover: hover) and (pointer: fine) {
  .btn {
    will-change: transform;
  }
  .btn--gold:hover {
    background-color: var(--color-gold-light);
    box-shadow: 0 12px 28px rgba(199, 164, 78, 0.35);
  }
  .btn--primary:hover {
    background-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
  }
  .btn--outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
  }
  .btn--outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
  }
}

.btn--disabled-soon {
  background-color: var(--color-cream);
  color: var(--color-text-secondary);
  border: 1px dashed rgba(20, 35, 30, 0.25);
  cursor: not-allowed;
  opacity: 0.92;
}

.soon-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-gold-muted);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   Hero Section (Natural Full-Bleed Video/Photo, Zero Green Background/Overlay)
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #14231E;
  padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 120px);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-color: #14231E;
}

.hero__bg-img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-img {
  z-index: 0;
}

.hero__video {
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: 720px;
  color: var(--color-white);
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hero__content .eyebrow {
  color: var(--color-gold-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero__title {
  font-size: clamp(1.8rem, 4.2vw + 0.65rem, 3.5rem);
  font-weight: 800;
  line-height: 1.26;
  margin-bottom: 16px;
  color: var(--color-white);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.9);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero__subtitle {
  font-size: clamp(0.96875rem, 1.1vw + 0.72rem, 1.1875rem);
  color: var(--color-white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
  line-height: 1.78;
  margin-bottom: 26px;
  max-width: 650px;
  overflow-wrap: break-word;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__actions .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero__actions .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero__media {
    inset: -5% 0;
    width: auto;
    height: auto;
    will-change: transform;
  }
}

/* Sub-page Editorial Header */
.page-hero {
  position: relative;
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding-block: clamp(44px, 6vw, 76px);
  overflow: hidden;
}

.page-hero--with-bg {
  background-color: #14231E;
  padding-block: clamp(56px, 7vw, 96px);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--with-bg .container {
  position: relative;
  z-index: 2;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero--with-bg .page-hero__inner {
  background: transparent;
  color: var(--color-white);
  border: none;
  box-shadow: none;
  padding: 0;
}

.page-hero__inner .eyebrow {
  color: var(--color-gold-light);
}

.page-hero--with-bg .eyebrow,
.page-hero--with-bg .page-hero__title,
.page-hero--with-bg .page-hero__desc {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.page-hero__title {
  font-size: clamp(1.625rem, 3.2vw + 0.75rem, 2.875rem);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 14px;
  color: var(--color-white);
  overflow-wrap: break-word;
}

.page-hero__desc {
  font-size: clamp(0.96875rem, 1vw + 0.72rem, 1.125rem);
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.75;
  overflow-wrap: break-word;
}

/* Dark-section White Logo Badge */
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.logo-badge img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* ==========================================================================
   Shipment Tracking Strip
   ========================================================================== */
.tracking-strip {
  position: relative;
  z-index: 10;
  margin-top: 0;
  padding-top: 24px;
  padding-bottom: 24px;
  background-color: var(--color-white);
}

@media (min-width: 768px) {
  .tracking-strip {
    margin-top: -54px;
    padding-top: 0;
    background-color: transparent;
  }
}

.tracking-box {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.tracking-box > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .tracking-box {
    grid-template-columns: 1.1fr 1.4fr;
    gap: 32px;
  }
}

.tracking-box__title {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.tracking-box__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.tracking-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tracking-form__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 576px) {
  .tracking-form__row {
    flex-direction: row;
  }
}

.tracking-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-cream);
  color: var(--color-text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tracking-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
}

.tracking-notice {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(30, 78, 104, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
}

.tracking-notice.is-visible {
  display: block;
  animation: fadeSlideUp 0.3s var(--ease-out-expo);
}

/* ==========================================================================
   Services Marquee Strip
   ========================================================================== */
.marquee-band {
  width: 100%;
  max-width: 100%;
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  border-top: 1px solid rgba(199, 164, 78, 0.25);
  border-bottom: 1px solid rgba(199, 164, 78, 0.25);
  padding-block: 16px;
  overflow: hidden;
  contain: layout style;
  direction: ltr; /* Predictable smooth GPU loop regardless of page dir */
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .marquee-band:hover .marquee-track {
    animation-play-state: paused;
  }
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.marquee-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-gold);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   Cards & Responsive Grids (auto-fit + minmax)
   ========================================================================== */
.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
}

.grid > * {
  min-width: 0;
}

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

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  }
}

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

@media (min-width: 768px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  }
}

.card {
  position: relative;
  min-width: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.3s ease;
}

.section--cream .card {
  background-color: var(--color-white);
}

.card--cream {
  background-color: var(--color-cream);
}

.card--dark {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
}

/* Soft Gold Glow Following Pointer (Mouse Devices Only) */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(199, 164, 78, 0.14),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
  .card {
    transform-style: preserve-3d;
    will-change: transform;
  }
  .card:hover::before {
    opacity: 1;
  }
  .card:hover {
    border-color: var(--color-border-gold);
    box-shadow: var(--shadow-md);
  }
}

.card > * {
  position: relative;
  z-index: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.card--dark .card__icon {
  background-color: rgba(199, 164, 78, 0.14);
  color: var(--color-gold-light);
}

.card__num {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 10px;
  display: block;
}

.card__title {
  font-size: clamp(1.125rem, 1.4vw + 0.65rem, 1.3125rem);
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 12px;
  color: var(--color-text);
  overflow-wrap: break-word;
}

.card--dark .card__title {
  color: var(--color-white);
}

.card__text {
  font-size: 0.96875rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  overflow-wrap: break-word;
}

.card--dark .card__text {
  color: rgba(255, 255, 255, 0.8);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-primary);
  transition: gap 0.2s ease, color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card__link:hover {
    gap: 12px;
    color: var(--color-gold);
  }
}

[dir="ltr"] .icon-flip-ltr {
  transform: scaleX(-1);
}

/* ==========================================================================
   Split Content & Image Reveal Frames (Image Above Text on Mobile)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 36px);
  align-items: center;
}

.split--start {
  align-items: start;
}

.split > * {
  min-width: 0;
}

.split__media {
  order: -1;
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  .split__media {
    order: 0;
  }

  .split--reverse .split__media {
    order: -1;
  }
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-cream-alt);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.media-frame--tall {
  aspect-ratio: 4 / 3;
}

@media (min-width: 992px) {
  .media-frame--tall {
    aspect-ratio: 3 / 4;
  }
}

.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(199, 164, 78, 0.25);
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transform: scale(1.06);
  transition: clip-path 1s var(--ease-out-expo), transform 1.2s var(--ease-out-expo), opacity 0.4s ease;
  will-change: clip-path, transform;
}

.media-frame.is-visible img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* Resilient fallback if image fails to load */
.media-frame.is-broken {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.media-frame.is-broken img {
  opacity: 0;
}

.media-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.media-frame.is-broken .media-fallback {
  display: flex;
}

/* Feature Bullet List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.feature-list--spaced {
  margin-top: 18px;
  gap: 16px;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-text);
  overflow-wrap: break-word;
}

.feature-list__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-gold-muted);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Animated SVG Route ("How We Work" & Technology Pipeline)
   ========================================================================== */
.route-diagram-wrap {
  position: relative;
  margin-top: 24px;
  max-width: 100%;
  overflow: hidden;
}

.route-svg-track {
  display: none;
}

@media (min-width: 992px) {
  .route-svg-track {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 74px;
    margin-bottom: -18px;
    overflow: hidden;
  }
}

.route-path-bg {
  fill: none;
  stroke: var(--color-border-gold);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.route-path-draw {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 3;
  stroke-linecap: round;
}

.route-rider-dot {
  fill: var(--color-primary);
  stroke: var(--color-gold);
  stroke-width: 3;
}

.route-rider-halo {
  fill: rgba(199, 164, 78, 0.28);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 20px);
}

.steps-grid > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .steps-grid--4,
  .steps-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.step-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 26px) clamp(18px, 2vw, 22px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out-expo), border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .step-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
  }
}

.step-card__badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: var(--color-gold-light);
  font-weight: 800;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card__title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
}

.step-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   CTA Full-Width Banner (Natural Image, Zero Green Background/Overlay)
   ========================================================================== */
.cta-banner {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
  background-color: #14231E;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner__inner {
  position: relative;
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
  background: transparent;
  color: var(--color-white);
  border: none;
  box-shadow: none;
  padding: 0;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3vw + 0.6rem, 2.375rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--color-white);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
  overflow-wrap: break-word;
}

.cta-banner__desc {
  font-size: clamp(0.96875rem, 1vw + 0.72rem, 1.125rem);
  color: var(--color-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
  margin-bottom: 28px;
  overflow-wrap: break-word;
}

/* ==========================================================================
   Forms, Tables & Tabs (Platforms, Merchants, Riders)
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.form-card {
  width: 100%;
  min-width: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 40px);
  box-shadow: var(--shadow-md);
}

.form-card--centered {
  max-width: 860px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}

.form-label .req {
  color: var(--color-error);
  margin-inline-start: 3px;
}

.form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-cream);
  color: var(--color-text);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(15, 82, 64, 0.1);
}

.form-control.is-invalid {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}

textarea.form-control {
  min-height: 112px;
  resize: vertical;
}

.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-option {
  flex: 1 1 110px;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-cream);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-option:has(input:checked) {
  border-color: var(--color-primary);
  background-color: var(--color-success-bg);
  color: var(--color-primary);
}

.honeypot-field {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.form-submit-wrap {
  margin-top: 22px;
}

.form-submit-wrap .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .form-submit-wrap .btn {
    width: auto;
  }
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(15, 82, 64, 0.25);
}

.form-status.is-error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(155, 44, 44, 0.25);
}

.form-status.is-loading {
  background-color: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(30, 78, 104, 0.2);
}

/* Segmented Tabs (Contact Page) */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  background-color: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 5px;
  gap: 6px;
  margin-bottom: 24px;
}

@media (min-width: 576px) {
  .tabs-bar {
    display: inline-flex;
    width: auto;
    max-width: 100%;
  }
}

.tab-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-btn.is-active {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: fadeSlideUp 0.35s var(--ease-out-expo);
}

.form-card__intro {
  margin-bottom: 24px;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.contact-item-label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text);
}

.map-frame__desc {
  max-width: 340px;
}

.section-cta-center {
  text-align: center;
  margin-top: clamp(28px, 5vw, 44px);
}

/* Architectural Map Placeholder */
.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-gold);
  background:
    linear-gradient(to right, rgba(15, 82, 64, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 82, 64, 0.05) 1px, transparent 1px),
    var(--color-cream);
  background-size: 32px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(22px, 4vw, 32px);
  overflow: hidden;
}

.map-pin {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(15, 82, 64, 0.24);
}

/* ==========================================================================
   Company Info Grid (About Page)
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.info-cell {
  min-width: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.info-cell__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.info-cell__value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  overflow-wrap: break-word;
}

/* ==========================================================================
   Admin Portal Page (Natural Background Photo, Zero Green Tint) & 404 Page
   ========================================================================== */
.admin-shell {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px) 16px;
  background-color: var(--color-cream-alt);
  overflow: hidden;
}

.admin-shell__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.admin-shell__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px) clamp(20px, 3.5vw, 32px);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-gold);
}

.admin-card__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.admin-card__title {
  font-size: clamp(1.375rem, 2.5vw + 0.5rem, 1.625rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.admin-card__desc {
  font-size: 0.96875rem;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.admin-card__back {
  margin-top: 20px;
}

.not-found-section {
  min-height: calc(100vh - 320px);
  min-height: calc(100svh - 320px);
  display: flex;
  align-items: center;
}

.not-found-inner {
  text-align: center;
  max-width: 640px;
}

/* ==========================================================================
   Pen Writing Effect (تأثير الكتابة بالقلم)
   ========================================================================== */
.pen-write {
  position: relative;
}

.pen-nib {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 20;
  transform-origin: bottom left;
  transition: opacity 0.3s ease;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 8px rgba(10, 58, 45, 0.25));
}

[dir="rtl"] .pen-nib {
  transform-origin: bottom right;
}

.pen-nib.is-done {
  opacity: 0;
}

/* ==========================================================================
   Scroll Reveal Utility (Standard Fade & Slide)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
  will-change: opacity, transform;
}

@media (min-width: 768px) {
  .reveal {
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
  }
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ==========================================================================
   Footer (Light Background for Clean Logo Placement)
   ========================================================================== */
.site-footer {
  background-color: var(--color-cream);
  border-top: 1px solid var(--color-border-gold);
  color: var(--color-text);
  padding-top: clamp(44px, 6vw, 64px);
  padding-bottom: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--color-border);
}

.footer-grid > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 44px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-brand__desc {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  max-width: 340px;
  line-height: 1.75;
}

.footer__heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer__link:hover {
    color: var(--color-primary);
  }
}

.footer__contact-item {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.footer__contact-item a,
.footer__contact-item span {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-gold);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: start;
  }
}

/* ==========================================================================
   Reduced Motion & Mobile Optimization
   ========================================================================== */
@media (max-width: 767px) {
  .marquee-track {
    animation-duration: 24s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .splash-screen {
    display: none !important;
  }
  .reveal,
  .media-frame img,
  .gold-rule line,
  .mobile-drawer,
  .page-transition {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .mobile-drawer:not(.is-open) {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .pen-nib {
    display: none !important;
  }
}
