/*
Theme Name: DecoArt Paints UK
Theme URI: https://www.decoart.co.uk/
Author: Daisymoon Designs
Author URI: https://daisymoondesigns.co.uk/
Description: Lightweight, search-optimised landing theme for decoart.co.uk. Showcases the DecoArt paint ranges, colour charts and FAQs, and sends shoppers to the Daisymoon Designs paints collection.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: decoart-uk
*/

@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Nunito";
	src: url("assets/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #fbf7f0;
	--paper-2: #f3ece0;
	--card: #ffffff;
	--ink: #1d1a24;
	--ink-2: #4a4553;
	--line: #e3dacb;
	--accent: #d9475a;      /* Watermelon Slice */
	--accent-2: #3c9ba2;    /* Peacock Teal */
	--accent-3: #736fbc;    /* Perfect Peri */
	--radius: 14px;
	--shadow: 0 1px 2px rgba(29, 26, 36, .06), 0 8px 24px -12px rgba(29, 26, 36, .18);
	--display: "Fraunces", Georgia, "Times New Roman", serif;
	--body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--body);
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 650; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; color: #fff; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.small { font-size: .875rem; color: var(--ink-2); }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .75em 1.4em;
	background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 999px;
	font-weight: 800; text-decoration: none; line-height: 1.2;
	transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); }
.btn--small { min-height: 40px; padding: .5em 1.1em; font-size: .95rem; }
.arrow { font-weight: 800; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.arrow::after { content: " →"; transition: margin .15s; }
.arrow:hover { color: var(--accent); }
.arrow:hover::after { margin-left: 3px; }

/* Header */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 240, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__dots { display: grid; grid-template-columns: repeat(3, 10px); gap: 3px; }
.brand__dots i { width: 10px; height: 22px; border-radius: 6px 6px 5px 7px; background: var(--accent); }
.brand__dots i:nth-child(2) { background: var(--accent-2); transform: translateY(-3px); }
.brand__dots i:nth-child(3) { background: var(--accent-3); }
.brand__text { font-family: var(--display); font-weight: 650; font-size: 1.25rem; line-height: 1; }
.brand__text b { color: var(--accent); font-weight: 750; }
.brand__text small { display: block; font-family: var(--body); font-size: .72rem; font-weight: 700; color: var(--ink-2); margin-top: 3px; letter-spacing: .02em; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .brand__text small { display: none; } .masthead .btn--small { padding: .5em .9em; } }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.lede strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 20px 0 0; margin: 0; border-top: 1px dashed var(--line); font-size: .95rem; color: var(--ink-2); }
.facts b { color: var(--ink); font-family: var(--display); font-size: 1.15rem; }
.hero__media { margin: 0; position: relative; }
.hero__media img { border-radius: 28px 34px 26px 38px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero__media::before {
	content: ""; position: absolute; inset: auto -18px -18px auto; width: 46%; height: 30%;
	background: var(--accent-2); border-radius: 40px 60px 30px 70px; z-index: -1; transform: rotate(-4deg);
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p:last-child { color: var(--ink-2); font-size: 1.1rem; }
.group-title { font-family: var(--body); font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 44px 0 16px; display: flex; align-items: center; gap: 14px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Range cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { transform: translateY(-2px); }
.card__body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.card:hover { border-color: #cfc3ae; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); font-size: .98rem; }
.card p a { color: var(--ink); font-weight: 700; }
.card__title { margin-bottom: .6em; }
.card__links { margin-top: auto; margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.tags li { font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }

/* Split sections */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
	.split { grid-template-columns: 1fr 1fr; gap: 64px; }
	.split--reverse .split__media { order: 2; }
}
.split__media { margin: 0; }
.split__media img { border-radius: 24px; box-shadow: var(--shadow); background: #fff; }
.split__media--small { max-width: 420px; justify-self: center; }
.compare { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .97rem; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: 1.05rem; background: var(--ink); color: #fff; }
.compare tbody th { font-weight: 800; width: 28%; }
.compare tr:last-child > * { border-bottom: 0; }

/* Colour charts */
.chart-title { margin: 8px 0 20px; }
.swatches { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.swatch { display: flex; flex-direction: column; align-items: center; text-align: center; }
.swatch__chip {
	width: 100%; aspect-ratio: 2 / 1; background: var(--paint);
	border-radius: 18px 26px 16px 24px / 22px 14px 24px 16px;
	box-shadow: inset 0 -6px 10px -6px rgba(0, 0, 0, .18), 0 1px 0 rgba(0, 0, 0, .04);
	margin-bottom: 10px; transition: transform .15s;
}
.swatch:hover .swatch__chip { transform: rotate(-2deg) scale(1.04); }
.swatch__name { font-weight: 800; font-size: .95rem; line-height: 1.25; }
.swatch__code { font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.chart-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin-bottom: 28px; }
.chart-cta p { margin: 0 auto 0 0; font-weight: 700; max-width: 30em; }
.lists { display: grid; gap: 12px; margin-bottom: 14px; }
.lists details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.lists summary { cursor: pointer; padding: 16px 0; font-weight: 800; }
.namelist { list-style: none; padding: 0; margin: 4px 0 18px; columns: 4 170px; column-gap: 24px; font-size: .93rem; color: var(--ink-2); }
.namelist li { break-inside: avoid; padding: 2px 0; }

/* Finder table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.finder { width: 100%; border-collapse: collapse; min-width: 560px; }
.finder th, .finder td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.finder thead th { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.finder tbody th { font-weight: 800; }
.finder tr:last-child > * { border-bottom: 0; }
.finder td:last-child { text-align: right; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--ink-2); }
.steps li b { color: var(--ink); }
.steps li::before {
	content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center;
	font-family: var(--display); font-weight: 700; color: #fff; background: var(--accent-3); border-radius: 12px 16px 10px 14px;
}
.steps li:nth-child(3n+2)::before { background: var(--accent-2); }
.steps li:nth-child(3n+3)::before { background: var(--accent); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 600 1.6rem/1 var(--display); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { font-size: 1.12rem; margin: 0; }
.faq details p { color: var(--ink-2); }
.faq details p a { color: var(--ink); font-weight: 700; }

/* About */
.about .split__copy a:not(.btn) { font-weight: 700; }

/* Generic content (page.php, index.php) */
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose ul { padding-left: 1.2em; }
.page-cta { margin-top: 32px; }

/* Footer */
.footer { background: var(--ink); color: #d9d4df; padding: 64px 0 28px; font-size: .95rem; }
.footer a { color: #fff; }
.footer a:hover { color: #ffb3bd; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand { font-family: var(--display); font-size: 1.4rem; color: #fff; font-weight: 650; }
.footer__head { font-weight: 800; color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer address { font-style: normal; color: #b9b3c2; }
.footer__legal { border-top: 1px solid #3a3542; margin-top: 44px; padding-top: 22px; font-size: .82rem; color: #a49fad; }
.footer__legal p { margin-bottom: .5em; }

/* Finder table: stack rows as cards on small screens (no sideways scrolling). */
.table-wrap { position: relative; }
@media (max-width: 640px) {
	.finder { min-width: 0; }
	.finder thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.finder tr { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); }
	.finder tr:last-child { border-bottom: 0; }
	.finder th, .finder td { display: block; padding: 2px 0; border: 0; text-align: left !important; }
	.finder td:nth-child(2) { color: var(--ink-2); }
	.finder td:last-child { padding-top: 6px; }
}
.sr-only { position: absolute !important; }
@media (max-width: 480px) {
	.brand__text { font-size: 1.05rem; white-space: nowrap; }
	.masthead__inner { gap: 12px; }
	.masthead .btn--small { white-space: nowrap; font-size: .85rem; }
}
[id] { scroll-margin-top: 84px; }

/* Product photo strip on range cards. Photos have white backgrounds; multiply lets the tinted shelf show through. */
.card__media {
	--shelf: #f3ece0;
	position: relative; height: 172px; padding: 14px 14px 0;
	display: flex; justify-content: center; align-items: flex-end; gap: 4px;
	background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--shelf) 75%);
	border-bottom: 1px solid var(--line);
}
.card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(to top, rgba(29, 26, 36, .06), transparent); pointer-events: none; }
.card__media img { mix-blend-mode: multiply; height: 100%; width: auto; min-width: 0; object-fit: cover; transition: transform .25s ease; transform-origin: 50% 100%; }
.card__media--tall img { aspect-ratio: 1 / 2; flex: 0 1 auto; }
.card__media--square { align-items: center; padding: 18px 14px; gap: 8px; }
.card__media--square img { height: auto; width: 31%; aspect-ratio: 1; border-radius: 10px; }
.card__media--single img { object-fit: contain; max-width: 100%; height: 100%; padding-bottom: 8px; }
.card:hover .card__media img { transform: translateY(-3px); }
.card:hover .card__media img:nth-child(2) { transform: translateY(-6px); transition-delay: .03s; }
.cards--g0 .card__media { --shelf: #f6e7dc; }
.cards--g1 .card__media { --shelf: #ebe6f4; }
.cards--g2 .card__media { --shelf: #e4efe6; }
@media (prefers-reduced-motion: reduce) { .card, .card__media img { transition: none; } }
.card__media--cover { padding: 0; }
.card__media--cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.card:hover .card__media--cover img { transform: scale(1.03); }
