/* ============================================================
   LC Parts B2B — front-end design system
   Lightweight override for Twenty Twenty-Five block theme.
   ============================================================ */

:root {
  --lc-blue: #ff8e14;
  --lc-blue-dark: #e87a08;
  --lc-ink: #1d2126;
  --lc-muted: #5b6672;
  --lc-bg-soft: #f4f6f8;
  --lc-line: #e6eaef;
  --lc-cta: #272727;
  --lc-dark: #22262b;
  --lc-maxw: 1200px;
}

/* ---------- prevent horizontal overflow on narrow screens ---------- */
html, body {
  overflow-x: hidden;
}

/* ---------- release the theme's constrained parent width ----------
   Parent MAIN / entry-content stay full width; only inner .lc-section
   and .lc-section-inner are capped to --lc-maxw below. ---------- */
main.wp-block-group.is-layout-constrained,
.entry-content.is-layout-constrained {
  max-width: none !important;
  width: 100%;
}
main.wp-block-group.is-layout-constrained {
  margin-top: 0 !important;
}
main > .wp-block-group.has-global-padding {
  padding-top: 0 !important;
}
.entry-content {
  margin-top: 0 !important;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- full-width hero ---------- */
.lc-hero {
  position: relative;
  max-width: none !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 !important;
}
.lc-hero .metaslider_container,
.lc-hero .ml-slider,
.lc-hero .flexslider,
.lc-hero .metaslider {
  width: 100% !important;
  max-width: none !important;
}
.lc-hero .metaslider img,
.lc-hero .flexslider img {
  width: 100% !important;
  max-width: 100%;
  height: clamp(300px, 40vw, 540px) !important;
  object-fit: cover;
  display: block;
}
.lc-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  max-width: var(--lc-maxw);
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
  text-align: left;
  background: linear-gradient(90deg, rgba(10, 24, 40, 0.72) 0%, rgba(10, 24, 40, 0.25) 55%, rgba(10, 24, 40, 0) 100%);
}
.lc-hero-overlay h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  margin: 0;
  max-width: 660px;
}
.lc-hero-overlay p {
  font-size: clamp(15px, 1.6vw, 19px);
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}
.lc-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- buttons ---------- */
.lc-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.lc-btn-primary {
  background: var(--lc-blue);
  color: #fff;
}
.lc-btn-primary:hover {
  background: var(--lc-blue-dark);
  color: #fff;
}
.lc-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.lc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.lc-btn-outline {
  background: #fff;
  color: var(--lc-blue);
  border: 1px solid var(--lc-line);
}
.lc-btn-outline:hover {
  border-color: var(--lc-blue);
}

/* ---------- generic sections ---------- */
.lc-section {
  max-width: var(--lc-maxw);
  margin: 0 auto;
  padding: 64px 24px;
}
.lc-section--soft {
  background: var(--lc-bg-soft);
  max-width: none;
}
.lc-section--soft > .lc-section-inner {
  max-width: var(--lc-maxw);
  margin: 0 auto;
}
.lc-eyebrow {
  color: var(--lc-blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 6px;
}
.lc-section-title {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
  color: var(--lc-ink);
}
.lc-section-lead {
  color: var(--lc-muted);
  max-width: 680px;
  margin: 0;
  line-height: 1.7;
}

/* ---------- card grids ---------- */
.lc-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.lc-grid--cats {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.lc-grid--feats {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.lc-card {
  background: #fff;
  border: 1px solid var(--lc-line);
  border-radius: 16px;
  padding: 26px;
  transition: all 0.2s ease;
}
.lc-card:hover {
  box-shadow: 0 12px 30px rgba(16, 40, 72, 0.1);
  transform: translateY(-3px);
}
.lc-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--lc-ink);
}
.lc-card p {
  margin: 0;
  color: var(--lc-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.lc-card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--lc-blue);
  font-weight: 600;
  text-decoration: none;
}
.lc-card-link:hover {
  text-decoration: underline;
}
.lc-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--lc-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- trust / stats band ---------- */
.lc-trust {
  background: var(--lc-cta);
  color: #fff;
}
.lc-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: var(--lc-maxw);
  margin: 0 auto;
  padding: 44px 24px;
  text-align: center;
}
.lc-trust b {
  display: block;
  font-size: 30px;
  line-height: 1.2;
}
.lc-trust span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

/* ---------- bottom CTA ---------- */
.lc-cta {
  background: linear-gradient(120deg, var(--lc-blue-dark), var(--lc-cta));
  color: #fff;
  text-align: center;
}
.lc-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}
.lc-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
  color: #fff;
}
.lc-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 22px;
  line-height: 1.7;
}

/* ---------- inner page headings & content width ---------- */
.entry-content.is-layout-constrained > * {
  max-width: 920px;
}
.entry-content > .lc-fullband,
.entry-content > .lc-carousel,
.entry-content > .lc-masthead,
.entry-content > .lc-cta,
.entry-content > .lc-trust,
.entry-content > .lc-section--soft {
  max-width: none !important;
}
.wp-block-post-title {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
}
.entry-content > h1:first-child,
.entry-content > h2:first-child {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 12px;
}
.entry-content p {
  line-height: 1.75;
}
.entry-content ul,
.entry-content ol {
  line-height: 1.7;
  padding-left: 1.4em;
}
.entry-content li {
  margin-bottom: 10px;
}

/* ---------- contact form polish ---------- */
.wpcf7-form label {
  font-weight: 600;
  display: block;
  width: 100%;
  max-width: 640px;
  margin-bottom: 6px;
}
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  max-width: 640px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  max-width: 640px;
  padding: 11px 13px;
  border: 1px solid var(--lc-line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}
.wpcf7-form .wpcf7-submit {
  background: var(--lc-blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px 30px;
  font-weight: 600;
  cursor: pointer;
}
.wpcf7-form .wpcf7-submit:hover {
  background: var(--lc-blue-dark);
}

/* ---------- fixes: break out of the theme constrained container ---------- */
.lc-section--soft,
.lc-trust,
.lc-cta,
.lc-fullband,
.lc-carousel,
.lc-masthead {
  max-width: none !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* inner capped containers must stay centered even under the released parent rules */
.lc-section,
.lc-section-inner,
.lc-hero-overlay {
  max-width: var(--lc-maxw) !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}
.lc-grid {
  max-width: none !important;
  width: 100%;
}

/* cards: strip inherited link underline / color */
a.lc-card,
.lc-card,
.lc-card h3,
.lc-card p,
.lc-card span {
  text-decoration: none !important;
}
.lc-card h3 { color: var(--lc-ink); }
.lc-card p { color: var(--lc-muted); }
a.lc-card:hover { border-color: var(--lc-blue); }

/* ---------- footer: hide theme default placeholder dead links ---------- */
footer .wp-block-navigation .wp-block-navigation-item:has(a[href="#"]) {
  display: none;
}

/* ---------- masthead info bar (shop header) ---------- */
.lc-masthead {
  background: var(--lc-dark);
  color: #fff;
}
.lc-masthead-inner {
  max-width: var(--lc-maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.lc-masthead-brand { display: flex; gap: 16px; align-items: center; }
.lc-masthead-brand img {
  width: 64px; height: 64px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 6px;
}
.lc-masthead-name { font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; letter-spacing: .02em; }
.lc-masthead-tag { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 4px; }
.lc-masthead-contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lc-masthead-contact a { color: #fff; text-decoration: none; }
.lc-masthead-contact .lc-dot { color: var(--lc-blue); margin-right: 6px; font-weight: 700; }

/* ---------- self-contained HTML carousel ---------- */
.lc-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #111;
}
.lc-carousel-track { position: relative; height: clamp(280px, 42vw, 560px); }
.lc-carousel img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .8s ease;
}
.lc-carousel img.active { opacity: 1; }
.lc-carousel-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.lc-carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.5); cursor: pointer; padding: 0;
}
.lc-carousel-dots button.active { background: var(--lc-blue); }

/* ---------- full-width baked design band ---------- */
.lc-fullband {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--lc-bg-soft);
}
.lc-fullband img { display: block; width: 100%; height: auto; }

/* ---------- payment methods strip ---------- */
.lc-payments {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  justify-content: center; margin-top: 18px;
}
.lc-payments span {
  font-size: 13px; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 5px 14px;
}

/* ---------- company video band ---------- */
.lc-video-band .lc-video {
  width: 100%;
  display: block;
  margin-top: 24px;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 12px 30px rgba(16, 40, 72, 0.12);
}
/* video band keeps readable max width */
.lc-video-band { background: #fff; }

/* ---------- homepage: hide theme default header / footer / title so the
   baked shop screenshot bands run edge to edge, exactly like the store ---------- */
body.home .wp-block-template-part > header,
body.home header.wp-block-template-part,
body.home .wp-block-group > header:first-child,
body.home .wp-block-site-title,
body.home .wp-block-navigation,
body.home .wp-block-post-title,
body.home footer,
body.home .wp-block-template-part > footer {
  display: none !important;
}
body.home .entry-content { padding-left: 0; padding-right: 0; }
body.home main { margin-top: 0 !important; padding-top: 0 !important; }
body.home .lc-fullband img { margin: 0; }
body.home .lc-carousel { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 782px) {
  .lc-section { padding: 44px 20px; }
  .lc-grid--cats,
  .lc-grid--feats { grid-template-columns: repeat(2, 1fr); }
  .lc-hero-overlay { background: linear-gradient(90deg, rgba(10,24,40,.7), rgba(10,24,40,.35)); }
  .lc-masthead-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lc-carousel-track { height: clamp(220px, 52vw, 360px); }
}
@media (max-width: 520px) {
  .lc-grid--cats,
  .lc-grid--feats { grid-template-columns: 1fr; }
  .lc-trust-grid { grid-template-columns: 1fr 1fr; }
  .lc-hero-actions { flex-direction: column; }
  .lc-hero-actions .lc-btn { width: 100%; text-align: center; }
  .lc-masthead-brand img { width: 48px; height: 48px; }
}
