/*
Theme Name: Ayman Global Connect
Theme URI: https://aymanglobalconnect.com
Author: Blessed Shammah
Author URI: https://blessedshammah.dev
Description: Premium corporate theme for Ayman Global Connect. B2B services — Interpreter, Call Center, Truck Dispatching.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: ayman-global
Tags: corporate, business, animation, b2b
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colours */
  --color-navy:        #0B1E3D;
  --color-navy-mid:    #122649;
  --color-navy-light:  #1B3460;
  --color-gold:        #C49B20;
  --color-gold-light:  #D9B43A;
  --color-gold-pale:   #F2E4B0;

  /* Light blue palette — body sections */
  --color-blue-pale:   #F4F8FD;
  --color-blue-soft:   #EEF4FB;
  --color-blue-mid:    #DDEAF7;
  --color-blue-border: #C8DDEF;

  /* Neutrals */
  --color-white:       #FFFFFF;
  --color-off-white:   #F8F9FB;
  --color-gray-100:    #F1F3F6;
  --color-gray-200:    #E2E6ED;
  --color-gray-400:    #9AA5B4;
  --color-gray-600:    #5A7090;
  --color-gray-800:    #2D3748;

  /* Semantic */
  --color-text:        var(--color-navy);
  --color-text-muted:  var(--color-gray-600);
  --color-bg:          var(--color-blue-soft);
  --color-bg-alt:      var(--color-blue-mid);
  --color-border:      var(--color-blue-border);
  --color-accent:      var(--color-gold);

  /* Typography */
  --font-heading:      'Montserrat', 'Segoe UI', sans-serif;
  --font-body:         'Inter', 'Segoe UI', sans-serif;
  --font-size-xs:      0.75rem;
  --font-size-sm:      0.875rem;
  --font-size-base:    1rem;
  --font-size-lg:      1.125rem;
  --font-size-xl:      1.25rem;
  --font-size-2xl:     1.5rem;
  --font-size-3xl:     1.875rem;
  --font-size-4xl:     2.25rem;
  --font-size-5xl:     3rem;
  --font-size-6xl:     3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max:     1200px;
  --container-wide:    1400px;
  --container-narrow:  760px;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,22,40,.08), 0 1px 2px rgba(10,22,40,.04);
  --shadow-md:  0 4px 16px rgba(10,22,40,.10), 0 2px 6px rgba(10,22,40,.06);
  --shadow-lg:  0 10px 40px rgba(10,22,40,.14), 0 4px 12px rgba(10,22,40,.08);
  --shadow-xl:  0 24px 64px rgba(10,22,40,.18);
  --shadow-gold: 0 8px 32px rgba(201,168,76,.25);

  /* Transitions */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast:   150ms;
  --duration-base:   300ms;
  --duration-slow:   600ms;
  --duration-slower: 900ms;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden !important; max-width: 100%;
}
html { overflow-x: hidden !important; }

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-navy); }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-text-muted); }
.text-white   { color: var(--color-white); }
.text-center  { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: .08em; }

.eyebrow {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 620px;
  text-align: center;
  margin-inline: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-outline-dark:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section {
  padding-block: var(--space-24);
}
.section--sm { padding-block: var(--space-16); }
.section--lg { padding-block: var(--space-32); }
.section--dark { background: var(--color-navy); color: rgba(255,255,255,0.85); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-gold); }
.section--alt  { background: var(--color-bg-alt); }
.section--gold-tint { background: var(--color-gold-pale); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

/* ============================================================
   GRID UTILITIES
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ============================================================
   PAGE TRANSITION OVERLAY
   ============================================================ */
#page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
#page-transition-overlay.is-active { opacity: 1; pointer-events: all; }

/* ============================================================
   WHATSAPP FLOAT BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 1000;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .grid-3,
  .grid-2,
  .grid-4 { grid-template-columns: 1fr; }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .section { padding-block: var(--space-16); }
  .section--lg { padding-block: var(--space-20); }

  /* Disable heavy animations on mobile */
  .reveal-up,
  .reveal-fade,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .whatsapp-float {
    bottom: var(--space-6);
    right: var(--space-4);
    width: 48px;
    height: 48px;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}

.skip-link:focus {
  background-color: var(--color-gold);
  border-radius: var(--radius-md);
  color: var(--color-navy);
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  height: auto;
  left: var(--space-4);
  top: var(--space-4);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  width: auto;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 61, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

.lightbox-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--duration-base) var(--ease-out);
}

.lightbox-overlay.is-active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--color-gold-light);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .lightbox-overlay { padding: var(--space-4); }
  .lightbox-close { top: var(--space-4); right: var(--space-4); width: 40px; height: 40px; }
}

/* Enlarge hint for images */
.enlarge-hint {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.enlarge-hint svg { width: 16px; height: 16px; fill: currentColor; }
