/* CHEKIMA — site-wide professional storefront */
:root {
  --ink: #161616;
  --mute: #4b5563;
  --line: #d8d5ce;
  --paper: #f4f3ef;
  --card: #fff;
  --yellow: #f5c518;
  --header-h: 7.2rem;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: Inter, Arial, Helvetica, sans-serif !important;
}

#root header.fixed { box-shadow: 0 1px 0 #111 !important; }

#root header img[alt*="Logo"],
#root header img[alt*="CHEKIMA"] {
  height: 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 6px !important;
  padding: 2px !important;
}

#root header a[href="/"] > div:first-child,
#root header .rounded-full:has(img[alt*="Logo"]) {
  border-radius: 6px !important;
  padding: 3px !important;
  background: #fff !important;
}

#root header a[href="/"] span[itemprop="name"] {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

#root h1, #root h2, #root h3 {
  color: var(--ink) !important;
  text-align: left !important;
  line-height: 1.25 !important;
}

#root p, #root li, #root label {
  line-height: 1.55 !important;
}

#root button.bg-yellow-400,
#root a.bg-yellow-400,
#root .bg-yellow-400 {
  background: var(--yellow) !important;
  color: #111 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}

#root input[type="text"],
#root input[type="email"],
#root input[type="password"],
#root input[type="number"],
#root input[type="tel"],
#root textarea,
#root select {
  border-radius: 6px !important;
  min-height: 44px;
  text-align: left !important;
}

/* Clear the fixed header on inner pages */
#root > div.min-h-screen {
  padding-top: var(--header-h) !important;
  background: var(--paper) !important;
}

#root main.bg-white { background: var(--paper) !important; }
#root main.bg-white > div.max-w-6xl:first-child {
  padding-top: var(--header-h) !important;
}

/* ===== HOME ===== */
.ckl-hero {
  background: #fff !important;
  min-height: 0 !important;
  padding-top: var(--header-h) !important;
  padding-bottom: 1.75rem !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--line);
}

.ckl-hero > div { max-width: 72rem; }
.ckl-hero > div > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  gap: 2rem !important;
  align-items: center !important;
}

.ckl-counter { display: none !important; }

#root main > section.ckl-hero img[alt="Heavy Equipment Parts"] {
  display: block !important;
  width: 100% !important;
  height: 380px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.12) !important;
}

.ckl-kicker {
  display: inline-block;
  margin: 0 0 0.55rem !important;
  padding: 0.2rem 0.45rem;
  background: #111;
  color: var(--yellow) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.ckl-hero h1 {
  font-size: clamp(1.45rem, 2.6vw, 2rem) !important;
  font-weight: 800 !important;
  margin: 0 0 0.6rem !important;
}

.ckl-hero p, .ckl-hero label { color: var(--mute) !important; font-size: 0.95rem !important; }
.ckl-hero form { max-width: none !important; margin: 0.9rem 0 0 !important; }
.ckl-hero form > div,
.ckl-hero .bg-gray-50 {
  background: #fafafa !important;
  border: 1px solid var(--line) !important;
  border-top: 4px solid var(--yellow) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  padding: 0.85rem !important;
}

.ckl-hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.ckl-btn, .ckl-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
}
.ckl-btn { background: var(--yellow); color: #111 !important; border: 1px solid #c9a400; }
.ckl-btn-ghost { background: #111; color: #fff !important; border: 1px solid #111; }

#ckl-home-extra { background: var(--paper); }
.ckl-dir, .ckl-steps, .ckl-yard { max-width: 72rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.ckl-dir { padding-top: 1.5rem; }
.ckl-dir h2, .ckl-steps h2, .ckl-yard h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #111;
  font-weight: 800;
}

.ckl-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ckl-pills a {
  background: #fff;
  border: 1px solid var(--line);
  color: #111 !important;
  text-decoration: none !important;
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 6px;
}
.ckl-pills a:hover { background: var(--yellow); }

.ckl-machine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 72rem;
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
}
.ckl-machine {
  position: relative;
  display: block;
  text-decoration: none !important;
  color: #fff !important;
  overflow: hidden;
  border-radius: 10px;
}
.ckl-machine img { width: 100%; height: 170px; object-fit: cover; display: block; }
.ckl-machine span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.75rem;
  font-weight: 800;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}

.ckl-steps {
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.ckl-steps article { background: #fff; border: 1px solid var(--line); padding: 0.9rem 1rem; border-radius: 8px; }
.ckl-steps b { display: block; font-size: 0.78rem; margin-bottom: 0.25rem; }
.ckl-steps p { margin: 0; color: var(--mute); font-size: 0.9rem; }

.ckl-yard { padding: 1rem 1.25rem 2rem; }
.ckl-yard-box {
  background: #111;
  color: #fff;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-radius: 10px;
}
.ckl-yard-box p { margin: 0.2rem 0 0; color: #d4d4d4; font-size: 0.92rem; }
.ckl-yard-box h2 { border: 0; color: #fff !important; margin: 0; padding: 0; font-size: 1.1rem; }
.ckl-yard-box a { color: #111 !important; }

#root main > section.ckl-hide { display: none !important; }

#root a[href^="/products?category"] {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  min-height: 78px;
  text-align: left !important;
  padding: 0.85rem 1rem !important;
  box-shadow: none !important;
}

/* ===== PAGE BANNERS (about / contact / products) ===== */
.ckl-page-banner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
}
.ckl-page-banner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.ckl-page-banner .ckl-page-banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%);
  color: #fff;
}
.ckl-page-banner .ckl-kicker {
  background: var(--yellow);
  color: #111 !important;
  width: fit-content;
}
.ckl-page-banner h1,
.ckl-page-banner p { color: #fff !important; margin: 0.35rem 0 0; text-align: left !important; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.ckl-page-banner h1 { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; max-width: 18ch; }

/* ===== ABOUT ===== */
#root main.bg-white section .text-center {
  text-align: left !important;
}
#root main.bg-white h2 { text-align: left !important; }
#root main.bg-white .lg\:grid-cols-2 {
  align-items: start;
}
#root main.bg-white .rounded-xl,
#root main.bg-white .rounded-lg {
  border-radius: 10px !important;
  text-align: left !important;
}
.ckl-about-photo { margin: 0; }
.ckl-about-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== CONTACT ===== */
#root h1 { text-align: left !important; }
#root .text-center.mb-8,
#root .text-center.mb-12 {
  text-align: left !important;
  max-width: 44rem;
}
#root .text-center.mb-8 p,
#root .text-center.mb-12 p {
  margin-left: 0 !important;
  max-width: 40rem !important;
}
#root form { text-align: left; }
#root .bg-white.rounded-xl,
#root .bg-white.rounded-lg {
  border-radius: 10px !important;
}

/* ===== PRODUCTS / DETAIL ===== */
#root .bg-gray-50.min-h-screen h1,
#root .bg-gray-50.min-h-screen h2 { text-align: left !important; }

#root a[href^="/products/"] {
  text-align: left !important;
}
#root a[href^="/products/"] img,
#root .aspect-\[4\/3\] img,
#root .aspect-square img {
  border-radius: 8px !important;
  width: 100%;
  object-fit: cover;
}

#root aside .bg-white {
  border-radius: 10px !important;
}

/* ===== FOOTER ===== */
#root footer,
#root .bg-gray-900 {
  background: #111 !important;
  text-align: left !important;
}
#root footer a { color: var(--yellow) !important; }

@media (max-width: 900px) {
  .ckl-hero > div > div { grid-template-columns: 1fr !important; }
  .ckl-steps { grid-template-columns: 1fr; }
  .ckl-machine-grid { grid-template-columns: 1fr 1fr; }
  #root main > section.ckl-hero img[alt="Heavy Equipment Parts"] { height: 240px !important; }
  .ckl-page-banner img { height: 180px; }
  :root { --header-h: 6.2rem; }
}

@media (max-width: 640px) {
  #root header img[alt*="Logo"] { height: 44px !important; width: 44px !important; }
  .ckl-machine-grid { grid-template-columns: 1fr; }
}
