/* =========================================================
   COLOR FORUM Advertising & Publicity | Riyadh, KSA
   Brand Color System - Strictly Derived From Official Logo
   Colors:
     - Deep Petrol Teal: #003C44 (Emblem & "COLOR")
     - Olive Gold / Mustard Ochre: #8E8E3D (Emblem & "FORUM")
     - Dark Teal Shade: #00262B
     - Olive Gold Dark: #72722C
     - Olive Gold Light: #A5A54E
     - Olive Surface Tint: #F6F7ED
     - Light Backgrounds: #FFFFFF, #F8FAFB, #F1F5F5
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&display=swap');

:root {
  --primary-teal: #003C44;
  --primary-teal-dark: #00262B;
  --primary-teal-light: #0C555F;
  --accent-olive: #8E8E3D;
  --accent-olive-dark: #72722C;
  --accent-olive-light: #A5A54E;
  --accent-olive-surface: #F6F7ED;
  --bg-light: #F8FAFB;
  --bg-surface: #FFFFFF;
  --text-dark: #0F1F22;
  --text-muted: #4A5B5E;
  --border-light: #E2E8E9;
}

*,
html,
body,
button,
input,
select,
textarea {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html,
body {
  background-color: #F8FAFB;
  color: #1A2E31;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4, h5, h6, p, a, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] *,
.font-ar {
  font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  letter-spacing: normal !important;
}

html[lang="ar"] [data-lucide="arrow-right"],
html[lang="ar"] .lucide-arrow-right {
  transform: rotate(180deg);
}

/* Ensure phone numbers, emails, and English codes stay LTR in Arabic mode */
a[href^="tel:"],
a[href^="mailto:"],
.tel-number {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex !important;
  align-items: center;
}

/* Custom Scrollbar - Matching Logo */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F5;
}
::-webkit-scrollbar-thumb {
  background: #CBD5D6;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8E8E3D;
}

/* Glass & Card Styling */
.glass-nav-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 233, 0.9);
}

.card-light {
  background: #FFFFFF;
  border: 1px solid #E2E8E9;
  box-shadow: 0 4px 20px -2px rgba(0, 60, 68, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-light:hover {
  transform: translateY(-5px);
  border-color: rgba(142, 142, 61, 0.45);
  box-shadow: 0 20px 30px -10px rgba(0, 60, 68, 0.1), 0 0 15px rgba(142, 142, 61, 0.15);
}

/* Gradient Text matching Logo */
.gradient-text-olive {
  background: linear-gradient(135deg, #72722C 0%, #8E8E3D 50%, #A5A54E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-teal {
  background: linear-gradient(135deg, #00262B 0%, #003C44 50%, #0C555F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Brand Buttons */
.btn-gold, .btn-olive {
  background: linear-gradient(135deg, #9C9C48 0%, #8E8E3D 50%, #76762E 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 10px 20px -5px rgba(142, 142, 61, 0.35);
  transition: all 0.3s ease;
}
.btn-gold:hover, .btn-olive:hover {
  background: linear-gradient(135deg, #A8A850 0%, #9C9C48 50%, #8E8E3D 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 25px -5px rgba(142, 142, 61, 0.45);
}

.btn-teal {
  background: linear-gradient(135deg, #003C44 0%, #0C555F 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 10px 20px -5px rgba(0, 60, 68, 0.3);
  transition: all 0.3s ease;
}
.btn-teal:hover {
  background: linear-gradient(135deg, #0C555F 0%, #003C44 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 25px -5px rgba(0, 60, 68, 0.4);
}

/* Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatSlow 4s ease-in-out infinite 2s;
}

.ambient-light-blob-1 {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(142, 142, 61, 0.08) 0%, transparent 70%);
  top: -80px;
  right: -50px;
  pointer-events: none;
  filter: blur(60px);
}

.ambient-light-blob-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 60, 68, 0.06) 0%, transparent 70%);
  bottom: -50px;
  left: -80px;
  pointer-events: none;
  filter: blur(60px);
}

.pulse-dot-green {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
}
.pulse-dot-green::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.whatsapp-floating {
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  animation: floatSlow 3s ease-in-out infinite;
}

/* Category Filter Active Pill */
.filter-btn.active {
  background-color: #003C44;
  color: #FFFFFF;
  border-color: #003C44;
  box-shadow: 0 4px 14px rgba(0, 60, 68, 0.25);
}

/* Image Zoom */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom-container:hover img {
  transform: scale(1.08);
}

/* Mobile Navigation Menu Drawer */
#mobileMenu {
  background-color: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Mobile Responsive Forms & Inputs */
.card-light:has(form),
.card-light:has(#quoteForm),
.card-form {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card-light:has(form):hover,
.card-light:has(#quoteForm):hover,
.card-form:hover {
  transform: none !important;
  box-shadow: 0 4px 20px -2px rgba(0, 60, 68, 0.05) !important;
  border-color: #E2E8E9 !important;
}

/* iOS Safari auto-zoom prevention: inputs must be >= 16px font-size on mobile */
@media (max-width: 639px) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Ergonomic touch targets & select appearance */
input[type="text"],
input[type="tel"],
input[type="email"],
select {
  min-height: 46px;
  touch-action: manipulation;
}

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.25rem !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

html[dir="rtl"] select {
  background-position: left 0.75rem center;
  padding-right: 0.875rem !important;
  padding-left: 2.25rem !important;
}

::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* =========================================================
   SLEEK NON-BLOCKING PAGE LOAD ANIMATION
   ========================================================= */

/* Top Loading Progress Line (Pure CSS, 100% Non-Blocking, Can Never Get Stuck) */
.page-load-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 999999;
  pointer-events: none !important;
  background: linear-gradient(90deg, #003C44 0%, #8E8E3D 50%, #D4A017 100%);
  box-shadow: 0 1px 6px rgba(142, 142, 61, 0.4);
  transform-origin: left center;
  animation: pageLoadProgress 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes pageLoadProgress {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  50% {
    transform: scaleX(0.7);
    opacity: 1;
  }
  80% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
    visibility: hidden;
  }
}

/* Fluid Page Content Entrance Animation */
@keyframes contentFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-entrance {
  animation: contentFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .page-load-bar,
  .page-entrance {
    animation: none !important;
  }
}


