/*
Theme Name: Lucidity CBD Rebuild
Theme URI: https://www.luciditycbd.com/
Author: Rebuild Studio
Description: Clean, lightweight WooCommerce theme rebuilt for Lucidity CBD. Designed to replace the inherited legacy theme while preserving WordPress/WooCommerce content and URLs.
Version: 2.0.1
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: lucidity-cbd-rebuild
*/

:root {
  --lc-green: #1e5b43;
  --lc-green-dark: #123f30;
  --lc-green-soft: #eaf3ee;
  --lc-cream: #f8f6f0;
  --lc-ink: #1c2621;
  --lc-muted: #65716b;
  --lc-white: #fff;
  --lc-border: #dfe6e1;
  --lc-radius: 16px;
  --lc-shadow: 0 12px 40px rgba(18,63,48,.10);
  --lc-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--lc-ink); background: var(--lc-white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lc-green); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--lc-green-dark); }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--lc-container), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-topbar { background: var(--lc-green-dark); color: #fff; font-size: .84rem; }
.site-topbar .container { display:flex; justify-content:center; padding: 8px 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--lc-border); backdrop-filter: blur(12px); }
.header-inner { min-height: 82px; display:flex; align-items:center; gap: 28px; }
.site-brand { display:flex; align-items:center; flex: 0 0 auto; text-decoration:none; }
.site-brand img { width: 72px; height:72px; object-fit: contain; }
.site-brand-text { color: var(--lc-green-dark); font-weight: 800; letter-spacing: .04em; font-size: 1.05rem; text-transform: uppercase; }
.main-nav { margin-left:auto; }
.main-nav ul { list-style:none; display:flex; align-items:center; gap: 24px; margin:0; padding:0; }
.main-nav a { color: var(--lc-ink); font-weight: 650; text-decoration:none; font-size:.94rem; }
.main-nav a:hover { color:var(--lc-green); }
.header-actions { display:flex; gap:10px; align-items:center; }
.icon-link { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--lc-border); border-radius:999px; color:var(--lc-green-dark); text-decoration:none; }
.menu-toggle { display:none; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid transparent; border-radius:999px; padding: 12px 20px; font-weight:750; text-decoration:none; cursor:pointer; }
.btn-primary { background:var(--lc-green); color:#fff; }
.btn-primary:hover { background:var(--lc-green-dark); color:#fff; }
.btn-light { background:#fff; color:var(--lc-green-dark); }
.btn-outline { border-color:var(--lc-green); color:var(--lc-green); background:transparent; }

.hero { position:relative; min-height: 540px; display:flex; align-items:center; overflow:hidden; background: var(--lc-cream); }
.hero::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(18,63,48,.86) 0%, rgba(18,63,48,.58) 43%, rgba(18,63,48,.10) 76%, rgba(18,63,48,0) 100%); z-index:1; }
.hero-media { position:absolute; inset:0; background-size:cover; background-position:center; }
.hero-content { position:relative; z-index:2; width:min(720px,100%); color:#fff; padding: 90px 0; }
.hero-kicker { text-transform:uppercase; letter-spacing:.16em; font-size:.78rem; font-weight:800; opacity:.9; }
.hero h1 { font-size:clamp(2.8rem, 7vw, 5.5rem); line-height:.98; letter-spacing:-.045em; margin: 12px 0 20px; }
.hero p { font-size:clamp(1rem, 2vw, 1.25rem); max-width:620px; margin:0 0 28px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }

.section { padding: 82px 0; }
.section-soft { background:var(--lc-cream); }
.section-green { background:var(--lc-green-dark); color:#fff; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:32px; }
.section-heading h2 { margin:0; font-size:clamp(2rem,4vw,3rem); line-height:1.05; letter-spacing:-.035em; }
.section-heading p { max-width:620px; color:var(--lc-muted); margin:0; }
.section-green .section-heading p { color:rgba(255,255,255,.78); }

.need-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.need-card { min-height:190px; border-radius:var(--lc-radius); background:#fff; border:1px solid var(--lc-border); padding:24px; display:flex; flex-direction:column; justify-content:end; box-shadow:0 5px 20px rgba(18,63,48,.04); text-decoration:none; color:var(--lc-ink); transition:transform .2s ease, box-shadow .2s ease; }
.need-card:hover { transform:translateY(-3px); box-shadow:var(--lc-shadow); color:var(--lc-green-dark); }
.need-card strong { font-size:1.18rem; }
.need-card span { color:var(--lc-muted); font-size:.9rem; }

.products-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.woocommerce ul.products, .woocommerce-page ul.products { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin:0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display:none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width:auto; float:none; margin:0; padding:0; }
.product-card, .woocommerce ul.products li.product { background:#fff; border:1px solid var(--lc-border); border-radius:var(--lc-radius); overflow:hidden; box-shadow:0 5px 18px rgba(18,63,48,.04); }
.product-card-image { aspect-ratio:1/1; background:#f5f6f3; display:grid; place-items:center; }
.product-card-body { padding:18px; }
.product-card h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:1rem; line-height:1.3; margin:0 0 8px; color:var(--lc-ink); }
.product-card .price, .woocommerce ul.products li.product .price { color:var(--lc-green); font-weight:800; }
.woocommerce ul.products li.product a.button { margin: 10px 18px 18px; width:calc(100% - 36px); text-align:center; }

.value-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.value-card { padding:30px; border-radius:var(--lc-radius); background:#fff; color:var(--lc-ink); }
.value-card .value-number { color:var(--lc-green); font-size:.75rem; font-weight:900; letter-spacing:.15em; text-transform:uppercase; }
.value-card h3 { margin:8px 0; }
.value-card p { margin:0; color:var(--lc-muted); }

.editor-content { max-width: 820px; }
.editor-content h1, .editor-content h2, .editor-content h3 { line-height:1.15; letter-spacing:-.02em; }
.editor-content h1 { font-size:clamp(2.4rem,5vw,4rem); }
.editor-content h2 { font-size:2.2rem; margin-top:2em; }
.editor-content p, .editor-content li { font-size:1.05rem; }

.site-main > .page-hero { padding:70px 0 30px; background:var(--lc-cream); }
.page-hero h1 { margin:0; font-size:clamp(2.4rem,5vw,4rem); line-height:1.05; }

.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.post-card { border:1px solid var(--lc-border); border-radius:var(--lc-radius); overflow:hidden; background:#fff; }
.post-card-body { padding:22px; }
.post-card h3 { margin:0 0 8px; line-height:1.2; }
.post-card p { margin:0; color:var(--lc-muted); }

.newsletter { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.newsletter p { color:rgba(255,255,255,.78); }
.newsletter-form { display:flex; gap:10px; }
.newsletter-form input { min-width:0; flex:1; padding:13px 16px; border-radius:999px; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.1); color:#fff; }

.site-footer { background:#0d2b21; color:#fff; padding:60px 0 30px; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:35px; }
.site-footer a { color:rgba(255,255,255,.82); text-decoration:none; }
.site-footer a:hover { color:#fff; }
.site-footer h3 { margin:0 0 12px; font-size:1rem; text-transform:uppercase; letter-spacing:.08em; }
.site-footer ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.15); margin-top:40px; padding-top:20px; display:flex; justify-content:space-between; gap:20px; color:rgba(255,255,255,.65); font-size:.85rem; }

.woocommerce .site-main, .woocommerce-page .site-main { padding-bottom:70px; }
.woocommerce .woocommerce-breadcrumb { padding-top:25px; color:var(--lc-muted); }
.woocommerce div.product { padding-top:30px; }
.woocommerce div.product .product_title { font-size:clamp(2rem,4vw,3.4rem); line-height:1.05; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color:var(--lc-green); font-weight:800; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button { background:var(--lc-green); color:#fff; border-radius:999px; padding:12px 20px; font-weight:750; }
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce input.button:hover { background:var(--lc-green-dark); color:#fff; }
.woocommerce .quantity .qty { min-height:44px; border:1px solid var(--lc-border); border-radius:999px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color:var(--lc-green); }

.site-content img { border-radius:10px; }
.alignwide { width:min(1200px,calc(100% - 40px)); margin-inline:auto; }
.alignfull { width:100%; }

@media (max-width: 960px) {
  .main-nav { display:none; }
  .menu-toggle { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--lc-border); border-radius:999px; background:#fff; }
  .header-inner { justify-content:space-between; }
  .need-grid, .products-grid, .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns:repeat(2,1fr); }
  .value-grid, .blog-grid { grid-template-columns:1fr 1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width:min(var(--lc-container),calc(100% - 28px)); }
  .site-brand img { width:58px; height:58px; }
  .header-inner { min-height:68px; }
  .hero { min-height:560px; }
  .hero-content { padding:70px 0; }
  .need-grid, .products-grid, .woocommerce ul.products, .woocommerce-page ul.products, .value-grid, .blog-grid, .newsletter, .footer-grid { grid-template-columns:1fr; }
  .section { padding:60px 0; }
  .section-heading { display:block; }
  .section-heading p { margin-top:12px; }
  .newsletter-form { display:grid; }
  .footer-bottom { display:block; }
}
