/* =========================================
   PromDigital — Custom Theme Styles
   ========================================= */

/* === Base styles === */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Pulse dot animation (AI network nodes) === */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.4);
    }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* === Section animations (IntersectionObserver) === */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === CTA Button Primary === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #ff5e14;
    border: 2px solid #ff5e14;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #e04e00;
    border-color: #e04e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 94, 20, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* === CTA Button Secondary === */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    background-color: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: #ff5e14;
    color: #ff5e14;
    transform: translateY(-2px);
}

/* === Mobile menu === */
#mobile-menu.open {
    display: block;
}

/* === FAQ Accordion === */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: #ff5e14;
}

/* === Prose styles for regular pages === */
.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #0f172a;
    font-weight: 700;
}

.prose a {
    color: #ff5e14;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

/* === Selection color === */
::selection {
    background-color: #ff5e14;
    color: #ffffff;
}

/* === Line clamp (fallback for browsers without line-clamp) === */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Focus visible for accessibility === */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #ff5e14;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Input autofill reset === */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #1f2937 !important;
}

/* === Tabular numbers for metrics === */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* === Custom scrollbar (Webkit) === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* === Print styles === */
@media print {
    #site-header {
        position: relative !important;
        background: white !important;
    }
    #mobile-menu-btn { display: none !important; }
    .btn-primary, .btn-secondary { display: none !important; }
    section { page-break-inside: avoid; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .section-animate {
        opacity: 1;
        transform: none;
    }
}

/* === Responsive font sizes for Hero === */
@media (max-width: 640px) {
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}
