/* ============================================================
   ELiM AUTOMOTIVE – Main Styles (Background visible on all sections)
   ============================================================ */

:root {
    --elim-navy: #082B75;
    --elim-royal: #1246A0;
    --elim-blue: #1E63C6;
    --elim-red: #E31B23;
    --elim-white: #FFFFFF;
    --elim-light-blue: #E8EDF5;
}

/* ===== BACKGROUND IMAGE ON BODY ===== */
html, body {
    min-height: 100vh;
}
body {
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Sora', sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* ===== SEMI-TRANSPARENT OVERLAY ON ALL SECTIONS ===== */
section,
.hero-section,
.products-section,
.branches-section,
.value-section,
.news-section,
.dealers-section,
.testimonials-section,
.contact-section,
.product-detail-section,
.news-detail-section {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(1px);
}

/* Cards remain solid white for readability */
.value-card,
.product-card,
.branch-card,
.dealer-card,
.news-card,
.testimonial-card,
.contact-info,
.contact-form,
.recent-news-sidebar {
    background: #ffffff !important;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: var(--elim-royal); }
a:hover { color: var(--elim-red); }

/* ===== LOADER ===== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility 0s linear .5s;
    z-index: 99999;
    background: #fff;
}
#spinner.show {
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease, visibility 0s linear 0s;
}
.loader-container { text-align: center; }
.loader-logo {
    width: 80px;
    animation: pulse-logo 1.5s ease-in-out infinite;
}
.loader-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--elim-royal);
    margin-top: 10px;
}
.loader-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}
.loader-dots span {
    width: 12px;
    height: 12px;
    background: var(--elim-royal);
    border-radius: 50%;
    animation: bounce-dot 1.4s infinite both;
}
.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes pulse-logo {
    0%, 100% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
}
@keyframes bounce-dot {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ===== NAVBAR ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 12px 0;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.site-header.scrolled {
    background: var(--elim-royal);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
}
.site-header .logo {
    height: 45px;
    width: auto;
}
@media (max-width: 768px) {
    .site-header .logo {
        height: 55px;
    }
}

/* ===== RED LINE HOVER EFFECT ===== */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--elim-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}
.navbar-nav .nav-link:hover {
    color: var(--elim-royal) !important;
}
.site-header.scrolled .navbar-nav .nav-link:hover {
    color: #fff !important;
}
.site-header.scrolled .navbar-nav .nav-link::after {
    background: #fff;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 8px 18px !important;
    transition: 0.3s;
    font-size: 0.95rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--elim-royal) !important;
}
.site-header.scrolled .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
}
.site-header.scrolled .navbar-nav .nav-link:hover,
.site-header.scrolled .navbar-nav .nav-link.active {
    color: #fff !important;
}
.btn-contact {
    background: var(--elim-royal);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-contact:hover {
    background: var(--elim-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227,27,35,0.3);
}
.navbar-toggler { border: none; padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.site-header.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== HERO ===== */
.hero-section {
    padding: 140px 0 80px;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(1px);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge .badge {
    background: rgba(18,70,160,0.1) !important;
    color: var(--elim-royal);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.15;
}
.hero-title .text-accent { color: var(--elim-red); }
.hero-subtitle {
    font-size: 1.15rem;
    color: #555;
    max-width: 500px;
    margin: 16px 0 30px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-actions .btn {
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
}
.hero-actions .btn-primary {
    background: var(--elim-royal);
    border: none;
}
.hero-actions .btn-primary:hover {
    background: var(--elim-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18,70,160,0.3);
}
.hero-actions .btn-outline-primary {
    border: 2px solid var(--elim-royal);
    color: var(--elim-royal);
}
.hero-actions .btn-outline-primary:hover {
    background: var(--elim-royal);
    color: #fff;
    transform: translateY(-2px);
}

.hero-carousel { position: relative; z-index: 2; }
.hero-banner-carousel .banner-slide {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.hero-banner-carousel .banner-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}
.hero-banner-carousel .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.hero-banner-carousel .banner-overlay h3 {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.hero-banner-carousel .banner-overlay p { margin-bottom: 8px; opacity: 0.9; }
.hero-banner-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}
.hero-banner-carousel .owl-nav button {
    background: rgba(255,255,255,0.9) !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333 !important;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.hero-banner-carousel .owl-nav button:hover {
    background: var(--elim-royal) !important;
    color: #fff !important;
}
.hero-banner-carousel .owl-dots {
    position: absolute;
    bottom: 10px;
    right: 20px;
}
.hero-banner-carousel .owl-dots .owl-dot span {
    background: rgba(255,255,255,0.5);
    width: 10px;
    height: 10px;
    margin: 0 4px;
}
.hero-banner-carousel .owl-dots .owl-dot.active span { background: #fff; }

.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
}
.hero-shapes .shape-1 {
    width: 300px; height: 300px;
    background: var(--elim-royal);
    top: -100px; right: -100px;
}
.hero-shapes .shape-2 {
    width: 200px; height: 200px;
    background: var(--elim-red);
    bottom: 50px; left: -50px;
}
.hero-shapes .shape-3 {
    width: 150px; height: 150px;
    background: var(--elim-royal);
    bottom: 100px; right: 100px;
}

/* ===== SECTION COMMON ===== */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--elim-royal);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
}
.section-header h2 .text-accent { color: var(--elim-red); }
.section-desc { color: #666; max-width: 600px; margin: 0 auto; }

/* ===== VALUE CARDS ===== */
.value-card {
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: 0.3s;
    height: 100%;
    border: 1px solid #f0f0f0;
    background: #ffffff !important;
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(18,70,160,0.08);
    border-color: var(--elim-royal);
}
.value-icon { font-size: 2.8rem; margin-bottom: 12px; }
.value-card h5 { font-weight: 600; font-size: 1.05rem; }
.value-card p { color: #666; font-size: 0.9rem; }

/* ===== PRODUCT CARDS ===== */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.3s ease;
}
.product-card-link:hover {
    transform: translateY(-4px);
}
.product-card-link:hover .product-card {
    box-shadow: 0 12px 40px rgba(18,70,160,0.12);
    border-color: var(--elim-royal);
}
.product-card-link:hover .btn-link-text {
    color: var(--elim-royal);
}
.product-card-link .btn-link-text {
    color: var(--elim-royal);
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.product-card {
    background: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: 0.3s;
    height: 100%;
    border: 1px solid #f0f0f0;
}
.product-card .product-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f9fa;
}
.product-card .product-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 10px;
}
.product-card .product-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--elim-red);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.product-card .product-info { padding: 16px; }
.product-card .product-category {
    font-size: 0.75rem;
    color: var(--elim-royal);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.product-card .product-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 4px 0 8px;
    min-height: 40px;
}

/* ===== NEWS CARDS ===== */
.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.3s ease;
}
.news-card-link:hover {
    transform: translateY(-4px);
}
.news-card-link:hover .news-card {
    box-shadow: 0 12px 40px rgba(18,70,160,0.12);
    border-color: var(--elim-royal);
}
.news-card-link:hover .btn-link-text {
    color: var(--elim-royal);
}
.news-card-link .btn-link-text {
    color: var(--elim-royal);
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.news-card {
    background: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    height: 100%;
}
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-image-placeholder {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}
.news-info { padding: 16px; }
.news-date { font-size: 0.75rem; color: #999; }
.news-info h5 { font-weight: 600; margin: 4px 0 8px; }
.news-info p { color: #555; font-size: 0.9rem; }

/* ===== BRANCH CARDS ===== */
.branch-card {
    background: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    height: 100%;
}
.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(18,70,160,0.08);
}
.branch-map { height: 150px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.branch-map iframe { width: 100%; height: 100%; border: 0; }
.branch-info { padding: 16px; }
.branch-info h5 { font-weight: 600; }
.branch-info p { font-size: 0.85rem; color: #555; margin-bottom: 4px; }
.branch-info p i { color: var(--elim-royal); width: 20px; }

/* ===== DEALER CARDS ===== */
.dealer-card {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    height: 100%;
}
.dealer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(18,70,160,0.08);
}
.dealer-card h5 { font-weight: 600; color: var(--elim-royal); }
.dealer-card p { font-size: 0.85rem; color: #555; margin-bottom: 4px; }
.dealer-card p i { color: var(--elim-royal); width: 20px; }

/* ===== TESTIMONIALS ===== */
.testimonials-carousel .testimonial-card {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.testimonial-rating { color: #ffc107; margin-bottom: 8px; }
.testimonial-text { font-style: italic; color: #555; }
.testimonials-carousel .owl-dots .owl-dot span { background: #ccc; }
.testimonials-carousel .owl-dots .owl-dot.active span { background: var(--elim-royal); }

/* ===== CONTACT ===== */
.contact-info {
    background: #ffffff !important;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    height: 100%;
}
.contact-info p i { width: 28px; font-size: 1.1rem; }
.contact-form {
    background: #ffffff !important;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    height: 100%;
}
.contact-form .form-control {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
}
.contact-form .form-control:focus {
    border-color: var(--elim-royal);
    box-shadow: 0 0 0 3px rgba(18,70,160,0.1);
}

/* ===== NEWS DETAIL SIDEBAR ===== */
.recent-news-sidebar {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}
.sidebar-title {
    font-weight: 700;
    font-size: 1.1rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--elim-royal);
    margin-bottom: 16px;
}
.recent-news-list { list-style: none; padding: 0; margin: 0; }
.recent-news-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.recent-news-list li:last-child { border-bottom: none; }
.recent-news-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: 0.2s;
}
.recent-news-link:hover .recent-news-title { color: var(--elim-royal); }
.recent-news-title { font-weight: 500; color: #1a1a1a; font-size: 0.9rem; }
.recent-news-date { font-size: 0.75rem; color: #999; }

/* ===== SOCIAL ICONS ===== */
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--elim-royal) !important;
    color: #ffffff !important;
    font-size: 1.15rem;
    transition: 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(18,70,160,0.2);
    border: none;
}
.social-icon i {
    color: #ffffff !important;
}
.social-icon:hover {
    background: var(--elim-red) !important;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(227,27,35,0.3);
}
.social-icon:hover i {
    color: #ffffff !important;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
}
.whatsapp-float-label {
    background: #fff;
    color: #333;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    min-height: 45px;
    display: flex;
    align-items: center;
}
#typewriter { display: inline-block; min-width: 10px; font-weight: 600; }
.whatsapp-float {
    background: #25D366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
    color: #fff;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}
.site-footer .footer-logo { height: 50px; width: auto; margin-bottom: 12px; }
.site-footer .footer-about { font-size: 0.9rem; line-height: 1.7; }
.site-footer h5 { color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: 16px; }
.site-footer .footer-links { list-style: none; padding: 0; }
.site-footer .footer-links li { margin-bottom: 6px; }
.site-footer .footer-links a {
    color: rgba(255,255,255,0.6);
    transition: 0.3s;
    font-size: 0.9rem;
}
.site-footer .footer-links a:hover { color: #fff; padding-left: 6px; }
.site-footer hr { border-color: rgba(255,255,255,0.08); margin: 30px 0 16px; }
.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--elim-royal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(18,70,160,0.3);
    transition: 0.3s;
    z-index: 99;
}
.back-to-top:hover {
    background: var(--elim-red);
    transform: translateY(-3px);
    color: #fff;
}

/* ===== PADDING FOR DETAIL PAGES ===== */
.product-detail-section,
.news-detail-section {
    padding-top: 120px;
}
@media (max-width: 768px) {
    .product-detail-section,
    .news-detail-section {
        padding-top: 90px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-section { padding: 120px 0 60px; min-height: auto; }
    .hero-title { font-size: 2.4rem; }
    .hero-banner-carousel .banner-slide img { height: 300px; }
    .section-header h2 { font-size: 2rem; }
    .recent-news-sidebar { position: static; margin-top: 30px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .hero-carousel { margin-top: 40px; }
    .hero-banner-carousel .banner-slide img { height: 220px; }
    .hero-actions .btn { padding: 10px 24px; font-size: 0.9rem; }
    .navbar-nav .nav-link { padding: 8px 0 !important; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .site-header.scrolled .navbar-nav .nav-link { border-bottom-color: rgba(255,255,255,0.1); }
    .site-footer .footer-bottom { flex-direction: column; text-align: center; }
    .site-header .logo { height: 55px; }
    .social-icon { width: 38px; height: 38px; font-size: 1rem; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 1.5rem; }
    .hero-banner-carousel .banner-slide img { height: 180px; }
    .value-card { padding: 20px; }
    .whatsapp-float-wrapper { bottom: 15px; right: 15px; gap: 8px; }
    .whatsapp-float-label { font-size: 0.75rem; padding: 6px 12px; min-height: 35px; }
    .whatsapp-float { width: 48px; height: 48px; font-size: 1.6rem; }
    .social-icons { gap: 8px; }
    .social-icon { width: 34px; height: 34px; font-size: 0.9rem; }
}