/*
 * Himawari Car Lease - Design refresh
 * A small, explicit design layer that consolidates spacing, color, radius and elevation.
 */

:root {
  --hm-yellow: #ffd600;
  --hm-yellow-soft: #fff9d9;
  --hm-red: #d71920;
  --hm-red-dark: #ad1016;
  --hm-navy: #162033;
  --hm-text: #344054;
  --hm-muted: #667085;
  --hm-line: #e4e7ec;
  --hm-surface: #f7f8fa;
  --hm-white: #fff;
  --hm-green: #06c755;
  --hm-radius-sm: 6px;
  --hm-radius-md: 12px;
  --hm-radius-lg: 18px;
  --hm-shadow: 0 12px 32px rgba(22, 32, 51, 0.08);
  --hm-section-space: 88px;
}

html { font-size: 16px; }

body {
  color: var(--hm-text);
  background: var(--hm-white);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

a { text-underline-offset: 0.18em; }

@media (min-width: 1400px) {
  .container { max-width: 1180px !important; }
}

/* Header */
.bootstrap-header .navbar {
  padding-block: 13px !important;
  border-bottom: 1px solid var(--hm-line);
  box-shadow: none;
}

.bootstrap-header .header-logo-wrapper img { max-height: 52px; }

.bootstrap-header .navbar-nav .nav-item::after { display: none; }

.bootstrap-header .navbar-nav .nav-item .nav-link {
  color: var(--hm-navy) !important;
  font-size: 0.94rem;
  font-weight: 700;
  padding-inline: 1rem !important;
}

.bootstrap-header .navbar-nav .nav-item .nav-link:hover,
.bootstrap-header .navbar-nav .nav-item.dropdown:hover > .nav-link {
  color: var(--hm-red) !important;
}

.bootstrap-header .navbar-nav .nav-item .nav-link::after {
  height: 2px;
  /*background: var(--hm-yellow);*/
}

.bootstrap-header .header-cta .btn {
  border-radius: var(--hm-radius-sm) !important;
  background: var(--hm-red) !important;
  border-color: var(--hm-red) !important;
  box-shadow: none;
}

.bootstrap-header .header-cta .btn:hover { background: var(--hm-red-dark) !important; }

/* Home hero */
#front-page .home-hero {
  padding: 72px 20px !important;
  background: linear-gradient(110deg, #fff 0%, #fff 62%, var(--hm-yellow-soft) 62%);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.home-hero-eyebrow {
  margin: 0 0 18px;
  color: var(--hm-red);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.home-hero h1 {
  margin: 0;
  color: var(--hm-navy);
  font-size: clamp(3.25rem, 4.5vw, 4.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.home-hero-lead {
  max-width: 35em;
  margin: 28px 0 0;
  color: var(--hm-text);
  font-size: 1.08rem;
  line-height: 1.9;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn-home-primary,
.btn-home-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid var(--hm-red);
  border-radius: var(--hm-radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-home-primary { color: #fff; background: var(--hm-red); }
.btn-home-primary:hover { color: #fff; background: var(--hm-red-dark); border-color: var(--hm-red-dark); }
.btn-home-secondary { color: var(--hm-navy); background: #fff; border-color: var(--hm-navy); }
.btn-home-secondary:hover { color: #fff; background: var(--hm-navy); }

.home-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--hm-muted);
  font-size: 0.84rem;
  font-weight: 700;
  list-style: none;
}

.home-hero-points i { color: #b28b00; }

.home-hero-media {
  position: relative;
  min-width: 0;
}

.home-hero-media > img {
  display: block;
  width: 100%;
  height: 510px;
  border-radius: var(--hm-radius-lg);
  object-fit: cover;
  object-position: left center;
}

.home-hero-note {
  position: absolute;
  right: -18px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  min-width: 205px;
  padding: 16px 20px;
  border-left: 5px solid var(--hm-yellow);
  border-radius: var(--hm-radius-sm);
  background: #fff;
  box-shadow: var(--hm-shadow);
}

.home-hero-note strong { color: var(--hm-navy); font-size: 1rem; }
.home-hero-note span { color: var(--hm-muted); font-size: 0.78rem; }

/* Compact purpose navigation */
.home-purpose-nav {
  padding: 28px 20px;
  border-block: 1px solid var(--hm-line);
  background: #fff;
}

.home-purpose-label {
  margin: 0 0 14px;
  color: var(--hm-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-md);
  overflow: hidden;
}

.home-purpose-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px;
  color: var(--hm-navy);
  border-right: 1px solid var(--hm-line);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.home-purpose-grid a:last-child { border-right: 0; }
.home-purpose-grid a:hover { background: var(--hm-yellow-soft); }
.home-purpose-grid i { color: var(--hm-red); font-size: 1.25rem; }

/* Shared home-section rhythm */
#front-page > section:not(.home-hero) { padding: var(--hm-section-space) 20px !important; }
#front-page > section > .container { padding-top: 0 !important; padding-bottom: 0 !important; }
#front-page .bg-light-gray,
.site-main,
.service-page { background-color: var(--hm-surface) !important; }

.common-section-title,
.section-decorative-title {
  display: block;
  margin: 0 0 22px;
  color: var(--hm-navy) !important;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-align: center;
}

.common-section-title::before,
.section-decorative-title::before { display: none !important; }

.common-section-title::after,
.section-decorative-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 0;
  background: var(--hm-yellow);
  transform: none;
  position: static;
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 42px;
  color: var(--hm-muted);
  line-height: 1.85;
}

.section-action { margin-top: 40px; }

.text-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hm-red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link-arrow:hover { color: var(--hm-red-dark); }

/* Cars */
.popular-cars-section .car-card {
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-md);
  background: #fff;
  box-shadow: none !important;
}

.popular-cars-section .car-card .car-card-tag {
  padding: 7px 13px;
  border-radius: 0 0 0 var(--hm-radius-sm);
  color: var(--hm-navy);
  background: var(--hm-yellow);
}

.popular-cars-section .car-card .car-card-content { padding: 26px 22px 22px; }
.popular-cars-section .car-card .car-name { color: var(--hm-navy); font-size: 1.22rem; }
.popular-cars-section .car-card .car-plan { border-radius: var(--hm-radius-sm); background: var(--hm-surface); }
.popular-cars-section .car-card .car-price { color: var(--hm-red); }

.popular-cars-section .car-card .car-card-btn {
  justify-content: center;
  padding: 13px 20px;
  background: var(--hm-red);
}

.popular-cars-section .car-card .car-card-btn::after { display: none; }

/* Benefits */
.packet-fiat-solution .solution-header { margin-bottom: 42px; }

.packet-fiat-solution .solution-card-wrapper {
  padding: 26px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-md);
  background: #fff;
}

.packet-fiat-solution .card-top-label {
  min-height: 0;
  margin: 0 0 18px;
  padding: 0;
  color: var(--hm-muted);
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.82rem;
  line-height: 1.55;
}

.packet-fiat-solution .card-top-label::after { display: none; }

.packet-fiat-solution .solution-card {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.packet-fiat-solution .solution-card .card-icon {
  width: 72px;
  height: 72px;
  margin: 0 0 20px;
}

.packet-fiat-solution .solution-card .card-item-title {
  min-height: 0;
  margin: 0 0 12px;
  color: var(--hm-navy);
  font-size: 1.2rem;
  line-height: 1.55;
  text-align: left;
}

.packet-fiat-solution .solution-card .card-text {
  color: var(--hm-muted);
  font-size: 0.92rem;
  line-height: 1.8;
  text-align: left;
}

/* Search */
.search-cars-section .search-category-title {
  padding-left: 13px;
  color: var(--hm-navy);
  font-size: 1.12rem;
}

.search-cars-section .search-category-title::before { width: 4px; background: var(--hm-yellow); }

.search-cars-section .maker-grid { gap: 10px; }

.search-cars-section .maker-grid .maker-card,
.search-cars-section .type-card {
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-sm);
  box-shadow: none !important;
}

.search-cars-section .maker-grid .maker-card span,
.search-cars-section .type-card span { color: var(--hm-navy); }
.search-cars-section .type-card::after { background: var(--hm-red); }

/* Service, flow, columns and news */
.top-service-banners .service-banner-card,
.column-section .column-card {
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-md);
  background: #fff;
  box-shadow: none !important;
}

.top-service-banners .service-banner-card:hover,
.column-section .column-card:hover { box-shadow: var(--hm-shadow) !important; }

.flow-section .flow-container { max-width: 860px !important; }
.flow-section .flow-item { margin: 0; }

.flow-section .flow-step {
  width: 88px;
  border-radius: var(--hm-radius-sm) 0 0 var(--hm-radius-sm);
  color: var(--hm-navy);
  background: var(--hm-yellow);
  box-shadow: none;
}

.flow-section .flow-card {
  padding: 22px 26px;
  border: 1px solid var(--hm-line);
  border-left: 0;
  border-radius: 0 var(--hm-radius-sm) var(--hm-radius-sm) 0;
  box-shadow: none !important;
}

.flow-section .flow-arrow { padding: 7px 0; }
.flow-section .flow-arrow i { color: #b28b00 !important; }

.news-section .news-list { margin-top: 32px !important; }
.news-section .news-item { border-color: var(--hm-line); }

.car-link-btn {
  min-height: 50px;
  border: 0 !important;
  border-radius: var(--hm-radius-sm) !important;
  color: #fff !important;
  background: var(--hm-red) !important;
  box-shadow: none !important;
}

.car-link-btn::after { display: none; }

/* Shared CTA */
.common-cta { padding: var(--hm-section-space) 20px; }

.common-cta .cta-inner-wrapper {
  padding: 64px 40px;
  border-radius: var(--hm-radius-lg);
  background: var(--hm-navy);
  box-shadow: none;
}

.common-cta .cta-title,
.common-cta .cta-description { color: #fff; }

.common-cta .btn-cta-phone,
.common-cta .btn-cta-mail {
  border-radius: var(--hm-radius-sm);
  box-shadow: none;
}

.common-cta .btn-cta-line { color: #fff; }

/* Lower-level pages */
.page-hero {
  /*padding: 72px 20px;*/
  background-position: center;
}

.page-hero .container { min-height: 155px; }
.page-hero .hero-content { max-width: 100%; margin-bottom: 28px; }

.page-hero .page-title {
  /*font-size: clamp(2.35rem, 4vw, 3.25rem);*/
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-shadow: none;
}

.page-hero .lead { max-width: 100%; text-shadow: none; }

.entry-content { color: var(--hm-text) !important; letter-spacing: 0.01em; }

.entry-content p,
.entry-content li {
  line-height: 1.9 !important;
  margin-bottom: 1.35em;
}

.entry-content p,
.entry-content ul,
.entry-content li,
.entry-content ol,
.entry-content dl,
.entry-content dt,
.entry-content dd,
.entry-content blockquote,
.entry-content div { padding: 0; }

.entry-content h2 {
  margin: 64px 0 24px;
  padding: 4px 0 4px 18px;
  border: 0;
  border-left: 5px solid var(--hm-yellow);
  border-radius: 0;
  color: var(--hm-navy) !important;
  background: transparent;
  box-shadow: none;
  font-size: 1.7rem;
}

.entry-content h2::before,
.entry-content h2::after { display: none; }

.entry-content h3 {
  margin: 42px 0 18px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--hm-line);
  color: var(--hm-navy) !important;
  font-size: 1.35rem;
}

.entry-content h3::before,
.entry-content h3::after { display: none; }

.entry-content h4 {
  padding-left: 12px;
  border-left: 3px solid var(--hm-yellow);
  border-bottom: 0;
  color: var(--hm-navy);
}

.entry-content strong,
.entry-content b { background: none; color: var(--hm-navy); }

.premium-card {
  border: 1px solid var(--hm-line) !important;
  border-radius: var(--hm-radius-md);
  box-shadow: none !important;
}

.premium-card:hover { box-shadow: none; }

.section-decorative-title { font-size: clamp(1.8rem, 3vw, 2.25rem); }

.sidebar-cta-btn {
  border-radius: var(--hm-radius-md);
  box-shadow: none !important;
}

/*.sidebar-cta-btn.tel-btn { background: var(--hm-red); }*/
/*.sidebar-cta-btn.line-btn { background: var(--hm-green); }*/

.company-info .table-responsive { white-space: normal !important; }
.company-info th { color: var(--hm-navy); }
.contact-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.area-intro-card > p:not(.section-eyebrow) {
  max-width: 760px;
  color: var(--hm-muted);
  line-height: 1.9;
}

.area-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.area-guide-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  color: var(--hm-text);
  background: var(--hm-cream);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-sm);
}

.area-guide-link:hover { color: var(--hm-red); border-color: var(--hm-red); }
.area-guide-link i { color: var(--hm-red); font-size: 1.5rem; }
.area-guide-link span { display: grid; gap: 3px; }
.area-guide-link small { color: var(--hm-muted); font-size: 0.76rem; }

.area-support-note {
  padding: 24px;
  background: #fff;
  border-left: 4px solid var(--hm-yellow);
}

.area-support-note h3 { margin-bottom: 8px; font-size: 1.05rem; }
.area-support-note p { margin: 0; color: var(--hm-muted); line-height: 1.8; }

/* Car archive */
#car-archive > .container { padding-top: 64px !important; padding-bottom: 72px !important; }

#car-archive .filter-sidebar {
  border: 1px solid var(--hm-line) !important;
  border-radius: var(--hm-radius-md) !important;
  background: #fff !important;
  box-shadow: none !important;
}

#car-archive .filter-sidebar .btn-warning,
#car-archive .car-card .btn {
  border: 0 !important;
  border-radius: var(--hm-radius-sm) !important;
  color: #fff !important;
  background: var(--hm-red) !important;
  box-shadow: none !important;
}

#car-archive .car-card {
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-md);
  background: #fff;
  box-shadow: none !important;
}

#car-archive .car-card .car-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #fff !important;
}

#car-archive .car-card .car-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.car-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: #98a2b3;
  background: var(--hm-surface);
  font-size: 0.8rem;
}

.car-image-placeholder i { font-size: 2rem; }

.car-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  margin-bottom: 12px;
  border: 1px solid var(--hm-navy);
  border-radius: var(--hm-radius-sm);
  color: var(--hm-navy);
  background: #fff;
  font-weight: 700;
}

.bg-light-yellow { background-color: #fffdf0; }
.pagination { margin-top: 20px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-sm);
  color: var(--hm-navy);
  background: #fff;
  font-weight: 600;
  text-decoration: none;
}

.pagination .page-numbers.current { border-color: var(--hm-yellow); background: var(--hm-yellow); }
.pagination .page-numbers:hover:not(.current) { background: var(--hm-surface); }

/* Footer */
.main-footer { background: var(--hm-navy); }
.main-footer .footer-brand img { filter: drop-shadow(0 0 1px rgba(255,255,255,0.4)); }
.hover-dark:hover { color: var(--hm-yellow) !important; transform: none; }

/* Mobile */
.mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--hm-line);
  box-shadow: 0 -4px 18px rgba(22,32,51,0.08) !important;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex: 1;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--hm-muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-bottom-nav .nav-item i { margin-bottom: 3px; font-size: 1.3rem; }
.mobile-bottom-nav .nav-item:active { color: var(--hm-red); background: var(--hm-cream); }
.mobile-bottom-nav .cta-tel,
.mobile-bottom-nav .cta-mail { color: #fff !important; }
.mobile-bottom-nav .cta-tel { background: var(--hm-red); }
.mobile-bottom-nav .cta-mail { background: var(--hm-navy); }

@media (max-width: 991px) {
  :root { --hm-section-space: 58px; }
  body { padding-bottom: 80px !important; }

  .bootstrap-header .navbar { padding-block: 10px !important; }
  .bootstrap-header .header-logo-wrapper img { max-height: 43px; }

  .offcanvas {
    width: min(88vw, 380px) !important;
    background: #fff !important;
  }

  .offcanvas .offcanvas-header { padding: 22px !important; }
  .offcanvas .offcanvas-header .btn-close { background: var(--hm-navy) !important; }
  .offcanvas .offcanvas-body { justify-content: flex-start; padding: 10px 24px 40px; }
  .offcanvas .offcanvas-body .mobile-vertical-menu .menu-item a { color: var(--hm-navy) !important; }

  #front-page .home-hero { padding: 52px 20px 42px !important; background: #fff; }

  .home-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .home-hero h1 { font-size: clamp(2.7rem, 12vw, 3.55rem); }
  .home-hero-lead { margin-top: 22px; font-size: 1rem; }
  .home-hero-media > img { height: 350px; }
  .home-hero-note { right: 14px; bottom: 16px; min-width: 180px; }

  .home-purpose-grid { grid-template-columns: repeat(2, 1fr); }
  .home-purpose-grid a:nth-child(2) { border-right: 0; }
  .home-purpose-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--hm-line); }

  .popular-cars-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 6px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .popular-cars-grid > [class*="col-"] {
    flex: 0 0 min(82vw, 350px);
    width: min(82vw, 350px);
    scroll-snap-align: start;
  }

  .service-page .widget-area { display: none; }
  .service-page .col-lg-9 { width: 100%; padding-right: calc(var(--bs-gutter-x) * 0.5) !important; }

  #car-archive > .container { padding-top: 38px !important; }
  #car-archive .col-lg-9 > .d-flex { margin-top: 8px; }

  .page-hero { /*padding: 52px 16px;*/ }
  .page-hero .container { min-height: 150px; }
  .page-hero .page-title { font-size: 2rem; }
  .page-hero .lead { font-size: 0.94rem; }
}

@media (max-width: 576px) {
  .area-guide-grid { grid-template-columns: 1fr; }
  #front-page > section:not(.home-hero) { padding-inline: 16px !important; }

  .home-hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn-home-primary,
  .btn-home-secondary { width: 100%; }
  .home-hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .home-hero-media > img { height: 270px; }

  .home-purpose-nav { padding: 22px 16px; }
  .home-purpose-grid a { min-height: 66px; padding: 11px 8px; font-size: 0.86rem; }

  .common-section-title,
  .section-decorative-title { font-size: 1.72rem; }

  .packet-fiat-solution .solution-card-wrapper { padding: 22px; }
  .search-cars-section .maker-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .search-cars-section .maker-grid .maker-card { padding: 10px 4px; }
  .search-cars-section .maker-grid .maker-card img { max-width: 64%; }
  .search-cars-section .maker-grid .maker-card span { font-size: 0.7rem; }

  .flow-section .flow-step {
    width: 100%;
    border-radius: var(--hm-radius-sm) var(--hm-radius-sm) 0 0;
  }

  .flow-section .flow-card {
    border: 1px solid var(--hm-line);
    border-top: 0;
    border-radius: 0 0 var(--hm-radius-sm) var(--hm-radius-sm);
  }

  .common-cta { padding-inline: 16px; }
  .common-cta .cta-inner-wrapper { padding: 46px 20px; border-radius: var(--hm-radius-md); }

  .page-hero .page-title { font-size: 1.72rem; }
  .page-hero .hero-content { margin-bottom: 22px; }

  .company-info table,
  .company-info tbody,
  .company-info tr,
  .company-info th,
  .company-info td { display: block; width: 100% !important; }

  .company-info th { padding-bottom: 8px !important; }
  .company-info td { padding-top: 8px !important; white-space: normal; }

  .pagination .page-numbers { min-width: 34px; height: 34px; padding: 0 6px; font-size: 0.9rem; }
  .pagination .nav-links { gap: 5px; }
}
