/*
Vancity Forklift Services Ltd.
Advance Machines-inspired design - Red, Black, Light Grey theme
*/

:root {
    --accent: #c41e3a;
    --accent-rgba: rgba(196, 30, 58, 0.5);
    --accent-dark: #9e1830;
    --black: #000;
    --grey-dark: #2d2d2d;
    --grey: #8d8d8d;
    --grey-light: #e8e8e8;
    --grey-lighter: #f5f5f5;
    --white: #fff;
    /* Dark red-tinted backgrounds */
    --bg-darkest: #0d0608;
    --bg-dark: #1a0c10;
    --bg-mid: #2d151a;
    --bg-mid-alt: #1e0d12;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html { height: 100%; }

body {
    color: var(--grey);
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 2.2;
    background: var(--bg-darkest);
}

a {
    color: #aaa;
    text-decoration: none;
    transition: ease 0.3s;
}
a:hover { color: var(--white); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    font-family: "Rubik", sans-serif;
    color: var(--black);
    line-height: 1.4;
}

.clearfix::after { content: ""; display: table; clear: both; }
.clearboth { clear: both; }

.spacing40 { width: 100%; height: 40px; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 15px; }
.col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 15px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; padding: 0 15px; }

/* Header - Advance Machines style */
.home-section.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.for-sticky {
    top: 0;
    left: 0;
    padding: 15px 0;
    width: 100%;
    z-index: 9999;
    transition: ease 0.3s;
}
.header.is-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(196, 30, 58, 0.15);
}
.is-sticky .for-sticky {
    padding: 10px 0;
}

.nav-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
}

.logo {
    float: left;
    max-width: 20%;
}
.logo a {
    font-family: "Rubik", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}
.logo a:hover { color: var(--accent); }

.menu-box { float: right; }
.menu-box .navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.menu-box .navigation li { display: inline-block; }
.menu-box .navigation li a {
    color: rgba(255,255,255,0.85);
    font-family: "Rubik", sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    padding: 15px 17px;
    text-transform: uppercase;
    display: block;
}
.menu-box .navigation li a:hover,
.menu-box .navigation li a.active { color: var(--accent); }

.box-mobile {
    display: none;
    float: right;
}
.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
}
.mobile-menu.in {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--grey-light);
}
.mobile-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--black) !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 1px solid var(--grey-light);
}
.mobile-menu li a:hover,
.mobile-menu li a.active { color: var(--accent) !important; }
.menu-btn {
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    height: 36px;
    width: 36px;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
}

/* Slider - Advance Machines style */
.slider-box {
    position: relative;
    min-height: 100vh;
    background: var(--bg-darkest);
}

.slider {
    position: relative;
    min-height: 100vh;
    background: var(--bg-darkest);
}
.slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
    z-index: 0;
    pointer-events: none;
}
.slider .slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0s;
    z-index: 1;
    pointer-events: auto;
}

.slide-1 {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darkest) 50%, var(--bg-mid) 100%);
    background-image: url('hero-maintenance.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.slide-2 {
    background: linear-gradient(135deg, var(--bg-darkest) 0%, var(--bg-dark) 50%, var(--bg-mid) 100%);
    background-image: url('hero-parts-service.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.slide-3 {
    background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-darkest) 50%, var(--bg-dark) 100%);
    background-image: url('hero-british-columbia.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.img-bg {
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    width: 100%;
}

/* Hero images: responsive on all screens - cover scales to fill viewport */
@media (max-width: 768px) {
    .slide-1, .slide-2, .slide-3 {
        background-position: center center;
        background-size: cover;
    }
}

.slider-mask {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slider .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.caption-box {
    padding: 18% 0 24%;
    text-align: center;
    position: relative;
}
.caption-box .fa-icon {
    color: var(--white);
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
    opacity: 0.9;
}
.caption-box .top-slide {
    color: var(--white);
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}
.caption-box .top-slide::before,
.caption-box .top-slide::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.3);
}
.caption-box .top-slide::before {
    right: 100%;
    margin-right: 25px;
}
.caption-box .top-slide::after {
    left: 100%;
    margin-left: 25px;
}
.caption-box h3 {
    color: var(--white);
    font-family: "Rubik", sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: 4px;
    line-height: 1.2;
    margin: 20px auto 30px;
    max-width: 500px;
    text-transform: uppercase;
}

.slide-btn {
    border: 2px solid var(--white);
    border-radius: 25px;
    color: var(--white);
    background: var(--accent-rgba);
    display: inline-block;
    font-family: "Rubik", sans-serif;
    font-weight: 500;
    letter-spacing: 4px;
    padding: 14px 30px;
    text-transform: uppercase;
    font-size: 12px;
    transition: ease 0.3s;
}
.slide-btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: ease 0.3s;
}
.slider-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Content sections */
.content { padding: 100px 0; }

.box-content { text-align: center; }

.content-title {
    font-size: 45px;
    letter-spacing: 3px;
    line-height: 1;
    margin: 0 auto 30px;
    max-width: 500px;
    text-transform: uppercase;
    color: var(--white);
}

.top-title {
    color: var(--white);
    display: inline-block;
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}
.top-title::before,
.top-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.3);
}
.top-title::before { right: 100%; margin-right: 25px; }
.top-title::after { left: 100%; margin-left: 25px; }

.content-icon {
    color: var(--white);
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}

/* About - Parallax section */
.parallax {
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darkest) 50%, var(--bg-mid) 100%);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.parallax-mask {
    background-color: rgba(0, 0, 0, 0.6);
}

.top-text {
    color: var(--white);
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 20px;
}
.about-para {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.8;
}

.content-subtitle {
    display: block;
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 15px;
    text-transform: uppercase;
    color: var(--white);
}

#about .content-subtitle + p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.8;
}

/* About page logo - responsive sizing */
.about-image {
    line-height: 0;
    margin-left: 90px;
}

.about-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    opacity: 0.9;
    display: block;
    object-fit: contain;
}

/* About feature blocks */
.about-features {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.about-feature-block {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 35px 40px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent);
}

.about-feature-block:last-child {
    margin-bottom: 0;
}

.about-feature-icon {
    font-size: 32px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.about-feature-block .content-subtitle {
    margin-bottom: 12px;
}

.about-feature-block p {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* Services section */
.bg {
    position: relative;
    overflow: hidden;
}

.para-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-dark) 50%, var(--bg-darkest) 100%);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    z-index: -1;
}

.bg-mask {
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg .box-content { position: relative; z-index: 1; }
.bg .content-icon { color: var(--white); }
.bg .top-title { color: var(--white); }
.bg .content-title { color: var(--white); }
.bg .content-subtitle { color: var(--white); }

.bg .content-subtitle + p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.8;
}

.service-icon {
    color: var(--white);
    font-size: 36px;
    margin: 30px 0 20px;
}

.bg .slide-btn {
    margin: 25px 0 0;
}

/* Testimonials */
.testimonials-bg {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-darkest) 100%);
}

.testimonials-wrapper {
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.4s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 40px;
    text-align: center;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}
.testimonial-card blockquote {
    color: rgba(255,255,255,0.95);
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 15px;
}
.testimonial-card cite {
    color: rgba(255,255,255,0.7);
    font-style: normal;
    font-size: 14px;
}

/* Home page snippet testimonials - 3 in a row */
.home-testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 35px;
}

.home-testimonials .testimonial-card {
    flex: 1 1 300px;
    max-width: 350px;
}

.home-snippet .spc-btn.slide-btn {
    margin-top: 10px;
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.testimonial-prev, .testimonial-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: ease 0.3s;
    line-height: 1;
}
.testimonial-prev:hover, .testimonial-next:hover {
    background: var(--white);
    color: var(--accent);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}
.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: ease 0.3s;
}
.testimonial-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Contact section */
.contact-section {
    background: linear-gradient(135deg, var(--bg-mid-alt) 0%, var(--bg-dark) 50%, var(--bg-darkest) 100%);
}

.contact-section .contact-icon { color: rgba(255,255,255,0.9) !important; }
.contact-section .contact-subtitle,
.contact-section .top-title { color: rgba(255,255,255,0.8) !important; }
.contact-section .contact-title { color: var(--white) !important; }

.contact-section .contact-box .line-subtext {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 5px;
}
.contact-section .contact-sub { color: var(--white) !important; }
.contact-section .contact-box p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}
.contact-section .contact-box a {
    color: var(--accent);
}
.contact-section .contact-box a:hover { color: #e8a0ae; }
.contact-section .contact-note {
    margin-top: 40px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    text-align: center;
}

.contact-section .line-subtext {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    margin-top: 25px;
    position: relative;
}
.contact-section .contact-box p.line-subtext:first-of-type { border: none; padding: 0; margin: 0; }

/* Contact form */
form input, form textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    background: var(--white);
    color: #333;
    font-size: 14px;
    font-family: inherit;
}
form input:focus, form textarea:focus {
    border-color: var(--accent);
    outline: none;
}
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--grey);
}

.contact-btn {
    background: var(--accent);
    border: 2px solid var(--accent);
    color: var(--white);
    padding: 14px 30px;
    font-family: "Rubik", sans-serif;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    transition: ease 0.3s;
}
.contact-btn:hover {
    background: transparent;
    color: var(--accent);
}

/* Footer */
.footer {
    background: var(--bg-darkest);
    color: var(--white);
    padding: 40px 0;
}
.footer p {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}
.footer a { color: var(--white); }
.footer a:hover { color: var(--accent); }
.footer-box { text-align: right; }

/* Inner pages - header overlays like home, add top padding so content clears nav */
body.inner-page .main-content {
    padding-top: 80px;
}

/* Responsive */
@media (max-width: 1024px) {
    .caption-box h3 { font-size: 42px; }
    .content-title { font-size: 36px; }
    .about-image img { max-width: 280px; }
}

@media (max-width: 768px) {
    .menu-box { display: none; }
    .box-mobile { display: block; }

    .col-md-4, .col-md-5, .col-md-6, .col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-box { margin-top: 30px; }
    .footer-box { text-align: center; }
    .footer .row { flex-direction: column; gap: 15px; text-align: center; }

    .caption-box .top-slide::before,
    .caption-box .top-slide::after { display: none; }
    .caption-box h3 { font-size: 32px; letter-spacing: 2px; }
    .top-title::before, .top-title::after { display: none; }
    .content-title { font-size: 28px; }

    .about-image { margin-left: 60px; }
    .about-image img { max-width: 220px; }

    .about-feature-block {
        padding: 25px 20px;
        margin-bottom: 25px;
    }

    .about-features {
        margin-top: 40px;
        padding-top: 35px;
    }

    .home-testimonials {
        flex-direction: column;
        align-items: stretch;
    }

    .home-testimonials .testimonial-card {
        max-width: 100%;
    }
}
