/*
Theme Name: LenaPip Adventures
Theme URI: https://example.com/lenapip-adventures
Author: LenaPip Adventures
Description: A warm, easy-to-maintain WordPress block theme for the LenaPip coloring-book collection. Includes an Amazon storefront and WooCommerce support.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lenapip-adventures
Tags: block-patterns, full-site-editing, e-commerce, one-column, custom-colors
*/

:root {
  --lp-cream: #fff3c9;
  --lp-paper: #fffaf0;
  --lp-teal: #08686a;
  --lp-teal-dark: #034d50;
  --lp-sun: #f8bd34;
  --lp-coral: #ee735b;
  --lp-lavender: #9f8cd9;
  --lp-leaf: #7da946;
  --lp-ink: #173e3b;
  --lp-muted: #516b62;
  --lp-shadow: 0 24px 60px rgba(37, 80, 54, .18);
}

html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 5% 18%, rgba(244,150,103,.17) 0 9%, transparent 20%),
    radial-gradient(circle at 95% 48%, rgba(248,189,52,.18) 0 8%, transparent 19%),
    linear-gradient(180deg, #fff6d7 0%, #fffaf0 46%, #fff0c8 100%);
}
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

.lp-header {
  width: 100%;
  min-height: 70px;
  padding: 16px clamp(18px, 3vw, 46px) !important;
  position: relative;
  background: rgba(255, 248, 233, .96);
  z-index: 10;
}
.home .lp-header {
  width: auto;
  padding: 11px 18px !important;
  position: absolute;
  inset: 18px clamp(18px, 3vw, 46px) auto;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255, 248, 233, .82);
  box-shadow: 0 18px 50px rgba(63, 68, 28, .16);
  backdrop-filter: blur(16px);
}
.lp-header .wp-block-site-title { font-family: Georgia, serif; font-size: 24px; font-weight: 800; }
.lp-header .wp-block-site-title a { text-decoration: none; }
.lp-header .wp-block-navigation-item__content { font-size: 14px; font-weight: 800; }
.lp-header .wp-block-button__link { padding: 11px 20px; border: 2px solid var(--lp-teal); background: rgba(255,255,255,.5); color: var(--lp-teal-dark); }

.lp-hero {
  min-height: max(760px, 100vh);
  display: flex !important;
  align-items: flex-end;
  padding: 120px clamp(18px, 5vw, 78px) 36px !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(54,54,14,.03) 45%, rgba(21,64,49,.48) 100%),
    url("assets/images/og.png") center / cover no-repeat;
}
.lp-hero::before {
  content: "✦  ·  ✿  ·  ✦";
  position: absolute;
  right: 8%;
  bottom: 154px;
  color: rgba(255,242,175,.82);
  font-size: 18px;
  letter-spacing: .4em;
  z-index: -1;
}
.lp-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lp-hero-ribbon {
  width: min(1180px, 100%);
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: 1.1fr auto;
  align-items: center;
  gap: 8px 32px !important;
  padding: 24px 28px !important;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 30px 30px 22px 22px;
  color: var(--lp-teal-dark);
  background: rgba(255, 250, 230, .86);
  box-shadow: 0 24px 70px rgba(31,68,45,.28);
  backdrop-filter: blur(18px);
}
.lp-hero-ribbon h2 { margin: 4px 0 0 !important; font-size: clamp(29px, 3vw, 46px) !important; line-height: 1 !important; letter-spacing: -.035em; }
.lp-hero-ribbon .lp-eyebrow { margin: 0; }
.lp-hero-ribbon .lp-actions { margin: 0 !important; }
.lp-hero-ribbon .lp-trust { grid-column: 1 / -1; padding-top: 5px; }
.lp-eyebrow { color: var(--lp-coral); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.lp-hero-title { margin: 16px 0 24px !important; font-size: clamp(54px, 6.6vw, 98px) !important; line-height: .95 !important; letter-spacing: -.045em; }
.lp-hero-title mark { color: var(--lp-teal); background: transparent; font-style: italic; font-weight: 400; }
.lp-intro { max-width: 620px; color: var(--lp-muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; }
.lp-actions { margin-block: 34px !important; }
.lp-actions .wp-block-button__link { min-height: 52px; display: inline-flex; align-items: center; padding: 0 24px; font-weight: 900; background: linear-gradient(135deg, var(--lp-teal), #04878a); box-shadow: 0 7px 0 #034a45, 0 13px 28px rgba(3,74,69,.22); }
.lp-actions .is-style-outline .wp-block-button__link { box-shadow: none; background: rgba(255,255,255,.58); }
.lp-trust { display: flex !important; flex-wrap: wrap; gap: 10px 22px !important; color: var(--lp-muted); font-size: 13px; font-weight: 700; }
.lp-trust p::before { content: "✓"; color: var(--lp-teal); margin-right: 7px; }

.lp-hero-books { min-height: 590px; position: relative; }
.lp-book-card {
  width: clamp(230px, 21vw, 330px);
  padding: 13px 13px 18px !important;
  position: absolute;
  border-radius: 22px;
  background: var(--lp-paper);
  box-shadow: var(--lp-shadow);
  transform-origin: 50% 100%;
}
.lp-book-card figure { margin: 0; }
.lp-book-card img { display: block; width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; border-radius: 14px; }
.lp-book-card .wp-element-caption { margin: 13px 4px 0; color: var(--lp-teal-dark); font-family: Georgia, serif; font-size: 18px; text-align: center; }
.lp-card-main { left: 28%; top: 2%; z-index: 3; transform: rotate(-1deg); }
.lp-card-back { left: 1%; top: 19%; z-index: 1; transform: rotate(-9deg) scale(.88); }
.lp-card-front { right: 0; top: 24%; z-index: 2; transform: rotate(9deg) scale(.87); }

.lp-promise { position: relative; overflow: hidden; padding: 74px 24px 94px !important; text-align: center; background: linear-gradient(135deg, #034b4e, #087074); color: white; }
.lp-promise::before, .lp-promise::after { position: absolute; color: rgba(255,224,145,.5); font-family: Georgia, serif; font-size: 84px; line-height: 1; }
.lp-promise::before { content: "❀"; left: 6%; bottom: 15px; transform: rotate(-12deg); }
.lp-promise::after { content: "✿"; right: 7%; top: 12px; transform: rotate(13deg); }
.lp-promise .lp-eyebrow { color: #ffd98a; }
.lp-promise h2 { max-width: 820px; margin: 14px auto 0; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; }
.lp-section { max-width: 1440px; margin: 0 auto !important; padding: 110px clamp(24px, 6vw, 88px) !important; }
.lp-section:not(.lp-about):not(.lp-faq) { position: relative; }
.lp-section:not(.lp-about):not(.lp-faq)::before { content: "✿"; position: absolute; right: 3vw; top: 70px; color: rgba(238,115,91,.22); font-size: 90px; transform: rotate(12deg); }
.lp-section-heading { display: grid !important; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 54px !important; }
.lp-section-heading h2, .lp-about h2, .lp-faq h2, .lp-final-cta h2 { margin: 8px 0 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
.lp-section-heading > p { color: var(--lp-muted); line-height: 1.7; font-size: 18px; }

.lp-book-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 32px 24px !important; }
.lp-catalog-card {
  padding: 12px 12px 25px !important;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px 28px 24px 24px;
  background: rgba(255,250,238,.78);
  box-shadow: 0 14px 35px rgba(64,84,37,.12), inset 0 0 0 1px rgba(248,189,52,.1);
  backdrop-filter: blur(9px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lp-catalog-card:nth-child(3n+2) { transform: translateY(14px) rotate(.25deg); }
.lp-catalog-card:nth-child(3n) { transform: rotate(-.25deg); }
.lp-catalog-card:hover { transform: translateY(-7px) rotate(0); box-shadow: 0 24px 52px rgba(44,79,41,.18); }
.lp-cover { position: relative; margin: 0 !important; overflow: hidden; border-radius: 20px 20px 15px 15px; background: #e8f1dc; }
.lp-cover img { display: block; width: 100%; aspect-ratio: 1 / 1.07; object-fit: cover; transition: transform .35s ease; }
.lp-catalog-card:hover .lp-cover img { transform: scale(1.035); }
.lp-status { display: inline-block; margin: 10px 8px 0 !important; padding: 7px 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; color: var(--lp-teal-dark); background: rgba(247,232,186,.82); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lp-available .lp-status { background: var(--lp-sun); }
.lp-book-number { margin: 16px 8px 5px !important; color: var(--lp-coral); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.lp-catalog-card h3 { margin: 0 8px !important; font-size: 25px; line-height: 1.08; }
.lp-description { min-height: 44px; margin: 10px 8px 0 !important; color: var(--lp-muted); font-size: 14px; line-height: 1.5; }
.lp-card-actions { padding: 14px 8px 0 !important; gap: 8px !important; }
.lp-card-actions .wp-block-button { flex: 1; }
.lp-card-actions .wp-block-button__link { width: 100%; padding: 10px 8px; border-radius: 9px; font-size: 12px; font-weight: 900; }

.lp-about {
  display: grid !important;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(44px, 8vw, 120px) !important;
  align-items: center;
  max-width: 1320px;
  margin-block: 40px !important;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 64px 28px 64px 28px;
  background: linear-gradient(135deg, rgba(255,245,206,.82), rgba(237,244,215,.78));
  box-shadow: 0 30px 80px rgba(65,83,38,.12);
}
.lp-about-art { position: relative; }
.lp-about-art::before { content: ""; position: absolute; inset: -26px 30px 30px -26px; border-radius: 44% 56% 54% 46%; background: #dfeecb; transform: rotate(-4deg); }
.lp-about-art figure { position: relative; margin: 0; }
.lp-about-art img { width: 100%; border-radius: 38% 48% 42% 50%; box-shadow: var(--lp-shadow); }
.lp-about-copy > p:not(.lp-eyebrow) { color: var(--lp-muted); font-size: 19px; line-height: 1.75; }
.lp-about-copy li { margin-block: 10px; font-weight: 800; }
.lp-about-copy li::marker { color: var(--lp-sun); }
.lp-feature-strip { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1px !important; border-block: 1px solid rgba(6,63,59,.11); }
.lp-stat { padding: 48px 20px !important; text-align: center; background: linear-gradient(180deg, #e8f1ce, #f2e7b7); }
.lp-stat:nth-child(even) { background: linear-gradient(180deg, #fce3ba, #f7d7bc); }
.lp-stat strong { color: var(--lp-teal); font-family: Georgia, serif; font-size: 50px; }
.lp-stat p { margin: 0; color: var(--lp-muted); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.lp-faq { display: grid !important; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 8vw, 110px) !important; position: relative; }
.lp-faq::before { content: "✦"; position: absolute; left: 4%; bottom: 40px; color: rgba(159,140,217,.35); font-size: 70px; }
.lp-faq-item { margin-bottom: 14px !important; padding: 22px 24px !important; border: 1px solid rgba(8,104,106,.13); border-radius: 22px; background: rgba(255,250,238,.7); box-shadow: 0 8px 24px rgba(48,77,48,.06); }
.lp-faq-item h3 { margin: 0 0 8px; font-size: 22px; }
.lp-faq-item p { margin: 0; color: var(--lp-muted); line-height: 1.7; }
.lp-final-cta { position: relative; overflow: hidden; padding: 110px 24px !important; text-align: center; background: radial-gradient(circle at 14% 60%, rgba(250,189,52,.3) 0 9%, transparent 20%), radial-gradient(circle at 88% 35%, rgba(159,140,217,.2) 0 8%, transparent 19%), linear-gradient(135deg, #f9ddbf, #f5cdbd 50%, #f3e2a9); }
.lp-final-cta::before, .lp-final-cta::after { position: absolute; color: rgba(3,77,80,.18); font-size: 92px; }
.lp-final-cta::before { content: "❀"; left: 7%; bottom: 15px; }
.lp-final-cta::after { content: "✿"; right: 8%; top: 10px; }
.lp-final-cta h2 { max-width: 800px; margin: 10px auto 34px; }
.lp-footer { padding: 44px clamp(24px, 6vw, 88px) !important; color: white; background: linear-gradient(135deg, #033f43, #07666a); border-top: 7px solid #e4ba4c; }
.lp-footer p { margin: 0; color: #c9dcda; }
.lp-footer a { color: #fff5c9; }
.lp-footer .wp-block-site-title a { color: white; text-decoration: none; }
.lp-footer-contact, .lp-footer-links { font-size: 13px; }
.lp-footer-note { font-size: 12px; }

.woocommerce ul.products li.product { padding: 14px; border-radius: 18px; background: var(--lp-paper); box-shadow: 0 12px 35px rgba(6,63,59,.08); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 999px; color: white; background: var(--lp-teal); }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { color: white; background: var(--lp-teal-dark); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--lp-teal); background: var(--lp-paper); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--lp-teal); }
.woocommerce-cart-form, .woocommerce-checkout, .woocommerce-account .woocommerce { padding: clamp(22px, 4vw, 56px); border-radius: 24px; background: rgba(255,253,247,.9); box-shadow: 0 16px 42px rgba(6,63,59,.08); }

@media (max-width: 980px) {
  .lp-hero { min-height: 760px; text-align: left; background-position: 38% center; }
  .lp-hero-ribbon { grid-template-columns: 1fr; }
  .lp-hero-ribbon .lp-actions { margin-top: 10px !important; justify-content: flex-start; }
  .lp-intro { margin-inline: auto; }
  .lp-trust { justify-content: flex-start; }
  .lp-hero-books { width: min(680px, 100%); min-height: 500px; margin: 0 auto; }
  .lp-card-main { left: 31%; }
  .lp-section-heading, .lp-about, .lp-faq { grid-template-columns: 1fr; }
  .lp-book-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-feature-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .home .lp-header { inset: 10px 10px auto; padding: 9px 12px !important; }
  .lp-header .wp-block-navigation { display: none; }
  .lp-header .wp-block-site-title { font-size: 19px; }
  .lp-header .wp-block-button__link { padding: 9px 13px; font-size: 13px; }
  .lp-hero { min-height: 720px; padding: 88px 12px 12px !important; background-position: 34% center; }
  .lp-hero-ribbon { padding: 20px 18px !important; border-radius: 24px 24px 18px 18px; }
  .lp-hero-ribbon h2 { font-size: 29px !important; }
  .lp-hero-title { font-size: 51px !important; }
  .lp-actions .wp-block-button { width: 100%; }
  .lp-actions .wp-block-button__link { width: 100%; justify-content: center; }
  .lp-hero-books { min-height: 380px; }
  .lp-book-card { width: 58vw; }
  .lp-card-main { left: 21%; }
  .lp-card-back { left: -5%; }
  .lp-card-front { right: -5%; }
  .lp-section { padding-block: 76px !important; }
  .lp-section-heading { gap: 20px; }
  .lp-book-grid { grid-template-columns: 1fr; }
  .lp-catalog-card h3 { font-size: 29px; }
}
