/*
Theme Name: Livenna Atelier
Theme URI: https://uselivenna.com.br
Author: Livenna
Description: Tema editorial mobile-first para a Livenna Activewear, com integração ao WooCommerce.
Version: 1.1.3
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: livenna
*/

:root {
  --ink: #171310;
  --coffee: #5d3d30;
  --bronze: #a9794e;
  --sand: #e8ddd0;
  --cream: #f7f2eb;
  --white: #fffdf9;
  --line: rgba(23, 19, 16, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --page-pad: 14px;
  --header-height: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); overflow-x: clip; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - (var(--page-pad) * 2))); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 1000; top: 8px; left: 8px; width: auto; height: auto; clip-path: none; padding: 12px 16px; background: #fff; color: #000; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
.eyebrow { margin: 0 0 12px; color: var(--bronze); font-size: 10px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.display { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.03em; }
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-align: center; text-transform: uppercase; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { border-color: var(--bronze); background: var(--bronze); color: #fff; transform: translateY(-1px); }
.button--light { border-color: rgba(255,255,255,.55); background: transparent; color: #fff; }
.button--light:hover { border-color: #fff; background: #fff; color: var(--ink); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 1px solid currentColor; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.announcement { padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); background: var(--ink); color: #fff; text-align: center; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(247,242,235,.97); backdrop-filter: blur(14px); }
.header-inner { display: grid; min-height: var(--header-height); grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.brand { justify-self: center; overflow: hidden; font-family: var(--serif); font-size: 20px; letter-spacing: .2em; white-space: nowrap; }
.main-nav { display: none; }
.header-actions { display: flex; justify-content: flex-end; }
.header-actions a { display: inline-flex; min-height: 44px; align-items: center; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.header-actions a:first-child { display: none; }
.menu-toggle { display: grid; width: 44px; height: 44px; place-content: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { position: absolute; top: 100%; right: 0; left: 0; z-index: 29; height: calc(100dvh - var(--header-height)); overflow-y: auto; background: var(--cream); border-top: 1px solid var(--line); }
.mobile-menu-nav { display: grid; padding-top: 24px; padding-bottom: max(36px, env(safe-area-inset-bottom)); }
.mobile-menu-nav a { display: flex; min-height: 58px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 28px; }

.hero { min-height: 0; aspect-ratio: 1; background: #0c0a08 url('assets/images/hero.png') center / contain no-repeat; }
.hero-cta { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.hero-cta-inner, .hero-cta-copy { display: grid; gap: 14px; }
.hero-cta-copy p:last-child { margin: 0; color: var(--coffee); font-family: var(--serif); font-size: clamp(20px, 6vw, 24px); line-height: 1.28; }
.hero-actions { display: grid; gap: 10px; margin-top: 6px; }
.hero-cta .button--light { border-color: var(--ink); color: var(--ink); }
.hero-cta .button--light:hover { border-color: var(--bronze); background: var(--bronze); color: #fff; }
.manifesto-strip { padding: 20px 12px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--white); }
.manifesto-strip p { margin: 0; color: var(--coffee); font-family: var(--serif); font-size: 19px; letter-spacing: .05em; text-align: center; }
.manifesto-strip span { padding: 0 8px; color: var(--bronze); }

.section { padding: 72px 0; }
.section-head { display: grid; gap: 18px; margin-bottom: 30px; }
.section-head h2 { max-width: 680px; font-size: clamp(42px, 13vw, 64px); }
.collection-carousel { position: relative; }
.carousel-toolbar { display: grid; gap: 16px; margin-bottom: 18px; }
.color-tabs { display: grid; grid-auto-columns: max-content; grid-auto-flow: column; gap: 8px; overflow-x: auto; padding: 3px; scrollbar-width: none; }
.color-tabs::-webkit-scrollbar { display: none; }
.color-tab { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 9px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: .2s ease; }
.color-tab:hover, .color-tab.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.color-swatch { width: 12px; height: 12px; flex: 0 0 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; box-shadow: 0 0 0 1px rgba(23,19,16,.12); }
.color-swatch--preto { background: #171717; }
.color-swatch--verde { background: #6c765b; }
.color-swatch--lilas { background: #b9a1b8; }
.carousel-arrows { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.carousel-arrows button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: .2s ease; }
.carousel-arrows button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.carousel-count { min-width: 54px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.carousel-viewport { overflow: hidden; }
.collection-slide[hidden] { display: none; }
.collection-slide { animation: collection-fade .28s ease both; }
@keyframes collection-fade { from { opacity: 0; } to { opacity: 1; } }
.mobile-product-progress { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mobile-product-progress span:last-child { color: var(--bronze); }
.collection-grid { display: grid; grid-auto-columns: minmax(84%, 1fr); grid-auto-flow: column; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 2px 12px; scroll-padding-inline: 2px; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: var(--bronze) transparent; }
.collection-card { display: flex; min-height: 430px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--white); scroll-snap-align: start; }
.collection-card-media { display: grid; min-height: 0; aspect-ratio: 4 / 5; place-items: center; padding: 18px; overflow: hidden; }
.collection-slide--preto .collection-card-media { background: #e7e0d7; }
.collection-slide--verde .collection-card-media { background: #d9decf; }
.collection-slide--lilas .collection-card-media { background: #ebe2eb; }
.collection-product-image { width: 100%; height: 100%; max-height: 390px; object-fit: contain; transition: transform .25s ease; }
.collection-card:hover .collection-product-image { transform: scale(1.02); }
.collection-card-copy { display: block; min-height: 104px; padding: 19px 18px; }
.collection-slide--preto .collection-card-copy { background: #171717; color: #fff; }
.collection-slide--verde .collection-card-copy { background: #6c765b; color: #fff; }
.collection-slide--lilas .collection-card-copy { background: #b9a1b8; color: var(--ink); }
.collection-card h3 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.05; }
.collection-card-copy > span { display: block; margin-top: 9px; color: inherit; font-size: 9px; font-weight: 700; letter-spacing: .07em; opacity: .82; text-transform: uppercase; }

.quality { padding: 0; background: var(--ink); color: #fff; }
.quality-grid { display: grid; }
.quality-image { min-height: 0; aspect-ratio: 995 / 763; background: #efe7dc url('assets/images/quality.png') center / contain no-repeat; }
.quality-copy { padding: 60px max(20px, env(safe-area-inset-left)) 64px; }
.quality-copy h2 { font-size: clamp(45px, 13vw, 62px); }
.quality-copy > p { max-width: 520px; color: rgba(255,255,255,.72); }
.feature-list { display: grid; margin: 30px 0; border-top: 1px solid rgba(255,255,255,.18); }
.feature-list div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }

.sizing { background: var(--white); }
.sizing-grid { display: grid; gap: 36px; }
.sizing-copy h2 { max-width: 650px; font-size: clamp(42px, 12vw, 68px); }
.sizing-copy > p { max-width: 620px; }
.sizing-note { padding-left: 14px; border-left: 2px solid var(--bronze); color: var(--coffee); font-size: 14px; }
.size-map { border-top: 1px solid var(--line); }
.size-map div { display: grid; min-height: 58px; grid-template-columns: .7fr repeat(3, 1fr); gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
.size-map div:first-child { min-height: 44px; color: var(--bronze); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.size-map strong { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.size-map span { font-size: clamp(11px, 3vw, 14px); white-space: nowrap; }

.trust { padding: 72px 0; background: #efe6dc; }
.trust-head { display: grid; gap: 8px; margin-bottom: 30px; }
.trust-head h2 { max-width: 780px; font-size: clamp(40px, 11vw, 64px); }
.trust-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust-grid article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.trust-grid article > span { color: var(--bronze); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.trust-grid h3 { margin: 10px 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.trust-grid p { margin: 0; font-size: 14px; }
.trust-grid .text-link { margin-top: 8px; }

.story-grid { display: grid; gap: 38px; align-items: center; }
.story-image { aspect-ratio: 1103 / 1426; background: url('assets/images/packaging.png') center / contain no-repeat; }
.story-copy h2 { font-size: clamp(46px, 13vw, 72px); }
.story-copy .lead { margin: 24px 0; color: var(--coffee); font-family: var(--serif); font-size: 24px; line-height: 1.28; }
.story-copy p { max-width: 590px; }
.social-cta { padding: 68px 0; background: var(--ink); color: #fff; }
.social-cta-inner { display: grid; gap: 28px; }
.social-cta h2 { max-width: 680px; font-size: clamp(42px, 12vw, 68px); }
.social-cta-inner > div:last-child { display: grid; align-content: end; gap: 18px; }
.social-cta p { max-width: 520px; margin: 0; color: rgba(255,255,255,.72); }

.newsletter { padding: 72px 0; background: var(--coffee); color: #fff; text-align: center; }
.newsletter h2 { font-size: clamp(42px, 12vw, 68px); }
.newsletter p { max-width: 580px; margin: 18px auto 26px; color: rgba(255,255,255,.75); }
.site-footer { padding: 60px 0 max(26px, env(safe-area-inset-bottom)); background: #100e0c; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; gap: 38px; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 28px; letter-spacing: .2em; }
.footer-grid h3 { margin: 0 0 14px; color: #fff; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid p, .footer-grid a { display: block; min-height: 30px; margin: 0; font-size: 13px; }
.footer-bottom { display: flex; margin-top: 44px; padding-top: 22px; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; }

.content-area { min-height: 60vh; padding: 64px 0; }
.content-area h1, .woocommerce-products-header__title { font-family: var(--serif); font-size: clamp(44px, 13vw, 80px); font-weight: 400; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--coffee); }
.woocommerce span.onsale { min-width: auto; min-height: auto; padding: 5px 10px; border-radius: 0; background: var(--coffee); line-height: 1.3; }
.woocommerce .quantity .qty { min-height: 48px; }

@media (min-width: 601px) {
  :root { --page-pad: 24px; --header-height: 74px; }
  .announcement { font-size: 9px; }
  .brand { font-size: 23px; }
  .hero-cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
  .hero-actions { grid-template-columns: repeat(2, auto); margin-top: 0; }
  .section { padding: 90px 0; }
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
  .carousel-toolbar { grid-template-columns: 1fr auto; align-items: center; }
  .mobile-product-progress { display: none; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; grid-auto-flow: row; overflow: visible; padding: 0; scroll-snap-type: none; }
  .collection-card { min-height: 500px; }
  .collection-card-media { aspect-ratio: auto; min-height: 390px; }
  .sizing-grid { grid-template-columns: 1.2fr .8fr; align-items: end; gap: 64px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid article { padding: 28px; border-right: 1px solid var(--line); }
  .trust-grid article:nth-child(2n) { border-right: 0; }
  .story-grid { grid-template-columns: .86fr 1.14fr; gap: clamp(50px, 8vw, 110px); }
  .social-cta-inner { grid-template-columns: 1.1fr .9fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 901px) {
  :root { --header-height: 84px; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .header-inner { grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .main-nav { display: flex; gap: 24px; }
  .main-nav a, .header-actions a { display: inline-flex; min-height: 44px; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
  .header-actions { gap: 18px; }
  .hero { min-height: min(760px, 86vh); aspect-ratio: auto; background-size: cover; }
  .hero-cta { padding: 30px 0; }
  .hero-cta-copy { grid-template-columns: auto 1fr; align-items: center; gap: 30px; }
  .hero-cta-copy .eyebrow { margin: 0; white-space: nowrap; }
  .manifesto-strip p { font-size: 26px; }
  .collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .collection-card { min-height: 520px; }
  .collection-card-media { min-height: 400px; }
  .quality-grid { grid-template-columns: 1.05fr .95fr; min-height: 720px; }
  .quality-image { aspect-ratio: auto; background-size: cover; }
  .quality-copy { align-self: center; padding: 80px clamp(40px, 7vw, 110px); }
  .quality-copy h2 { font-size: clamp(52px, 6vw, 82px); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid article, .trust-grid article:nth-child(2n) { border-right: 1px solid var(--line); }
  .trust-grid article:last-child { border-right: 0; }
  .story-copy h2 { font-size: clamp(56px, 7vw, 86px); }
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .section { padding: 108px 0; }
  .section-head { margin-bottom: 44px; }
  .section-head h2 { font-size: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
