/* CootransTame Landing - Custom Styles */

/* Hero slideshow */
.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Header scroll effect */
.header-scrolled .bg-secondary {
    display: none !important;
}

.header-scrolled #main-nav {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

/* Details/FAQ animation */
details summary {
    list-style: none;
}
details summary::-webkit-details-marker {
    display: none;
}

details[open] > div {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Service card hover line */
.group:hover .absolute.bottom-4 {
    transform: scale(1.05);
}

/* Parallax-like subtle background on CTA */
section.relative img {
    transform: scale(1.1);
}

/* Timeline for history page */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #ff5f15;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #ff5f15;
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 1.5rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: #e5e7eb;
}

.timeline-item:last-child::after {
    display: none;
}

/* Agency card hover */
.agency-card {
    transition: all 0.3s ease;
}

.agency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #e04d0a;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #ff5f15;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slide {
        background-position: 70% center;
    }
}
