/*
Theme Name: Wagoliruna Editorial
Theme URI: https://wagoliruna.com/
Author: Wagoliruna
Description: A lightweight Gutenberg-friendly editorial theme for Wagoliruna.
Version: 1.2.4
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wagoliruna-editorial
*/

:root {
  --wg-ink: #20221f;
  --wg-muted: #6e746b;
  --wg-paper: #faf7f0;
  --wg-ivory: #f1eadf;
  --wg-walnut: #755039;
  --wg-walnut-dark: #4b3326;
  --wg-sage: #758774;
  --wg-sage-dark: #31443a;
  --wg-terracotta: #b66f59;
  --wg-line: #d9d1c5;
  --wg-white: #fffdf8;
  --wg-max: 1320px;
  --wg-serif: "DM Serif Display", "Iowan Old Style", Palatino, Georgia, serif;
  --wg-sans: "DM Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wg-paper); color: var(--wg-ink); font-family: var(--wg-sans); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img { display: block; height: auto; max-width: 100%; }
a { color: var(--wg-walnut); text-underline-offset: 3px; }
a:hover { color: var(--wg-terracotta); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--wg-terracotta); outline-offset: 3px; }

.wg-sr-only { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.wg-wrap { margin-inline: auto; max-width: var(--wg-max); padding-inline: clamp(22px, 5vw, 78px); }
.wg-eyebrow { color: var(--wg-terracotta); font-size: 11px; font-weight: 700; letter-spacing: .18em; margin: 0 0 14px; text-transform: uppercase; }
.wg-display { font-family: var(--wg-serif); font-weight: 400; letter-spacing: -.035em; line-height: .98; }
.wg-button { align-items: center; background: var(--wg-walnut); border: 1px solid var(--wg-walnut); color: var(--wg-white); display: inline-flex; font-size: 12px; font-weight: 700; gap: 18px; letter-spacing: .1em; min-height: 48px; padding: 13px 20px; text-decoration: none; text-transform: uppercase; }
.wg-button:hover { background: var(--wg-walnut-dark); color: var(--wg-white); }
.wg-button--outline { background: transparent; color: var(--wg-walnut); }
.wg-button--outline:hover { background: var(--wg-walnut); }

.wg-announcement { align-items: center; background: var(--wg-sage-dark); color: #f1eadf; display: flex; font-size: 11px; gap: 13px; justify-content: center; letter-spacing: .13em; min-height: 32px; padding: 7px 20px; text-align: center; text-transform: uppercase; }
.wg-announcement a { color: #e7c38e; }
.wg-header { align-items: center; background: rgba(250,247,240,.96); border-bottom: 1px solid rgba(32,34,31,.18); display: grid; gap: 28px; grid-template-columns: minmax(150px,1fr) auto minmax(160px,1fr); min-height: 82px; padding: 0 clamp(22px,5vw,78px); position: sticky; top: 0; z-index: 20; }
.wg-brand { color: var(--wg-ink); font-family: var(--wg-serif); font-size: clamp(26px, 2.3vw, 35px); letter-spacing: -.04em; line-height: 1; text-decoration: none; }
.wg-nav { align-items: center; display: flex; gap: clamp(16px, 2vw, 30px); justify-content: center; }
.wg-nav a, .wg-actions a { color: var(--wg-ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.wg-nav a:hover, .wg-actions a:hover { color: var(--wg-terracotta); }
.wg-actions { align-items: center; display: flex; gap: 18px; justify-content: flex-end; }
.wg-menu-toggle { background: transparent; border: 1px solid var(--wg-line); color: var(--wg-ink); display: none; padding: 9px 12px; }

.wg-hero { border-bottom: 1px solid var(--wg-line); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); min-height: 590px; }
.wg-hero__copy { align-self: center; padding: clamp(70px, 9vw, 140px) clamp(22px, 5vw, 78px); }
.wg-hero h1 { font-size: clamp(54px, 7vw, 105px); margin: 0; max-width: 770px; }
.wg-hero p { color: #525a51; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; margin: 27px 0 32px; max-width: 570px; }
.wg-hero__media { align-items: end; background: var(--wg-ivory); display: flex; min-height: 440px; overflow: hidden; padding: clamp(20px, 4vw, 56px); }
.wg-placeholder { align-items: center; background: linear-gradient(135deg, #d8d0c4, #eee5d8); border: 1px solid rgba(75,51,38,.2); color: var(--wg-walnut-dark); display: flex; flex-direction: column; font-size: 11px; justify-content: center; letter-spacing: .12em; min-height: 260px; padding: 22px; text-align: center; text-transform: uppercase; width: 100%; }
.wg-placeholder strong { font-family: var(--wg-serif); font-size: clamp(38px, 5vw, 70px); font-weight: 400; letter-spacing: -.04em; margin-bottom: 11px; text-transform: none; }
.wg-placeholder small { color: var(--wg-muted); font-size: 10px; letter-spacing: .08em; line-height: 1.5; max-width: 260px; text-transform: none; }
.wg-editorial-figure { margin: 0; width: 100%; }
.wg-editorial-figure img { background: var(--wg-ivory); height: 100%; object-fit: cover; width: 100%; }
.wg-editorial-figure figcaption { color: var(--wg-muted); font-size: 9px; letter-spacing: .05em; line-height: 1.45; margin-top: 8px; text-transform: uppercase; }
.wg-editorial-figure--hero { height: 100%; }
.wg-editorial-figure--hero img { min-height: 440px; }

.wg-section { border-bottom: 1px solid var(--wg-line); padding: clamp(70px, 9vw, 130px) 0; }
.wg-section--tint { background: var(--wg-ivory); }
.wg-section--dark { background: var(--wg-sage-dark); color: #f4eee4; }
.wg-section__heading { align-items: end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 46px; }
.wg-section__heading h2 { font-size: clamp(40px, 5.2vw, 72px); margin: 0; max-width: 700px; }
.wg-section__heading p { color: var(--wg-muted); margin: 0; max-width: 430px; }
.wg-section--dark .wg-section__heading p { color: #cbd2c7; }

.wg-grid { display: grid; gap: 18px; }
.wg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wg-card { border-top: 1px solid var(--wg-ink); padding-top: 18px; }
.wg-card__link { color: inherit; display: block; text-decoration: none; }
.wg-card__link:hover .wg-card__media img { transform: scale(1.025); }
.wg-card__media img { transition: transform .35s ease; }
.wg-card__action { display: inline-flex; gap: 10px; margin-top: 15px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.wg-card__media { margin-bottom: 22px; }
.wg-card__media .wg-editorial-figure { aspect-ratio: 4 / 5; }
.wg-card__media .wg-editorial-figure img { height: 100%; }
.wg-card__media .wg-editorial-figure figcaption { min-height: 27px; }
.wg-card h3 { font-family: var(--wg-serif); font-size: 28px; font-weight: 400; line-height: 1.05; margin: 0 0 9px; }
.wg-card p { color: var(--wg-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.wg-card a { text-decoration: none; }
.wg-number { color: var(--wg-terracotta); display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; margin-bottom: 26px; }

.wg-principles { display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wg-principle { border-right: 1px solid var(--wg-line); padding: 20px 28px 16px 0; }
.wg-principle + .wg-principle { padding-left: 28px; }
.wg-principle:last-child { border-right: 0; }
.wg-principle h3 { font-family: var(--wg-serif); font-size: 31px; font-weight: 400; line-height: 1.05; margin: 0 0 12px; }
.wg-principle p { color: var(--wg-muted); font-size: 14px; line-height: 1.7; margin: 0; }
.wg-section--dark .wg-principle { border-color: rgba(255,255,255,.22); }
.wg-section--dark .wg-principle p { color: #cbd2c7; }

.wg-process { border-top: 1px solid var(--wg-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wg-process__item { border-bottom: 1px solid var(--wg-line); border-right: 1px solid var(--wg-line); min-height: 210px; padding: 26px 24px 24px 0; }
.wg-process__item + .wg-process__item { padding-left: 24px; }
.wg-process__item:last-child { border-right: 0; }
.wg-process__item span { align-items: center; border: 1px solid var(--wg-walnut); border-radius: 50%; color: var(--wg-walnut); display: flex; font-size: 12px; height: 32px; justify-content: center; margin-bottom: 28px; width: 32px; }
.wg-process h3 { font-family: var(--wg-serif); font-size: 24px; font-weight: 400; line-height: 1.1; margin: 0 0 9px; }
.wg-process p { color: var(--wg-muted); font-size: 14px; line-height: 1.6; margin: 0; }

.wg-trust { align-items: center; display: grid; gap: 40px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.wg-trust h2 { font-size: clamp(42px, 5vw, 74px); margin: 0; }
.wg-trust__list { border-top: 1px solid rgba(255,255,255,.28); }
.wg-trust__list div { border-bottom: 1px solid rgba(255,255,255,.28); display: grid; gap: 20px; grid-template-columns: 110px 1fr; padding: 20px 0; }
.wg-trust__list b { color: #e7c38e; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.wg-trust__list span { color: #e6ebe2; }

.wg-footer { background: #1e2d26; color: #ccd2c9; padding: 72px 0 25px; }
.wg-footer__grid { display: grid; gap: 32px; grid-template-columns: 1.3fr repeat(3, .7fr); }
.wg-footer h2, .wg-footer h3 { color: #fffaf0; font-family: var(--wg-serif); font-weight: 400; }
.wg-footer h2 { font-size: 42px; line-height: .98; margin: 0 0 18px; }
.wg-footer h3 { font-size: 20px; margin: 0 0 14px; }
.wg-footer p, .wg-footer a { color: #ccd2c9; font-size: 13px; line-height: 1.7; }
.wg-footer a { display: block; margin-bottom: 7px; text-decoration: none; }
.wg-footer a:hover { color: #e7c38e; }
.wg-footer__bottom { border-top: 1px solid rgba(255,255,255,.18); display: flex; font-size: 11px; justify-content: space-between; margin-top: 55px; padding-top: 18px; }

.wg-page-hero { border-bottom: 1px solid var(--wg-line); padding: clamp(80px, 10vw, 150px) 0 58px; }
.wg-page-hero h1 { font-size: clamp(52px, 7vw, 100px); margin: 0; max-width: 860px; }
.wg-page-hero p { color: var(--wg-muted); font-size: 18px; line-height: 1.7; margin: 26px 0 0; max-width: 650px; }
.wg-content { padding: clamp(55px, 7vw, 100px) 0; }
.wg-content > * { max-width: 820px; }
.wg-content h2, .wg-content h3 { font-family: var(--wg-serif); font-weight: 400; line-height: 1.1; }
.wg-content h2 { font-size: clamp(34px, 4vw, 54px); margin-top: 56px; }
.wg-content h3 { font-size: 28px; margin-top: 40px; }
.wg-content p, .wg-content li { color: #4e554e; font-size: 17px; line-height: 1.8; }
.wg-content details { border-top: 1px solid var(--wg-line); padding: 20px 0; }
.wg-content details:last-child { border-bottom: 1px solid var(--wg-line); }
.wg-content summary { cursor: pointer; font-family: var(--wg-serif); font-size: 25px; }
.wg-empty-catalog { border-bottom: 1px solid var(--wg-line); padding: 55px 0 65px; }
.wg-empty-catalog h2 { font-size: clamp(38px, 5vw, 68px); margin: 0 0 18px; }
.wg-empty-catalog > p:not(.wg-eyebrow) { color: var(--wg-muted); max-width: 650px; }
.wg-preview-links { border-top: 1px solid var(--wg-line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
.wg-preview-links a { border-bottom: 1px solid var(--wg-line); display: flex; justify-content: space-between; padding: 16px 0; text-decoration: none; }
.wg-preview-links a:nth-child(odd) { margin-right: 24px; }
.wg-preview-product { display: grid; gap: 50px; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); padding: 25px 0 90px; }
.wg-preview-product__media { background: var(--wg-ivory); min-height: 540px; }
.wg-preview-product__media .wg-placeholder { height: 100%; min-height: 540px; }
.wg-preview-product__summary h2 { font-size: clamp(45px, 5vw, 78px); margin: 0 0 20px; }
.wg-preview-product__summary > p:not(.wg-eyebrow) { color: #50574f; font-size: 17px; line-height: 1.8; }
.wg-preview-notes { border-top: 1px solid var(--wg-line); padding: 75px 0 15px; }
.wg-preview-notes h2 { font-size: clamp(39px, 5vw, 70px); margin: 0 0 35px; }
.wg-preview-notes .wg-grid > div { border-top: 1px solid var(--wg-ink); padding-top: 17px; }
.wg-preview-notes .wg-grid p:last-child { color: #50574f; font-size: 15px; }

.wg-product-layout { display: grid; gap: 50px; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr); padding: clamp(55px, 7vw, 110px) 0; }
.wg-product-gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wg-product-gallery .wg-placeholder:first-child { grid-column: 1 / -1; min-height: 540px; }
.wg-product-gallery .wg-editorial-figure:first-child { grid-column: 1 / -1; }
.wg-product-gallery .wg-editorial-figure img { aspect-ratio: 4 / 5; }
.wg-product-gallery .wg-editorial-figure:first-child img { aspect-ratio: 16 / 10; }
.wg-product-summary { position: sticky; top: 120px; }
.wg-product-summary h1 { font-size: clamp(45px, 5vw, 78px); margin: 0; }
.wg-product-summary .price { color: var(--wg-walnut); font-size: 21px; margin: 24px 0; }
.wg-demo-note { background: var(--wg-ivory); border-left: 3px solid var(--wg-terracotta); color: var(--wg-walnut-dark); font-size: 13px; margin: 22px 0; padding: 16px 18px; }
.wg-product-service { border-top: 1px solid var(--wg-line); padding: clamp(55px, 7vw, 100px) 0; }
.wg-product-service h2 { font-size: clamp(39px, 5vw, 70px); margin: 0 0 24px; }
.wg-product-description, .wg-product-service > .wg-wrap > p:not(.wg-eyebrow) { color: #50574f; max-width: 760px; }
.wg-product-description p, .wg-product-service > .wg-wrap > p:not(.wg-eyebrow) { font-size: 17px; line-height: 1.8; }
.wg-product-service--links { background: var(--wg-ivory); }
.wg-product-service--links .wg-button { margin: 22px 12px 0 0; }
.wg-product-story { border-top: 1px solid var(--wg-line); }
.wg-facts { border-bottom: 1px solid var(--wg-line); border-top: 1px solid var(--wg-line); display: grid; grid-template-columns: repeat(3, 1fr); }
.wg-fact { border-right: 1px solid var(--wg-line); min-height: 150px; padding: 24px; }
.wg-fact:nth-child(3n) { border-right: 0; }
.wg-fact small { color: var(--wg-terracotta); display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; margin-bottom: 10px; text-transform: uppercase; }
.wg-fact strong { display: block; font-family: var(--wg-serif); font-size: 23px; font-weight: 400; line-height: 1.15; }
.wg-story-section { border-bottom: 1px solid var(--wg-line); padding: clamp(55px, 7vw, 100px) 0; }
.wg-story-section h2 { font-size: clamp(39px, 5vw, 70px); margin: 0 0 20px; }
.wg-story-section p { color: #50574f; max-width: 700px; }
.wg-story-section--tint { background: var(--wg-ivory); }
.wg-check-grid { display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); }
.wg-check { border-right: 1px solid var(--wg-line); padding: 25px 22px 10px 0; }
.wg-check + .wg-check { padding-left: 22px; }
.wg-check:last-child { border-right: 0; }
.wg-check b { align-items: center; background: var(--wg-walnut); border-radius: 50%; color: #fff; display: flex; font-size: 12px; height: 30px; justify-content: center; margin-bottom: 23px; width: 30px; }
.wg-check h3 { font-family: var(--wg-serif); font-size: 23px; font-weight: 400; margin: 0 0 9px; }
.wg-check p { font-size: 14px; line-height: 1.6; margin: 0; }

.woocommerce .site-main, .woocommerce-page .site-main { padding-bottom: 80px; }
.woocommerce ul.products { display: grid !important; gap: 26px !important; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { border-top: 1px solid var(--wg-ink); float: none !important; margin: 0 !important; padding-top: 18px; width: auto !important; }
.woocommerce ul.products li.product a img { background: var(--wg-ivory); margin: 0 0 20px !important; min-height: 300px; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--wg-serif); font-size: 28px; font-weight: 400; }
.woocommerce ul.products li.product .price { color: var(--wg-walnut); font-size: 16px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--wg-walnut); border-radius: 0; color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--wg-walnut-dark); color: #fff; }

@media (max-width: 960px) {
  .wg-header { grid-template-columns: 1fr auto; }
  .wg-nav { background: var(--wg-paper); border-bottom: 1px solid var(--wg-line); display: none; grid-column: 1 / -1; padding: 18px 0 25px; }
  .wg-nav.is-open { display: flex; flex-direction: column; }
  .wg-menu-toggle { display: block; }
  .wg-actions { justify-content: flex-end; }
  .wg-hero, .wg-trust { grid-template-columns: 1fr; }
  .wg-hero__media { min-height: 380px; }
  .wg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .wg-product-layout, .wg-preview-product { grid-template-columns: 1fr; }
  .wg-product-summary { position: static; }
}

@media (max-width: 620px) {
  .wg-actions a:first-child { display: none; }
  .wg-hero__copy { padding-top: 70px; }
  .wg-hero h1, .wg-page-hero h1 { font-size: clamp(45px, 14vw, 72px); }
  .wg-section__heading { align-items: start; flex-direction: column; }
  .wg-grid--3, .wg-grid--4, .wg-principles, .wg-process, .wg-check-grid { grid-template-columns: 1fr; }
  .wg-principle, .wg-principle + .wg-principle { border-bottom: 1px solid var(--wg-line); border-right: 0; padding: 23px 0; }
  .wg-principle:last-child { border-bottom: 0; }
  .wg-process__item, .wg-process__item + .wg-process__item { border-bottom: 1px solid var(--wg-line); border-right: 0; padding: 25px 0; }
  .wg-process__item:last-child { border-bottom: 0; }
  .wg-footer__grid { grid-template-columns: 1fr; }
  .wg-footer__bottom { flex-direction: column; gap: 7px; }
  .wg-product-gallery { grid-template-columns: 1fr; }
  .wg-preview-product__media, .wg-preview-product__media .wg-placeholder { min-height: 360px; }
  .wg-product-gallery .wg-placeholder:first-child { min-height: 360px; }
  .wg-product-gallery .wg-editorial-figure:first-child img { aspect-ratio: 4 / 5; }
  .wg-facts { grid-template-columns: repeat(2, 1fr); }
  .wg-fact:nth-child(3n) { border-right: 1px solid var(--wg-line); }
  .wg-fact:nth-child(2n) { border-right: 0; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .woocommerce ul.products li.product a img { min-height: 240px; }
}
