/* LESSO Corporate — lightweight styles */
:root {
  --lesso-red: #D71920;
  --lesso-red-dark: #A80F17;
  --lesso-ink: #17191D;
  --lesso-muted: #626B76;
  --lesso-line: #E7E9ED;
  --lesso-soft: #F5F6F8;
  --lesso-container: 1200px;
}

html { scroll-behavior: smooth; }
body { overflow-wrap: break-word; }
a { text-underline-offset: .18em; }
a:hover { color: var(--lesso-red-dark); }
:focus-visible { outline: 3px solid rgba(215,25,32,.35); outline-offset: 3px; }

.wp-site-blocks { overflow: clip; }
.lesso-container { width: min(calc(100% - 40px), var(--lesso-container)); margin-inline: auto; }
.lesso-header { position: relative; z-index: 20; border-bottom: 1px solid var(--lesso-line); background: rgba(255,255,255,.96); }
.lesso-header__inner { min-height: 82px; gap: 24px; }
.lesso-brand { gap: 12px; min-width: 185px; }
.lesso-brand .wp-block-site-logo img { max-height: 52px; width: auto; }
.lesso-brand .wp-block-site-title a { color: var(--lesso-ink); }
.lesso-header .wp-block-navigation a { color: var(--lesso-ink); }
.lesso-header .wp-block-navigation a:hover { color: var(--lesso-red); }
.lesso-header-cta .wp-block-button__link { padding: 11px 20px; }

.lesso-hero { position: relative; isolation: isolate; padding: clamp(54px, 8vw, 104px) 0; background: radial-gradient(circle at 85% 15%, rgba(215,25,32,.09), transparent 28%), linear-gradient(135deg,#fff 0%,#fff 58%,#fff7f7 100%); }
.lesso-hero:after { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -160px; bottom: -210px; border: 42px solid rgba(215,25,32,.045); border-radius: 50%; }
.lesso-hero__grid { gap: clamp(28px,5vw,68px); }
.lesso-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--lesso-red); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lesso-eyebrow:before { content: ""; width: 24px; height: 2px; background: currentColor; }
.lesso-hero h1 { max-width: 760px; font-size: clamp(2.45rem,5.2vw,4.7rem); letter-spacing: -.055em; line-height: 1.03; margin: 18px 0; }
.lesso-hero h1 strong { color: var(--lesso-red); }
.lesso-hero p { max-width: 610px; color: var(--lesso-muted); font-size: clamp(1rem,1.5vw,1.14rem); }
.lesso-hero__actions { gap: 12px; margin-top: 28px; }
.lesso-btn-secondary .wp-block-button__link { color: var(--lesso-ink); background: #fff; border: 1px solid var(--lesso-line); }
.lesso-btn-secondary .wp-block-button__link:hover { border-color: var(--lesso-red); color: var(--lesso-red); }

.lesso-pipe-visual { min-height: 350px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 36px 12px 36px 12px; background: linear-gradient(145deg,#fff 0%,#f9e9ea 100%); border: 1px solid rgba(215,25,32,.10); box-shadow: 0 24px 70px rgba(65,20,22,.10); }
.lesso-pipe-visual:before,.lesso-pipe-visual:after { content: ""; position:absolute; border-radius:50%; border:1px solid rgba(215,25,32,.13); }
.lesso-pipe-visual:before { width:290px;height:290px; }
.lesso-pipe-visual:after { width:390px;height:390px; }
.lesso-pipe-stack { position: relative; z-index: 1; display:flex; align-items:center; gap:14px; transform: rotate(-9deg); }
.lesso-pipe { width:68px; height:230px; border-radius:20px; position:relative; background:linear-gradient(90deg,#bfc3c9 0%,#fff 22%,#f0f1f3 55%,#c5c9ce 100%); box-shadow: 12px 18px 26px rgba(40,40,40,.16); }
.lesso-pipe:before { content:""; position:absolute; top:-11px; left:0; right:0; height:25px; border-radius:50%; background:linear-gradient(180deg,#fff,#d9dce0); border:1px solid #c6c9ce; }
.lesso-pipe--red { height:270px; background:linear-gradient(90deg,#a90e16 0%,#ef3b42 27%,#d71920 65%,#970b12 100%); }
.lesso-pipe--red:before { background:linear-gradient(180deg,#ff6a6f,#c9141c); border-color:#a50d14; }
.lesso-pipe--dark { height:195px; background:linear-gradient(90deg,#22252a 0%,#62676f 26%,#34383f 65%,#17191d 100%); }
.lesso-pipe--dark:before { background:linear-gradient(180deg,#777d86,#30343a); border-color:#22252a; }
.lesso-visual-caption { position:absolute; z-index:2; bottom:20px; left:22px; right:22px; display:flex; justify-content:space-between; gap:8px; color:#6b3033; font-size:.73rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }

.lesso-section { padding: clamp(52px,7vw,88px) 0; }
.lesso-section--soft { background: var(--lesso-soft); }
.lesso-section-heading { max-width: 720px; margin: 0 auto 34px; text-align:center; }
.lesso-section-heading h2 { font-size: clamp(1.85rem,3.5vw,2.8rem); margin: 10px 0; }
.lesso-section-heading p { color: var(--lesso-muted); margin: 0 auto; }
.lesso-category-grid { gap: 16px; }
.lesso-category-card { min-height: 210px; position:relative; overflow:hidden; padding:24px; border:1px solid var(--lesso-line); border-radius:20px 8px 20px 8px; background:#fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lesso-category-card:after { content:""; position:absolute; width:104px;height:104px;right:-38px;top:-38px;border-radius:50%;background:rgba(215,25,32,.07); }
.lesso-category-card:hover { transform: translateY(-4px); border-color:rgba(215,25,32,.35); box-shadow:0 16px 36px rgba(30,30,30,.07); }
.lesso-category-number { display:inline-flex; width:38px;height:38px;align-items:center;justify-content:center;border-radius:12px;background:#fff0f0;color:var(--lesso-red);font-size:.78rem;font-weight:900; }
.lesso-category-card h3 { margin:22px 0 7px; font-size:1.14rem; }
.lesso-category-card p { color:var(--lesso-muted);font-size:.9rem;margin:0; }
.lesso-category-card a { color:inherit; text-decoration:none; }
.lesso-category-card a:after { content:""; position:absolute; inset:0; }
.lesso-category-card a:hover { color:var(--lesso-red); }

.lesso-benefit-grid { gap:22px; }
.lesso-benefit { padding:24px 0; border-top:2px solid var(--lesso-red); }
.lesso-benefit h3 { font-size:1.08rem; margin:0 0 8px; }
.lesso-benefit p { color:var(--lesso-muted); margin:0; font-size:.94rem; }
.lesso-number { color:var(--lesso-red); font-weight:900; font-size:.78rem; letter-spacing:.12em; }
.lesso-application { background:#191b20; color:#fff; border-radius:30px 10px 30px 10px; padding:clamp(28px,5vw,54px); }
.lesso-application h2 { color:#fff; }
.lesso-application p { color:#c7cbd1; }
.lesso-application .wp-block-button__link { background:var(--lesso-red); }

.lesso-faq { border-bottom:1px solid var(--lesso-line); padding:18px 0; }
.lesso-faq h3 { font-size:1.05rem; margin:0 0 6px; }
.lesso-faq p { color:var(--lesso-muted); margin:0; }

.lesso-footer { background:#17191d; color:#fff; padding:48px 0 24px; }
.lesso-footer a { color:#fff; }
.lesso-footer a:hover { color:#ff777c; }
.lesso-footer .wp-block-site-title a { color:#fff; }
.lesso-footer__bottom { border-top:1px solid rgba(255,255,255,.14); margin-top:30px; padding-top:18px; color:#aeb4bd; font-size:.83rem; }
.lesso-footer p { color:#c4c8cf; }

/* Content and archive templates */
.lesso-content { padding-block: clamp(36px,6vw,76px); }
.lesso-entry-header { margin-bottom:28px; }
.lesso-entry-title { font-size:clamp(2rem,4vw,3.4rem); }
.lesso-meta { color:var(--lesso-muted); font-size:.88rem; }
.lesso-post-card { overflow:hidden; border:1px solid var(--lesso-line); border-radius:18px; background:#fff; }
.lesso-post-card .wp-block-post-featured-image img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.lesso-post-card__body { padding:20px; }
.lesso-post-card h2 { font-size:1.22rem; margin:0 0 8px; }
.lesso-post-card p { color:var(--lesso-muted); font-size:.92rem; }
.wp-block-post-template { gap:22px; }
.wp-block-post-navigation-link a,.wp-block-query-pagination a { font-weight:700; }
.wp-block-post-content a { text-decoration:underline; }
.wp-block-post-content h2,.wp-block-post-content h3 { margin-top:1.8em; }
.wp-block-post-content img { border-radius:12px; }

/* Optional WooCommerce styling */
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product { border:1px solid var(--lesso-line); border-radius:16px; padding:12px; overflow:hidden; }
.woocommerce ul.products li.product a img { border-radius:10px; }
.woocommerce ul.products li.product .button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button { background:var(--lesso-red); color:#fff; border-radius:999px; }
.woocommerce div.product .product_title { font-size:clamp(1.8rem,4vw,2.7rem); }
.woocommerce span.onsale { background:var(--lesso-red); }

@media (max-width: 781px) {
  .lesso-header__inner { min-height:70px; }
  .lesso-brand { min-width:0; }
  .lesso-hero__grid > .wp-block-column { flex-basis:100% !important; }
  .lesso-pipe-visual { min-height:290px; }
  .lesso-category-grid > .wp-block-column { flex-basis:calc(50% - 10px) !important; }
}
@media (max-width: 520px) {
  .lesso-container { width:min(calc(100% - 28px),var(--lesso-container)); }
  .lesso-header__inner { gap:10px; }
  .lesso-header-cta { display:none; }
  .lesso-hero { padding:46px 0 54px; }
  .lesso-pipe-visual { min-height:250px; border-radius:24px 8px 24px 8px; }
  .lesso-pipe { width:48px; height:170px; }
  .lesso-pipe--red { height:205px; }
  .lesso-pipe--dark { height:145px; }
  .lesso-visual-caption { left:14px; right:14px; bottom:14px; font-size:.62rem; }
  .lesso-category-grid > .wp-block-column { flex-basis:100% !important; }
  .lesso-category-card { min-height:160px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition-duration:.01ms !important; animation-duration:.01ms !important; }
}
