/* =========================================================
   HP MOTOR — Main Stylesheet
   Premium automotive dealership visual style
========================================================= */

:root {
    --hp-black: #0b0d10;
    --hp-dark: #14171c;
    --hp-dark-2: #1c2028;
    --hp-red: #d61f26;
    --hp-red-dark: #a8161c;
    --hp-gold: #c8a24a;
    --hp-white: #ffffff;
    --hp-gray: #6b7280;
    --hp-light-gray: #f4f5f7;
    --hp-border: #e6e7eb;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 30px rgba(11, 13, 16, 0.08);
    --shadow-strong: 0 20px 50px rgba(11, 13, 16, 0.18);
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2430;
    background: var(--hp-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--hp-black);
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-sm { padding: 40px 0; }
}

.section-tag {
    display: inline-block;
    color: var(--hp-red);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 18px;
}

.section-desc {
    color: var(--hp-gray);
    max-width: 680px;
    margin-bottom: 40px;
}

.bg-light { background: var(--hp-light-gray); }
.bg-dark { background: var(--hp-black); color: #fff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--hp-red); color: #fff; }
.btn-primary:hover { background: var(--hp-red-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-dark { background: var(--hp-black); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--hp-black); }
.btn-outline-dark { border-color: var(--hp-black); color: var(--hp-black); }
.btn-outline-dark:hover { background: var(--hp-black); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe57; color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}
.logo {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--hp-black);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 64px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.logo span { color: var(--hp-red); }

@media (max-width: 480px) {
    .logo img { height: 46px; }
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 34px;
}
.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--hp-black);
    position: relative;
    padding: 6px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--hp-red);
    transition: var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--hp-red); }

.header-right { display: flex; align-items: center; gap: 20px; }
.header-call {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.header-call .icon-circle {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--hp-red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.header-call small { display: block; font-weight: 400; color: var(--hp-gray); font-size: 0.72rem; }
.header-call a { color: var(--hp-black); }

.btn-invoice {
    padding: 11px 22px;
    border: 2px solid var(--hp-red);
    border-radius: 8px;
    color: var(--hp-red);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.6px;
    background: #fff;
    white-space: nowrap;
    transition: var(--transition);
}
.btn-invoice:hover { background: var(--hp-red); color: #fff; }

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--hp-black);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: 78%;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 1100;
    padding: 25px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; padding: 0; margin: 40px 0 0; }
.mobile-nav li { border-bottom: 1px solid var(--hp-border); }
.mobile-nav a { display: block; padding: 14px 0; font-weight: 600; }
.mobile-nav-close { background: none; border: none; font-size: 1.6rem; float: right; cursor: pointer; }
.overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}
.overlay.show { display: block; }

@media (max-width: 991px) {
    .main-nav, .header-call { display: none; }
    .hamburger { display: block; }
    .mobile-nav, .mobile-nav ul { display: block; }
}
@media (max-width: 480px) {
    .btn-invoice { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0b0d10 0%, #1c2028 100%);
    color: #fff;
    overflow: hidden;
}
.hero-slide {
    position: relative;
    min-height: 88vh;
    width: 100%;
    flex: 1 0 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Overlay removed: hero slides now show the marketing banner images
   at full vibrancy with no text overlay, so no darkening is needed. */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
    padding-right: 20px;
}
.hero-content .section-tag { color: var(--hp-gold); }
.hero-content h1 {
    color: #fff;
    font-size: 3.4rem;
    line-height: 1.1;
    margin-bottom: 18px;
}
.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 34px;
    max-width: 540px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero slider navigation: side arrows + bottom thumbnail strip */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 6;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.hero-nav-btn:hover { background: var(--hp-red); border-color: var(--hp-red); transform: translateY(-50%) scale(1.06); }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }

.hero-thumbs {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 6;
    padding: 8px;
    background: rgba(11,13,16,0.35);
    border-radius: 14px;
    backdrop-filter: blur(6px);
}
.hero-thumb {
    width: 70px; height: 46px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255,255,255,0.35);
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    transition: var(--transition);
}
.hero-thumb:hover { opacity: 0.9; }
.hero-thumb.active { opacity: 1; border-color: var(--hp-red); transform: scale(1.08); }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-nav-btn { width: 38px; height: 38px; font-size: 0.95rem; }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
    .hero-thumbs { display: none; }
}

/* ---------------- About Preview ---------------- */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-preview img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; height: 420px; object-fit: cover; background: var(--hp-light-gray); }
@media (max-width: 900px) { .about-preview { grid-template-columns: 1fr; gap: 30px; } .about-preview img { height: 260px; } }

/* ---------------- Service Cards ---------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 991px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--hp-border);
    display: flex;
    flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); }
.service-card .card-img {
    height: 200px;
    background: var(--hp-light-gray) center/cover no-repeat;
    position: relative;
}
.service-card .card-icon {
    position: absolute;
    bottom: -26px; left: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--hp-red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-soft);
}
.service-card .card-body { padding: 40px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--hp-gray); margin-bottom: 20px; flex: 1; }

/* ---------------- Why Choose Us ---------------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-box {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    text-align: center;
    transition: var(--transition);
}
.why-box:hover { border-color: var(--hp-red); box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.why-box .icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--hp-light-gray);
    color: var(--hp-red);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}
.why-box h4 { font-size: 1rem; margin: 0; }

/* ---------------- Gallery ---------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    height: 260px;
    background: var(--hp-light-gray);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay-info {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent 60%);
    display: flex; align-items: flex-end; padding: 16px;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .overlay-info { opacity: 1; }
.gallery-item .overlay-info h5 { color: #fff; margin: 0; font-size: 0.95rem; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.gallery-filters button {
    padding: 9px 20px;
    border-radius: 50px;
    border: 1px solid var(--hp-border);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--hp-red); color: #fff; border-color: var(--hp-red); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 8px; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 14px; }
.lightbox-close, .lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    width: 46px; height: 46px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------------- CTA ---------------- */
.cta-section {
    background: linear-gradient(120deg, var(--hp-black), #24272f);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
}
.cta-section h2 { color: #fff; font-size: 2.2rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-section { padding: 40px 24px; } }

/* ---------------- About Page ---------------- */
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 20px; }
@media (max-width: 768px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card {
    background: var(--hp-light-gray);
    border-radius: var(--radius-md);
    padding: 32px;
    border-left: 4px solid var(--hp-red);
}
.mv-card h3 { display: flex; align-items: center; gap: 10px; }

/* ---------------- Page Banner ---------------- */
.page-banner {
    background: linear-gradient(120deg, #0b0d10, #1c2028);
    color: #fff;
    padding: 70px 0 50px;
    text-align: center;
}
.page-banner h1 { color: #fff; font-size: 2.4rem; margin-bottom: 8px; }
.breadcrumb { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.breadcrumb a { color: var(--hp-gold); }

/* ---------------- Contact Page ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
    background: var(--hp-black);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--hp-red); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.contact-info-item h5 { color: #fff; margin-bottom: 4px; font-size: 0.95rem; }
.contact-info-item p, .contact-info-item a { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin: 0; }
.social-btns { display: flex; gap: 12px; margin-top: 20px; }
.social-btns a {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.social-btns a:hover { background: var(--hp-red); }

.contact-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 40px;
    border: 1px solid var(--hp-border);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--hp-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--hp-red); box-shadow: 0 0 0 4px rgba(214,31,38,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.invalid-feedback { color: var(--hp-red); font-size: 0.82rem; margin-top: 6px; display: none; }
.form-control.is-invalid { border-color: var(--hp-red); }
.form-control.is-invalid ~ .invalid-feedback { display: block; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #e6f7ec; color: #1a7d3f; border: 1px solid #b7ecc9; }
.alert-error { background: #fde9e9; color: var(--hp-red-dark); border: 1px solid #f6c2c2; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px; box-shadow: var(--shadow-soft); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
.map-fallback { background: var(--hp-light-gray); padding: 50px; text-align: center; border-radius: var(--radius-lg); margin-top: 40px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--hp-black); color: rgba(255,255,255,0.75); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { color: #fff; margin-bottom: 20px; font-size: 1.05rem; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}
.footer-logo img { height: 56px; width: auto; }
.footer-logo span { color: var(--hp-red); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer a:hover { color: #fff; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.footer-contact-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--hp-red);
    color: #fff;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    margin-top: 2px;
}
.footer-contact-item a,
.footer-contact-item span {
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
    padding-top: 6px;
}
.footer-contact-item a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.footer-social a:hover { background: var(--hp-red); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------------- Floating Buttons ---------------- */
.floating-whatsapp {
    position: fixed;
    bottom: 26px; right: 26px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
    z-index: 900;
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.floating-call {
    position: fixed;
    bottom: 26px; left: 26px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--hp-red);
    color: #fff;
    display: none;
    align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(214,31,38,0.5);
    z-index: 900;
}
@media (max-width: 768px) { .floating-call { display: flex; } }

.scroll-top {
    position: fixed;
    bottom: 96px; right: 26px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--hp-black);
    color: #fff;
    display: none; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    transition: var(--transition);
}
.scroll-top.show { display: flex; opacity: 1; }

/* ---------------- Container ---------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Misc ---------------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-in { opacity: 1; transform: translateY(0); }
