/* Custom styles for Pixo Service */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Hover effects for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Custom gradients */
.gradient-blue-purple {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
}

.gradient-red {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

/* Phone number styling */
.phone-number {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Service icons */
.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1);
}

/* Chat widget pulse animation */
.chat-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Form focus states */
.form-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Price calculator styles */
.price-calculator {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
}

.price-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.price-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.price-item:last-child {
    border-bottom: none;
}

/* Brand buttons */
.brand-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.brand-btn::before {
    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 ease;
}

.brand-btn:hover::before {
    left: 100%;
}

/* Device cards */
.device-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.device-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.device-card:hover::after {
    opacity: 1;
}

/* Status indicator */
.status-online {
    position: relative;
}

.status-online::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10B981;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Typography improvements */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu.open {
        left: 0;
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }
}

/* Design System tokens (service.pixophone.com) */
:root {
    --color-bg: #FFFFFF;           /* base background (white) */
    --color-bg-dark: #F5F5F5;      /* light blocks */
    --color-text: #222222;         /* primary text (dark) */
    --color-text-muted: #666666;   /* secondary text */
    --color-hover: #E5E7EB;        /* borders on white */
    --color-focus: #222222;        /* accent dark */
    --color-secondary: #777777;    /* secondary button */
    --color-secondary-hover: #555555; /* secondary hover */
}

/******************** Dark Theme Utilities ********************/
body.theme-dark {
    background: var(--color-bg);
    color: var(--color-text);
}

.theme-dark .header,
.theme-dark header {
    background: var(--color-bg);
    color: var(--color-text);
}

.theme-dark .footer,
.theme-dark footer {
    background: var(--color-bg);
    color: var(--color-text);
}

.theme-dark .card-dark {
    background: var(--color-bg-dark);
    color: var(--color-text);
    border: 1px solid var(--color-hover);
}

.theme-dark .btn-primary {
    background: var(--color-focus);
    color: #FFFFFF;
    border: 1px solid var(--color-focus);
    border-radius: 6px;
}
.theme-dark .btn-primary:hover { filter: brightness(1.05); }

.theme-dark .btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text);
    border-radius: 6px;
}
.theme-dark .btn-secondary:hover { background: var(--color-secondary-hover); }

.theme-dark .input-dark,
.theme-dark input[type="text"],
.theme-dark input[type="tel"],
.theme-dark input[type="email"],
.theme-dark textarea,
.theme-dark select {
    background: var(--color-bg-dark);
    color: var(--color-text);
    border: 1px solid var(--color-hover);
    border-radius: 6px;
}
.theme-dark .input-dark::placeholder { color: #AAAAAA; }
.theme-dark input:focus,
.theme-dark textarea:focus,
.theme-dark select:focus {
    outline: none;
    border-color: var(--color-text);
}

.theme-dark .muted { color: var(--color-text-muted); }
.theme-dark .divider { border-color: var(--color-hover); }

/* Links */
.theme-dark a { color: var(--color-text); }
.theme-dark a:hover { color: var(--color-text-muted); }

/* Chips / tags */
.theme-dark .chip {
    background: var(--color-bg-dark);
    color: var(--color-text);
    border: 1px solid var(--color-hover);
    padding: 6px 10px;
    border-radius: 8px;
}

/* Section spacing */
.section { padding: 48px 0; }
.section-lg { padding: 72px 0; }

/* Headings */
.theme-dark h1 { font-size: 40px; line-height: 1.3; color: var(--color-text); font-weight: 700; }
.theme-dark h2 { font-size: 32px; line-height: 1.35; color: var(--color-text); font-weight: 600; }
.theme-dark h3 { font-size: 22px; line-height: 1.4; color: var(--color-text-muted); font-weight: 600; }
.theme-dark p { font-size: 16px; line-height: 1.5; color: var(--color-text-muted); }

/* Hero */
.theme-dark .hero { background: var(--color-bg); }
.theme-dark .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Price block */
.theme-dark .price-block { background: var(--color-bg-dark); border: 1px solid var(--color-hover); border-radius: 12px; }
.theme-dark .price-row { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--color-hover); }
.theme-dark .price-row:last-child { border-bottom: none; }

/* Icons */
.theme-dark .icon { color: var(--color-text); }

/* Header refinements */
.theme-dark .header-bar { height: 64px; display: flex; align-items: center; border-bottom: 1px solid var(--color-hover); background: var(--color-bg); }
.theme-dark .topbar { height: 36px; display: flex; align-items: center; border-bottom: 1px solid var(--color-hover); }
.theme-dark .search-wrap { max-width: 720px; margin: 0 auto; display: flex; gap: 8px; }
.theme-dark .search-input { flex: 1; background: var(--color-bg-dark); color: var(--color-text); border: 1px solid var(--color-hover); border-radius: 12px; padding: 10px 14px; }
.theme-dark .icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--color-bg-dark); border: 1px solid var(--color-hover); color: var(--color-text); }

/* Chips */
.theme-dark .chip-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--color-hover); border-radius: 999px; color: var(--color-text-muted); background: transparent; transition: 0.2s; }
.theme-dark .chip-pill:hover { background: var(--color-bg-dark); color: var(--color-text); }
.theme-dark .chip-pill.is-active { background: var(--color-text); color: var(--color-focus); border-color: var(--color-text); }

/* Brand strip */
.theme-dark .brand-strip { display: flex; gap: 24px; overflow-x: auto; padding: 12px 8px; border-top: 1px solid var(--color-hover); border-bottom: 1px solid var(--color-hover); }
.theme-dark .brand-strip img { height: 24px; filter: grayscale(100%) brightness(1.4); opacity: 0.9; transition: 0.2s; }
.theme-dark .brand-strip img:hover { filter: grayscale(0%) brightness(1); opacity: 1; }

/* Section spacing & headings */
.section-xl { padding: 72px 0; }
.h1-xl { font-size: 40px; line-height: 1.3; color: var(--color-text); font-weight: 700; }
.h2-lg { font-size: 32px; line-height: 1.35; color: var(--color-text); font-weight: 600; }

/* Tiles */
.tile { background: var(--color-bg-dark); border: 1px solid var(--color-hover); border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }

/* Hero carousel */
.carousel { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.carousel > * { scroll-snap-align: start; }
.carousel-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--color-hover); background: var(--color-bg-dark); min-height: 320px; }
.carousel-ctrl { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg-dark); border: 1px solid var(--color-hover); color: var(--color-text); }
.carousel-ctrl.prev { left: -12px; }
.carousel-ctrl.next { right: -12px; }

/* Shadows & radius */
.radius-12 { border-radius: 12px; }
.radius-16 { border-radius: 16px; }
.shadow-4 { box-shadow: 0 4px 16px rgba(0,0,0,.24); }

/* Utilities */
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.container-narrow { max-width: 1120px; margin: 0 auto; }