:root {
    --primary-blue: #0046be;
    --cta-red: #e31837;
    --light-grey: #f8f9fa;
    --border-grey: #dee2e6;
    --text-dark: #212529;
    --text-secondary: #6c757d;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.fw-extra-bold {
    font-weight: 800;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* Make icons white inside bg-primary containers */

.bg-primary i::before {
    color: white;
}

/* Make icons blue inside bg-white containers */
.bg-white i::before {
    color: var(--primary-blue);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #003694;
    border-color: #003694;
}

.btn-cta {
    background-color: var(--cta-red);
    border-color: var(--cta-red);
    color: white;
}

.btn-cta:hover {
    background-color: #c4122d;
    border-color: #c4122d;
    color: white;
}

.navbar-light .navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

.hero-section {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
/* Fallback if no inline bg (e.g. before DB load) */
.hero-section:not([style*="background-image"]) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/img/hero.png');
}
/* Mobile-friendly: shorter hero, no fixed attachment (better scroll), readable text */
@media (max-width: 768px) {
    .hero-section {
        min-height: 420px;
        background-attachment: scroll;
    }
    .hero-headline {
        font-size: 1.75rem !important;
        line-height: 1.25;
    }
    .hero-subheadline {
        font-size: 1rem;
    }
}

.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }
.logo-white { filter: brightness(0) invert(1); }

.grayscale-logo {
    transition: all 0.3s ease;
    max-height: 100px;
    width: auto;
}
.grayscale-logo:hover {
    opacity: 1;
}

.brand-logos .col-6 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-subtle {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.bg-dark-blue {
    background-color: #002d7a !important;
}

.btn-white {
    background-color: white;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background-color: var(--primary-blue);
    color: white !important;
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.section-padding {
    padding: 100px 0;
}

.alternate-bg {
    background-color: #fcfcfc;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.value-prop-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.size-card {
    background-color: white;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-grey);
}

.deal-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--cta-red);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.financing-section {
    background: linear-gradient(rgba(0, 70, 190, 0.9), rgba(0, 70, 190, 0.9));
    color: white;
    padding: 80px 0;
}

.map-container {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sticky-mobile-bar {
    z-index: 1030;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Space for sticky bar */
    }
}

.rounded-circle {
    border-radius: 50% !important;
    width: 50px;
    height: 50px;
  }

/* Coupon Styles */
.coupon-card {
    position: relative;
    border: 3px dashed var(--primary-blue);
    border-radius: 15px;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 3rem 0;
    overflow: visible; /* Changed to visible for the valid badge to overflow nicely if needed */
    transition: all 0.3s ease;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.coupon-card::before,
.coupon-card::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #f8f9fa; /* Matches bg-light of section */
    border-radius: 50%;
    border: 3px dashed var(--primary-blue);
    z-index: 2;
}

.coupon-card::before {
    top: -18px;
}

.coupon-card::after {
    bottom: -18px;
}

.coupon-valid-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 64, 190, 0.3);
}

.coupon-content {
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    min-height: 250px;
}

.coupon-info {
    flex: 1;
}

.coupon-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 800;
}

.coupon-info p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0;
}

.coupon-actions {
    flex-shrink: 0;
    min-width: 280px;
    text-align: center;
}

.coupon-expiration {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.coupon-expiration .time-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-expiration .days-left {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.coupon-expiration .expires-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.coupon-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coupon-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.coupon-buttons .btn-primary {
    background: var(--cta-red);
    border-color: var(--cta-red);
}

.coupon-buttons .btn-primary:hover {
    background: #c5162f;
    border-color: #c5162f;
    transform: translateY(-1px);
}

.coupon-buttons .btn-outline-primary {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.coupon-buttons .btn-outline-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .coupon-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .coupon-actions {
        min-width: auto;
        width: 100%;
    }

    .coupon-info h3 {
        font-size: 1.5rem;
    }

    .coupon-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .coupon-buttons .btn {
        flex: 1;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .coupon-valid-badge {
        left: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}