/* theme.css: soft-blue "card" style. Load AFTER style.css */
:root {
    --navy: #1a2f55;
    --ink: #1a2f55;
    --muted: #5f7194;
    --blue: #3b82f6;
    --blue-d: #2563eb;
    --line: #dbe7ff;
    --sh: 0 12px 32px rgba(36, 80, 150, .10);
    --gold: #3b82f6;
    --gold-d: #2563eb
}

html {
    scroll-padding-top: 92px
}

body {
    background: linear-gradient(180deg, #f6faff, #e9f1ff);
    color: var(--muted);
    overflow-x: clip;
    -webkit-text-size-adjust: 100%
}

.container {
    width: min(1200px, calc(100% - 40px))
}

:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px
}

/* sentence-case headings without editing the HTML */
.hero h1,
.hero .eyebrow,
.cars-section .section-heading h2,
.why-heading h2,
.reviews-section h2 {
    text-transform: lowercase
}

.hero h1::first-letter,
.hero .eyebrow::first-letter,
.cars-section .section-heading h2::first-letter,
.why-heading h2::first-letter,
.reviews-section h2::first-letter {
    text-transform: uppercase
}

/* header */
.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e4edfb;
    box-shadow: 0 4px 20px rgba(36, 80, 150, .05)
}

.nav {
    height: 76px;
    gap: 16px
}

.brand-mark {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(59, 130, 246, .3)
}

.brand-text {
    color: var(--navy);
    font-weight: 800;
    font-size: 16px
}

.brand-text small {
    color: #8da2c9
}

#mainNav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0
}

#mainNav a:hover {
    color: var(--blue-d)
}

.nav-cta {
    background: var(--blue) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, .3)
}

.menu-toggle i {
    background: var(--navy)
}

/* buttons */
.btn {
    border-radius: 999px;
    min-height: 48px;
    padding: 14px 26px;
    font-size: 14px;
    letter-spacing: 0
}

.btn-gold,
.btn-light,
.hero-actions .btn {
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, .3)
}

.btn-gold:hover,
.btn-light:hover,
.hero-actions .btn:hover {
    background: var(--blue-d)
}

.btn-outline {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--line)
}

/* hero */
.hero {
    background: linear-gradient(180deg, #f6faff, #e8f1ff);
    color: var(--navy);
    padding: clamp(36px, 6vw, 72px) 0 28px
}

.hero-grid {
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(24px, 5vw, 56px);
    min-height: 0
}

.hero-copy {
    text-align: left
}

.hero .eyebrow {
    display: inline-block;
    background: #e4eeff;
    color: var(--blue-d);
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: .02em;
    margin-bottom: 18px
}

.hero h1 {
    color: var(--navy);
    font-weight: 800;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -.04em;
    max-width: none;
    margin: 0 0 18px
}

.hero-copy>p {
    color: var(--muted);
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.75;
    max-width: 540px;
    margin: 0 0 26px
}

.hero-actions {
    justify-content: flex-start
}

.hero-points {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 22px
}

.hero-points li,
.hero-features span {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: normal
}

.hero-car-frame {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--sh);
    padding: 16px
}

.hero-car-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 18px;
    filter: none
}

.hero-features {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 28px
}

/* sections */
.cars-section,
.why-section,
.how-section,
.faq-section {
    background: transparent;
    padding: clamp(40px, 6vw, 64px) 0
}

.cars-section .section-heading h2,
.why-heading h2,
.faq-grid h2,
.reviews-section h2,
.cta-section h2 {
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.15;
    font-size: clamp(28px, 4.6vw, 44px);
    margin: 0 0 8px
}

.cars-section .section-heading p,
.why-heading p,
.reviews-section p,
.faq-grid>div>p {
    color: var(--muted);
    font-size: 16px
}

.section-tag {
    display: inline-block;
    background: #e4eeff;
    color: var(--blue-d);
    border-radius: 999px;
    padding: 7px 13px;
    letter-spacing: .04em
}

.listing-count {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    color: var(--navy);
    font-weight: 600
}

.filters {
    gap: 12px
}

.filters input,
.filters select {
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(36, 80, 150, .04)
}

.filters input:focus,
.filters select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px #bfdbfe
}

/* cars */
.car-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
    gap: 20px
}

.car-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--sh)
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(36, 80, 150, .16)
}

.car-image {
    height: auto;
    aspect-ratio: 4/3
}

.car-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px
}

.car-body h3 {
    color: var(--navy);
    font-size: 17px;
    font-weight: 800;
    text-transform: none;
    white-space: normal;
    line-height: 1.3;
    min-height: 0
}

.car-subtitle {
    color: var(--muted);
    text-transform: none;
    white-space: normal;
    font-size: 13px;
    margin: 2px 0 12px
}

.car-weekly {
    color: var(--navy);
    font-size: 14px
}

.car-weekly strong {
    color: var(--blue-d);
    font-size: 21px
}

.car-spec-list {
    font-size: 13px;
    margin: 8px 0 18px
}

.car-spec-list div {
    border-top: 1px solid #edf3fd;
    padding: 7px 0
}

.car-body .card-btn {
    margin-top: auto;
    min-height: 46px;
    border-radius: 999px;
    background: var(--blue);
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(59, 130, 246, .25)
}

.car-body .card-btn:hover {
    background: var(--blue-d)
}

.status {
    border-radius: 999px;
    padding: 6px 12px
}

.disclaimer {
    color: #8a9bbd
}

/* white panels */
.why-heading {
    text-align: left;
    margin-bottom: 26px
}

.why-columns,
.reviews-section .container,
.cta-grid {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--sh);
    padding: clamp(22px, 4.5vw, 48px)
}

.why-columns {
    max-width: none;
    gap: clamp(24px, 5vw, 64px)
}

.why-columns h3 {
    color: var(--navy);
    font-size: 18px
}

.why-columns p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7
}

.steps {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 18px
}

.steps article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--sh);
    padding: 26px
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    margin-bottom: 16px
}

.steps h3 {
    color: var(--navy);
    font-size: 19px
}

.steps p {
    color: var(--muted);
    font-size: 15px
}

.reviews-section {
    background: transparent;
    text-align: left;
    padding: 12px 0 clamp(40px, 6vw, 64px)
}

/* faq */
.faq-grid {
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: start
}

.faq-list details,
.faq-list details:first-child {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 22px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(36, 80, 150, .06)
}

.faq-list summary {
    padding: 18px 0;
    color: var(--navy);
    font-size: 16px;
    align-items: center;
    gap: 16px
}

.faq-list summary:after {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8f0ff;
    color: var(--blue-d);
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1
}

.faq-list details p {
    padding: 0 0 18px;
    margin: 0;
    font-size: 15px
}

/* contact */
.cta-section {
    background: transparent;
    color: var(--navy);
    padding: 12px 0 clamp(36px, 6vw, 56px)
}

.cta-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(24px, 5vw, 56px)
}

.cta-section p {
    color: var(--muted)
}

.cta-section .section-tag {
    color: var(--blue-d)
}

.contact-card {
    background: transparent;
    border: 0;
    padding: 0
}

.contact-card h3 {
    color: var(--navy)
}

.contact-card>div,
.contact-card>div:last-child {
    background: #f7faff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 10px
}

.contact-card small {
    color: var(--blue-d)
}

.contact-card a,
.contact-card span {
    color: var(--navy);
    font-weight: 600;
    overflow-wrap: anywhere
}

/* footer */
footer {
    background: transparent;
    color: var(--muted);
    padding: 8px 0 28px
}

.footer-top {
    border-top: 1px solid var(--line);
    padding-top: 40px
}

.footer-top .brand,
.footer-top strong {
    color: var(--navy)
}

.footer-top p,
.footer-top a:not(.brand) {
    color: var(--muted)
}

.footer-top a:hover {
    color: var(--blue-d)
}

.footer-bottom {
    border-top: 1px solid var(--line);
    color: #8a9bbd
}

/* floating whatsapp + dialog */
.whatsapp-float {
    background: #22c55e;
    box-shadow: 0 10px 26px rgba(34, 197, 94, .4);
    bottom: max(18px, env(safe-area-inset-bottom))
}

dialog {
    border-radius: 26px
}

/* tablets and phones */
@media(max-width:1000px) {

    .faq-grid,
    .cta-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:760px) {
    .nav nav {
        border-radius: 0 0 22px 22px;
        padding-bottom: 18px
    }

    .nav nav a {
        color: var(--navy);
        font-size: 15px;
        padding: 15px 0
    }

    .hero-grid {
        gap: 24px
    }

    .hero-actions .btn {
        width: 100%
    }

    .car-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr))
    }
}

@media(max-width:550px) {
    .container {
        width: calc(100% - 32px)
    }

    .nav {
        gap: 10px
    }

    .brand-text {
        font-size: 13px
    }

    .brand-text small {
        display: none
    }

    .nav-cta {
        display: inline-flex !important;
        margin-left: auto;
        padding: 10px 16px !important;
        font-size: 13px !important
    }

    .menu-toggle {
        margin-left: 0
    }

    .car-image {
        height: auto
    }

    .car-body {
        padding: 16px
    }

    .car-body h3 {
        font-size: 16px
    }

    .car-spec-list {
        font-size: 13px
    }

    .car-weekly {
        font-size: 14px
    }

    .why-columns,
    .reviews-section .container,
    .cta-grid {
        border-radius: 22px
    }

    .cta-actions .btn {
        width: 100%
    }

    .hero-points li,
    .hero-features span {
        font-size: 12px
    }
}

/* custom logo */
.brand-mark:has(img) {
    background: none;
    box-shadow: none;
    border-radius: 0;
    width: auto;
    height: 52px
}

.brand-mark img {
    height: 52px !important;
    width: auto !important;
    max-width: 200px !important;
    max-height: none !important;
    object-fit: contain
}

@media(max-width:550px) {

    .brand-mark:has(img),
    .brand-mark img {
        height: 42px !important
    }
}

/* hide company name in header (logo or icon only) */
.site-header .brand-text {
    display: none
}

/* Keep all vehicle images consistent */
.car-card .car-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.car-card .car-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Vehicle card photo counter */

.car-card .car-image {
    position: relative;
}

.photo-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Vehicle image gallery */

.vehicle-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #101820;
    touch-action: pan-y;
}

.dialog-images .vehicle-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow.prev {
    left: 12px;
}

.gallery-arrow.next {
    right: 12px;
}

.gallery-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Mobile listing improvements */

@media (max-width: 768px) {

    #carDialog {
        width: calc(100% - 24px);
        max-width: 100%;
        max-height: 85dvh;
        overflow-y: auto;
        border-radius: 16px;
        padding: 0;
    }

    #carDialog .dialog-content {
        display: flex;
        flex-direction: column;
    }

    #carDialog .dialog-images {
        width: 100%;
        padding: 0;
        min-height: 0;
    }

    #carDialog .vehicle-gallery {
        aspect-ratio: 4 / 3;
    }

    #carDialog .dialog-info {
        padding: 20px;
    }

    #carDialog .dialog-info h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}