/* =====================================================================
   PaintAsia Dealership — Core Stylesheet
   Shared design system used site-wide (header, footer, buttons, sections,
   forms, FAQ, modal, stats, footer). Extracted from the original homepage
   so every page inherits the exact same premium look.
   ===================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #d7222f;
  --primary-dark: #b01e29;
  --secondary: #1a1a2e;
  --accent: #f5a623;
  --bg-light: #f4f6f9;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
  --radius: 10px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.logo-fallback {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  align-items: center;
}

nav.main-nav a {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--primary);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  transform: scaleX(1);
}

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(215, 34, 47, 0.35);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  display: block;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a.active {
  color: var(--primary);
}

/* STATS */
.stats-bar {
  background: #fff;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 20px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: #fef2f2;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
}

/* SECTIONS */
section {
  padding: 68px 0;
}

section.hero {
  padding: 0;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 18px;
}

.section-text {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.bg-light {
  background: var(--bg-light);
}

/* WHY CHOOSE */
.why-choose {
  background: var(--bg-light);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.metric-card {
  border-radius: 12px;
  padding: 26px 20px;
  color: #fff;
  text-align: center;
}

.metric-num {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 5px;
}

.metric-label {
  font-size: 12.5px;
  opacity: 0.88;
}

/* HIGHLIGHT */
.highlight-box {
  position: relative;
  background: transparent;
  border: 1.5px solid rgb(176 30 41 / 88%);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(176, 30, 41, 0.04);
  z-index: 1;
}

.highlight-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url('../images/hero/banner1.png') center / cover no-repeat;
  filter: blur(1.5px) brightness(1.05);
  z-index: -1;
  transform: scale(1.02);
}

.highlight-box p {
  font-size: 15.5px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

/* OPPORTUNITY IMAGE */
.opp-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.opp-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.opp-img .img-placeholder {
  height: 340px;
  background: linear-gradient(135deg, #d7222f, #ff6b6b, #f5a623);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

/* HOW TO APPLY */
.how-apply {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.how-apply .section-title {
  color: #fff;
}

.how-apply .section-text {
  color: rgba(255, 255, 255, 0.88);
}

/* PRODUCTS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.product-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding: 22px 14px 18px;
  transition: all 0.3s;
  border: 1px solid var(--border);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-card img {
  height: 148px;
  object-fit: contain;
  margin: 0 auto 14px;
  transition: transform 0.3s;
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: capitalize;
}

.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.product-placeholder {
  height: 148px;
  border-radius: 8px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  width: 100%;
}

/* FORM */
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.form-card {
  background: var(--bg-light);
  border: 1.5px solid rgba(176, 30, 41, 0.15);
  border-radius: 4px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(176, 30, 41, 0.3);
  border-radius: 4px;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: #fff;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: rgb(176, 30, 41);
  box-shadow: 0 0 0 3px rgba(176, 30, 41, 0.08);
}

.form-input::placeholder {
  color: #94a3b8;
}

textarea.form-input {
  resize: vertical;
  min-height: 110px;
  font-family: 'Inter', sans-serif;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 6px;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(176, 30, 41, 0.3);
}

.form-success {
  display: none;
  text-align: center;
  padding: 22px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  color: #16a34a;
  font-weight: 600;
  font-size: 15px;
  margin-top: 12px;
}

.form-error {
  text-align: center;
  padding: 16px 22px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #b91c1c;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}

.invest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.invest-card {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 18px;
  border: 1px solid var(--border);
}

.invest-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.invest-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* FAQ */
.faq-section {
  background: var(--bg-light);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

details.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

details.faq-item[open] {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

details.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  list-style: none;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.2s;
}

details.faq-item[open] .faq-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.faq-icon .minus {
  display: none;
}

details[open] .faq-icon .plus {
  display: none;
}

details[open] .faq-icon .minus {
  display: block;
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ol,
.faq-answer ul {
  padding-left: 20px;
  margin-top: 8px;
}

.faq-answer li {
  margin-bottom: 7px;
}

/* FOOTER */
.footer-section {
  background: var(--secondary);
  color: #fff;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
  margin-bottom: 18px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(215, 34, 47, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
}

.footer-contact-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links a::before {
  content: '›';
  font-size: 15px;
}

.footer-disclaimer {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.7;
  padding: 18px 0 0;
  max-width: 980px;
}

.footer-bottom {
  padding: 18px 24px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* SCROLL TOP */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
  z-index: 999;
}

#scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

#scroll-top.visible {
  display: flex;
}

/* RESPONSIVE */
@media(max-width:1024px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-right: 1px solid var(--border);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apply-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:768px) {

  nav.main-nav,
  .header-inner .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .two-col,
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .opp-img {
    order: -1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  section {
    padding: 48px 0;
  }
}

@media(max-width:480px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .invest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-card {
    padding: 22px 16px;
  }
}

/* ===== APPLICATION POPUP MODAL ===== */
#apply-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 2, 4, 0.62);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#apply-modal.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 920px;
  border-radius: 7px;
  border: 2px solid rgb(176 30 41 / 88%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  position: relative;
  animation: modalSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-sidebar {
  position: relative;
  background: linear-gradient(135deg, rgba(176, 30, 41, 0.94) 0%, rgba(90, 10, 18, 0.94) 100%),
    url('../images/hero/banner1.png') center / cover no-repeat;
  background-blend-mode: multiply;
  padding: 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(245, 166, 35, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.modal-sidebar-logo {
  height: 36px;
  width: auto;
  align-self: flex-start;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.modal-sidebar-text {
  position: relative;
  z-index: 2;
}

.modal-sidebar-text h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
  color: #fff;
}

.modal-sidebar-text p {
  font-size: 13.5px;
  opacity: 0.88;
  line-height: 1.6;
}

.modal-form-wrap {
  padding: 40px;
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.modal-form-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.m-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row-inline,
.m-form-row-inline {
  grid-template-columns: 1.2fr 0.8fr !important;
}

.m-form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(176, 30, 41, 0.3);
  border-radius: 7px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  outline: none;
  transition: all 0.25s;
}

.m-form-input:focus {
  border-color: rgb(176, 30, 41);
  box-shadow: 0 0 0 3px rgba(176, 30, 41, 0.08);
}

select.m-form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.m-submit-btn {
  width: 100%;
  padding: 12.5px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 10px;
}

.m-submit-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(176, 30, 41, 0.3);
}

.m-success-box {
  display: none;
  text-align: center;
  padding: 24px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  color: #16a34a;
}

.m-success-box h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.m-success-box p {
  font-size: 14px;
  margin-bottom: 16px;
}

/* Responsive modal popup */
@media(max-width: 768px) {
  .modal-card {
    grid-template-columns: 1fr;
    border-radius: 7px;
  }

  .modal-sidebar {
    display: none;
  }

  .modal-form-wrap {
    padding: 30px 20px;
  }

  .m-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
