/*
Theme Name: Filip AI
Theme URI: https://filipai.com
Author: Filip AI Team
Author URI: https://filipai.com
Description: Custom WordPress theme for Filip AI — Cold Chain Logistics Platform. Built for Elementor Pro with Mobile-First responsive design.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
License URI: https://filipai.com/license
Text Domain: filip-ai
Tags: elementor, dark, business, one-page, responsive
*/

/* ============================================================
   THEME STYLESHEET — Filip AI
   Mobile-First | Dark UI | Elementor Pro Ready
   
   TABLE OF CONTENTS:
   1.  CSS Custom Properties (Design Tokens)
   2.  CSS Reset & Base
   3.  Typography Base
   4.  Global Utility Classes
   5.  Buttons
   6.  Badges & Labels
   7.  Cards (base)
   8.  Navigation (Navbar)
   9.  Hero Section
   10. Footer
   11. WordPress / Elementor Overrides
   12. Responsive Overrides
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');
@import url('css/sections/hero.css');
@import url('css/sections/navbar.css');
@import url('css/sections/footer.css');
@import url('css/sections/problem.css');
@import url('css/sections/solution.css');
@import url('css/sections/segment-selector.css');
@import url('css/sections/how-it-works.css');
@import url('css/sections/product-preview.css');
@import url('css/sections/comparison.css');
@import url('css/sections/triple-win.css');
@import url('css/sections/final-cta.css');


/* ============================================================
   1. CSS CUSTOM PROPERTIES — Design Tokens
   ============================================================ */
:root {
  /* --- Brand Colors --- */
  --c-bg-primary:        #080F1D;
  --c-bg-secondary:      #0C1628;
  --c-bg-card:           #111E35;
  --c-bg-card-hover:     #162441;
  --c-bg-overlay:        rgba(8, 15, 29, 0.92);

  --c-brand:             #00B8D9;
  --c-brand-light:       #33C9E5;
  --c-brand-dark:        #0090A8;
  --c-brand-glow:        rgba(0, 184, 217, 0.18);
  --c-brand-glow-strong: rgba(0, 184, 217, 0.35);

  --c-purple:            #8B5CF6;
  --c-purple-light:      #A78BFA;
  --c-purple-glow:       rgba(139, 92, 246, 0.2);

  --c-green:             #10D9A0;
  --c-green-light:       #34EBB8;
  --c-green-glow:        rgba(16, 217, 160, 0.2);

  --c-red:               #F4504A;
  --c-orange:            #F97316;

  /* --- Text --- */
  --c-text-primary:      #F0F6FF;
  --c-text-secondary:    #7A9CC0;
  --c-text-muted:        #3D5A7A;
  --c-text-inverse:      #080F1D;

  /* --- Borders --- */
  --c-border:            rgba(255, 255, 255, 0.07);
  --c-border-hover:      rgba(0, 184, 217, 0.4);
  --c-border-active:     rgba(0, 184, 217, 0.8);

  /* --- Typography --- */
  --font-display:        'Syne', sans-serif;
  --font-body:           'DM Sans', sans-serif;

  --fs-xs:    0.75rem;    /* 12px */
  --fs-sm:    0.875rem;   /* 14px */
  --fs-base:  1rem;       /* 16px */
  --fs-md:    1.125rem;   /* 18px */
  --fs-lg:    1.25rem;    /* 20px */
  --fs-xl:    1.5rem;     /* 24px */
  --fs-2xl:   1.875rem;   /* 30px */
  --fs-3xl:   2.25rem;    /* 36px */
  --fs-4xl:   3rem;       /* 48px */
  --fs-5xl:   3.75rem;    /* 60px */
  --fs-6xl:   4.5rem;     /* 72px */

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

  /* --- Layout --- */
  --container-max:  1280px;
  --container-pad:  1.25rem;  /* mobile */
  --section-py:     var(--sp-12); /* mobile */

  /* --- Radius --- */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.6);
  --shadow-brand: 0 0 24px var(--c-brand-glow-strong);
  --shadow-glow:  0 0 60px var(--c-brand-glow);

  /* --- Transitions --- */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s ease;

  /* --- Z-index layers --- */
  --z-base:    1;
  --z-raised:  10;
  --z-overlay: 100;
  --z-nav:     200;
  --z-modal:   300;
}


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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-text-primary);
  background-color: var(--c-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text-primary);
}

/* Focus visible for keyboard nav */
:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}


/* ============================================================
   3. TYPOGRAPHY BASE
   ============================================================ */
.text-brand  { color: var(--c-brand); }
.text-purple { color: var(--c-purple); }
.text-green  { color: var(--c-green); }
.text-muted  { color: var(--c-text-secondary); }

/* Display sizes — mobile-first, scale up via media queries */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-stat {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-brand);
}

.lead {
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.7;
  color: var(--c-text-secondary);
}

.label-text {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ============================================================
   4. GLOBAL UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background-color: var(--c-bg-secondary);
}

.section--dark {
  background-color: var(--c-bg-primary);
}

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

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2       { gap: var(--sp-2); }
.gap-4       { gap: var(--sp-4); }
.gap-6       { gap: var(--sp-6); }
.gap-8       { gap: var(--sp-8); }

.grid        { display: grid; }
.w-full      { width: 100%; }
.hidden      { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Divider line */
.divider {
  width: 100%;
  height: 1px;
  background: var(--c-border);
  margin-block: var(--sp-8);
}

/* Section header pattern */
.section-header {
  margin-bottom: var(--sp-10);
}
.section-header--center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
}


/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8125rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

/* Primary — filled brand */
.btn--primary {
  background: var(--c-brand);
  color: var(--c-text-inverse);
  border: 2px solid var(--c-brand);
  box-shadow: 0 0 20px rgba(0, 184, 217, 0.25);
}
.btn--primary:hover {
  background: var(--c-brand-light);
  border-color: var(--c-brand-light);
  box-shadow: 0 0 32px rgba(0, 184, 217, 0.45);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Outline — ghost */
.btn--outline {
  background: transparent;
  color: var(--c-brand);
  border: 2px solid rgba(0, 184, 217, 0.5);
}
.btn--outline:hover {
  background: rgba(0, 184, 217, 0.08);
  border-color: var(--c-brand);
  color: var(--c-brand-light);
}

/* Ghost — no border */
.btn--ghost {
  background: transparent;
  color: var(--c-text-secondary);
  border: 2px solid transparent;
  padding-inline: var(--sp-4);
}
.btn--ghost:hover {
  color: var(--c-text-primary);
  background: rgba(255,255,255,0.05);
}

/* Sizes */
.btn--sm {
  padding: 0.5rem 1.125rem;
  font-size: var(--fs-sm);
  border-radius: var(--r-sm);
}
.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-md);
  border-radius: var(--r-lg);
}

/* Full width on mobile */
.btn--full-mobile {
  width: 100%;
}

/* Segment CTAs */
.btn--shippers { background: var(--c-brand);   border-color: var(--c-brand);   color: var(--c-text-inverse); }
.btn--3pls     { background: var(--c-purple);  border-color: var(--c-purple);  color: white; }
.btn--drivers  { background: var(--c-green);   border-color: var(--c-green);   color: var(--c-text-inverse); }

.btn--shippers:hover { background: var(--c-brand-light);  box-shadow: 0 0 24px var(--c-brand-glow-strong); }
.btn--3pls:hover     { background: var(--c-purple-light); box-shadow: 0 0 24px var(--c-purple-glow); }
.btn--drivers:hover  { background: var(--c-green-light);  box-shadow: 0 0 24px var(--c-green-glow); }


/* ============================================================
   6. BADGES & LABELS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3rem 0.85rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  border: 1px solid;
  line-height: 1.4;
}

.badge--brand {
  background: rgba(0, 184, 217, 0.1);
  border-color: rgba(0, 184, 217, 0.35);
  color: var(--c-brand);
}

.badge--problem {
  background: rgba(244, 80, 74, 0.1);
  border-color: rgba(244, 80, 74, 0.35);
  color: var(--c-red);
}

.badge--solution {
  background: rgba(16, 217, 160, 0.1);
  border-color: rgba(16, 217, 160, 0.35);
  color: var(--c-green);
}

.badge--platform {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--c-purple);
}

.badge--dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}


/* ============================================================
   7. CARDS (base)
   ============================================================ */
.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.card:hover {
  border-color: var(--c-border-hover);
  box-shadow: var(--shadow-md);
}

.card--glow:hover {
  box-shadow: var(--shadow-brand);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-brand-glow);
  color: var(--c-brand);
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.card__body {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  line-height: 1.6;
}


/* ============================================================
   11. WORDPRESS / ELEMENTOR OVERRIDES
   ============================================================ */

/* Remove Elementor default padding on sections */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--container-max);
}

/* Ensure Elementor respects our color vars */
.elementor-widget-text-editor p,
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-body);
}

/* WordPress admin bar offset for sticky nav */
.admin-bar .filip-navbar {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .filip-navbar {
    top: 46px;
  }
}

/* Elementor full-width sections */
.elementor-section.elementor-section-stretched {
  width: 100% !important;
}

/* Remove default WP margins */
.page .entry-content,
.single .entry-content {
  margin: 0;
  padding: 0;
}

/* Smoothscroll anchor offset for sticky navbar */
[id] {
  scroll-margin-top: 80px;
}


/* ============================================================
   12. RESPONSIVE OVERRIDES
   ============================================================ */

/* Tablet */
@media (min-width: 768px) {
  :root {
    --container-pad: 2rem;
    --section-py: var(--sp-20);
  }

  .btn--full-mobile { width: auto; }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --container-pad: 3rem;
    --section-py: var(--sp-24);
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  :root {
    --container-pad: 4rem;
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
