/* ================================ */
/* Global Typography System        */
/* AlCaptin Moving Services        */
/* ================================ */

/* ================================ */
/* Font Imports                     */
/* ================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700&family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ================================ */
/* CSS Variables - Typography      */
/* ================================ */

:root {
  /* Font Families - Arabic */
  --font-heading-ar: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body-ar: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Families - English */
  --font-heading-en: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  /* Line Heights */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.5;
  --lh-relaxed: 1.6;
  --lh-loose: 1.75;

  /* Letter Spacing */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.025em;
  --ls-wider: 0.05em;
  --ls-widest: 0.1em;
}

/* ================================ */
/* Base Typography Styles          */
/* ================================ */

*, *::before, *::after {
	box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body-ar);
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: #1a1a1a;
  direction: rtl;
}

/* ================================ */
/* Heading Styles                  */
/* ================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading-ar);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0.5em 0;
  color: #1a1a1a;
}

h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: var(--fw-black);
  line-height: 1.1;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: var(--fw-extrabold);
  line-height: 1.15;
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

h4 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: var(--fw-bold);
}

h5 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: var(--fw-semibold);
}

h6 {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

/* ================================ */
/* Paragraph & Body Text          */
/* ================================ */

p {
  font-family: var(--font-body-ar);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  margin: 1em 0;
  color: #333333;
}

p strong, p b {
  font-weight: var(--fw-semibold);
}

p em, p i {
  font-style: italic;
}

/* ================================ */
/* Links & Anchors                 */
/* ================================ */

a {
  font-family: inherit;
  color: #FF6B35;
  text-decoration: none;
  transition: color 250ms ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: #F7931E;
  border-bottom-color: #FF6B35;
}

a:focus-visible {
  outline: 2px solid #FF6B35;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ================================ */
/* Lists                           */
/* ================================ */

ul, ol {
  font-family: var(--font-body-ar);
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: var(--lh-relaxed);
  margin: 1em 0;
  padding-inline-start: 2em;
}

ul li, ol li {
  margin: 0.5em 0;
  color: #333333;
}

/* ================================ */
/* Code & Technical Text          */
/* ================================ */

code, kbd, samp {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  color: #d63384;
}

pre {
  font-family: 'Courier New', monospace;
  font-size: clamp(12px, 1.1vw, 14px);
  background: #1a1a1a;
  color: #ffffff;
  padding: 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.5;
}

/* ================================ */
/* Button Text                     */
/* ================================ */

button, .btn, [role="button"] {
  font-family: var(--font-heading-en);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: var(--fw-bold);
  letter-spacing: 0.5px;
  text-transform: none;
}

/* ================================ */
/* Form Elements                   */
/* ================================ */

label {
  font-family: var(--font-body-ar);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: var(--fw-medium);
  color: #333333;
  display: block;
  margin-bottom: 0.5em;
}

input, textarea, select {
  font-family: var(--font-body-ar);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.5;
}

input::placeholder, textarea::placeholder {
  font-style: italic;
  opacity: 0.7;
}

/* ================================ */
/* Blockquote & Citations         */
/* ================================ */

blockquote {
  font-family: var(--font-body-ar);
  font-size: clamp(16px, 1.5vw, 20px);
  font-style: italic;
  line-height: var(--lh-relaxed);
  margin: 2em 0;
  padding: 0 2em;
  border-inline-start: 4px solid #FF6B35;
  color: #555555;
}

blockquote footer {
  font-size: 0.9em;
  font-style: normal;
  color: #999999;
  margin-top: 0.5em;
}

cite {
  font-style: italic;
  font-size: 0.95em;
}

/* ================================ */
/* Small Text & Captions          */
/* ================================ */

small, .text-small {
  font-family: var(--font-body-ar);
  font-size: clamp(12px, 1vw, 14px);
  color: #666666;
  line-height: var(--lh-normal);
}

figcaption {
  font-family: var(--font-body-ar);
  font-size: clamp(12px, 1vw, 13px);
  color: #999999;
  font-style: italic;
  margin-top: 0.5em;
}

/* ================================ */
/* Utility Classes                 */
/* ================================ */

/* Text Colors */
.text-primary {
  color: #FF6B35;
}

.text-secondary {
  color: #004E89;
}

.text-success {
  color: #28a745;
}

.text-error {
  color: #dc3545;
}

.text-warning {
  color: #ffc107;
}

.text-info {
  color: #17a2b8;
}

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-justify {
  text-align: justify;
}

/* Text Styles */
.text-bold {
  font-weight: var(--fw-bold);
}

.text-semibold {
  font-weight: var(--fw-semibold);
}

.text-italic {
  font-style: italic;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Line Heights */
.lh-tight {
  line-height: var(--lh-tight);
}

.lh-normal {
  line-height: var(--lh-normal);
}

.lh-relaxed {
  line-height: var(--lh-relaxed);
}

/* ================================ */
/* Responsive Typography         */
/* ================================ */

@media (max-width: 768px) {
  body {
    font-size: clamp(13px, 2.5vw, 16px);
  }

  h1 {
    font-size: clamp(28px, 6vw, 42px);
  }

  h2 {
    font-size: clamp(24px, 5vw, 36px);
  }

  h3 {
    font-size: clamp(20px, 4vw, 28px);
  }

  p, a {
    font-size: clamp(13px, 2vw, 15px);
  }

  small, .text-small {
    font-size: clamp(11px, 1.5vw, 12px);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(24px, 5vw, 36px);
  }

  h2 {
    font-size: clamp(20px, 4vw, 28px);
  }

  h3 {
    font-size: clamp(18px, 3.5vw, 24px);
  }

  button, .btn {
    font-size: clamp(12px, 2vw, 14px);
    padding: 10px 16px;
  }
}

/* ================================ */
/* Accessibility                   */
/* ================================ */

/* High Contrast Mode */
@media (prefers-contrast: more) {
  body {
    font-weight: var(--fw-semibold);
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-black);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000000;
  }

  a {
    color: #0000ee;
    text-decoration: underline;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  p, blockquote {
    orphans: 3;
    widows: 3;
  }
}
