/* ==========================================================================
   WHIP — Brand Styles
   Extracted from Astra/Elementor theme. Clean Bootstrap 5 override.
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --whip-primary: #253993;
    --whip-cta: #3993e1;
    --whip-text: #808285;
    --whip-heading: #1a1a1a;
    --whip-white: #ffffff;
    --whip-container: 1240px;
}

/* --- Base Typography --- */
html {
    font-size: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--whip-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 1.1;
    color: var(--whip-heading);
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 2em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1em; }

a {
    color: var(--whip-primary);
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--whip-heading);
}

p {
    margin-bottom: 1em;
}

::selection {
    background-color: var(--whip-primary);
    color: var(--whip-white);
}

/* --- Container Override --- */
.container {
    max-width: var(--whip-container);
}

/* --- Header / Navbar --- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header .navbar {
    background: transparent;
    padding: 1em 0;
    min-height: 107px;
}

.site-header .logo-img {
    max-width: 250px;
    height: auto;
}

.site-header .navbar-nav .nav-link {
    color: var(--whip-heading);
    font-family: inherit;
    font-weight: 400;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link.active {
    color: var(--whip-primary);
}

/* Hamburger icon */
.site-header .navbar-toggler {
    border: none;
    background: transparent;
    padding: 0.25rem;
}

.site-header .navbar-toggler:focus {
    box-shadow: none;
}

.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23253993'%3e%3cpath d='M3 13h18c0.552 0 1-0.448 1-1s-0.448-1-1-1h-18c-0.552 0-1 0.448-1 1s0.448 1 1 1zM3 7h18c0.552 0 1-0.448 1-1s-0.448-1-1-1h-18c-0.552 0-1 0.448-1 1s0.448 1 1 1zM3 19h18c0.552 0 1-0.448 1-1s-0.448-1-1-1h-18c-0.552 0-1 0.448-1 1s0.448 1 1 1z'/%3e%3c/svg%3e");
}

/* Mobile nav background */
@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        background: var(--whip-white);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* --- CTA Button --- */
.btn-cta {
    color: var(--whip-white);
    background-color: var(--whip-cta);
    border: 3px solid var(--whip-white);
    border-radius: 20px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 1.5rem;
    line-height: 1;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-cta:hover, .btn-cta:focus {
    color: var(--whip-cta);
    background-color: var(--whip-white);
    border-color: var(--whip-cta);
}

/* --- Outline Button (used in page content) --- */
.btn-whip {
    color: var(--whip-primary);
    background-color: transparent;
    border: 2px solid var(--whip-primary);
    border-radius: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem;
    line-height: 1;
    transition: all 0.2s;
}

.btn-whip:hover, .btn-whip:focus {
    color: var(--whip-white);
    background-color: var(--whip-primary);
    border-color: var(--whip-primary);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--whip-cta);
    color: var(--whip-white);
    min-height: 60px;
    padding: 1rem 0;
}

.site-footer p {
    margin: 0;
    color: var(--whip-white);
}

.site-footer a {
    color: var(--whip-white);
}

.site-footer a:hover {
    color: var(--whip-white);
    text-decoration: underline;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 140px; /* account for transparent header */
    padding-bottom: 3rem;
    text-align: center;
}

.hero-section h1 {
    color: var(--whip-text);
}

.hero-section .hero-subtitle {
    color: var(--whip-text);
    margin-bottom: 1.5em;
}

.hero-section .hero-car-img {
    max-width: 100%;
    height: auto;
}

/* --- Icon Boxes (Who We Are, How It Works, Login) --- */
.icon-boxes {
    padding: 2rem 0;
}

.icon-box {
    text-align: center;
    padding: 1.5rem;
}

.icon-box i {
    font-size: 2rem;
    color: var(--whip-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.icon-box h5 {
    text-transform: capitalize;
}

.icon-box h5 a {
    color: var(--whip-heading);
}

.icon-box h5 a:hover {
    color: var(--whip-primary);
}

/* --- Content Sections --- */
.content-section {
    padding: 3rem 0;
}

.content-section h2 {
    color: var(--whip-text);
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--whip-cta);
    border: none;
    margin: 0.5rem 0 1.5rem;
}

/* --- Vehicle Cards (Current Specials) --- */
.vehicle-card {
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.vehicle-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.vehicle-card h2 {
    font-size: 1.5em;
}

.vehicle-card h2 a {
    color: var(--whip-heading);
}

.vehicle-card h2 a:hover {
    color: var(--whip-primary);
}

.vehicle-card .price {
    color: var(--whip-text);
    font-size: 1rem;
    margin-top: auto;
}

/* --- Wizard Cards --- */
.wizard-card {
    display: block;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s;
    color: var(--whip-heading);
    text-decoration: none;
    height: 100%;
}

.wizard-card:hover {
    border-color: var(--whip-cta);
    box-shadow: 0 4px 12px rgba(57, 147, 225, 0.15);
    color: var(--whip-heading);
    transform: translateY(-2px);
}

.wizard-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.wizard-card-logo {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.wizard-card-img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.wizard-card h5 {
    margin-bottom: 0.25rem;
}

/* --- Trim Cards --- */
.trim-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.trim-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.trim-card-header {
    background-color: var(--whip-cta);
    color: var(--whip-white);
    padding: 1rem 1.25rem;
    text-align: center;
}

.trim-card-header h5 {
    color: var(--whip-white);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.trim-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.trim-card-body {
    padding: 1.25rem;
    flex: 1;
}

.trim-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trim-specs li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--whip-text);
    font-size: 0.9rem;
}

.trim-specs li:last-child {
    border-bottom: none;
}

.trim-specs li i {
    width: 24px;
    color: var(--whip-cta);
    margin-right: 0.5rem;
}

.trim-saving {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.trim-saving-amount {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1b5e20;
}

.trim-card-footer {
    padding: 1rem 1.25rem;
}

/* --- Background Hero: text left, image right --- */
.hero-bg-left {
    background: linear-gradient(110deg, #F9FAFF 56%, rgba(255, 255, 255, 0.64) 56%),
                url('/images/site/about-bg.jpg') center/cover no-repeat;
    text-align: left;
}

.hero-bg-left h1,
.hero-bg-left p {
    max-width: 50%;
}

.hero-bg-left .section-divider {
    margin-left: 0;
}

/* --- Background Hero: text right, image left --- */
.hero-bg-right {
    background: linear-gradient(290deg, #F9FAFF 56%, rgba(255, 255, 255, 0.64) 56%),
                url('/images/site/about-bg.jpg') center/cover no-repeat;
    text-align: right;
}

.hero-bg-right h2,
.hero-bg-right h6,
.hero-bg-right p {
    max-width: 50%;
    margin-left: auto;
    margin-right: 0;
}

.hero-bg-right .section-divider {
    margin-left: auto;
    margin-right: 0;
}

/* --- Background Hero: dark overlay, text right --- */
.hero-dark-right {
    background: linear-gradient(290deg, var(--whip-primary) 60%, rgba(255, 255, 255, 0.64) 60%),
                url('/images/site/about-bg.jpg') center/cover no-repeat;
    text-align: left;
}

.hero-dark-right h2,
.hero-dark-right hr,
.hero-dark-right p {
    color: var(--whip-white);
    max-width: 50%;
    margin-left: auto;
    margin-right: 0;
}

.hero-dark-right .section-divider {
    background-color: var(--whip-white);
    margin-left: auto;
    margin-right: 0;
}

/* --- Blue Bar Section --- */
.blue-bar {
    background-color: var(--whip-cta);
    color: var(--whip-white);
    padding: 2rem 0;
}

.blue-bar .icon-box i {
    color: var(--whip-white);
}

.blue-bar .icon-box h5,
.blue-bar .icon-box h5 a,
.blue-bar h2,
.blue-bar p {
    color: var(--whip-white);
}

.blue-bar .icon-box h5 a:hover {
    color: var(--whip-heading);
}

/* --- Contact Form with car background --- */
.contact-form-bg {
    background: url('/images/site/about-bg.jpg') bottom center/cover no-repeat;
    padding: 2rem 0;
}

.contact-form-card {
    background: linear-gradient(180deg, #fff 0%, #fff 100%);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    padding: 2rem;
}

/* --- Background Hero responsive --- */
@media (max-width: 768px) {
    .hero-bg-left h1,
    .hero-bg-left p {
        max-width: 100%;
    }

    .hero-bg-left {
        background: linear-gradient(180deg, #F9FAFF 60%, rgba(255, 255, 255, 0.64) 100%),
                    url('/images/site/about-bg.jpg') center/cover no-repeat;
        text-align: center;
    }

    .hero-bg-left .section-divider {
        margin-left: auto;
    }

    .hero-bg-right {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.64) 0%, #F9FAFF 60%),
                    url('/images/site/about-bg.jpg') center/cover no-repeat;
        text-align: center;
    }

    .hero-bg-right h2,
    .hero-bg-right h6,
    .hero-bg-right p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-bg-right .section-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-dark-right {
        background: linear-gradient(180deg, rgba(37, 57, 147, 0.9) 0%, var(--whip-primary) 100%),
                    url('/images/site/about-bg.jpg') center/cover no-repeat;
        text-align: center;
    }

    .hero-dark-right h2,
    .hero-dark-right hr,
    .hero-dark-right p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-dark-right .section-divider {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Form Inputs --- */
input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: var(--whip-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 57, 147, 0.15);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    html {
        font-size: 91.2%;
    }

    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.6em; }
    h4 { font-size: 1.4em; }

    .hero-section {
        padding-top: 120px;
    }
}

@media (max-width: 544px) {
    .site-footer .text-md-start,
    .site-footer .text-md-end {
        text-align: center !important;
    }
}

/* --- PWA Install Banner --- */
.install-banner {
    background: var(--whip-primary);
    color: #fff;
    font-size: 0.9rem;
}
