/* ==========================================================================
   Atlas Transit — Shared Stylesheet
   Consolidated from all 7 page designs. Tailwind (CDN) handles utility
   classes inline in the HTML; this file holds the custom classes that
   Tailwind's utility set can't express, referenced by more than one page.
   ========================================================================== */

/* Material Symbols base rendering */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* Frosted-glass panel effect — used on hero search bars, cards, timeline nodes */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Homepage: hero trust-stat shimmer + subtle pulse */
.animate-pulse-subtle {
    animation: pulse-subtle 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Track Shipment: dashed timeline for future/estimated legs */
.tracking-timeline-line {
    background: repeating-linear-gradient(to bottom, #72777e 0, #72777e 4px, transparent 4px, transparent 8px);
}
.tracking-timeline-line-active {
    background: #456800;
}

/* Services: angled image clip-paths that alternate per section */
.service-image-mask {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}
@media (min-width: 768px) {
    .service-image-mask {
        clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    }
    .service-image-mask-alt {
        clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* News: article/tip card hover lift + custom scrollbar */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(8, 59, 92, 0.08);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f7f9fb; }
::-webkit-scrollbar-thumb { background: #c2c7ce; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #72777e; }

/* FAQ: accordion expand/collapse */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.active .accordion-content {
    max-height: 500px;
}
.accordion-item.active .rotate-icon {
    transform: rotate(180deg);
}

/* Contact: gradient headline text + focus rings on form fields */
.text-gradient {
    background: linear-gradient(135deg, #00253d 0%, #1e4a6c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #00253d;
    box-shadow: 0 0 0 4px rgba(8, 59, 92, 0.05);
}

/* About: dotted vertical company-history timeline + lime pulse dot */
.timeline-line {
    background: repeating-linear-gradient(to bottom, #00253d 0, #00253d 8px, transparent 8px, transparent 16px);
}
@keyframes pulse-lime {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.active-pulse {
    animation: pulse-lime 2s infinite ease-in-out;
}

/* ==========================================================================
   Site-wide additions (not from Stitch exports — added to make the site work
   as one cohesive multi-page build)
   ========================================================================== */

/* Mobile nav drawer */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
#mobile-menu.open {
    max-height: 480px;
}

/* Generic scroll-reveal, applied selectively via data-page in js/main.js */
.reveal-init {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-pulse-subtle,
    .shimmer,
    .active-pulse,
    #mobile-menu,
    .reveal-init {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
