/* ==========================================================================
   Omni Solutions International — Design System
   Palette grounded in highway signage + safety equipment:
   deep asphalt navy, caution amber, dashed lane-line motif.
   Headline type: Oswald (condensed, DOT/road-sign feel)
   Body type: Inter (clean, highly legible at small sizes)
   ========================================================================== */

:root {
    --asphalt: #0C1220;
    --asphalt-deep: #070B14;
    --asphalt-card: #131B2E;
    --amber: #FFB020;
    --amber-hot: #FF8A00;
    --lane-white: #F5F7FA;
    --ink: #1C2430;
    --ink-soft: #5B6472;
    --line: rgba(255, 255, 255, 0.10);
    --line-soft: rgba(12, 18, 32, 0.08);
    --radius-lg: 22px;
    --radius-md: 14px;
    --shadow-soft: 0 18px 40px rgba(12, 18, 32, 0.10);
    --shadow-deep: 0 24px 60px rgba(7, 11, 20, 0.35);
}

*:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background-color: var(--lane-white);
    overflow-x: hidden;
    font-size: 1.02rem;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: none;
    letter-spacing: 0.2px;
}

h1 { font-weight: 600; }
h2 { font-weight: 600; }

.eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--amber-hot);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.text-muted { color: var(--ink-soft) !important; }

/* ---------- Utility ---------- */
.text-accent { color: var(--amber) !important; }
.bg-navy { background-color: var(--asphalt) !important; }
.bg-navy-dark { background-color: var(--asphalt-deep) !important; }
.bg-accent { background-color: var(--amber) !important; }
.max-w-700 { max-width: 700px; }
.max-w-560 { max-width: 560px; }

.btn-accent {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-hot) 100%);
    color: #10131A;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 24px rgba(255, 138, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-accent:hover, .btn-accent:focus {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(255, 138, 0, 0.38);
    color: #10131A;
}

.btn-outline-light:hover { color: #10131A; }

/* ---------- Lane-line divider motif ---------- */
.lane-divider {
    height: 4px;
    width: 100%;
    background-image: repeating-linear-gradient(90deg, var(--amber) 0 28px, transparent 28px 46px);
    opacity: 0.85;
}

.lane-divider.dark {
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 20px, transparent 20px 36px);
}

/* ---------- Navbar ---------- */
.navbar {
    background-color: rgba(7, 11, 20, 0.90);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 8px 0;
    background-color: rgba(7, 11, 20, 0.97);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border-bottom-color: var(--line);
}

.navbar-brand { letter-spacing: 0.5px; display: inline-flex; align-items: center; }
.navbar-logo { height: 34px; width: auto; display: inline-block; }
footer .navbar-logo { height: 40px; }

.nav-link {
    position: relative;
    margin: 0 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 2px;
    width: 0%;
    height: 2px;
    background: var(--amber);
    transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.navbar-toggler {
    border: 2px solid var(--amber) !important;
    padding: 6px 10px;
    border-radius: 8px;
}

.navbar-toggler:focus { box-shadow: 0 0 0 0.25rem rgba(255, 176, 32, 0.25); }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ---------- Hero / Page headers ---------- */
.page-header {
    position: relative;
    background: linear-gradient(120deg, rgba(7,11,20,0.96), rgba(12,18,32,0.90)), url('https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    padding: 150px 0 76px 0;
    overflow: hidden;
}

.page-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--amber) 0 30px, transparent 30px 50px);
}

.hero-home {
    position: relative;
    background: linear-gradient(115deg, rgba(7,11,20,0.94), rgba(12,18,32,0.80)), url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1800&q=80');
    background-size: cover;
    background-position: center;
    padding: 168px 0 110px 0;
    color: #fff;
    overflow: hidden;
}

.hero-home::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--amber) 0 30px, transparent 30px 50px);
}

.hero-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
}

/* ---------- Reveal-on-scroll (lightweight, IntersectionObserver driven) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ---------- Cards ---------- */
.card-service, .card-modern {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    background: #FFFFFF;
}

.card-service:hover, .card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(255, 176, 32, 0.45);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--amber-hot);
    display: inline-block;
    transition: transform 0.3s ease;
}

.card-service:hover .feature-icon,
.card-modern:hover .feature-icon { transform: scale(1.12) rotate(-4deg); }

.icon-chip {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 176, 32, 0.16), rgba(255, 138, 0, 0.08));
    color: var(--amber-hot);
    font-size: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}
.card-service:hover .icon-chip, .card-modern:hover .icon-chip {
    transform: scale(1.08);
    background: linear-gradient(135deg, var(--amber), var(--amber-hot));
    color: #10131A;
}

/* ---------- Show more / less toggle (services) ---------- */
.extra-services {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.5s ease, margin-top 0.5s ease;
}
.extra-services.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1.5rem;
}
.services-toggle-btn .bi { transition: transform 0.3s ease; }
.services-toggle-btn.expanded .bi { transform: rotate(180deg); }

/* ---------- Step timeline ---------- */
.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--amber), var(--amber-hot));
    color: #10131A;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

/* ---------- Animated counters ---------- */
.stat-number { font-variant-numeric: tabular-nums; }

/* ---------- Legal notice callouts ---------- */
.legal-note {
    border-left: 4px solid var(--amber-hot);
    background: rgba(255, 176, 32, 0.07);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.1rem 1.4rem;
}

.legal-toc a {
    color: var(--ink);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line-soft);
}
.legal-toc a:hover { color: var(--amber-hot); }

/* ---------- Footer ---------- */
footer {
    background-color: var(--asphalt-deep) !important;
    color: var(--lane-white) !important;
}

footer p, footer li, footer span { color: #B7C0CE !important; font-size: 0.92rem; line-height: 1.6; }
footer h6 { color: #FFFFFF !important; font-weight: 700; }

footer a.text-footer-link {
    color: #B7C0CE;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
footer a.text-footer-link:hover { color: var(--amber); padding-left: 4px; }

.social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icon:hover { background: var(--amber); color: #10131A; transform: translateY(-3px); }

.footer-disclaimer {
    font-size: 0.78rem;
    color: #7C8698 !important;
    line-height: 1.6;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--amber);
    color: #10131A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-deep);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1040;
    border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--amber-hot); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--asphalt-deep);
    color: var(--lane-white);
    border-top: 1px solid var(--line);
    padding: 18px 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { color: #C6CEDA; font-size: 0.88rem; margin-bottom: 0; }
.cookie-banner a { color: var(--amber); }

/* ---------- Forms ---------- */
.form-control, .form-select {
    padding: 0.68rem 0.9rem;
    border-radius: 10px;
    border: 1.5px solid #E2E6EC;
}
.form-control:focus, .form-select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 0.2rem rgba(255, 176, 32, 0.18);
}
.form-check-input:checked {
    background-color: var(--amber-hot);
    border-color: var(--amber-hot);
}
.form-check-label a { color: var(--amber-hot); }

.field-error {
    color: #D63A3A;
    font-size: 0.82rem;
    display: none;
    margin-top: 4px;
}
.was-validated .field-error.active,
.field-error.active { display: block; }

.form-status {
    display: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-top: 1rem;
    font-weight: 600;
}
.form-status.success { display: block; background: rgba(46, 175, 90, 0.12); color: #1E8A46; }
.form-status.error { display: block; background: rgba(214, 58, 58, 0.12); color: #B02A2A; }

/* ---------- Contact page: sidebar / form alignment ---------- */
.contact-info-card {
    display: flex;
    flex-direction: column;
}
.contact-info-card .contact-info-list {
    flex: 1 1 auto;
}
.contact-info-card .contact-info-social {
    margin-top: auto;
}
.contact-form-card, .contact-info-card {
    border-radius: var(--radius-lg);
}

/* ---------- Icon sizing fix (prevents stretched / oval glyphs) ---------- */
.bi {
    line-height: 1;
    vertical-align: -0.125em;
    display: inline-block;
}

.icon-circle {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), var(--amber-hot));
    z-index: 1101;
    transition: width 0.1s linear;
}

/* ---------- Custom FAQ accordion (vanilla JS driven, no Bootstrap-JS dependency) ---------- */
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
    width: 100%;
    text-align: left;
    background: #fff;
    border: none;
    padding: 1.1rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    color: var(--ink);
    transition: background-color 0.2s ease;
}
.faq-question:hover { background: rgba(255, 176, 32, 0.06); }
.faq-question .faq-chevron {
    transition: transform 0.3s ease;
    color: var(--amber-hot);
    flex-shrink: 0;
}
.faq-item.open .faq-question .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-question { color: var(--amber-hot); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: #fff;
    padding: 0 1.4rem;
}
.faq-item.open .faq-answer { padding: 0 1.4rem 1.2rem 1.4rem; }
.faq-answer p { margin: 0; }

/* ---------- Testimonial slider ---------- */
.testimonial-track {
    position: relative;
    min-height: 220px;
}
.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}
.testimonial-dots { display: flex; gap: 8px; justify-content: center; margin-top: 1.5rem; }
.testimonial-dots button {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.testimonial-dots button.active { background: var(--amber); transform: scale(1.25); }

/* ---------- Floating contact actions (WhatsApp / Call) ---------- */
.fab-stack {
    position: fixed;
    left: 20px; bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1040;
}
.fab-btn {
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-deep);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fab-btn:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.fab-whatsapp { background: #25D366; }
.fab-whatsapp::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    animation: fab-pulse 2.4s infinite;
}
.fab-btn { position: relative; }
.fab-call { background: var(--asphalt); }
@keyframes fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Footer credit line ---------- */
.dev-credit {
    font-size: 0.78rem;
    color: #7C8698 !important;
}
.dev-credit a {
    color: var(--amber);
    text-decoration: none;
    font-weight: 600;
}
.dev-credit a:hover { text-decoration: underline; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    .page-header { padding: 130px 0 56px 0; }
    .hero-home { padding: 140px 0 76px 0; }
}

@media (max-width: 767.98px) {
    h1.display-5 { font-size: 2.1rem; }
    .page-header { padding: 118px 0 48px 0; }
    .hero-home { padding: 126px 0 60px 0; text-align: center; }
    .fab-btn { width: 48px; height: 48px; font-size: 1.3rem; }
    .fab-stack, .back-to-top { bottom: 16px; }
}
