/* =========================================================
   CHUANG QING AUTO PARTS FACTORY TRADING CO., LTD.
   Wilshire build — Visual Template T06 "Bold Contrast Dark"
   Palette derived from the client logo (racing red / black)
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------- */
:root{
  /* Brand — from logo */
  --primary-color:#ED1C24;
  --primary-light:#F4565C;
  --secondary-color:#0B0B0C;
  --secondary-light:#26262A;
  --accent-color:#ED1C24;
  --accent-dark:#C21118;

  /* Neutrals */
  --ink:#101013;
  --ink-soft:#5A5A63;
  --line:#E4E4E8;
  --soft:#F5F5F7;

  /* T06 template tokens */
  --radius:12px;
  --img-radius:14px;
  --btn-radius:50px;
  --shadow:0 14px 38px rgba(11,11,12,.10);
  --shadow-lift:0 20px 48px rgba(11,11,12,.16);
  --section-pad:100px;
  --container-max:1180px;
  --grid-gap:1.75rem;
  --card-pad:2rem;
  --h1-size:clamp(2.15rem,5.2vw,3.6rem);
  --h2-size:clamp(1.7rem,3.4vw,2.5rem);
  --body-lh:1.8;
  --hero-h:68vh;

  --font-display:'Sora',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* ---------------------------------------------------------
   2. BASE
   --------------------------------------------------------- */
*{box-sizing:border-box}
html,body{overflow-x:hidden;max-width:100%}
body{
  font-family:var(--font-body);
  font-size:.95rem;
  line-height:var(--body-lh);
  color:var(--ink-soft);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-display);
  color:var(--ink);
  letter-spacing:-.02em;
  font-weight:700;
}
a{text-decoration:none;transition:color .25s ease}
img{max-width:100%;height:auto}
.container{max-width:var(--container-max)}
.section-padding{padding:var(--section-pad) 0}
.bg-light-soft{background:var(--soft)}

/* Section header — T06 is LEFT aligned */
.section-tag{
  display:inline-flex;align-items:center;gap:.6rem;
  font-family:var(--font-body);
  font-size:.75rem;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--accent-color);
  margin-bottom:.9rem;
}
.section-tag::before{
  content:"";width:26px;height:2px;background:var(--accent-color);flex:0 0 26px;
}
.section-title{
  font-size:var(--h2-size);
  font-weight:700;
  line-height:1.16;
  margin-bottom:1.1rem;
}
.section-head{max-width:620px;margin-bottom:3rem}
.text-center .section-tag{justify-content:center}

/* ---------------------------------------------------------
   3. BUTTONS — T06: pill, accent fill, arrow glyph
   --------------------------------------------------------- */
.btn-brand,.btn-brand-outline,.btn-brand-secondary{
  font-family:var(--font-body);
  font-weight:600;
  font-size:.85rem;
  letter-spacing:.01em;
  border-radius:var(--btn-radius);
  padding:13px 30px;
  border:2px solid transparent;
  display:inline-flex;align-items:center;gap:.5rem;
  transition:all .28s ease;
  line-height:1.2;
}
.btn-brand{background:var(--accent-color);color:#fff}
.btn-brand:hover{background:var(--accent-dark);color:#fff;transform:translateY(-2px)}
.btn-brand-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.btn-brand-outline:hover{background:#fff;color:var(--ink);border-color:#fff}
.btn-brand-secondary{background:var(--secondary-color);color:#fff}
.btn-brand-secondary:hover{background:var(--accent-color);color:#fff;transform:translateY(-2px)}
.btn-lg.btn-brand,.btn-lg.btn-brand-outline,.btn-lg.btn-brand-secondary{padding:15px 36px;font-size:.9rem}

/* ---------------------------------------------------------
   4. TOP BAR — T06: dark, very low contrast
   --------------------------------------------------------- */
.top-bar{
  background:var(--secondary-color);
  color:rgba(255,255,255,.62);
  font-size:.78rem;
  padding:9px 0;
  letter-spacing:.02em;
}
.top-bar a{color:rgba(255,255,255,.62)}
.top-bar a:hover{color:#fff}
.top-bar i{color:var(--accent-color);margin-right:.45rem}

/* ---------------------------------------------------------
   5. NAVBAR
   --------------------------------------------------------- */
.main-navbar{
  background:#fff;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  transition:box-shadow .3s ease,padding .3s ease;
  z-index:1030;
}
.main-navbar.scrolled{padding:8px 0;box-shadow:0 6px 24px rgba(11,11,12,.09);border-bottom-color:transparent}
.navbar-brand img{height:44px;width:auto;display:block}
.main-navbar .nav-link{
  font-family:var(--font-body);
  font-size:.88rem;font-weight:600;
  color:var(--ink);
  padding:.55rem 1rem !important;
  position:relative;
}
.main-navbar .nav-link:hover{color:var(--accent-color)}
.main-navbar .nav-link.active{color:var(--accent-color)}
.main-navbar .nav-link.active::after{
  content:"";position:absolute;left:1rem;right:1rem;bottom:.15rem;
  height:2px;background:var(--accent-color);
}
/* G2 — accent pill CTA with mail icon */
.main-navbar .btn-brand{padding:11px 24px;font-size:.82rem}
.navbar-toggler{border:1px solid var(--line);padding:.35rem .55rem}
.navbar-toggler:focus{box-shadow:none}

/* Products dropdown (only rendered when the client has categories) */
.nav-products-row{display:flex;align-items:center}
.mobile-cat-toggle{
  background:none;border:none;color:var(--ink);padding:.25rem .6rem;line-height:1;
}
.mobile-cat-toggle.open i{transform:rotate(180deg)}
.mobile-cat-toggle i{transition:transform .25s ease;display:inline-block}
.main-navbar .dropdown-menu{
  border:none;border-radius:var(--radius);
  box-shadow:var(--shadow);padding:.5rem;margin-top:.6rem;
}
.main-navbar .dropdown-item{
  font-size:.85rem;font-weight:500;border-radius:8px;padding:.55rem .9rem;color:var(--ink);
}
.main-navbar .dropdown-item:hover{background:var(--soft);color:var(--accent-color)}

/* ---------------------------------------------------------
   6. HERO — T06: 68vh, C1 left block, A3 dots, B2 bare chevrons
   --------------------------------------------------------- */
.hero-slider{position:relative}
.hero-slide{
  height:var(--hero-h);
  min-height:460px;
  background-size:cover;
  background-position:center;
  position:relative;
  display:flex;align-items:center;
}
.hero-slide::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(11,11,12,.86) 0%,rgba(11,11,12,.62) 45%,rgba(11,11,12,.34) 100%);
}
.hero-slide .container{position:relative;z-index:2}
.hero-slide .hero-copy{max-width:640px}
.hero-tag{
  display:inline-flex;align-items:center;gap:.55rem;
  font-size:.75rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:var(--accent-color);margin-bottom:1.1rem;
}
.hero-tag i{font-size:1rem}
.hero-slide h1{
  font-size:var(--h1-size);
  font-weight:700;
  line-height:1.12;
  letter-spacing:-.02em;
  color:#fff;
  margin-bottom:1.1rem;
}
.hero-slide p{
  color:rgba(255,255,255,.8);
  font-size:1rem;
  max-width:520px;
  margin-bottom:1.9rem;
}
/* A3 — round dots, bottom centre */
.hero-slider .carousel-indicators{margin-bottom:2rem;z-index:3}
.hero-slider .carousel-indicators [data-bs-target]{
  width:10px;height:10px;border-radius:50%;
  background:rgba(255,255,255,.45);border:none;opacity:1;
  margin:0 5px;transition:all .3s ease;
}
.hero-slider .carousel-indicators .active{background:var(--accent-color);width:28px;border-radius:6px}
/* B2 — bare chevrons at the viewport edges */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next{width:70px;opacity:.75}
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover{opacity:1}
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon{width:2rem;height:2rem;background-size:100%}

/* T06 signature: layered image strip directly beneath the hero */
.hero-strip{
  height:130px;
  background-size:cover;
  background-position:center 55%;
  position:relative;
}
.hero-strip::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(11,11,12,.55),rgba(11,11,12,.18));
}

/* ---------------------------------------------------------
   7. PAGE HERO — 300px, 60% overlay, left aligned
   --------------------------------------------------------- */
.page-hero{
  height:300px;
  background-size:cover;background-position:center;
  position:relative;display:flex;align-items:center;
}
.page-hero::before{content:"";position:absolute;inset:0;background:rgba(11,11,12,.6)}
.page-hero .container{position:relative;z-index:2}
.page-hero h1{
  color:#fff;font-size:clamp(1.9rem,4vw,2.9rem);font-weight:700;margin-bottom:.5rem;
}
.breadcrumb-custom{font-size:.82rem;color:rgba(255,255,255,.65);font-weight:500}
.breadcrumb-custom a{color:var(--accent-color)}
.breadcrumb-custom a:hover{color:#fff}

/* ---------------------------------------------------------
   8. ABOUT ROWS — F-treatment: radius 14, warm-neutral, float badge
   --------------------------------------------------------- */
.about-img-wrap{position:relative}
.about-img-wrap img{
  width:100%;border-radius:var(--img-radius);display:block;
  box-shadow:var(--shadow);
}
.badge-float{
  position:absolute;right:-10px;bottom:-10px;
  background:var(--accent-color);color:#fff;
  border-radius:var(--radius);
  padding:1.15rem 1.5rem;
  font-size:.78rem;font-weight:600;line-height:1.3;
  max-width:190px;
  box-shadow:0 16px 36px rgba(237,28,36,.32);
}
.badge-float .num{
  display:block;font-family:var(--font-display);font-size:1.75rem;font-weight:700;line-height:1;
  margin-bottom:.2rem;letter-spacing:-.02em;
}
.check-list{list-style:none;padding:0;margin:0}
.check-list li{
  position:relative;padding-left:1.9rem;margin-bottom:.65rem;
  font-size:.92rem;color:var(--ink);font-weight:500;
}
.check-list li::before{
  content:"\F26E";font-family:"bootstrap-icons";
  position:absolute;left:0;top:0;color:var(--accent-color);font-size:1.05rem;
}

/* ---------------------------------------------------------
   9. WHY CHOOSE US — T06 SIGNATURE
   Full-black band · white cards · 2-up · icon inline left of title
   --------------------------------------------------------- */
.why-section{background:var(--secondary-color);position:relative}
.why-section .section-title{color:#fff}
.why-section .section-lead{color:rgba(255,255,255,.6);max-width:560px}
.feature-card{
  background:#fff;
  border-radius:var(--radius);
  padding:var(--card-pad);
  height:100%;
  display:flex;flex-direction:column;
  transition:background .3s ease;
}
.feature-card .icon-wrap{
  display:flex;align-items:center;gap:.9rem;margin-bottom:.85rem;
}
.feature-card .icon-wrap i{
  font-size:1.5rem;color:var(--accent-color);line-height:1;
}
/* E2 — icon inline to the LEFT of the title */
.feature-card h5{
  font-size:1.02rem;font-weight:700;margin:0;letter-spacing:-.01em;
  display:inline-block;
}
.feature-card .icon-wrap h5{margin:0}
.feature-card p{font-size:.9rem;margin:0;color:var(--ink-soft)}
.feature-card:hover{background:#FAFAFB}
/* orphan card on the final 2-up row sits centred */
.why-grid .orphan{margin-left:auto;margin-right:auto}

/* ---------------------------------------------------------
   10. MISSION / VISION / VALUES
   --------------------------------------------------------- */
.mv-card{
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:2.4rem;height:100%;
  transition:box-shadow .3s ease,border-color .3s ease;
}
.mv-card:hover{box-shadow:var(--shadow);border-color:transparent}
.mv-card > i{
  font-size:1.9rem;color:var(--accent-color);display:block;margin-bottom:1.1rem;
}
.mv-card h4{font-size:1.3rem;margin-bottom:.85rem}
.mv-card p{font-size:.93rem;margin-bottom:.9rem}
.mv-card .check-list li{font-weight:400;color:var(--ink-soft)}
.value-pill{
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:1.7rem;height:100%;
}
.value-pill i{font-size:1.5rem;color:var(--accent-color);display:block;margin-bottom:.8rem}
.value-pill h6{font-size:.95rem;font-weight:700;margin-bottom:.4rem}
.value-pill p{font-size:.85rem;margin:0}

/* ---------------------------------------------------------
   11. PRODUCT / ITEM CARDS — 16:10, radius 14, image scales 1.06
   --------------------------------------------------------- */
.category-card-link{display:block;height:100%}
.product-card,.item-card{
  background:#fff;
  border-radius:var(--img-radius);
  overflow:hidden;
  height:100%;
  border:1px solid var(--line);
  transition:border-color .3s ease,box-shadow .3s ease;
}
.product-img,.item-img{
  overflow:hidden;
  aspect-ratio:16/10;
  background:var(--soft);
}
.product-img img,.item-img img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .6s cubic-bezier(.22,.61,.36,1);
}
.product-card:hover,.item-card:hover{border-color:transparent;box-shadow:var(--shadow)}
/* T06 motion — image scales, the card itself does not lift */
.product-card:hover .product-img img,
.item-card:hover .item-img img{transform:scale(1.06)}
.product-body,.item-body{padding:1.15rem 1.35rem}
.product-body h5,.item-body h5{
  font-size:1rem;font-weight:700;margin:0;color:var(--ink);letter-spacing:-.01em;
}
.category-card-link:hover .product-body h5{color:var(--accent-color)}

/* ---------------------------------------------------------
   12. CTA — H2: light image band, heading left, dark pill right
   --------------------------------------------------------- */
.cta-section{
  background-size:cover;background-position:center;
  position:relative;
  padding:78px 0;
}
.cta-section::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.84)}
.cta-section .container{position:relative;z-index:2}
.cta-row{
  display:flex;align-items:center;justify-content:space-between;
  gap:2rem;flex-wrap:wrap;
}
.cta-section h2{font-size:clamp(1.55rem,3vw,2.2rem);margin-bottom:.5rem;line-height:1.2}
.cta-section p{margin:0;max-width:560px;font-size:.95rem}

/* ---------------------------------------------------------
   13. CONTACT
   --------------------------------------------------------- */
.contact-info-card{
  background:var(--secondary-color);
  border-radius:var(--radius);
  padding:2.4rem 2rem;
}
.contact-info-card h4{color:#fff;font-size:1.25rem;margin-bottom:1.6rem}
.contact-info-item{display:flex;gap:1rem;margin-bottom:1.5rem;align-items:flex-start}
.contact-info-item:last-child{margin-bottom:0}
.ci-icon{
  flex:0 0 42px;width:42px;height:42px;border-radius:50%;
  background:var(--accent-color);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:1rem;
}
.ci-text{min-width:0}
.ci-text small{
  display:block;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.45);font-weight:600;margin-bottom:.15rem;
}
.ci-text span,.ci-text a{
  color:#fff;font-size:.9rem;font-weight:500;word-break:break-word;
}
.ci-text a:hover{color:var(--accent-color)}
.contact-form-wrap{
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:2.4rem;
}
.contact-form-wrap h4{font-size:1.25rem}
.contact-form-wrap .form-label{font-size:.82rem;color:var(--ink);margin-bottom:.4rem}
.contact-form-wrap .form-control{
  border:1px solid var(--line);border-radius:8px;
  padding:.7rem .95rem;font-size:.9rem;background:#FCFCFD;
}
.contact-form-wrap .form-control:focus{
  border-color:var(--accent-color);box-shadow:0 0 0 3px rgba(237,28,36,.12);background:#fff;
}
#contactForm > [class*="col-"]{padding:0 .6rem;margin-bottom:1.1rem}
#contactForm{margin:0 -.6rem}

/* ---------------------------------------------------------
   14. FOOTER — black, accent dot bullets, I2 copyright bar
   --------------------------------------------------------- */
.site-footer{background:var(--secondary-color);color:rgba(255,255,255,.62)}
.footer-top{padding:76px 0 56px}
.footer-brand-text img{height:52px;width:auto;display:block;margin-bottom:1.3rem}
.site-footer p{font-size:.9rem;color:rgba(255,255,255,.6);margin:0;max-width:400px}
.site-footer h5{
  color:#fff;font-size:.95rem;font-weight:700;margin-bottom:1.4rem;
  letter-spacing:.02em;
}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer ul li{margin-bottom:.75rem;font-size:.88rem;color:rgba(255,255,255,.62);line-height:1.6}
.site-footer ul li i{color:var(--accent-color)}
.site-footer a{color:rgba(255,255,255,.62)}
.site-footer a:hover{color:var(--accent-color)}
/* accent dot bullets on quick links */
.footer-links li{position:relative;padding-left:1rem}
.footer-links li::before{
  content:"";position:absolute;left:0;top:.62rem;
  width:5px;height:5px;border-radius:50%;background:var(--accent-color);
}
.footer-bottom{
  background:#000;
  border-top:1px solid rgba(255,255,255,.07);
  padding:20px 0;font-size:.82rem;color:rgba(255,255,255,.42);
}

/* ---------------------------------------------------------
   15. BACK TO TOP — T06: floating accent square
   --------------------------------------------------------- */
.back-to-top{
  position:fixed;right:22px;bottom:22px;z-index:1040;
  width:44px;height:44px;border-radius:10px;
  background:var(--accent-color);color:#fff;
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:all .3s ease;
  box-shadow:0 12px 28px rgba(237,28,36,.35);
}
.back-to-top.show{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover{background:var(--accent-dark);color:#fff}

/* ---------------------------------------------------------
   16. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width:1199.98px){
  :root{--section-pad:84px}
}
@media (max-width:991.98px){
  :root{--section-pad:70px;--card-pad:1.6rem;--hero-h:74vh}
  .main-navbar .navbar-collapse{flex-basis:100%;padding-top:1rem}
  .main-navbar .nav-link{padding:.6rem .25rem !important}
  .main-navbar .nav-link.active::after{left:.25rem;right:auto;width:22px}
  .main-navbar .btn-brand{width:auto;display:inline-flex}
  .nav-products-row{justify-content:space-between;width:100%}
  .main-navbar .dropdown-menu{box-shadow:none;border-left:2px solid var(--line);border-radius:0;margin:.2rem 0 .4rem .25rem}
  .badge-float{position:static;margin-top:1rem;max-width:100%;display:inline-block}
  .cta-row{flex-direction:column;align-items:flex-start;text-align:left}
}
@media (max-width:767.98px){
  :root{--section-pad:58px;--hero-h:78vh}
  .top-bar{display:none}
  .hero-slide{min-height:420px}
  .hero-slide p{font-size:.94rem}
  .hero-strip{height:90px}
  .page-hero{height:230px}
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next{width:44px}
  .contact-form-wrap,.mv-card{padding:1.6rem}
  .footer-top{padding:56px 0 40px}
  .site-footer p{max-width:100%}
}
@media (max-width:575.98px){
  .hero-slide .btn{width:100%;justify-content:center;margin-bottom:.6rem}
  .hero-slide .btn.me-2{margin-right:0 !important}
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next{display:none}
}
