/* Earth & Essence — additions layered on top of main.css (the original site stylesheet).
   Everything here is either carried over from the inline <style> on the content pages,
   or something WordPress needs that the static site did not. */

/* ---------- content pages (from contact / privacy / shipping pages) ---------- */
.page-wrap { max-width: 760px; margin: 0 auto; padding: 46px 24px 80px; }
.page-wrap--wide { max-width: 1180px; }
.page-eyebrow { display:block; font-size:.72rem; font-weight:700; letter-spacing:.09em;
  text-transform:uppercase; color:var(--clay-text); margin-bottom:10px; }
.page-wrap h1 { font-size: clamp(2rem,4.4vw,2.9rem); line-height:1.08; margin:0 0 14px; }
.page-lede { font-size:1.05rem; opacity:.82; margin:0 0 34px; }
.entry-content h2 { font-size:1.18rem; margin:34px 0 10px; }
.entry-content h3 { font-size:1rem; margin:26px 0 8px; }
.entry-content p, .entry-content li { line-height:1.65; opacity:.86; }
.entry-content p { margin: 0 0 14px; }
.entry-content ul, .entry-content ol { padding-left:20px; margin: 0 0 14px; }
.entry-content li { margin-bottom:7px; }
.entry-content a { color: var(--clay-text); text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { border-radius: 16px; }
.entry-content blockquote { border-left: 3px solid var(--clay); padding: 4px 0 4px 18px; margin: 20px 0; font-style: italic; }
.entry-content mark, mark.fill { background:rgba(201,123,74,.16); border-radius:5px; padding:1px 6px; font-weight:600; color: inherit; }
.note-card { background:#EDE4CD; border-radius:16px; padding:18px 20px; margin:26px 0; }
.note-card p { margin:0; font-size:.93rem; }

/* contact cards: works with a Columns block given the class "page-contact-grid" */
.page-wrap .page-contact-grid { display:grid !important; grid-template-columns:1fr 1fr; gap:18px; margin:8px 0 0; }
.page-contact-grid > * { margin: 0 !important; }
.contact-card { background:#EDE4CD; border-radius:16px; padding:20px; }
.contact-card h3 { margin:0 0 6px !important; font-size:1rem; }
.contact-card p { margin:0; font-size:.92rem; }
@media (max-width:640px){ .page-wrap .page-contact-grid { grid-template-columns:1fr; } }

/* ---------- WordPress plumbing ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  left: 12px; top: 12px; z-index: 1000; padding: 12px 18px;
  background: var(--forest); color: var(--cream); border-radius: 100px;
}
/* keep the sticky nav below the admin bar when logged in */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }

/* brand block is now a link home */
a.nav-left { color: inherit; }

/* the static footer had 5 columns in a 4-column grid, so the last one wrapped */
.footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 40px; height: 40px; }

/* ---------- product cards: pieces the static cards did not need ---------- */
.product-card h3 a { color: inherit; }
.product-card h3 a:hover { color: var(--clay-text); }
.product-photo > a { display: block; width: 100%; height: 100%; }
/* heart sits top-left, so the stock badge moves to the bottom */
.product-photo .stock-badge { top: auto; bottom: 10px; left: 10px; z-index: 2; }
a.add-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; line-height: 1; }
.add-btn[aria-busy="true"] { opacity: .7; }
.price del { opacity: .5; font-weight: 500; margin-right: 6px; font-size: .9em; }
.price ins { text-decoration: none; }
.product-card .price .woocommerce-Price-currencySymbol { font: inherit; }
h1.section-title { line-height: 1.1; }
.section-head .section-sub p { margin: 0; }

/* ---------- basket drawer additions ---------- */
a.line-name { display: block; color: inherit; }
a.line-name:hover { color: var(--clay-text); }
.drawer-error {
  margin: 10px 0; padding: 10px 12px; border-radius: 12px; font-size: .85rem;
  background: rgba(201,123,74,.14); border: 1px solid rgba(161,92,48,.35);
}
.drawer-links { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: .82rem; }
.drawer-links a { text-decoration: underline; text-underline-offset: 2px; opacity: .85; }
.drawer-loading { padding: 34px 6px; text-align: center; opacity: .6; font-size: .9rem; }
.line-qty button:disabled, .line-remove:disabled { opacity: .35; cursor: wait; }
/* no floating basket on the cart and checkout pages themselves */
.woocommerce-cart .cart-fab, .woocommerce-checkout .cart-fab { display: none; }

/* ---------- signup form ---------- */
.referral-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.referral-form button:disabled { opacity: .75; cursor: default; }

/* ---------- brand colours available in the page editor ---------- */
.has-forest-color { color: var(--forest) !important; }
.has-cream-color { color: var(--cream) !important; }
.has-clay-color { color: var(--clay-text) !important; }
.has-sage-color { color: var(--sage-text) !important; }
.has-ink-color { color: var(--ink) !important; }
.has-forest-background-color { background-color: var(--forest) !important; }
.has-cream-background-color { background-color: var(--cream) !important; }
.has-cream-dark-background-color { background-color: var(--cream-dark) !important; }
.has-clay-background-color { background-color: var(--clay) !important; }
.has-sage-background-color { background-color: var(--sage) !important; }

/* ---------- simple blog / archive listing (if she ever posts) ---------- */
.post-list { list-style: none; padding: 0 !important; }
.post-list li { padding: 18px 0; border-bottom: 1px solid rgba(31,61,43,.12); opacity: 1 !important; }
.post-list a { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.post-list time { display: block; font-size: .8rem; opacity: .6; }
.pagination-wrap { margin-top: 30px; display: flex; gap: 10px; }

/* ---------- free-bar offer ---------- */
.ee-free-box {
  background: var(--cream-dark); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
  border: 1px dashed rgba(31,61,43,.35); font-size: .86rem; line-height: 1.45;
}
.ee-free-box.is-ready { border-style: solid; border-color: var(--clay); background: rgba(201,123,74,.12); }
.ee-free-box.is-done { border-style: solid; border-color: rgba(31,61,43,.35); }
.ee-free-msg { margin: 0; font-weight: 600; }
.ee-free-next { margin: 6px 0 0; opacity: .75; font-size: .8rem; }
.ee-free-pick { display: flex; gap: 8px; margin-top: 10px; }
.ee-free-pick select {
  flex: 1; min-width: 0; min-height: 44px; border-radius: 100px; padding: 0 14px;
  border: 1.5px solid rgba(43,38,32,.25); background: var(--cream); font: inherit; font-size: .88rem; color: var(--ink);
}
.ee-free-add {
  min-height: 44px; padding: 0 16px; border-radius: 100px; border: 0; cursor: pointer;
  background: var(--forest); color: var(--cream); font: inherit; font-weight: 600; font-size: .86rem; white-space: nowrap;
}
.ee-free-add:disabled { opacity: .45; cursor: default; }
.line-free-tag {
  display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 100px;
  background: var(--clay); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.ee-free-note {
  background: rgba(201,123,74,.12); border: 1px solid var(--clay); border-radius: 14px;
  padding: 12px 16px; margin: 0 0 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ee-free-note[hidden] { display: none; }
.ee-free-open {
  min-height: 40px; padding: 0 18px; border-radius: 100px; border: 0; cursor: pointer;
  background: var(--forest); color: var(--cream); font: inherit; font-weight: 600;
}
