/* 
 * style_option5_overrides.css
 * Brand colors and layout overrides for Option 5 (Manus SaaS Style)
 * Royal Navy: #284c90 | Tech Teal: #00afdf
 */

:root {
  /* Override default Tailwind v4 colors with corporate Navy and Tech Teal */
  --burnt-orange: #284c90;
  --primary: #284c90;
  --accent: #284c90;
  --ring: #284c90;
  --primary-foreground: #fafafa;
  --accent-foreground: #fff;
  
  --chart-1: #00afdf; /* Growth line (Teal) */
  --chart-2: #284c90; /* Comparison line (Navy) */
  --chart-3: #0ea5e9;
  
  --sidebar-primary: #284c90;
  --sidebar-accent: #284c90;
  
  /* Additional customized palette values */
  --navy-dark: #193263;
  --navy-light: #446dbd;
  --teal-dark: #0087ab;
  --teal-light: #33bfe5;
}

.dark {
  /* Dark mode overrides (Mainly Teal accent to pop on dark canvas) */
  --burnt-orange: #00afdf;
  --primary: #00afdf;
  --accent: #00afdf;
  --ring: #00afdf;
  
  --chart-1: #38bdf8;
  --chart-2: #00afdf;
  
  --sidebar-primary: #00afdf;
  --sidebar-accent: #00afdf;
}

/* Universal typography overrides for premium Arabic display */
body {
  font-family: 'Tajawal', sans-serif !important;
  font-feature-settings: "cv09" on, "cv11" on, "calt" on;
}

.font-cairo {
  font-family: 'Cairo', sans-serif !important;
}

.font-tajawal {
  font-family: 'Tajawal', sans-serif !important;
}

h1, h2, h3 {
  font-family: 'Cairo', sans-serif !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em;
}

/* Custom CSS Grids and technical backdrops */
.grid-bg {
  position: relative;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.dark .grid-bg::before {
  opacity: 0.15;
}

/* Glowing cursor orbs */
.glow-orb {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 175, 223, 0.12) 0%, rgba(40, 76, 144, 0.04) 50%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(50px);
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.dark .glow-orb {
  background: radial-gradient(circle, rgba(0, 175, 223, 0.16) 0%, rgba(40, 76, 144, 0.06) 60%, transparent 100%);
  mix-blend-mode: screen;
}

/* Smooth continuous marquee scroll */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 2rem;
  min-width: 100%;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem));
  }
}

/* Interactive SVG Growth Chart Styles */
.chart-interactive {
  position: relative;
  width: 100%;
  height: 300px;
}

.chart-grid-line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.chart-line-before {
  fill: none;
  stroke: var(--muted-foreground);
  stroke-width: 2;
  opacity: 0.6;
}

.chart-line-after {
  fill: none;
  stroke: var(--chart-1);
  stroke-width: 3.5;
  filter: drop-shadow(0px 4px 6px rgba(0, 175, 223, 0.2));
}

.dark .chart-line-after {
  filter: drop-shadow(0px 4px 10px rgba(0, 175, 223, 0.4));
}

.chart-dot-before {
  fill: #fafafa;
  stroke: var(--muted-foreground);
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.2s ease, stroke-width 0.2s ease;
}

.chart-dot-before:hover {
  r: 6;
  stroke-width: 3;
}

.chart-dot-after {
  fill: #fafafa;
  stroke: var(--chart-1);
  stroke-width: 3;
  cursor: pointer;
  transition: r 0.2s ease, stroke-width 0.2s ease;
}

.chart-dot-after:hover {
  r: 7;
  stroke-width: 4;
}

/* Interactive hover columns for charts */
.chart-hover-bar {
  fill: transparent;
  cursor: pointer;
}

.chart-hover-bar:hover {
  fill: rgba(0, 175, 223, 0.03);
}

.dark .chart-hover-bar:hover {
  fill: rgba(0, 175, 223, 0.05);
}

/* Float Switcher widget styles */
.design-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  max-width: 320px;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
}

.dark .design-switcher {
  background: rgba(26, 26, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.switcher-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.switcher-buttons {
  display: grid;
  grid-template-cols: repeat(2, 1fr);
  gap: 8px;
}

.switcher-btn {
  display: block;
  text-align: center;
  padding: 6px 10px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--secondary-foreground);
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.switcher-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.switcher-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-foreground) !important;
}

/* Floating custom chart tooltip */
.chart-tooltip-box {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  color: var(--foreground);
  z-index: 100;
  display: none;
  transition: opacity 0.15s ease;
}

.dark .chart-tooltip-box {
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form inputs & steps transition */
.step-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.step-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom CSS Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* Mobile drawer overrides */
.mobile-nav-active {
  overflow: hidden;
}

/* ==========================================================================
   Fallback utility classes for tree-shaken Tailwind classes
   ========================================================================== */

.pt-28 { padding-top: 7rem !important; }
.pb-12 { padding-bottom: 3rem !important; }
.py-24 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.pt-20 { padding-top: 5rem !important; }
.pb-8 { padding-bottom: 2rem !important; }
.py-3\.5 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }
.py-4\.5 { padding-top: 1.125rem !important; padding-bottom: 1.125rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3\.5 { padding: 0.875rem !important; }
.p-5 { padding: 1.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mb-0\.5 { margin-bottom: 0.125rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-20 { margin-bottom: 5rem !important; }

.w-44 { width: 11rem !important; }
.h-20 { height: 5rem !important; }
.max-w-4xl { max-width: 56rem !important; }

.rounded-3xl { border-radius: 1.5rem !important; }
.bg-green-500\/10 { background-color: rgba(16, 185, 129, 0.1) !important; }
.border-green-500\/20 { border-color: rgba(16, 185, 129, 0.2) !important; }
.text-green-500 { color: #10b981 !important; }
.bg-secondary\/50 { background-color: rgba(245, 245, 245, 0.5) !important; }
.text-yellow-500 { color: #eab308 !important; }
.brightness-0 { filter: brightness(0) !important; }
.invert { filter: invert(1) !important; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.font-extrabold { font-weight: 800 !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.uppercase { text-transform: uppercase !important; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }

.text-foreground\/80 { color: color-mix(in srgb, var(--foreground) 80%, transparent) !important; }
.text-background\/70 { color: color-mix(in srgb, var(--background) 70%, transparent) !important; }
.border-accent\/10 { border-color: color-mix(in srgb, var(--accent) 10%, transparent) !important; }
.border-background\/10 { border-color: color-mix(in srgb, var(--background) 10%, transparent) !important; }
.border-border\/30 { border-color: color-mix(in srgb, var(--border) 30%, transparent) !important; }
.border-border\/40 { border-color: color-mix(in srgb, var(--border) 40%, transparent) !important; }
.text-accent\/50 { color: color-mix(in srgb, var(--accent) 50%, transparent) !important; }
.bg-clip-text { -webkit-background-clip: text !important; background-clip: text !important; }
.opacity-60 { opacity: 0.6 !important; }

.animate-bounce {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8,0,1,1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease forwards;
}

@media (min-width: 640px) {
  .sm\:w-auto { width: auto !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (min-width: 768px) {
  .md\:p-10 { padding: 2.5rem !important; }
}


/* ==========================================================================
   Premium CTA Buttons & Header Centering Overrides
   ========================================================================== */

/* Premium CTA Button overrides */
.btn-premium-primary {
  background: var(--accent) !important;
  color: var(--accent-foreground) !important;
  box-shadow: 0 4px 12px rgba(40, 76, 144, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-premium-primary:hover {
  background: var(--accent) !important;
  opacity: 0.9 !important;
  box-shadow: 0 6px 20px rgba(40, 76, 144, 0.25) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.btn-premium-secondary {
  border: 2px solid var(--accent) !important;
  color: var(--accent) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-premium-secondary:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent) !important;
  transform: translateY(-2px) !important;
}

/* Ensure the desktop menu is centered in the navbar */
nav .hidden.md\:flex {
  flex: 1 !important;
  justify-content: center !important;
  margin-left: 2rem !important;
  margin-right: 2rem !important;
}

/* Light/Dark mode header background, border, and link style polishing */
nav {
  background: rgba(250, 250, 250, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.dark nav {
  background: rgba(15, 15, 15, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

nav a {
  opacity: 0.85 !important;
  transition: all 0.2s ease !important;
}

nav a:hover {
  opacity: 1 !important;
  color: var(--accent) !important;
}


/* ==========================================================================
   Success Partners Logo Styling (Stripe/Vercel Grayscale style)
   ========================================================================== */

.logo-invert {
  filter: grayscale(100%) opacity(0.65) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.logo-invert:hover {
  filter: grayscale(0%) opacity(1) !important;
}

.dark .logo-invert {
  filter: brightness(0) invert(1) opacity(0.6) !important;
}

.dark .logo-invert:hover {
  filter: brightness(0) invert(1) opacity(1) !important;
}


/* ==========================================================================
   Service Grid Centering Overrides for 7th card (Odd-numbered layout alignment)
   ========================================================================== */

@media (min-width: 768px) {
  .md\:col-span-2 {
    grid-column: span 2 / span 2 !important;
  }
}

@media (min-width: 1024px) {
  .lg\:col-span-1 {
    grid-column: span 1 / span 1 !important;
  }
  .lg\:col-start-2 {
    grid-column-start: 2 !important;
  }
}


/* ==========================================================================
   Inner Pages Custom Component Styles (Blog Modals & Service Highlights)
   ========================================================================== */

#blog-modal.active {
  display: flex !important;
}

body.modal-open {
  overflow: hidden !important;
}

.svc-highlight {
  animation: highlight-pulse 2.4s ease-in-out;
}

@keyframes highlight-pulse {
  0%, 100% {
    border-color: var(--border);
    box-shadow: none;
  }
  50% {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 175, 223, 0.4);
  }
}

/* Floating WhatsApp Widget Styling */
.whatsapp-floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.whatsapp-floating-widget:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: #20ba5a;
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.7;
  z-index: -1;
  animation: waPulse 2s infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

