/**
 * Rent Car Morocco - Main CSS System
 * Luxury International Travel Design System
 */

:root {
  /* Premium Palette */
  --color-navy: #0A192F;           /* Midnight Navy */
  --color-deep-blue: #112240;      /* Secondary Navy */
  --color-primary: #1769AA;        /* Business Blue */
  --color-accent: #1B4D5C;         /* Arctic Teal */
  --color-gold: #C5A059;           /* Refined Gold */
  --color-gold-hover: #B48E47;
  --color-warm-white: #F8FAFC;     /* Clean Professional Background */
  --color-white: #FFFFFF;
  --color-soft-grey: #F1F5F9;
  --color-text-main: #1E293B;      /* Slate 800 */
  --color-text-muted: #64748B;     /* Slate 500 */
  --color-border: #E2E8F0;
  --color-border-subtle: rgba(10, 25, 47, 0.05);

  /* Refined Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Elevation */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --container-max: 1320px;
  --transition-fast: 0.1s ease-out;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 1px 2px rgba(10, 25, 47, 0.05);
  --shadow-card: 0 12px 24px -4px rgba(10, 25, 47, 0.04), 0 4px 8px -2px rgba(10, 25, 47, 0.02);
  --shadow-elevated: 0 20px 40px -12px rgba(10, 25, 47, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-soft-grey);
  color: var(--color-text-main);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  color: var(--color-text-main);
  background-color: var(--color-white);
}

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

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

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

input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Container */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  text-wrap: balance;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.35;
}

p {
  color: var(--color-text-main);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-lead {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: #4A5568;
}

/* Editorial Section Titles */
.section-header {
  margin-bottom: 3rem;
}

.section-kicker {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--color-gold);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-top: 0.875rem;
  line-height: 1.65;
}

/* Button & Action Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border);
}

.btn-primary:hover {
  background-color: var(--color-deep-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-whatsapp {
  background-color: #128C7E;
  color: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.25);
  font-weight: 700;
}

.btn-whatsapp:hover, .btn-whatsapp:active {
  background-color: #075E54;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(7, 94, 84, 0.35);
}

.btn-messenger {
  background-color: #0084FF;
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.25);
}

.btn-messenger:hover {
  background-color: #0073E6;
  transform: translateY(-1px);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 8px 16px -4px rgba(197, 160, 89, 0.25);
  font-weight: 700;
}

.btn-gold:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -4px rgba(197, 160, 89, 0.35);
}
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  background-color: var(--color-soft-grey);
  border-color: #CBD5E1;
}

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

.btn-outline-primary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

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

/* Utility Helpers */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.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;
}

/* ==========================================================================
   11. RTL SUPPORT (Arabic)
   ========================================================================== */
[dir="rtl"] {
  font-family: 'Noto Sans Arabic', var(--font-sans);
  text-align: right;
}

[dir="rtl"] .section-kicker {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .section-kicker::before {
  margin-left: 0.5rem;
  margin-right: 0;
}

[dir="rtl"] .hero-ctas {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .airport-hero-meta {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .editorial-item {
  grid-template-columns: 1fr 48px;
}

[dir="rtl"] .editorial-number {
  grid-column: 2;
  text-align: left;
}

[dir="rtl"] .editorial-item div {
  grid-column: 1;
}

[dir="rtl"] .faq-question {
  text-align: right;
  flex-direction: row-reverse;
}

[dir="rtl"] .breadcrumb-list {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: 0;
  margin-right: 0.75rem;
}

[dir="rtl"] .footer-links {
  padding-right: 0;
}

[dir="rtl"] .btn svg {
  transform: scaleX(-1);
}
