/* ================================================================
   DDK Automobile — automobile.css
   Scoped to .automobile-site
   Contains: vars, body, navbar, form components, spacing overrides
================================================================ */

/* ─── 1. Custom Properties ─── */
.automobile-site {
    --am-dark:        #0d1b2a;
    --am-dark2:       #080f18;
    --am-navy:        #1a2e4a;
    --am-steel:       #1e3a5f;
    --am-gold:        #c9a435;
    --am-gold-dk:     #b8912a;
    --am-gold-lt:     rgba(201, 164, 53, 0.12);
    --am-silver:      #94a3b8;
    --am-cream:       #f8f9fa;
    --am-ivory:       #f1f4f8;
    --am-white:       #ffffff;
    --am-text:        #1e293b;
    --am-muted:       #64748b;
    --am-light:       #94a3b8;
    --am-border:      #e2e8f0;
    --am-radius:      12px;
    --am-radius-lg:   20px;
    --am-shadow:      0 2px 12px rgba(13,27,42,0.08);
    --am-shadow-md:   0 8px 32px rgba(13,27,42,0.14);
    --am-transition:  all 0.22s ease;
}

/* ─── 2. Body Base ─── */
.automobile-site {
    font-family: "Poppins", "Lato", sans-serif;
    color: var(--am-text);
    background: var(--am-white);
    -webkit-font-smoothing: antialiased;
}

/* ─── 3. Navbar "Get in Touch" button ─── */
.automobile-site .ddk-git-btn {
    background: var(--am-gold);
    color: #fff;
    border-color: var(--am-gold);
    font-size: 0.82rem;
    padding: 0.5rem 1.1rem;
}
.automobile-site .ddk-git-btn:hover {
    background: var(--am-gold-dk);
    border-color: var(--am-gold-dk);
    color: #fff;
}

/* ─── 4. Section spacing overrides ─── */
.automobile-site .section   { padding: 5rem 0; }
.automobile-site .section-alt { padding: 5rem 0; background: var(--am-ivory); }

@media (max-width: 768px) {
    .automobile-site .section,
    .automobile-site .section-alt { padding: 3.5rem 0; }
}
@media (max-width: 575px) {
    .automobile-site .section,
    .automobile-site .section-alt { padding: 2.5rem 0; }
}

/* ─── 5. hero-automobile spacing on inner pages ─── */
.automobile-site .sector-hero {
    padding-top: 6rem;
}

/* ─── 6. am-btn (used on form submit buttons) ─── */
.am-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1.8rem;
    border-radius: var(--am-radius);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--am-transition);
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.01em;
}
.am-btn--gold {
    background: var(--am-gold);
    color: #fff;
    border-color: var(--am-gold);
}
.am-btn--gold:hover {
    background: var(--am-gold-dk);
    border-color: var(--am-gold-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,164,53,0.35);
}
.am-btn--full {
    width: 100%;
    justify-content: center;
}

/* ─── 7. Home — Enquiry Form Section ─── */
.am-enquiry {
    background: var(--am-ivory);
    padding: 5rem 0;
}
.am-enq-center {
    max-width: 820px;
    margin: 0 auto;
}
.am-enq-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: 0 4px 40px rgba(13,27,42,0.09);
    border-top: 3px solid var(--am-gold);
}
.am-enq-form-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--am-dark);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.am-enq-form-title i { color: var(--am-gold); }
.am-enq-form-sub {
    font-size: 0.78rem;
    color: var(--am-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--am-border);
}
.am-enq-divider {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--am-silver);
    margin: 1.1rem 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.am-enq-divider::before,
.am-enq-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--am-border);
}
.am-enq-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    font-size: 0.87rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
.am-enq-type-select {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: var(--am-dark) !important;
    border-color: var(--am-gold) !important;
    background: rgba(201,164,53,0.04) !important;
}

/* ─── 8. Shared Form Controls ─── */
.am-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.am-form-row--full { grid-template-columns: 1fr; }
.am-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.am-form-group--full { grid-column: 1 / -1; }
.am-form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--am-dark);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}
.am-form-label span { color: var(--am-gold); }
.am-form-control {
    display: block;
    width: 100%;
    padding: 0.7rem 0.95rem;
    font-size: 0.88rem;
    color: var(--am-text);
    background: var(--am-cream);
    border: 1.5px solid var(--am-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    font-family: "Poppins", "Lato", sans-serif;
}
.am-form-control:focus {
    border-color: var(--am-dark);
    background: var(--am-white);
}
.am-form-control.is-invalid { border-color: #e74c3c; }

/* ─── 9. Contact Page Form Layout ─── */
.am-contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}
.am-form-card {
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--am-shadow);
    border-top: 3px solid var(--am-gold);
}
.am-form-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--am-dark);
    margin-bottom: 0.35rem;
}
.am-form-sub {
    font-size: 0.83rem;
    color: var(--am-muted);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}
.am-success-notice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(45,122,79,0.08);
    border: 1px solid #2d7a4f;
    color: #2d7a4f;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

/* ─── 10. Contact Info Sidebar ─── */
.am-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.am-info-card {
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    padding: 1.75rem;
    box-shadow: var(--am-shadow);
}
.am-info-hd {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--am-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--am-border);
}
.am-info-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.am-info-row:last-child { margin-bottom: 0; }
.am-info-icon {
    color: var(--am-gold);
    width: 16px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.am-info-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--am-light);
    margin-bottom: 0.15rem;
}
.am-info-value {
    font-size: 0.87rem;
    color: var(--am-dark);
}
.am-info-value a {
    color: var(--am-dark);
    text-decoration: none;
}
.am-info-value a:hover { color: var(--am-gold); }
.am-notice-card {
    background: var(--am-gold-lt);
    border: 1px solid rgba(201,164,53,0.3);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    font-size: 0.82rem;
    color: var(--am-text);
    line-height: 1.65;
}
.am-notice-card i { color: var(--am-gold); }

/* ─── 11. Vehicle Fields Block ─── */
.am-vehicle-fields {
    background: rgba(201,164,53,0.05);
    border: 1.5px solid rgba(201,164,53,0.2);
    border-radius: 10px;
    padding: 1.25rem 1.25rem 0.5rem;
    margin-bottom: 1.25rem;
}

/* ─── 12. Responsive ─── */
@media (max-width: 900px) {
    .am-contact-grid {
        grid-template-columns: 1fr;
    }
    .am-enquiry { padding: 3.5rem 0; }
}
@media (max-width: 768px) {
    .am-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .automobile-site .ddk-git-btn { display: none !important; }
    .ddk-m-link { justify-content: flex-start; gap: 10px; }
    .am-form-row { grid-template-columns: 1fr; }
    .am-enq-form-card { padding: 1.5rem 1.25rem; }
    .am-form-card { padding: 1.5rem; }
    .am-contact-grid { grid-template-columns: 1fr; }
    .am-enquiry { padding: 2.5rem 0; }
    .am-info-stack { order: -1; }
}

/* ─── 13. Vehicle Catalogue Grid ─── */
.av-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}
.av-card {
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    overflow: hidden;
    box-shadow: var(--am-shadow);
    transition: var(--am-transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.av-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--am-shadow-md);
    color: inherit;
}
.av-card__media {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--am-ivory);
    overflow: hidden;
}
.av-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.av-card__ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--am-light);
    font-size: 2.5rem;
    background: var(--am-ivory);
}
.av-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.28rem 0.75rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.av-card__body {
    padding: 1.1rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.av-card__title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--am-dark);
    margin: 0;
}
.av-card__meta {
    font-size: 0.78rem;
    color: var(--am-muted);
}
.av-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.3rem 0;
}
.av-chip {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--am-navy);
    background: var(--am-ivory);
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
}
.av-card__price {
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--am-border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.av-card__price strong {
    font-size: 1.15rem;
    color: var(--am-gold-dk);
    font-weight: 800;
}
.av-card__price span {
    font-size: 0.68rem;
    color: var(--am-light);
}
.av-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--am-muted);
}
.av-empty i { font-size: 2.5rem; color: var(--am-border); display: block; margin-bottom: 1rem; }

/* ─── 14. Vehicle Detail Page ─── */
.av-detail {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.av-gallery {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--am-radius);
    overflow: hidden;
    box-shadow: var(--am-shadow);
    background: var(--am-ivory);
}
.av-gallery-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 4/3; color: var(--am-light); gap: 0.5rem; }
.av-gallery-ph i { font-size: 3rem; }
.av-gallery-tabs { display: flex; gap: 0.4rem; margin: 0.75rem 0; flex-wrap: wrap; }
.av-gallery-tab {
    font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.85rem; border-radius: 20px;
    border: 1.5px solid var(--am-border); color: var(--am-muted); cursor: pointer; background: #fff;
}
.av-gallery-tab.active { background: var(--am-navy); border-color: var(--am-navy); color: #fff; }

.av-360 { position: relative; aspect-ratio: 4/3; background: var(--am-dark); border-radius: var(--am-radius); overflow: hidden; cursor: grab; user-select: none; }
.av-360:active { cursor: grabbing; }
.av-360 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.av-360 img.active { display: block; }
.av-360-hint {
    position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.6); color: #fff; font-size: 0.7rem; padding: 0.3rem 0.85rem; border-radius: 20px;
    display: flex; align-items: center; gap: 0.4rem; pointer-events: none;
}

.av-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.av-title { font-size: 1.6rem; font-weight: 800; color: var(--am-dark); margin: 0; }
.av-subtitle { font-size: 0.9rem; color: var(--am-muted); margin-top: 0.2rem; }
.av-price-box { text-align: right; }
.av-price { font-size: 1.9rem; font-weight: 800; color: var(--am-gold-dk); }
.av-price-note { font-size: 0.72rem; color: var(--am-muted); }

.av-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    overflow: hidden;
    margin: 1.5rem 0;
}
.av-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 1.1rem;
    border-bottom: 1px solid var(--am-border);
    font-size: 0.83rem;
}
.av-spec-item:nth-child(odd) { border-right: 1px solid var(--am-border); }
.av-spec-item span:first-child { color: var(--am-muted); }
.av-spec-item span:last-child { color: var(--am-dark); font-weight: 700; text-align: right; }

.av-action-card {
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-top: 3px solid var(--am-gold);
    border-radius: var(--am-radius);
    padding: 1.5rem;
    box-shadow: var(--am-shadow);
    position: sticky;
    top: 90px;
}
.av-action-card .am-btn { width: 100%; justify-content: center; margin-bottom: 0.6rem; }
.av-contact-row { display: flex; gap: 0.5rem; margin: 0.85rem 0; }
.av-contact-row a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 0.6rem; border-radius: 8px; border: 1.5px solid var(--am-border);
    color: var(--am-navy); font-size: 0.95rem; text-decoration: none;
}
.av-contact-row a:hover { border-color: var(--am-gold); color: var(--am-gold-dk); }

.av-section-title { font-size: 1.1rem; font-weight: 800; color: var(--am-dark); margin: 2rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--am-border); }
.av-prose { font-size: 0.9rem; color: var(--am-text); line-height: 1.75; white-space: pre-line; }

.av-rdw-link { font-size: 0.78rem; color: var(--am-muted); margin-top: 0.5rem; }
.av-rdw-link a { color: var(--am-navy); font-weight: 600; }

@media (max-width: 992px) {
    .av-detail { grid-template-columns: 1fr; }
    .av-action-card { position: static; }
}
@media (max-width: 575px) {
    .av-spec-grid { grid-template-columns: 1fr; }
    .av-spec-item:nth-child(odd) { border-right: none; }
    .av-price { font-size: 1.5rem; }
}

/* ─── 15. Catalogue Layout with Filter Sidebar ─── */
.av-catalogue-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}
.av-filters {
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    padding: 1.25rem;
    position: sticky;
    top: 90px;
}
.av-filters h4 { font-size: 0.95rem; font-weight: 800; color: var(--am-dark); margin-bottom: 1rem; }
.av-filters .am-form-group { margin-bottom: 0.85rem; }
.av-filters .am-form-label { font-size: 0.73rem; }
.av-filter-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.av-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem;
}
.av-toolbar-count { font-size: 0.85rem; color: var(--am-muted); }
.av-compare-check {
    position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
    background: rgba(255,255,255,0.92); border-radius: 6px; padding: 0.3rem 0.55rem;
    font-size: 0.68rem; font-weight: 700; color: var(--am-navy); display: flex; align-items: center; gap: 0.35rem;
}
.av-compare-bar {
    position: fixed; bottom: 0; left: 0; right: 0; background: var(--am-dark);
    color: #fff; padding: 0.85rem 1.25rem; display: flex; align-items: center;
    justify-content: center; gap: 1rem; z-index: 999; box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.av-compare-bar a { color: #fff; }

/* ─── 16. Compare Table ─── */
.av-compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--am-radius); overflow: hidden; box-shadow: var(--am-shadow); }
.av-compare-table th, .av-compare-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--am-border); font-size: 0.83rem; text-align: left; }
.av-compare-table th:first-child, .av-compare-table td:first-child { color: var(--am-muted); font-weight: 600; white-space: nowrap; background: var(--am-ivory); }
.av-compare-table thead th { background: var(--am-navy); color: #fff; font-weight: 700; }
.av-compare-table img { width: 100%; max-width: 160px; border-radius: 8px; object-fit: cover; aspect-ratio: 4/3; }

@media (max-width: 900px) {
    .av-catalogue-layout { grid-template-columns: 1fr; }
    .av-filters { position: static; }
}
