/* ============================================================
   components.css — Nav, footer, buttons, cards, badges
   ============================================================ */

/* ---- Buttons --------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: 600;
    font-family: var(--font);
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 104, 0, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--orange);
    border-color: var(--orange);
}
.btn-secondary:hover {
    background: var(--orange);
    color: var(--white);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}
.btn-dark:hover {
    background: #2a2929;
    border-color: #2a2929;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-blue {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn-blue:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 125, 255, 0.35);
}
.btn-sbrs {
    background: var(--sbrs-red);
    color: var(--white);
    border-color: var(--sbrs-red);
}
.btn-sbrs:hover {
    background: #a50d24;
    border-color: #a50d24;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-full { width: 100%; }

.btn:disabled, .btn[aria-busy="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Navigation ------------------------------------------ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
    gap: var(--space-8);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    height: 72px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-logo-text {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.nav-logo-text span {
    display: block;
    font-size: var(--text-xs);
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-6);
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    font-size: var(--text-base);
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

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

.nav-cta {
    display: none;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
    display: none;
    flex-direction: column;
    background: #1e1d1d;
    padding: var(--space-4) 0 var(--space-6);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
    color: rgba(255,255,255,0.8);
    font-size: var(--text-base);
    font-weight: 500;
    padding: var(--space-3) var(--space-6);
    transition: color var(--transition), background var(--transition);
}

.nav-mobile a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.nav-mobile .btn {
    margin: var(--space-4) var(--space-6) 0;
    text-align: center;
}

@media (min-width: 900px) {
    .nav-links { display: flex; }
    .nav-cta    { display: flex; }
    .nav-toggle { display: none; }
}

/* ---- Footer ---------------------------------------------- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand img {
    height: 44px;
    width: auto;
    margin-bottom: var(--space-4);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    padding: var(--space-1) 0;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-contact p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.footer-contact a { color: var(--orange); display: inline; }
.footer-contact a:hover { color: var(--orange-dark); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: var(--text-xs);
    margin-bottom: 0;
}

/* ---- Cards ----------------------------------------------- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-body {
    padding: var(--space-8);
}

.card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Offering cards (dual-brand homepage section) */
.offering-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.offering-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.offering-card-header {
    padding: var(--space-8) var(--space-8) var(--space-6);
    position: relative;
}

.offering-card-header.trailer {
    background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 100%);
    border-bottom: 3px solid var(--sbrs-red);
}

.offering-card-header.onsite {
    background: linear-gradient(135deg, var(--dark) 0%, #1e1d1d 100%);
    border-bottom: 3px solid var(--orange);
}

.offering-card-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.offering-card-logos img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
}


.offering-card-logos .logo-sbrs {
    filter: none;
    background: rgba(255,255,255,0.95);
    padding: 4px 10px;
    border-radius: 6px;
    height: 64px;
}

.offering-card-logos .logo-sep {
    color: rgba(255,255,255,0.3);
    font-size: var(--text-lg);
}

.offering-card-header h3 {
    color: var(--white);
    font-size: var(--text-2xl);
}

.offering-card-header .badge {
    margin-bottom: var(--space-3);
}

.offering-card-body {
    padding: var(--space-8);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offering-card-body p {
    color: var(--mid);
    margin-bottom: var(--space-6);
}

.offering-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex: 1;
}

.offering-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--mid);
}

.offering-feature .check {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
}

.offering-feature .check.orange { background: var(--orange); }
.offering-feature .check.red    { background: var(--sbrs-red); }

/* ---- Badges ---------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-orange { background: var(--orange-light); color: var(--orange-dark); }
.badge-blue   { background: var(--blue-light); color: var(--blue-dark); }
.badge-dark   { background: rgba(255,255,255,0.15); color: var(--white); }
.badge-red    { background: var(--sbrs-red-light); color: var(--sbrs-red); }

/* ---- Stats / Social Proof -------------------------------- */
.stat-item {
    text-align: center;
    padding: var(--space-6);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-sup {
    font-size: 0.5em;
    vertical-align: super;
    line-height: 0;
}

/* ---- Testimonial ----------------------------------------- */
.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--border);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
    font-size: 4rem;
    line-height: 1;
    color: var(--orange);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial p {
    font-size: var(--text-lg);
    color: var(--mid);
    font-style: italic;
    padding-top: var(--space-6);
}

.testimonial-author {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--dark);
}

.testimonial-author span {
    font-weight: 400;
    color: var(--muted);
}

/* ---- Accordion ------------------------------------------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

.accordion-section + .accordion-section { border-top: 1px solid var(--border); }

.accordion-section-header {
    background: var(--dark);
    padding: var(--space-4) var(--space-6);
}

.accordion-section-header h3 {
    color: var(--white);
    font-size: var(--text-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.accordion-item { border-top: 1px solid var(--border); margin: 0 var(--space-3); }
.accordion-item:first-child { border-top: none; }

.accordion-trigger {
    width: 100%;
    background: var(--white);
    border: none;
    text-align: left;
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    transition: background var(--transition), color var(--transition);
}

.accordion-trigger:hover { background: var(--bg); }

.accordion-trigger[aria-expanded="true"] { color: var(--orange); }

.accordion-icon {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-lg);
    line-height: 1;
    color: var(--muted);
    transition: background var(--transition), transform var(--transition), color var(--transition);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
    background: var(--orange);
    color: var(--white);
    transform: rotate(45deg);
}

.accordion-content {
    display: none;
    padding: var(--space-4) var(--space-8) var(--space-6);
    color: var(--mid);
    font-size: var(--text-sm);
    line-height: 1.7;
    background: var(--white);
}

.accordion-content.open { display: block; }

.accordion-content p + p { margin-top: var(--space-2); }

/* ---- Lightbox -------------------------------------------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.lightbox-overlay.open { display: flex; }

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.lightbox-prev { left: var(--space-4); }
.lightbox-next { right: var(--space-4); }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* ---- Loading spinner ------------------------------------- */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Slot picker ----------------------------------------- */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.slot-btn {
    padding: var(--space-3);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    text-align: center;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--dark);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.slot-btn:hover {
    border-color: var(--orange);
    background: var(--orange-light);
}

.slot-btn.selected {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--white);
}

.slot-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--border);
    background: var(--bg);
}

/* ---- Step indicator -------------------------------------- */
.steps {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--muted);
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

.step.active .step-num {
    background: var(--orange);
    color: var(--white);
}

.step.done .step-num {
    background: #4caf50;
    color: var(--white);
}

.step-divider {
    flex: 1;
    height: 1px;
    background: var(--border);
    min-width: var(--space-6);
}
