/* 
 * components.css - All Website Components
 * Header, Footer, Navigation, Cards, Info Boxes, etc.
 */

@import url('variables.css');
@import url('base.css');

/* ==================== HEADER & NAVIGATION ==================== */

/* Announcement Bar */
.announcement-bar { background: linear-gradient(135deg, var(--info), var(--info-light)); color: var(--white); padding: 10px 0; font-size: 14px; font-weight: 500; transition: transform 0.3s ease; }
.announcement-content { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.announcement-close { background: none; border: none; color: var(--white); cursor: pointer; padding: 4px; border-radius: 4px; transition: background 0.3s ease; }
.announcement-close:hover { background: rgba(255, 255, 255, 0.2); }

/* Top Bar */
.top-bar { background-color: var(--neutral-100); padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border-color); }
.top-bar-inner { display: flex; justify-content: flex-end; }
.top-bar-contact { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.top-bar-phone, .top-bar-address, .top-bar-hours { color: var(--body-color); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color 0.3s ease; font-weight: 500; }
.top-bar-phone:hover, .top-bar-address:hover { color: var(--link-color); }
.top-bar-phone i, .top-bar-address i, .top-bar-hours i { color: var(--primary); width: 16px; }

/* Main Header */
.main-header { background-color: var(--white); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: var(--z-index-sticky); transition: box-shadow 0.3s ease; }
.main-header.sticky { box-shadow: var(--box-shadow-md); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.header-logo { display: flex; align-items: center; }
.logo-link { display: block; line-height: 0; }
.logo-img { max-height: 60px; max-width: 200px; width: auto; height: auto; transition: max-height 0.3s ease; }
.main-header.sticky .logo-img { max-height: 50px; }

/* Navigation */
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 8px; align-items: center; }
.nav-item { position: relative; }
.nav-link { color: var(--heading-color); text-decoration: none; font-weight: 600; font-size: 14px; text-transform: uppercase; padding: 12px 16px; border-radius: 8px; transition: all 0.3s ease; display: block; }
.nav-link:hover { color: var(--link-color); background: var(--neutral-100); }

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 12px; border-radius: 8px; transition: background 0.3s ease; }
.mobile-menu-toggle:hover { background: var(--neutral-100); }
.toggle-icon { display: block; width: 24px; height: 2px; background: var(--heading-color); position: relative; transition: all 0.3s ease; border-radius: 2px; }
.toggle-icon:before, .toggle-icon:after { content: ''; width: 24px; height: 2px; background: var(--heading-color); position: absolute; left: 0; transition: all 0.3s ease; border-radius: 2px; }
.toggle-icon:before { top: -8px; }
.toggle-icon:after { top: 8px; }
.mobile-menu-toggle.active .toggle-icon { background: transparent; }
.mobile-menu-toggle.active .toggle-icon:before { transform: rotate(45deg); top: 0; }
.mobile-menu-toggle.active .toggle-icon:after { transform: rotate(-45deg); top: 0; }

/* Mobile Contact Info */
.mobile-contact-info { display: none; border-top: 1px solid var(--border-color); background: var(--neutral-50); padding: 20px; width: 100%; }
.mobile-contact-item { padding: 12px 0; border-bottom: 1px solid var(--neutral-200); }
.mobile-contact-item:last-child { border-bottom: none; }
.mobile-contact-item:first-child { padding-top: 0; }
.mobile-contact-link { display: flex; align-items: center; gap: 12px; color: var(--heading-color); text-decoration: none; }
.mobile-contact-link:hover { color: var(--link-color); }
.mobile-contact-item i { color: var(--primary); font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.mobile-contact-details { display: flex; flex-direction: column; }
.mobile-contact-label { font-size: 12px; color: var(--neutral-500); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.mobile-contact-value { font-size: 14px; color: var(--heading-color); font-weight: 500; margin-top: 2px; }

/* Mobile Responsive */
@media (max-width: 991px) {
  .top-bar { display: none; }
  .mobile-menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background: var(--body-bg); box-shadow: var(--box-shadow-md); z-index: 100; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; display: block; }
  .main-nav.active { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; padding: 20px; display: flex; width: 100%; }
  .nav-item { margin: 0; width: 100%; }
  .nav-link { font-size: 16px; padding: 16px 20px; display: block; border-radius: 8px; margin-bottom: 0; width: 100%; }
  .mobile-contact-info { display: block; width: 100%; margin: 0; }
  .header-inner { position: relative; }
}

@media (max-width: 768px) {
  .logo-img { max-height: 50px; max-width: 160px; }
  .main-header.sticky .logo-img { max-height: 40px; }
  .announcement-bar { padding: 8px 0; font-size: 13px; }
}

@media (max-width: 480px) {
  .nav-link { font-size: 15px; padding: 14px 16px; }
  .mobile-contact-value { font-size: 14px; }
}


/* ==================== HERO BANNER ==================== */
.hero { position: relative; height: 500px; overflow: hidden; background-color: var(--neutral-800); }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; background-size: cover; background-position: center; will-change: opacity, transform; backface-visibility: hidden; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); }
.hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 1rem; }
.hero-title { font-size: 3rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.5rem; color: var(--white); margin-bottom: 2rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
@media (max-width: 768px) { .hero { height: 400px; } .hero-title { font-size: 2rem; } .hero-subtitle { font-size: 1.125rem; } }
@media (max-width: 640px) { .hero { height: 350px; } .hero-title { font-size: 1.75rem; } .hero-subtitle { font-size: 1rem; } .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; } }
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

@keyframes kb { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-slide.zoomeffect.active { animation: kb 5s linear forwards; }



/* ==================== SEARCH SECTION ==================== */

.search-section { background-color: var(--neutral-800); padding: 1.5rem 0; }
.search-container { max-width: 800px; margin: 0 auto; }
.search-form { display: flex; gap: 0.5rem; }
.search-input { flex: 1; padding: 0.75rem 1rem; border: none; border-radius: var(--border-radius); font-size: 1rem; }
.search-input:focus { outline: none; box-shadow: 0 0 0 2px var(--primary); }
.search-btn { background-color: var(--primary); color: var(--white); border: none; border-radius: var(--border-radius); padding: 0.75rem 1.5rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.search-btn:hover { background-color: var(--primary-dark); }

@media (max-width: 576px) {
  .search-form { flex-direction: column; }
  .search-btn { width: 100%; }
}


/* ==================== SECTION HEADERS ==================== */

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--heading-color); margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; color: var(--neutral-600); max-width: 800px; margin: 0 auto 1rem; line-height: 1.6; }
.accent-line { width: 80px; height: 3px; background-color: var(--accent); margin: 0 auto; }

@media (max-width: 768px) {
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 2rem; }
  .section-header p { font-size: 1rem; }
}


/* ==================== FEATURED VEHICLES ==================== */

.featured-section { padding: 4rem 0; background-color: var(--neutral-50); }
.featured-section .section-title { text-align: center; margin-bottom: 3rem; position: relative; }
.featured-section .section-title h2 { font-size: 2.5rem; font-weight: 800; color: var(--neutral-800); margin-bottom: 1rem; }
.featured-section .section-title p { font-size: 1.125rem; color: var(--neutral-600); max-width: 600px; margin: 0 auto; }
.featured-section .section-title::after { content: ""; display: block; width: 80px; height: 4px; background-color: var(--primary); margin: 1rem auto 0; }
.view-all { text-align: center; margin-top: 3rem; }


/* ==================== WELCOME SECTION ==================== */

.welcome-section { padding: 5rem 0; position: relative; background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('/images/home-background.jpg'); background-repeat: no-repeat; background-size: cover; }
.welcome-container { display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; }
.welcome-content { flex: 1; min-width: 300px; }
.welcome-badge { display: inline-block; background: var(--primary); color: white; font-size: 0.875rem; font-weight: 700; padding: 0.5rem 1rem; border-radius: 30px; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.5px; }
.welcome-title { font-size: 2.5rem; font-weight: 800; color: var(--heading-color); margin-bottom: 1.5rem; line-height: 1.2; }
.welcome-text { font-size: 1.125rem; color: var(--neutral-600); margin-bottom: 2rem; line-height: 1.7; }
.welcome-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.welcome-features li { margin-bottom: 0.75rem; display: flex; align-items: center; }
.welcome-features i { color: var(--primary); margin-right: 0.75rem; font-size: 1.125rem; }
.welcome-btn { display: inline-block; background-color: var(--primary); color: white; font-weight: 700; padding: 0.875rem 1.75rem; border-radius: 4px; text-decoration: none; transition: all 0.3s ease; font-size: 1.125rem; }
.welcome-btn:hover { background-color: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--box-shadow); color: white; }

@media (max-width: 992px) {
  .welcome-container { gap: 2rem; }
  .welcome-title { font-size: 2rem; }
}

@media (max-width: 768px) {
  .welcome-section { padding: 3rem 0; }
  .welcome-title { font-size: 1.75rem; }
  .welcome-text { font-size: 1rem; }
}


/* ==================== PROMO CARD ==================== */

.promo-card { display: flex; flex-direction: column; width: 100%; max-width: 380px; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--box-shadow-lg); position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.promo-card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow-xl); }
.promo-image { position: relative; height: 200px; overflow: hidden; }
.promo-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.promo-card:hover .promo-image img { transform: scale(1.05); }
.promo-tag { position: absolute; top: 16px; right: 16px; background: var(--accent); color: white; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 6px 12px; border-radius: 30px; letter-spacing: 0.5px; }
.promo-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.promo-title { font-size: 1.5rem; font-weight: 700; color: var(--heading-color); margin-bottom: 0.5rem; }
.promo-subtitle { font-size: 1rem; color: var(--neutral-600); margin-bottom: 1.5rem; }
.promo-features { margin-bottom: 1.5rem; }
.promo-feature { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.promo-feature:last-child { margin-bottom: 0; }
.feature-icon { width: 40px; height: 40px; background: var(--neutral-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.feature-text { font-size: 0.9rem; color: var(--neutral-700); line-height: 1.5; padding-top: 8px; }
.promo-button { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: white; font-weight: 700; padding: 1rem 1.5rem; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; margin-top: auto; }
.promo-button:hover { background: var(--accent-dark); transform: translateX(5px); color: white; }
.promo-button i { transition: transform 0.3s ease; }
.promo-button:hover i { transform: translateX(5px); }


/* ==================== FINANCE SECTION ==================== */

.finance-section { padding: 5rem 0; background: linear-gradient(135deg, var(--neutral-50) 0%, var(--white) 100%); }
.finance-container { display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; }
.finance-image { flex: 1; min-width: 300px; position: relative; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--box-shadow-lg); }
.finance-image img { width: 100%; height: auto; display: block; }
.finance-badge { position: absolute; top: 20px; left: 20px; background: var(--accent); color: white; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 8px 16px; border-radius: 30px; letter-spacing: 0.5px; box-shadow: var(--box-shadow); }
.finance-content { flex: 1; min-width: 300px; }
.finance-title { font-size: 2.5rem; font-weight: 800; color: var(--heading-color); margin-bottom: 2rem; line-height: 1.2; }
.finance-title span { color: var(--primary); }
.finance-features { margin-bottom: 2rem; }
.finance-feature { display: flex; gap: 1rem; margin-bottom: 2rem; }
.finance-feature:last-child { margin-bottom: 0; }
.finance-feature-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; flex-shrink: 0; box-shadow: var(--box-shadow); }
.finance-feature-content { flex: 1; }
.finance-feature-title { font-size: 1.25rem; font-weight: 700; color: var(--heading-color); margin-bottom: 0.5rem; }
.finance-feature-desc { font-size: 1rem; color: var(--neutral-600); line-height: 1.6; }

@media (max-width: 992px) {
  .finance-container { gap: 2rem; }
  .finance-title { font-size: 2rem; }
}

@media (max-width: 768px) {
  .finance-section { padding: 3rem 0; }
  .finance-title { font-size: 1.75rem; }
  .finance-feature-icon { width: 45px; height: 45px; font-size: 1.25rem; }
}


/* ==================== SIDEBAR COMPONENTS ==================== */

.info-card { background-color: var(--neutral-50); border-radius: 8px; border: 1px solid var(--neutral-200); overflow: hidden; margin-bottom: 30px; box-shadow: var(--box-shadow-sm); }
.info-card-header { background-color: var(--neutral-100); color: var(--neutral-700); padding: 20px; display: flex; align-items: center; gap: 15px; }
.info-card-header i { font-size: 18px; color: var(--primary); }
.info-card-header h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin: 0; }
.info-card-body { font-size: 0.9rem; padding: 20px; }
.info-card-list { list-style: none; padding: 0; margin: 0; }
.info-card-list li { color: var(--neutral-600); font-size: 0.9rem; display: flex; align-items: flex-start; margin-bottom: 12px; line-height: 1.5; }
.info-card-list li:last-child { margin-bottom: 0; }
.info-card-list li i { color: var(--primary); font-size: 14px; margin-right: 12px; margin-top: 3px; flex-shrink: 0; }

.contact-card { background-color: var(--neutral-50); border: 1px solid var(--neutral-200); border-radius: 8px; padding: 25px; margin-bottom: 30px; box-shadow: var(--box-shadow-sm); }
.contact-card h3 { margin: 0 0 18px 0; font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.contact-card p { font-size: 1rem; color: var(--neutral-600); margin-bottom: 20px; }
.contact-link { display: flex; align-items: center; color: var(--primary); font-size: 1rem; font-weight: 700; text-decoration: none; transition: all 0.3s ease; margin-bottom: 15px; }
.contact-link:last-child { margin-bottom: 0; }
.contact-link i { margin-right: 10px; width: 20px; text-align: center; }
.contact-link:hover { color: var(--primary-dark); transform: translateY(-2px); }

.hours-card { background-color: var(--neutral-50); border-radius: 8px; border: 1px solid var(--neutral-200); overflow: hidden; margin-bottom: 30px; box-shadow: var(--box-shadow-sm); }
.hours-card-header { background-color: var(--neutral-100); padding: 20px; text-align: center; }
.hours-card-header h3 { margin: 0; font-size: 1.1rem; color: var(--neutral-700); font-weight: 700; letter-spacing: 0; }
.hours-card-body { padding: 20px; font-size: 0.9rem; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--neutral-200); }
.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 600; color: var(--neutral-700); }
.hours-time { color: var(--neutral-600); text-align: right; }


/* ==================== FEATURE CARDS ==================== */

.about-features { display: flex; flex-direction: column; gap: 2rem; }
.about-feature { display: flex; gap: 1.5rem; }
.about-feature-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.75rem; flex-shrink: 0; box-shadow: var(--box-shadow); }
.about-feature-content { flex: 1; }
.about-feature-content h4 { font-size: 1.25rem; font-weight: 700; color: var(--heading-color); margin-bottom: 0.5rem; }
.about-feature-content p { font-size: 1rem; color: var(--neutral-600); line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
  .about-feature { flex-direction: column; align-items: center; text-align: center; }
}


/* ==================== FAQ SECTION ==================== */

.faq-section { margin-top: 3rem; }
.faq-title { font-size: 2rem; font-weight: 700; color: var(--heading-color); margin-bottom: 2rem; text-align: center; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--border-radius); margin-bottom: 1rem; overflow: hidden; transition: box-shadow 0.3s ease; }
.faq-item:hover { box-shadow: var(--box-shadow-sm); }
.faq-question { padding: 1.25rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; user-select: none; }
.faq-question h4 { font-size: 1.1rem; font-weight: 600; color: var(--heading-color); margin: 0; flex: 1; }
.faq-icon { color: var(--primary); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 1.25rem 1.25rem; }
.faq-answer p { color: var(--neutral-600); line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
  .faq-question { padding: 1rem; }
  .faq-question h4 { font-size: 1rem; }
}


/* ==================== FOOTER ==================== */

.footer { background-color: var(--neutral-800); color: var(--neutral-300); padding: 4rem 0 2rem; }
.footer-container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-container p, .footer-container span { font-size: 0.9rem; margin: 0 0 0.5rem; }
.footer-column { flex: 1; min-width: 250px; }
.footer-title { color: var(--white); font-size: 1.25rem; margin-bottom: 1.5rem; position: relative; }
.footer-title::after { content: ""; display: block; width: 40px; height: 3px; background-color: var(--primary); margin-top: 0.75rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-link { display: block; color: var(--neutral-200); padding: 0.25rem 0; transition: var(--transition-normal); }
.footer-link:hover { color: var(--white); transform: translateX(5px); }
.footer-contact-item { display: flex; align-items: flex-start; margin-bottom: 1rem; }
.footer-contact-icon { color: var(--primary); margin-right: 1rem; font-size: 1rem; flex-shrink: 0; }
.footer-contact-text { flex: 1; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.footer-social-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.1); color: var(--white); border-radius: 50%; transition: var(--transition-normal); }
.footer-social-link:hover { background-color: var(--primary); transform: translateY(-5px); }
.footer-bottom { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-copyright { font-size: 0.875rem; color: var(--neutral-200); }
.footer-copyright a { color: var(--warning-light); }
.footer-copyright a:hover { color: var(--warning); }

@media (max-width: 768px) {
  .footer { padding: 3rem 0 2rem; }
  .footer-column { min-width: 100%; text-align: center; }
  .footer-title::after { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
}


/* ==================== STAFF CARDS ==================== */

.staff-section { margin-top: 3rem; }
.staff-wrapper { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 30px; }
.staff-card { flex: 1 1 300px; min-width: 280px; max-width: 400px; }
.staff-inner { padding: 1.5rem; margin: 0; border: 1px solid var(--neutral-200); border-radius: var(--border-radius-lg); display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--white); transition: all 0.3s ease; }
.staff-inner:hover { border-color: var(--neutral-400); box-shadow: var(--box-shadow); transform: translateY(-5px); }
.staff-image { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 4px solid var(--neutral-100); }
.staff-name { font-size: 1.375rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; color: var(--heading-color); }
.staff-title { font-size: 1rem; margin-bottom: 1rem; color: var(--primary); font-weight: 600; }
.staff-contact { font-size: 0.875rem; color: var(--neutral-600); }
.staff-info { font-size: 0.9rem; color: var(--neutral-600); line-height: 1.5; }

@media (max-width: 640px) {
  .staff-card { flex: 1 1 100%; max-width: 100%; }
}
