/* Greenery Video Walls & Ad Solutions — Custom CSS */

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #10b981; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #059669; }

/* ── Selection ─────────────────────────────────────────── */
::selection         { background-color: #d1fae5; color: #065f46; }
::-moz-selection    { background-color: #d1fae5; color: #065f46; }

/* ── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    0%   { opacity: 0; transform: translateX(-24px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    0%   { opacity: 0; transform: translateX(24px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in-up    { animation: fadeInUp    0.6s ease-out both; }
.slide-in-left { animation: slideInLeft 0.6s ease-out both; }
.slide-in-right{ animation: slideInRight 0.6s ease-out both; }

/* ── Nav link underline ─────────────────────────────────── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #10b981;
    border-radius: 1px;
    transition: width 0.25s ease, left 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* ── Section label badge ────────────────────────────────── */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid #a7f3d0;
}

/* ── Cards ──────────────────────────────────────────────── */
.card-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-hover:hover {
    box-shadow: 0 12px 32px -8px rgba(16, 185, 129, 0.15), 0 4px 12px -4px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* Shine sweep on service cards */
.service-card {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16,185,129,0.06), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}
.service-card:hover::before { left: 100%; }
.service-card:hover {
    box-shadow: 0 8px 24px -4px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #10b981;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px rgba(16,185,129,0.45);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #10b981;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    border: 2px solid #10b981;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover {
    background: #10b981;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── Fleet cards ─────────────────────────────────────────── */
.fleet-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.fleet-card:hover {
    box-shadow: 0 16px 40px -8px rgba(16,185,129,0.18), 0 4px 12px -4px rgba(0,0,0,0.08);
    transform: translateY(-6px);
}

/* ── Loading spinner ─────────────────────────────────────── */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(16,185,129,0.25);
    border-radius: 50%;
    border-top-color: #10b981;
    animation: spin 0.8s ease-in-out infinite;
}

/* ── Gallery filter buttons ──────────────────────────────── */
.filter-btn.active {
    background: #10b981 !important;
    color: #ffffff !important;
}

/* ── Accessibility ───────────────────────────────────────── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 3px;
}

/* ── Responsive helpers ──────────────────────────────────── */
@media (max-width: 640px) {
    .hero-title    { font-size: 2rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1.0625rem; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
    .no-print { display: none !important; }
    body { background: white !important; color: black !important; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
