/*
 * LG Theme base styles.
 *
 * Everything reads the LG design tokens (with safe fallbacks if LG Core
 * isn't active) and sits inside :where() so skins and Elementor always win.
 */

/* ---- Reset and base ----------------------------------------------------- */
:where(*,*::before,*::after){box-sizing:border-box}
:where(html){-webkit-text-size-adjust:100%;text-size-adjust:100%}
:where(body){margin:0;background:var(--lg-color-paper,#fff);color:var(--lg-color-ink,#1a1a1a);font-family:var(--lg-font-body,system-ui,sans-serif);font-weight:var(--lg-font-body-weight,400);font-size:var(--lg-size-base,17px);line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:clip}
:where(img,svg,video,iframe){max-width:100%;height:auto}
:where(img){display:block}
:where(a){color:var(--lg-color-primary,#2f5d50)}
:where(a:hover){text-decoration-thickness:2px}
:where(h1,h2,h3,h4,h5,h6){font-family:var(--lg-font-display,Georgia,serif);font-weight:var(--lg-font-display-weight,400);line-height:1.15;margin:0 0 .5em;text-wrap:balance}
:where(p,ul,ol,figure,blockquote,table){margin:0 0 1em}
:where(:focus-visible){outline:2px solid var(--lg-color-primary,#2f5d50);outline-offset:3px}
:where(.lg-site-main:focus){outline:0}

.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.lg-skip{position:absolute;left:12px;top:-60px;z-index:1000;padding:10px 16px;background:var(--lg-color-ink,#111);color:var(--lg-color-paper,#fff);text-decoration:none}
.lg-skip:focus{top:12px}

/* ---- Layout -------------------------------------------------------------- */
:where(.lg-container){width:min(var(--lg-space-container,1240px),100% - 2 * var(--lg-space-gutter,24px));margin-inline:auto}
:where(.lg-container--narrow){width:min(760px,100% - 2 * var(--lg-space-gutter,24px))}
:where(.lg-page){padding:clamp(48px,8vw,110px) 0}
:where(body.lg-has-site-header:not(.lg-has-hero)) :where(.lg-page){padding-top:clamp(40px,6vw,80px)}
:where(.lg-page__head){margin-bottom:40px}
:where(.lg-page__title){font-size:var(--lg-size-h2,clamp(32px,4.4vw,56px))}
:where(.lg-page__meta){color:var(--lg-color-muted,#6b6b6b);font-size:14px}
:where(.lg-page__image){margin:0 0 32px}

/* Readable long-form content (blog posts, legal pages). */
:where(.lg-prose){font-size:1.05em}
:where(.lg-prose) :where(h2){font-size:1.8em;margin-top:1.6em}
:where(.lg-prose) :where(h3){font-size:1.35em;margin-top:1.4em}
:where(.lg-prose) :where(ul,ol){padding-left:1.3em}
:where(.lg-prose) :where(blockquote){margin:1.5em 0;padding-left:1.2em;border-left:3px solid var(--lg-color-primary,#2f5d50);font-family:var(--lg-font-display,Georgia,serif);font-size:1.2em}
:where(.lg-prose) :where(table){width:100%;border-collapse:collapse}
:where(.lg-prose) :where(td,th){padding:8px;border-bottom:1px solid var(--lg-color-rule,#e4e4e0);text-align:left}
.alignwide{width:min(1100px,100vw - 48px);margin-inline:calc(50% - min(550px,50vw - 24px))}
.alignfull{width:100vw;margin-inline:calc(50% - 50vw)}
.wp-caption-text,figcaption{font-size:14px;color:var(--lg-color-muted,#6b6b6b)}

/* Blog list */
:where(.lg-posts){display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:40px 28px}
:where(.lg-post-card__image img){width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--lg-radius-card,0)}
:where(.lg-post-card__meta){margin:16px 0 6px;color:var(--lg-color-muted,#6b6b6b);font-size:13px}
:where(.lg-post-card__title){font-size:24px}
:where(.lg-post-card__title a){color:inherit;text-decoration:none}
:where(.nav-links){display:flex;gap:8px;margin-top:48px}
:where(.page-numbers){padding:6px 12px;border:1px solid var(--lg-color-rule,#e4e4e0);text-decoration:none}
:where(.page-numbers.current){background:var(--lg-color-ink,#111);color:var(--lg-color-paper,#fff)}

/* ---- Forms and buttons (WordPress, Contact Form 7, WooCommerce) ---------- */
:where(input:not([type=checkbox],[type=radio],[type=submit],[type=button]),select,textarea){width:100%;max-width:100%;padding:12px 14px;border:1px solid var(--lg-color-rule,#d8d8d4);border-radius:var(--lg-radius-button,0);background:var(--lg-color-paper,#fff);color:inherit;font:inherit}
:where(input,select,textarea):focus{outline:2px solid var(--lg-color-primary,#2f5d50);outline-offset:0;border-color:transparent}
:where(label){display:inline-block;margin-bottom:6px;font-weight:500}
:where(button:not(.lg *),input[type=submit],input[type=button],.button,.lg-button,.wp-element-button,.wpcf7-submit){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 26px;border:0;border-radius:var(--lg-radius-button,0);background:var(--lg-grad-primary,var(--lg-color-primary,#2f5d50));color:var(--lg-color-on-primary,#fff);font:inherit;font-weight:600;text-decoration:none;cursor:pointer;transition:opacity .2s,transform .2s}
:where(button:not(.lg *),input[type=submit],.button,.lg-button):hover{transform:translateY(-1px)}

/* ---- WooCommerce: tidy, token-driven defaults. Skins refine. ---------------- */
:where(.lg-page--shop) :where(.woocommerce-products-header__title,.product_title){font-size:var(--lg-size-h2,clamp(32px,4.4vw,56px))}
:where(.woocommerce ul.products){display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin:0;padding:0;list-style:none}
:where(.woocommerce ul.products)::before,:where(.woocommerce ul.products)::after{display:none}
:where(.woocommerce ul.products li.product){width:auto!important;margin:0!important;float:none!important}
:where(.woocommerce ul.products li.product img){background:var(--lg-color-alt,#f4f4f1);aspect-ratio:1;object-fit:contain;margin-bottom:14px}
:where(.woocommerce ul.products li.product .woocommerce-loop-product__title){font-family:var(--lg-font-display,Georgia,serif);font-size:19px;padding:0}
:where(.woocommerce .price){color:var(--lg-color-ink,#1a1a1a)!important;font-size:15px}
:where(.woocommerce span.onsale){background:var(--lg-color-primary,#2f5d50);color:var(--lg-color-on-primary,#fff);border-radius:0;min-height:0;min-width:0;padding:4px 10px;line-height:1.4}
:where(.woocommerce .woocommerce-message,.woocommerce .woocommerce-info,.woocommerce .woocommerce-error){border-top-color:var(--lg-color-primary,#2f5d50)}
:where(.woocommerce table.shop_table){border-radius:0;border-color:var(--lg-color-rule,#e4e4e0)}
:where(.woocommerce div.product){display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,6vw,80px)}
:where(.woocommerce div.product div.images,.woocommerce div.product div.summary){width:100%!important;float:none!important}
:where(.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .upsells){grid-column:1/-1}
@media (max-width:900px){:where(.woocommerce ul.products){grid-template-columns:1fr 1fr;gap:18px}:where(.woocommerce div.product){grid-template-columns:1fr}}

/* ---- Fallback header/footer (before LG templates are chosen) ---------------- */
:where(.lg-default-header){border-bottom:1px solid var(--lg-color-rule,#e4e4e0)}
:where(.lg-default-header__in){display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px;flex-wrap:wrap}
:where(.lg-default-header__brand){font-family:var(--lg-font-display,Georgia,serif);font-size:22px;color:inherit;text-decoration:none}
:where(.lg-default-header__brand img){max-height:40px;width:auto}
:where(.lg-default-header__nav ul){display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;padding:0;list-style:none}
:where(.lg-default-header__nav a){color:inherit;text-decoration:none}
:where(.lg-default-footer){padding:40px 0;border-top:1px solid var(--lg-color-rule,#e4e4e0);font-size:14px;color:var(--lg-color-muted,#6b6b6b)}
:where(.lg-default-footer__in){display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
:where(.lg-default-footer ul){display:flex;gap:18px;margin:0;padding:0;list-style:none}
