/* TuniSite bundled CSS — generated by scripts/build-css.sh; do not edit */
/**
 * ════════════════════════════════════════════════════════════════════════════
 * TUNISITE DESIGN SYSTEM - CSS VARIABLES
 * ════════════════════════════════════════════════════════════════════════════
 *
 * Ported from React implementation
 * All UI must use these variables for design system compliance
 */

/* Cormorant Garamond loaded non-blocking from partials/head.php */

:root {
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-size: 16px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Colors - Base */
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);

  /* Colors - Primary */
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);

  /* Colors - Secondary */
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;

  /* Colors - Muted */
  --muted: #ececf0;
  --muted-foreground: #717182;

  /* Colors - Accent */
  --accent: #e9ebef;
  --accent-foreground: #030213;

  /* Colors - Destructive */
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;

  /* Colors - Border & Input */
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;

  /* TuniSite Brand Colors */
  --color-coral: #FF5744;
  --color-coral-hover: #e64a38;
  --color-purple-gradient-from: #9333ea;
  --color-purple-gradient-to: #db2777;

  /* Gray Scale (for consistent colors) */
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Radius */
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  /* Spacing (rem units) */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Layout — landing page (matches Astro: pt-12/16 hero, py-12/16 sections) */
  --header-height: 4rem;
  --section-padding-x: 1rem;
  --section-padding-y: 3rem;
  --section-padding-y-lg: 4rem;
  --hero-gap-below-header: 3rem;
  --hero-padding-bottom: 4rem;
  --hero-padding-bottom-lg: 5rem;
  --section-intro-gap: 2.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* RTL Adaptations for Arabic */
html[dir="rtl"] {
  --font-heading: 'Cairo', 'Tajawal', 'Cormorant Garamond', serif;
  --font-body: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
}
/**
 * ════════════════════════════════════════════════════════════════════════════
 * APPLICATION STYLES
 * ════════════════════════════════════════════════════════════════════════════
 *
 * Base layout, typography, and component styles
 */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-normal);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 3rem; /* 48px */
}

h2 {
  font-size: 2.25rem; /* 36px */
}

h3 {
  font-size: 1.875rem; /* 30px */
}

h4 {
  font-size: 1.5rem; /* 24px */
}

p {
  margin: 0;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Scrollbar Hide */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

@media (min-width: 640px) {
  .header-inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 0 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 2rem;
}

/* Navigation */
.nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color var(--transition-base);
}

.nav a:hover {
  color: var(--foreground);
}

/* Language Selector */
.language-selector {
  display: none;
  background: var(--muted);
  border-radius: 9999px;
  padding: 2px;
}

@media (min-width: 768px) {
  .language-selector {
    display: flex;
  }
}

.language-selector button,
.language-selector a.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: 9999px;
  transition: all var(--transition-base);
  text-decoration: none;
}

.language-selector button.active,
.language-selector a.lang-switch.active {
  background: white;
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.language-selector button:hover:not(.active),
.language-selector a.lang-switch:hover:not(.active) {
  color: var(--foreground);
}

/* CTA Buttons */
.cta-buttons {
  display: none;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-buttons {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-coral {
  background: var(--color-coral);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(255, 87, 68, 0.2);
}

.btn-coral:hover {
  background: var(--color-coral-hover);
}

.btn-expert {
  background: linear-gradient(135deg, var(--color-purple-gradient-from), var(--color-purple-gradient-to));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-expert:hover {
  opacity: 0.9;
}

/* CTA Button Groups - Mobile Responsive */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
}

@media (min-width: 640px) {
  .cta-group {
    flex-direction: row;
    align-items: center;
  }
  
  .cta-group .btn {
    width: auto;
  }
}

/* Ensure buttons in CTA groups have full width on mobile */
.cta-group .btn {
  width: 100%;
  justify-content: center;
}

/* Hero CTAs: Figma px-8 py-4 text-base; desktop slightly tighter padding only */
.hero-cta-group .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.hero-cta-group .btn [data-lucide],
.hero-cta-group .btn svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .hero-cta-group .btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    width: auto;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.hamburger {
  width: 24px;
  height: 24px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: all var(--transition-base);
}

.hamburger span:nth-child(1) { top: 6px; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.open span:nth-child(1) {
  top: 12px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  top: 12px;
  transform: rotate(-45deg);
}

/* Mobile Menu Backdrop */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.mobile-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-lang {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu nav a {
  color: var(--foreground);
  padding: 0.5rem 0;
  transition: color var(--transition-base);
}

.mobile-menu nav a:hover {
  color: var(--color-coral);
}

.mobile-menu-ctas {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-ctas .btn {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
}

/* Main — offset for fixed header (do not duplicate in hero padding) */
main {
  padding-top: var(--header-height);
}

/* Landing sections: consistent vertical rhythm */
.landing-section {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.landing-section--hero {
  padding-top: var(--hero-gap-below-header);
  padding-bottom: var(--hero-padding-bottom);
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

/* FAQ: Figma py-16 — slightly tighter than py-20 sections */
.landing-section--compact {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.landing-section .section-intro {
  margin-bottom: var(--section-intro-gap);
}

@media (min-width: 640px) {
  .landing-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .landing-section--hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .landing-section:not(.landing-section--hero):not(.landing-section--compact) {
    padding-top: var(--section-padding-y-lg);
    padding-bottom: var(--section-padding-y-lg);
  }

  .landing-section--hero {
    padding-top: 4rem;
    padding-bottom: var(--hero-padding-bottom-lg);
  }
}

@media (min-width: 1024px) {
  .landing-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .landing-section--hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Footer column titles: h3 for heading order (after main h2 sections) */
footer .footer-col-title {
  font-family: inherit;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

/* Footer Styles */
footer a {
  transition: color var(--transition-base);
}

footer a:hover {
  color: white !important;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  direction: ltr;
  text-align: center;
}

.footer-bottom-bar__copyright {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer-bottom-bar__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.footer-bottom-bar__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: unset;
  }

  .footer-bottom-bar__copyright {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
  }

  .footer-bottom-bar__social {
    flex: 0 0 auto;
  }

  .footer-bottom-bar__tagline {
    flex: 1 1 0;
    min-width: 0;
    text-align: right;
  }
}

/* RTL Adaptations */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .flex-row {
  flex-direction: row-reverse;
}
/**
 * ════════════════════════════════════════════════════════════════════════════
 * INTERACTIONS & ANIMATIONS
 * ════════════════════════════════════════════════════════════════════════════
 *
 * CTA orchestration, hover effects, transitions
 */

/* CTA Fade Orchestration */
[data-cta] {
  transition: opacity var(--transition-slow);
}

[data-cta].faded {
  opacity: 0.4;
}

/* Carousel */
.carousel-container {
  position: relative;
  margin: 0 -1rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .carousel-container {
    margin: 0;
    padding: 0;
  }
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.carousel-card:hover {
  box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
  .carousel-card {
    width: 320px;
  }
}

.carousel-preview {
  position: relative;
  height: 10rem;
  padding: 1.25rem;
}

.carousel-preview.has-image {
  background-size: cover;
  background-position: center;
}

.carousel-preview .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  transition: all var(--transition-base);
}

.carousel-card:hover .overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.carousel-browser-chrome {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.25rem;
  z-index: 10;
}

.carousel-browser-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.carousel-info {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-label {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.375rem;
  transition: color var(--transition-base);
}

.carousel-card:hover .carousel-label {
  color: var(--color-coral);
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-category {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.carousel-badge {
  font-size: 0.75rem;
  background: var(--muted);
  color: var(--foreground);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: var(--font-weight-medium);
}

.carousel-arrow {
  opacity: 0;
  transition: all var(--transition-base);
  color: var(--color-coral);
}

.carousel-card:hover .carousel-arrow {
  opacity: 1;
  transform: translateX(0.25rem);
}

html[dir="rtl"] .carousel-card:hover .carousel-arrow {
  transform: translateX(-0.25rem);
}

/* FAQ Accordion - Removed old styles, now using inline styles in faq.php */
/* The FAQ section now uses inline styles to match the React implementation */

/* Hover Effects */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-purple-gradient-from), var(--color-purple-gradient-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Badge Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Animation for Trust Badge */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Accordion Expand/Collapse Animation */
@keyframes accordion-down {
  from {
    max-height: 0;
  }
  to {
    max-height: var(--accordion-content-height);
  }
}

@keyframes accordion-up {
  from {
    max-height: var(--accordion-content-height);
  }
  to {
    max-height: 0;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus Styles */
button:focus,
a:focus {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

/* Disabled States */
button:disabled,
a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Enhanced Card Hover Effects */
.card-interactive {
  transition: all var(--transition-base);
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Button Hover Enhancements */
.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Pricing Card Hover Effects */
.pricing-card {
  transition: all var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Image Fade In */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fade-in 0.6s ease-out;
}

/* Carousel Card Enhanced Hover */
.carousel-card {
  position: relative;
  overflow: hidden;
}

.carousel-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.carousel-card:hover::after {
  left: 100%;
}

/* Tooltip Animations */
@keyframes tooltip-show {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.tooltip-content {
  animation: tooltip-show 0.2s ease-out;
}