/* CA-CHARL LOGISTICS - Professional Clean Design
   ============================================
   Color Palette:
   - Primary: #0F172A (Slate 900 - Deep Navy)
   - Secondary: #3B82F6 (Blue 500)
   - Accent: #10B981 (Emerald 500)
   - Background: #FFFFFF
   - Surface: #F8FAFC
   - Text Primary: #0F172A
   - Text Secondary: #64748B
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0F172A;
    --secondary: #3B82F6;
    --accent: #10B981;
    --accent-hover: #059669;
    --background: #FFFFFF;
    --surface: #F8FAFC;
    --surface-hover: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   SMOOTH SCROLLING ENHANCEMENT
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ============================================
   HERO SECTION - BACKGROUND IMAGE
   ============================================ */
.hero-gradient {
    position: relative;
    overflow: hidden;
    background-image: url('images/bg-img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* No overlay - image displays with original colors */

.hero-gradient > * {
    position: relative;
    z-index: 2;
}

/* ============================================
   NAVIGATION - CLEAN PROFESSIONAL
   ============================================ */
.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(15, 23, 42, 0.95) !important;
    transition: all 0.3s ease;
}

/* Navigation scrolled state */
nav.scrolled {
    background-color: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover {
    color: #ffffff;
}

nav a:hover::after {
    width: 100%;
}

/* ============================================
   BUTTONS - MODERN WITH MICRO-INTERACTIONS
   ============================================ */
.btn-primary,
button[class*="bg-ramp-accent"],
.bg-ramp-accent {
    background-color: var(--accent) !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
button[class*="bg-ramp-accent"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before,
button[class*="bg-ramp-accent"]:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover,
button[class*="bg-ramp-accent"]:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active,
button[class*="bg-ramp-accent"]:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   CARDS & PANELS - CLEAN MODERN
   ============================================ */
.card,
.card-hover,
[class*="bg-ramp-card"] {
    background-color: var(--background) !important;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.card-hover:hover,
[class*="bg-ramp-card"]:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

/* Card text colors */
.card h3,
.card-hover h3,
[class*="bg-ramp-card"] h3,
.card [class*="text-gray-900"],
.card-hover [class*="text-gray-900"],
[class*="bg-ramp-card"] [class*="text-gray-900"] {
    color: var(--text-primary) !important;
}

.card p,
.card-hover p,
[class*="bg-ramp-card"] p,
.card [class*="text-gray-600"],
.card-hover [class*="text-gray-600"],
[class*="bg-ramp-card"] [class*="text-gray-600"] {
    color: var(--text-secondary) !important;
}

/* ============================================
   FORM INPUTS - CLEAN & VISIBLE
   ============================================ */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background-color: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* Hero section inputs */
.hero-gradient input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-gradient input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-gradient input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */
/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* GPU-accelerated fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
    transition: opacity 0.6s ease-out, 
                transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for grid items */
.fade-in:nth-child(1) { transition-delay: 0.05s; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.15s; }
.fade-in:nth-child(4) { transition-delay: 0.2s; }
.fade-in:nth-child(5) { transition-delay: 0.25s; }
.fade-in:nth-child(6) { transition-delay: 0.3s; }
.fade-in:nth-child(7) { transition-delay: 0.35s; }
.fade-in:nth-child(8) { transition-delay: 0.4s; }
.fade-in:nth-child(9) { transition-delay: 0.45s; }
.fade-in:nth-child(10) { transition-delay: 0.5s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Link hover animation */
a:not(.btn-primary):not(.btn-secondary) {
    transition: color 0.2s ease;
}

/* Icon hover rotation */
.icon-rotate {
    transition: transform 0.3s ease;
}

.icon-rotate:hover {
    transform: rotate(15deg);
}

/* ============================================
   SECTIONS - CLEAN BACKGROUNDS
   ============================================ */
section.bg-white,
[class*="section-light"] {
    background-color: var(--background) !important;
}

section.bg-ramp-dark,
section.bg-ramp-black,
[class*="bg-ramp-dark"],
[class*="bg-ramp-black"] {
    background-color: var(--primary) !important;
}

/* ============================================
   FOOTER - BACKGROUND IMAGE
   ============================================ */
footer {
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    background-image: url('images/footer-img-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* No overlay - footer image displays with original colors */

footer > * {
    position: relative;
    z-index: 2;
}

footer a,
footer h4,
footer p,
footer span,
footer li {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent) !important;
}

footer h4 {
    color: white !important;
    font-weight: 600;
}

/* ============================================
   TYPOGRAPHY - CLEAN HIERARCHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

/* ============================================
   SCROLLBAR - CLEAN MODERN
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

::selection {
    background-color: var(--secondary);
    color: white;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--primary);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-gradient {
        background-attachment: scroll;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .hero-gradient,
    footer {
        background-image: none !important;
        background-color: white !important;
        color: black !important;
    }
    
    .hero-gradient::before,
    footer::before {
        display: none;
    }
}
