/*
Theme Name: Leaf & Life Custom
Theme URI: https://example.com/
Author: Custom build
Description: A bespoke botanical / Scandinavian inspired WooCommerce-ready block theme.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: leaf-life-custom
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ll-forest: #203427;
  --ll-moss: #7d8a70;
  --ll-sage: #d9d8c8;
  --ll-sand: #eee7da;
  --ll-cream: #f8f3eb;
  --ll-paper: #fffaf2;
  --ll-clay: #d65f49;
  --ll-line: rgba(32, 52, 39, 0.12);
  --ll-shadow: 0 24px 60px rgba(32, 52, 39, 0.10);
  --ll-serif: Georgia, 'Times New Roman', serif;
  --ll-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ll-cream);
  color: var(--ll-forest);
  font-family: var(--ll-sans);
  font-size: 16px;
  line-height: 1.65;
}

.wp-site-blocks {
  overflow-x: hidden;
}

a {
  text-underline-offset: 0.18em;
}

h1, h2, h3, h4, h5, h6,
.wp-block-site-title,
.ll-heading,
.ll-section-title {
  font-family: var(--ll-serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.ll-shell {
  width: min(1180px, calc(100vw - 48px));
  margin-inline: auto;
}

.ll-card {
  background: var(--ll-paper);
  border: 1px solid var(--ll-line);
  box-shadow: var(--ll-shadow);
}

/* Header */
.ll-site-header {
  margin-block-start: 24px;
  position: relative;
  z-index: 20;
}

.ll-header-inner {
  width: min(1180px, calc(100vw - 48px));
  margin-inline: auto;
  padding: 22px 32px;
  background: rgba(248, 243, 235, 0.92);
  border: 1px solid var(--ll-line);
  border-radius: 22px 22px 0 0;
  backdrop-filter: blur(12px);
}

.wp-block-site-title,
.wp-block-site-title a {
  color: var(--ll-forest);
  font-size: clamp(1.6rem, 2vw, 2.05rem);
  text-decoration: none;
}

.ll-nav .wp-block-navigation-item__content {
  color: var(--ll-forest);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

.ll-header-actions .wp-block-button__link,
.ll-small-button .wp-block-button__link {
  border-radius: 0;
  padding: 0.76rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  background: var(--ll-moss);
  color: #fff;
}

/* Home layout */
.ll-home-frame {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto 56px;
  overflow: hidden;
  border: 1px solid var(--ll-line);
  border-radius: 0 0 22px 22px;
  background: var(--ll-cream);
  box-shadow: var(--ll-shadow);
}

.ll-hero {
  min-height: 500px;
  padding: clamp(42px, 6vw, 74px);
  background:
    radial-gradient(circle at 80% 20%, rgba(125, 138, 112, 0.18), transparent 32%),
    linear-gradient(110deg, rgba(248, 243, 235, 0.98) 0%, rgba(238, 231, 218, 0.84) 48%, rgba(248, 243, 235, 0.60) 100%);
}

.ll-hero-copy {
  max-width: 500px;
  position: relative;
  z-index: 2;
}

.ll-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(32, 52, 39, 0.62);
  margin-block-end: 22px;
}

.ll-heading {
  font-size: clamp(3rem, 6.7vw, 5.7rem);
  margin: 0 0 22px;
}

.ll-lede {
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  color: rgba(32, 52, 39, 0.82);
  max-width: 430px;
}

.ll-primary-button .wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link) {
  border-radius: 0;
  padding: 0.95rem 1.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  background: var(--ll-clay);
  color: #fff;
  border: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.ll-primary-button .wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:not(.is-link):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(214, 95, 73, 0.22);
  opacity: 0.96;
}

.ll-hero-visual {
  min-height: 410px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 42% 42%, rgba(32, 52, 39, 0.11), transparent 18%),
    linear-gradient(145deg, rgba(255,255,255,0.5), rgba(217,216,200,0.45)),
    var(--ll-sand);
  position: relative;
  overflow: hidden;
}

.ll-hero-visual::before,
.ll-hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 999px 0 999px 0;
  background: rgba(32, 52, 39, 0.78);
  transform-origin: bottom left;
  filter: drop-shadow(0 16px 18px rgba(32, 52, 39, 0.14));
}

.ll-hero-visual::before {
  width: 120px;
  height: 52px;
  top: 34%;
  left: 46%;
  transform: rotate(-32deg);
  box-shadow:
    -90px 92px 0 -12px rgba(32, 52, 39, 0.72),
    96px -62px 0 -10px rgba(32, 52, 39, 0.70),
    130px 82px 0 -14px rgba(32, 52, 39, 0.62),
    -140px -28px 0 -18px rgba(32, 52, 39, 0.62);
}

.ll-hero-visual::after {
  width: 96px;
  height: 42px;
  top: 48%;
  left: 30%;
  transform: rotate(35deg);
  opacity: 0.9;
  box-shadow:
    88px 62px 0 -16px rgba(32, 52, 39, 0.56),
    160px -42px 0 -14px rgba(32, 52, 39, 0.64);
}

.ll-feature-strip {
  background: var(--ll-sage);
  border-top: 1px solid var(--ll-line);
  border-bottom: 1px solid var(--ll-line);
  padding: 28px clamp(24px, 5vw, 58px);
}

.ll-feature-item {
  border-right: 1px solid rgba(32, 52, 39, 0.12);
  padding-right: 28px;
}

.ll-feature-item:last-child { border-right: 0; }

.ll-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(32, 52, 39, 0.35);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ll-serif);
  font-size: 1.4rem;
  color: var(--ll-forest);
}

.ll-feature-title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 4px;
}

.ll-feature-text {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(32, 52, 39, 0.76);
}

.ll-mission {
  padding: 0;
}

.ll-image-panel,
.ll-dark-panel,
.ll-product-panel {
  min-height: 260px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(32, 52, 39, 0.14), rgba(125, 138, 112, 0.18)), var(--ll-sand);
}

.ll-image-panel::before,
.ll-dark-panel::before {
  content: '';
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(32, 52, 39, 0.18);
  border-radius: 44% 56% 48% 52%;
  transform: rotate(-12deg);
}

.ll-mission-copy,
.ll-product-card {
  padding: clamp(34px, 5vw, 60px);
  background: var(--ll-paper);
}

.ll-section-title {
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  margin: 0 0 18px;
}

.ll-text-link a {
  text-decoration: none;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.ll-quote-band {
  background: var(--ll-moss);
  color: #fff;
  padding: 32px;
  text-align: center;
}

.ll-quote-band p {
  font-family: var(--ll-serif);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-style: italic;
  margin: 0 0 8px;
}

.ll-quote-band cite {
  font-size: 0.8rem;
  font-style: normal;
  opacity: 0.78;
}

.ll-dark-panel {
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(32, 52, 39, 0.88), rgba(32, 52, 39, 0.48)),
    radial-gradient(circle at 70% 20%, rgba(217, 216, 200, 0.20), transparent 28%),
    var(--ll-forest);
  color: #fff;
  padding: clamp(34px, 5vw, 58px);
  display: flex;
  align-items: flex-end;
}

.ll-dark-panel .ll-section-title,
.ll-dark-panel p,
.ll-dark-panel a { color: #fff; }

.ll-products-section {
  padding: clamp(34px, 5vw, 56px);
  background: var(--ll-cream);
}

.ll-product-tile {
  background: var(--ll-paper);
  border: 1px solid var(--ll-line);
  padding: 16px;
}

.ll-product-tile .wp-block-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ll-sage);
}

/* Footer */
.ll-site-footer {
  padding: 44px 0 60px;
  color: rgba(32, 52, 39, 0.72);
}

.ll-footer-inner {
  width: min(1180px, calc(100vw - 48px));
  margin-inline: auto;
  border-top: 1px solid var(--ll-line);
  padding-top: 28px;
}

/* General pages */
.ll-page-header {
  width: min(920px, calc(100vw - 48px));
  margin: 60px auto 30px;
  text-align: center;
}

.ll-content-area {
  width: min(920px, calc(100vw - 48px));
  margin-inline: auto;
}

.ll-post-card {
  background: var(--ll-paper);
  border: 1px solid var(--ll-line);
  padding: 30px;
  margin-bottom: 24px;
}

/* WooCommerce */
.woocommerce-page .site-main,
.woocommerce .site-main {
  width: min(1180px, calc(100vw - 48px));
  margin: 48px auto;
}

.woocommerce-products-header,
.woocommerce div.product,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  background: var(--ll-paper);
  border: 1px solid var(--ll-line);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--ll-shadow);
}

.woocommerce ul.products {
  margin-top: 34px;
}

.woocommerce ul.products li.product,
.wc-block-grid__product {
  background: var(--ll-paper);
  border: 1px solid var(--ll-line);
  padding: 18px !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
  transform: translateY(-3px);
  box-shadow: var(--ll-shadow);
}

.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img,
.wc-block-grid__product-image img {
  border-radius: 0;
  background: var(--ll-sage);
}

.woocommerce-loop-product__title,
.wc-block-grid__product-title,
.woocommerce div.product .product_title {
  font-family: var(--ll-serif);
  color: var(--ll-forest);
  letter-spacing: -0.03em;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.wc-block-grid__product-price {
  color: var(--ll-moss);
  font-weight: 800;
}

.woocommerce span.onsale {
  background: var(--ll-clay);
  color: #fff;
  border-radius: 0;
  min-height: auto;
  min-width: auto;
  padding: 0.4rem 0.65rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--ll-moss);
  background: var(--ll-paper);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-text-input input[type='email'],
.wc-block-components-form .wc-block-components-text-input input[type='text'],
.wc-block-components-form .wc-block-components-text-input input[type='tel'] {
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 0;
  padding: 0.86rem 0.95rem;
  color: var(--ll-forest);
}

.woocommerce table.shop_table,
.woocommerce-cart-form,
.woocommerce-checkout-review-order {
  border-color: var(--ll-line);
  background: var(--ll-paper);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-radius: 0;
  background: var(--ll-sage);
  border-color: var(--ll-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--ll-paper);
}

/* Responsive */
@media (max-width: 860px) {
  .ll-header-inner {
    padding: 18px 20px;
    border-radius: 18px 18px 0 0;
  }

  .ll-home-frame {
    width: min(100% - 24px, 1180px);
  }

  .ll-shell,
  .ll-header-inner,
  .ll-footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .ll-hero {
    padding: 36px 24px;
  }

  .ll-hero-visual {
    min-height: 260px;
  }

  .ll-feature-item {
    border-right: 0;
    border-bottom: 1px solid rgba(32, 52, 39, 0.12);
    padding: 0 0 18px;
  }

  .ll-feature-item:last-child { border-bottom: 0; }

  .woocommerce-page .site-main,
  .woocommerce .site-main {
    width: min(100% - 24px, 1180px);
  }
}
