/* ============================================================
   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-5);
}

/* Keep the nav CTA on a single line — never wrap "Book an Event" or "Request a Quote" */
.nav-cta .btn {
    white-space: nowrap;
}

.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;
    white-space: nowrap;
}

.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;
}

/* ---- Social Icons ---------------------------------------- */
.nav-social {
    display: none;
    align-items: center;
    gap: var(--space-3);
    margin-left: var(--space-3);
}
.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.nav-social a:hover { color: var(--white); }
.nav-social svg { width: 20px; height: 20px; max-width: 20px; max-height: 20px; flex-shrink: 0; }
.nav-social { gap: var(--space-2); }
/* All five social icons visible from tablet up — single config, no responsive hiding. */
@media (min-width: 900px) {
    .nav-social { display: flex; }
}

.nav-mobile-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-4) var(--space-6) 0; }
.nav-mobile-social a { color: rgba(255,255,255,0.7); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.nav-mobile-social a:hover { background: transparent; }
.nav-mobile-social svg { width: 22px; height: 22px; max-width: 22px; max-height: 22px; flex-shrink: 0; }

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: background var(--transition);
}
.footer-social a:hover { background: var(--orange); }
.footer-social svg { width: 18px; height: 18px; max-width: 18px; max-height: 18px; flex-shrink: 0; }

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

/* ---- Floating Action Buttons ----------------------------- */
.fab {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fab a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    min-height: 48px;
    max-height: 48px;
    border-radius: 50%;
    background: rgba(255, 104, 0, 0.85);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
}
.fab a:hover {
    background: var(--orange);
    transform: scale(1.1);
}
.fab svg { width: 22px; height: 22px; max-width: 22px; max-height: 22px; flex-shrink: 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-checkered {
    background-color: var(--white);
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.09) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.09) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.09) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.09) 75%);
    background-size: 28px 28px;
    background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

.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, rgba(15,14,14,0.78) 0%, rgba(30,29,29,0.62) 100%),
        image-set(url('/assets/images/offering-trailer.webp') type('image/webp'), url('/assets/images/offering-trailer.jpg') type('image/jpeg')) center 40% / cover no-repeat,
        #0f0e0e;
    border-bottom: 3px solid var(--orange);
}

.offering-card-header.onsite {
    background:
        linear-gradient(135deg, rgba(15,14,14,0.78) 0%, rgba(30,29,29,0.62) 100%),
        image-set(url('/assets/images/offering-onsite.webp') type('image/webp'), url('/assets/images/offering-onsite.jpg') type('image/jpeg')) center 55% / cover no-repeat,
        #0f0e0e;
    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);
}

/* ---- Global promo banner -------------------------------- */
/* Transparent-green strip pinned just under the sticky nav whenever a promo
   code is active (set via /schwaa redirect or any URL containing ?promo=). */
#promo-banner {
    position: sticky;
    top: 92px;
    z-index: 99;
    background:
        linear-gradient(rgba(46, 160, 67, 0.32), rgba(46, 160, 67, 0.32)),
        rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(46, 160, 67, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    color: #eaffef;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2px;
    padding: var(--space-3) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

#promo-banner .promo-banner-text {
    flex: 0 1 auto;
}

#promo-banner strong {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.promo-banner-close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 var(--space-2);
    flex-shrink: 0;
}

.promo-banner-close:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    #promo-banner {
        font-size: 0.8125rem;
        padding: var(--space-2) var(--space-3);
        gap: var(--space-2);
    }
}
