/* =====================================================
   عمار الأوقاف — Design System
   Premium Arabic RTL Website
   ===================================================== */

/* ===================== CUSTOM PROPERTIES ===================== */
:root {
  /* Primary Palette (from logo) */
  --navy-900: #0f1a2e;
  --navy-800: #1a2744;
  --navy-700: #223558;
  --navy-600: #2b4c7e;
  --navy-500: #3a6098;
  --navy-400: #5b7fa5;
  --navy-300: #7d9aba;
  --navy-200: #a8bed6;
  --navy-100: #d4dfe9;
  --navy-50: #edf1f7;

  /* Accent Gold */
  --gold-600: #9e7e35;
  --gold-500: #c5a55a;
  --gold-400: #d4b96e;
  --gold-300: #e2cc8a;
  --gold-200: #f0e0b0;
  --gold-100: #faf3df;

  /* Semantic */
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-dark: var(--navy-800);
  --bg-darker: var(--navy-900);

  --text-primary: var(--navy-800);
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --text-on-dark: #e2e8f0;
  --text-on-dark-muted: #a0aec0;

  --accent-gold: var(--gold-500);
  --accent-gold-hover: var(--gold-600);

  --border-light: #e2e8f0;
  --border-medium: #cbd5e0;

  /* Status colors */
  --status-new: #6366f1;
  --status-review: #f59e0b;
  --status-progress: #3b82f6;
  --status-complete: #10b981;
  --status-cancelled: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 39, 68, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 39, 68, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 39, 68, 0.12);
  --shadow-xl: 0 16px 50px rgba(26, 39, 68, 0.16);
  --shadow-glow: 0 0 40px rgba(197, 165, 90, 0.15);

  /* Typography */
  --font-heading: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  75% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(197, 165, 90, 0.2); }
  50% { box-shadow: 0 0 40px rgba(197, 165, 90, 0.4); }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scroll animation classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate.delay-1 { transition-delay: 0.15s; }
.scroll-animate.delay-2 { transition-delay: 0.3s; }
.scroll-animate.delay-3 { transition-delay: 0.45s; }

/* Hero animations */
.animate-in {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}
.animate-in.delay-1 { animation-delay: 0.3s; }
.animate-in.delay-2 { animation-delay: 0.6s; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--gold-600));
  color: white;
  box-shadow: 0 4px 15px rgba(197, 165, 90, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 165, 90, 0.4);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ===================== GLASS CARD ===================== */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(26, 39, 68, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

.navbar.scrolled .logo-img {
  height: 42px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background: rgba(197, 165, 90, 0.2);
  color: var(--gold-300);
}

/* Mobile toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.5) 40px, rgba(255,255,255,0.5) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.5) 40px, rgba(255,255,255,0.5) 41px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(197, 165, 90, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(91, 127, 165, 0.1) 0%, transparent 50%);
}

.hero-geometric {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.geo-shape {
  position: absolute;
  border: 1px solid rgba(197, 165, 90, 0.12);
  border-radius: var(--radius-md);
}

.geo-shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -5%;
  transform: rotate(45deg);
  animation: float 8s ease-in-out infinite;
}

.geo-shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  left: 15%;
  transform: rotate(30deg);
  animation: float 10s ease-in-out infinite reverse;
  border-color: rgba(91, 127, 165, 0.1);
}

.geo-shape-3 {
  width: 150px;
  height: 150px;
  top: 20%;
  right: 10%;
  transform: rotate(60deg);
  animation: float 7s ease-in-out infinite;
}

.geo-shape-4 {
  width: 400px;
  height: 400px;
  bottom: -10%;
  right: -5%;
  transform: rotate(15deg);
  animation: float 12s ease-in-out infinite reverse;
  border-color: rgba(91, 127, 165, 0.08);
}

.geo-shape-5 {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 40%;
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite;
  border-color: rgba(197, 165, 90, 0.15);
  background: rgba(197, 165, 90, 0.03);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title-main {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--navy-300);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex-shrink: 0;
}

.hero-logo-glow {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: pulse-glow 4s ease-in-out infinite;
  position: relative;
}

.hero-logo-glow::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(197, 165, 90, 0.1);
  animation: rotate-slow 30s linear infinite;
}

.hero-logo-glow::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px dashed rgba(91, 127, 165, 0.08);
  animation: rotate-slow 50s linear infinite reverse;
}

.hero-logo-img {
  width: 200px;
  border-radius: var(--radius-md);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 20px;
  background: linear-gradient(135deg, rgba(197, 165, 90, 0.1), rgba(197, 165, 90, 0.05));
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(197, 165, 90, 0.2);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy-800);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===================== ABOUT ===================== */
.about {
  background: var(--bg-primary);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.about-card {
  padding: 40px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-300);
}

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

.about-card-title {
  font-size: 1.4rem;
  color: var(--navy-800);
  margin-bottom: 12px;
}

.about-card-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.about-card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(197, 165, 90, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  top: -50px;
  right: -50px;
  pointer-events: none;
}

/* ===================== SERVICES ===================== */
.services {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--navy-50) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  perspective: 1000px;
}

.service-card-inner {
  padding: 36px 28px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card-inner:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(197, 165, 90, 0.3);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-300);
  transition: all var(--transition-base);
}

.service-card-inner:hover .service-icon {
  background: linear-gradient(135deg, var(--accent-gold), var(--gold-600));
  color: white;
  transform: scale(1.1);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-name {
  font-size: 1.3rem;
  color: var(--navy-800);
  margin-bottom: 10px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--gold-400));
  border-radius: 3px;
  transition: width var(--transition-smooth);
}

.service-card-inner:hover .service-line {
  width: 60%;
}

/* ===================== REQUEST SERVICE ===================== */
.request-service {
  background: var(--bg-primary);
}

.request-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.request-step-title {
  font-size: 1.3rem;
  color: var(--navy-800);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--gold-600));
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

/* Services Filter */
.services-filter {
  margin-bottom: 20px;
}

.services-search {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  transition: all var(--transition-base);
  color: var(--text-primary);
}

.services-search:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(197, 165, 90, 0.1);
}

.services-search::placeholder {
  color: var(--text-light);
}

/* Services List */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 600px;
  overflow-y: auto;
  padding-left: 8px;
}

.services-list::-webkit-scrollbar {
  width: 6px;
}

.services-list::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 3px;
}

.services-list::-webkit-scrollbar-thumb {
  background: var(--navy-300);
  border-radius: 3px;
}

.service-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.service-list-item:hover {
  border-color: var(--accent-gold);
  background: var(--gold-100);
  transform: translateX(4px);
}

.service-list-item .item-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-600);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.service-list-item:hover .item-number {
  background: var(--accent-gold);
  color: white;
}

.service-list-item .item-arrow {
  margin-right: auto;
  color: var(--text-light);
  transition: all var(--transition-base);
}

.service-list-item:hover .item-arrow {
  color: var(--accent-gold);
  transform: translateX(-4px);
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--navy-600);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  transition: color var(--transition-base);
}

.back-btn:hover {
  color: var(--accent-gold);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  transform: rotate(180deg); /* RTL: flip arrow */
}

/* Selected Service Badge */
.selected-service-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Request Form */
.request-form {
  background: white;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.form-group .required {
  color: #ef4444;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: white;
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(197, 165, 90, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

.btn-loader {
  display: inline-flex;
}

.spinner {
  width: 24px;
  height: 24px;
}

/* Success container */
.success-container {
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  animation: scaleIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-title {
  font-size: 1.5rem;
  color: var(--navy-800);
  margin-bottom: 12px;
}

.success-text {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.tracking-number-display {
  font-size: 1.5rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--gold-100);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--gold-400);
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 2px;
  direction: ltr;
}

.success-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.success-actions .btn-outline {
  border-color: var(--navy-600);
  color: var(--navy-600);
}

.success-actions .btn-outline:hover {
  background: var(--navy-800);
  color: white;
  border-color: var(--navy-800);
}

/* ===================== TRACKING ===================== */
.track {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--navy-50) 100%);
}

.track-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.track-search-box {
  padding: 32px;
  margin-bottom: 30px;
}

.track-form {
  width: 100%;
}

.track-input-group {
  display: flex;
  gap: 12px;
}

.track-input-group input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: white;
  transition: all var(--transition-base);
}

.track-input-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(197, 165, 90, 0.1);
}

.track-input-group .btn {
  flex-shrink: 0;
}

.track-input-group .btn svg {
  width: 18px;
  height: 18px;
}

/* Track Result Card */
.track-card {
  padding: 36px;
}

.track-card:hover {
  transform: none;
}

.track-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.track-service-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-800);
}

.track-tracking-no {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--navy-50);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  direction: ltr;
}

/* Progress Steps */
.track-progress {
  margin-bottom: 30px;
  padding: 24px 0;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--border-medium);
  background: white;
  transition: all var(--transition-base);
  position: relative;
}

.progress-step.active .step-dot {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(197, 165, 90, 0.2);
}

.progress-step.active .step-dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.progress-step.current .step-dot {
  border-color: var(--accent-gold);
  animation: pulse-glow 2s ease-in-out infinite;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.progress-step.active .step-label,
.progress-step.current .step-label {
  color: var(--navy-800);
}

.progress-line {
  flex: 1;
  height: 3px;
  background: var(--border-light);
  margin: 0 -4px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.progress-line.active {
  background: var(--accent-gold);
}

/* Track Details */
.track-details {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.track-detail-item {
  text-align: center;
}

.detail-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.detail-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-800);
}

/* Day Counter */
.day-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.day-counter-circle {
  width: 100px;
  height: 100px;
  position: relative;
}

.day-counter-circle svg {
  width: 100%;
  height: 100%;
}

.day-counter-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.day-current {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
}

.day-separator {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.day-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}

.day-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Error card */
.error-card {
  text-align: center;
  padding: 40px;
  color: var(--status-cancelled);
}

.error-card:hover {
  transform: none;
}

.error-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.error-card p {
  font-size: 1rem;
  font-weight: 600;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--navy-900);
  color: var(--text-on-dark);
  padding: 0 0 30px;
  position: relative;
}

.footer-wave {
  position: relative;
  top: -1px;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 30px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}

.footer-brand-text {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links-col h4 {
  font-size: 1rem;
  color: var(--gold-300);
  margin-bottom: 16px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links-col a {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--gold-300);
}

.footer-links-col li svg {
  flex-shrink: 0;
  color: var(--gold-500);
}

.footer-bottom {
  text-align: center;
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  /* Mobile Nav */
  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 4px;
    transition: right var(--transition-base);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  }

  .navbar-links.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 12px 18px;
    font-size: 1.05rem;
  }

  /* About */
  .about-cards {
    grid-template-columns: 1fr;
  }

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

  /* Form */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .request-form {
    padding: 24px;
  }

  /* Track */
  .track-input-group {
    flex-direction: column;
  }

  .progress-steps {
    gap: 0;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .track-details {
    flex-direction: column;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title-main {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .success-container {
    padding: 40px 20px;
  }

  .tracking-number-display {
    font-size: 1.1rem;
    padding: 12px 20px;
  }
}

/* ===================== TOAST ===================== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: fadeInDown 0.3s ease, fadeIn 0.3s ease;
  pointer-events: auto;
}

.toast-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-info {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
}
