/*
 * Vault — overrides for the editable sections (Golden Commerce, 2026-10-14).
 * The mockup used bare <a>/<span>/<div> tags in these spots; the editable versions use
 * paragraph/heading/image/group blocks, so these rules give the block wrappers the
 * mockup's exact look. Loaded after theme.css. No build step: edit this file and bump
 * THEME_VERSION in functions.php.
 */

/* Home hero backdrop: the slides are Image blocks inside .hero-slides (theme.js fades them).
   Before the script runs, the first photo shows. Mirrors the original img.hero-slide rules. */
.hero-slides { position: absolute; inset: 0; }
.hero-slides > figure {
	position: absolute; inset: 0; margin: 0; width: 100%; height: 100%;
	opacity: 0; transition: opacity 1400ms ease-in-out;
}
.hero-slides > figure.is-active,
.hero-slides:not(.is-running) > figure:first-child { opacity: 1; }
.hero-slides > figure img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; max-width: none; }

/* Explore tiles: the whole tile used to be one link — the heading's link now covers it */
.tile { position: relative; }
.tile-name a { color: inherit; text-decoration: none; }
.tile-name a::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Image blocks inside fixed-height photo boxes */
.tile-img > figure,
.we-buy-photo > figure { margin: 0; height: 100%; }

/* FAQ page hero photo as an Image block */
.page-hero > figure.page-hero-img-fig { position: absolute; inset: 0; margin: 0; }
.page-hero > figure.page-hero-img-fig img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; max-width: none; }

/* Safes: placeholder label and badge are paragraphs */
.safe-photo > p { margin: 0; }

/* Links that were bare <a class="…"> — now a paragraph holding a link */
p.vb-link-gold, p.vb-link-gold-dk { margin: 0; flex: none; line-height: inherit; font-size: inherit; }
p.vb-link-gold a, p.vb-link-gold-dk a { display: block; }
p.vb-link-gold a {
	font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
	color: var(--color-gold-lt); border-bottom: 1px solid var(--color-gold); padding-bottom: 4px;
}
p.vb-link-gold a:hover { color: var(--color-gold-pale); }
p.vb-link-gold-dk a {
	font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
	color: var(--color-gold-dk); border-bottom: 1px solid var(--color-gold); padding-bottom: 4px;
}

.post-card > p.vb-post-read { margin: auto 0 0; padding-top: 12px; align-self: flex-start; }
p.vb-post-read a {
	display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
	color: var(--color-gold-dk); border-bottom: 1px solid var(--color-gold);
}
p.vb-post-read a:hover { color: var(--color-gold-dk); }

.blog-card > p.vb-blog-read { margin: auto 0 0; align-self: flex-start; }
p.vb-blog-read a {
	display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
	color: var(--color-gold-lt); border-bottom: 1px solid var(--color-gold); padding-bottom: 3px;
}
p.vb-blog-read a:hover { color: var(--color-gold-pale); }

.safe-cta > p.vb-btn-gold-sm { margin: 6px 0 0; align-self: flex-start; }
p.vb-btn-gold-sm a {
	display: inline-block; text-decoration: none;
	font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--color-bg); background: var(--color-gold); padding: 14px 24px;
}
p.vb-btn-gold-sm a:hover { background: var(--color-gold-lt); color: var(--color-bg); }

/* Curbside-only notice on safe product pages (inc/safe-delivery-notice.php, 2026-10-16). Inherits text colour so it reads on light or dark product pages. */
.vb-curbside-notice { margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid var(--color-gold); background: rgba(176, 141, 87, 0.12); }
.vb-curbside-notice p { margin: 0; font-size: 14px; line-height: 1.5; color: inherit; }
.vb-curbside-notice strong { color: var(--color-gold); font-weight: 600; }

/* Readability sweep, 2026-10-17 (Golden Commerce). Every rule below fixes text that measured under WCAG AA (4.5:1). */
/* Cart and Checkout render through WooCommerce's own page templates, whose footer part has no .site-footer class, so the
   footer lost its white background and its dark text sat on the near-black page (1.0:1). Mirror .site-footer there. */
footer.wp-block-template-part:not(.site-footer):has(.footer-inner) { color: var(--color-muted-5); border-top: 1px solid var(--color-paper-line); background: #fff; padding: 56px 0 40px; }
@media (max-width: 768px) { footer.wp-block-template-part:not(.site-footer):has(.footer-inner) { padding: 44px 0 32px; } }
/* Footer labels: stone #9c9284 on white was 3.06:1; #756c60 is 5.16:1, same warm tone. */
.footer-col-title, .footer-accept-label, .footer-bottom { color: #756c60; }
/* Footer Join button: white on gold was 3.09:1; dark ink on gold is 5.7:1, matching the site's other gold buttons. */
.footer-join button { color: var(--color-bg); }
/* Featured carousel counter "1–4 / 5": 4.18:1 -> 4.99:1. */
.fp-label { color: var(--color-muted-3); }
/* Policy pages "Last updated" line: 3.68:1 -> 5.47:1. */
.legal-updated { color: var(--color-muted-2); }
/* Product page: active Description tab, gold on white was 2.31:1 -> 5.02:1. */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--color-gold-dk); }
/* Golden Commerce price-lock countdown label: #555 on the dark page was 2.36:1 -> 7.78:1. The plugin should set this itself. */
.gc-block-price-lock__label { color: var(--color-muted); }
/* Dropdown and phone-menu group headings: gold #a5813f on white was 3.61:1 -> gold-dk 5.02:1. Phone menu "Shop by category": 3.06:1 -> 5.16:1. */
.mega-title, .mobile-sub-title { color: var(--color-gold-dk); }
.mobile-cats-title { color: #756c60; }

/* Contact page booking button (replaced the appointment form, 2026-10-17): space it off the intro text. */
.contact-form .vb-book { margin-top: 28px; }
.contact-form .contact-book-intro { max-width: 34em; }

/* Cart and Checkout side margins, 2026-10-17. WooCommerce's own Cart and Checkout templates put the content straight in <main> with no
   container, so text and fields touched the screen edge at every width. Same gutters as .vb-container: 48px, 24px, 20px. */
body.woocommerce-cart main > .entry-content, body.woocommerce-checkout main > .entry-content { box-sizing: border-box; padding-left: 48px; padding-right: 48px; }
@media (max-width: 768px) { body.woocommerce-cart main > .entry-content, body.woocommerce-checkout main > .entry-content { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 420px) { body.woocommerce-cart main > .entry-content, body.woocommerce-checkout main > .entry-content { padding-left: 20px; padding-right: 20px; } }

/* Bank-transfer (ACH) fields, 2026-10-19. The Golden Commerce ACH boxes ship with no styling, and on this dark checkout they rendered
   invisible (0px border, transparent background), only the labels showed. Same fix as All Valley, recoloured to match Vault's own checkout
   boxes: #1e2125 fill, 1px #3a4046 border, light text, square corners, 50px tall. Scoped to .gc-ach-fields. */
.gc-ach-fields .form-row { display: block; float: none; width: auto; margin: 0 0 12px; padding: 0; }
.gc-ach-fields .form-row label { display: block; float: none; width: auto; text-align: left; margin: 0 0 4px; font-size: 14px; line-height: 1.4; color: var(--color-muted); }
.gc-ach-fields .woocommerce-input-wrapper { display: block; width: 100%; }
.gc-ach-fields .input-text,
.gc-ach-fields select.select { display: block; box-sizing: border-box; width: 100%; min-height: 50px; padding: 10px 12px; font-family: inherit; font-size: 16px; color: var(--color-heading); background: var(--color-panel); border: 1px solid var(--color-line-2); border-radius: 0; appearance: auto; }
.gc-ach-fields .input-text::placeholder { color: var(--color-muted-2); }
.gc-ach-fields .input-text:focus,
.gc-ach-fields select.select:focus { outline: 2px solid var(--color-gold); outline-offset: 1px; }
.gc-ach-fields .gc-ach-authorization label.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--color-text); }
.gc-ach-fields .input-checkbox { appearance: auto; flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--color-gold); }
