/*
Theme Name: DaVinci Cogh
Theme URI: https://davincicogh.com
Description: Restrained luxury resale storefront for DaVinci Cogh Ltd. Child theme of Twenty Twenty-Five, built for WooCommerce. Warm ivory, charcoal type, muted-gold accents.
Author: DaVinci Cogh Ltd
Template: twentytwentyfive
Version: 1.1.2
Requires at least: 6.9
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: davincicogh
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-element-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--charcoal);
	outline-offset: 3px;
}

.skip-link.screen-reader-text:focus { background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--ivory); }

/* Thin gold rule used as a quiet section marker */
.dvc-rule { width: 48px; height: 1px; background: var(--wp--preset--color--gold); border: 0; margin: 0 0 1.5rem; }
.dvc-rule.aligncenter { margin-left: auto; margin-right: auto; }

.dvc-eyebrow {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
}

/* ---------- Header ---------- */
.dvc-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.dvc-brand a { text-decoration: none; letter-spacing: 0.04em; }
.dvc-header .wp-block-navigation a { text-decoration: none; font-size: 0.9rem; letter-spacing: 0.04em; }
.dvc-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Legal footer ---------- */
.dvc-footer { border-top: 1px solid var(--wp--preset--color--line); font-size: 0.875rem; }
.dvc-footer a { color: var(--wp--preset--color--charcoal); }
.dvc-legal p { margin: 0 0 0.25rem; }
.dvc-legal .dvc-legal-name { font-weight: 600; }
.dvc-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.dvc-footer-links a { text-decoration: none; }
.dvc-footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Status labels on products ---------- */
.dvc-status {
	display: inline-block;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--charcoal);
	background: transparent;
	margin: 0 0 1rem;
}
.dvc-status--source-to-order { border-color: var(--wp--preset--color--gold-text); color: var(--wp--preset--color--gold-text); }
.dvc-status--enquiry-only { border-style: dashed; }

.dvc-item-facts { border-top: 1px solid var(--wp--preset--color--line); margin-top: 2rem; }
.dvc-item-facts dl { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 0.6rem 1.5rem; margin: 1.25rem 0 0; }
.dvc-item-facts dt { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.dvc-item-facts dd { margin: 0; }
@media (max-width: 600px) { .dvc-item-facts dl { grid-template-columns: 1fr; gap: 0.2rem; } .dvc-item-facts dd { margin-bottom: 0.8rem; } }

.dvc-notice {
	border-left: 2px solid var(--wp--preset--color--gold);
	padding: 0.9rem 1.2rem;
	background: var(--wp--preset--color--paper);
	font-size: 0.9rem;
}

/* ---------- WooCommerce touches ---------- */
.woocommerce ul.products li.product .price,
.wc-block-grid__product-price,
.wc-block-components-product-price { color: var(--wp--preset--color--charcoal); }
.wc-block-components-product-image img,
.woocommerce ul.products li.product img,
.wp-block-woocommerce-product-image-gallery img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--wp--preset--color--paper); }
.wc-block-components-product-sale-badge, .onsale { display: none !important; } /* no urgency/sale badges */

/* Policy pages: comfortable reading measure */
.dvc-policy { max-width: 46rem; }
.dvc-policy h2 { margin-top: 2.5rem; }
.dvc-policy table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.dvc-policy th, .dvc-policy td { border: 1px solid var(--wp--preset--color--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.dvc-form-box { border: 1px solid var(--wp--preset--color--line); padding: 1.25rem 1.5rem; background: var(--wp--preset--color--paper); }
