/*
Theme Name: Weaver
Description: The Weaver website. Built on Agency Base; its own colours, fonts, sections and enquiry form live in this folder.
Template: agency-base
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: client-agency-site
*/

/* Colours and fonts come from theme.json (generated from brand/brand.json). This file holds what
   theme.json can't express: section layouts, cards, the enquiry form and the dark colour scheme. */

[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; border-radius: 6px; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Dark colour scheme: same palette slugs, new values. */
@media (prefers-color-scheme: dark) {
	:root {
		--wp--preset--color--base: #0E1512;
		--wp--preset--color--base-2: #132132;
		--wp--preset--color--surface: #151F1B;
		--wp--preset--color--contrast: #E5ECE8;
		--wp--preset--color--contrast-2: #B0BDB6;
		--wp--preset--color--accent: #5D8BC1;
		--wp--preset--color--accent-2: #89ABD2;
		--wp--preset--color--on-accent: #0B1410;
		--wp--preset--color--line: #27362F;
		--hq-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
		color-scheme: dark;
	}
}
:root { --hq-shadow: 0 1px 2px rgba(17, 26, 22, .06), 0 8px 24px rgba(17, 26, 22, .08); --hq-radius: 14px; --hq-bad: #A8321E; }
@media (prefers-color-scheme: dark) { :root { --hq-bad: #F2897E; } }

/* Header and footer */
header.wp-block-template-part { position: sticky; top: 0; z-index: 20; background: var(--wp--preset--color--base); border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.hq-logo { margin: 0; }
.hq-logo a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wp--preset--color--contrast); }
.hq-logo a::before { content: ""; width: 34px; height: 34px; flex: none; background: url("assets/brand/mark.svg") center / contain no-repeat; }
.hq-slogan { color: var(--wp--preset--color--contrast-2); margin-top: 6px; }
.hq-nav-btn .wp-block-button__link { padding: 0.65rem 1.1rem; font-size: 0.95rem; }
footer.wp-block-template-part { border-top: 1px solid var(--wp--preset--color--line); }
footer.wp-block-template-part a { color: var(--wp--preset--color--contrast-2); }
.hq-footer-links a { text-decoration: none; }
footer.wp-block-template-part > .wp-block-group > p.has-small-font-size { max-width: var(--wp--style--global--wide-size, 1200px); width: 100%; margin-inline: auto; }
.hq-footer-links a:hover { text-decoration: underline; }

/* Bands */
.wp-block-post-content > .hq-band { margin-block: 0; }
.hq-band { border-top: 1px solid var(--wp--preset--color--line); }
.hq-band:first-child, .hq-band.hq-tint, .hq-band.hq-tint + .hq-band { border-top: 0; }
.hq-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--accent-2); margin: 0; }
.hq-head { display: grid; gap: 12px; max-width: 660px; margin-bottom: clamp(28px, 4vw, 44px); }
.hq-head > * { margin: 0; }
.hq-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.hq-head p:not(.hq-eyebrow) { color: var(--wp--preset--color--contrast-2); font-size: 1.125rem; }
.hq-band .wp-block-button__link { font-size: 1rem; }

/* Hero */
.hq-hero h1 { font-size: clamp(38px, 5.4vw, 60px); margin: 0; }
.hq-hero h1 em { font-style: normal; color: var(--wp--preset--color--accent-2); text-decoration: underline; text-decoration-color: #F2B705; text-decoration-thickness: 0.12em; text-underline-offset: 0.12em; text-decoration-skip-ink: none; }
.hq-hero .hq-lede { font-size: clamp(18px, 2vw, 20px); color: var(--wp--preset--color--contrast-2); max-width: 34em; margin: 0; }
.hq-hero .wp-block-columns { align-items: center; gap: clamp(36px, 5vw, 64px); }
.hq-copy { display: grid; gap: 22px; align-content: start; }
.hq-copy > * { margin: 0; }
.hq-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 4px 0 0; list-style: none; color: var(--wp--preset--color--contrast-2); font-size: 0.95rem; }
.hq-facts li { margin: 0; }
.hq-facts b { color: var(--wp--preset--color--contrast); font-variant-numeric: tabular-nums; }
.hq-wa .wp-block-button__link::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--hq-wa-icon) center / contain no-repeat; mask: var(--hq-wa-icon) center / contain no-repeat; margin-right: 10px; display: inline-block; vertical-align: -3px; }
:root { --hq-wa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.98 3 3 6.69 3 11.25c0 2.3 1.02 4.37 2.67 5.86L5 21l4.1-1.98c.92.25 1.89.38 2.9.38 5.02 0 9-3.69 9-8.25S17.02 3 12 3Zm0 14.6c-.9 0-1.77-.14-2.58-.4l-.36-.11-2.17 1.05.36-2.07-.29-.25C5.6 14.66 4.8 13.02 4.8 11.25 4.8 7.75 8.02 4.8 12 4.8s7.2 2.95 7.2 6.45-3.22 6.35-7.2 6.35Z'/%3E%3C/svg%3E"); }

.hq-scene { position: relative; padding: 0 0 56px; max-width: 560px; margin-inline: auto; width: 100%; }
.hq-browser { background: #FFFFFF; border-radius: 14px; box-shadow: var(--hq-shadow); border: 1px solid #DDE2DA; overflow: hidden; color: #17202A; }
.hq-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #EEF0EC; border-bottom: 1px solid #DDE2DA; }
.hq-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9CFC7; }
.hq-browser-url { margin-left: 10px; flex: 1; min-width: 0; font-size: 12px; color: #5E6A64; background: #FFFFFF; border-radius: 6px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-mini { font-family: system-ui, sans-serif; line-height: 1.4; }
.hq-mini-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 12px; }
.hq-mini-nav b { font-size: 14px; }
.hq-mini-nav span { background: #E06A12; color: #17202A; font-weight: 700; padding: 5px 10px; border-radius: 4px; font-size: 11px; }
.hq-mini-hero { background: #ECE9E1; padding: 22px 16px 26px; display: grid; gap: 10px; }
.hq-mini-hero small { font-size: 11px; color: #4A5560; }
.hq-mini-hero strong { font-size: clamp(18px, 2.6vw, 24px); line-height: 1.1; letter-spacing: -0.01em; }
.hq-mini-btns { display: flex; gap: 8px; }
.hq-mini-btns span { font-size: 11px; font-weight: 700; padding: 7px 11px; border-radius: 4px; background: #E06A12; color: #17202A; }
.hq-mini-btns span + span { background: transparent; border: 1.5px solid #17202A; }
.hq-mini-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 16px 18px; }
.hq-mini-cards div { border: 1px solid #DAD5C9; border-radius: 4px; padding: 8px; display: grid; gap: 5px; }
.hq-mini-cards b { font-size: 11px; }
.hq-mini-cards i { height: 5px; border-radius: 3px; background: #E4E0D6; }
.hq-mini-cards i:last-child { width: 70%; }
.hq-chat { position: absolute; right: -4px; bottom: 0; width: min(300px, 78%); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--line); border-radius: 16px 16px 4px 16px; box-shadow: var(--hq-shadow); padding: 14px 16px; display: grid; gap: 6px; }
.hq-chat-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wp--preset--color--contrast-2); }
.hq-chat-head svg { width: 16px; height: 16px; color: var(--wp--preset--color--accent); }
.hq-chat p { font-size: 15px; line-height: 1.45; margin: 0; }
.hq-chat time { font-size: 12px; color: var(--wp--preset--color--contrast-2); justify-self: end; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
	.hq-chat { animation: hq-rise .6s .35s ease-out both; }
	@keyframes hq-rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Cards and grids */
.hq-grid { display: grid; gap: 14px; }
.hq-grid > * { margin: 0; min-width: 0; }
.hq-grid.hq-included { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.hq-grid.hq-cards { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.hq-grid.hq-two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); max-width: 720px; }
.hq-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--hq-radius); padding: 22px; display: grid; gap: 10px; align-content: start; position: relative; }
.hq-card > * { margin: 0; }
.hq-card h3, .hq-card h4 { font-size: 1.125rem; }
.hq-card p { color: var(--wp--preset--color--contrast-2); font-size: 0.95rem; line-height: 1.5; }
.hq-included .hq-card { padding: 18px; gap: 6px; }
.hq-icon { margin: 0; color: var(--wp--preset--color--accent); line-height: 0; }
.hq-icon svg { width: 22px; height: 22px; }
.hq-featured { border: 2px solid var(--wp--preset--color--accent); }
.hq-badge { position: absolute; top: -12px; left: 22px; margin: 0; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent) !important; font-size: 12px !important; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; line-height: 1.4 !important; }
.hq-card .hq-price { display: flex; align-items: baseline; gap: 6px; font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--contrast); font-size: 1rem; }
.hq-price strong { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hq-price span { color: var(--wp--preset--color--contrast-2); font-family: var(--wp--preset--font-family--body); font-size: 15px; }
.hq-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.hq-ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin: 0; }
.hq-ticks li::before { content: ""; width: 14px; height: 8px; margin-top: 6px; border-left: 2px solid var(--wp--preset--color--accent); border-bottom: 2px solid var(--wp--preset--color--accent); transform: rotate(-45deg); }

/* Free preview band */
.hq-offer .wp-block-columns { align-items: center; gap: clamp(28px, 4vw, 56px); }
.hq-offer h2 { font-size: clamp(30px, 4.4vw, 44px); margin: 0; }
.hq-offer .hq-copy p:not(.hq-eyebrow) { color: var(--wp--preset--color--contrast-2); font-size: 1.125rem; max-width: 36em; }
.hq-mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: pv; }
.hq-mini-steps li { counter-increment: pv; margin: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 14px 16px; }
.hq-mini-steps li::before { content: counter(pv); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); font-family: var(--wp--preset--font-family--heading); font-weight: 700; }

/* Compare table */
.wp-block-table.hq-compare { overflow-x: auto; border: 1px solid var(--wp--preset--color--line); border-radius: var(--hq-radius); background: var(--wp--preset--color--surface); margin: 0; }
.hq-compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.95rem; }
.hq-compare th, .hq-compare td { padding: 14px 16px; text-align: left; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.hq-compare thead th { font-family: var(--wp--preset--font-family--heading); font-size: 1.05rem; background: var(--wp--preset--color--base); }
.hq-compare tbody th { font-weight: 600; color: var(--wp--preset--color--contrast-2); width: 20%; }
.hq-compare tr:last-child th, .hq-compare tr:last-child td { border-bottom: 0; }
.hq-compare th:last-child, .hq-compare td:last-child { background: var(--wp--preset--color--base-2); }
.hq-compare thead th:last-child { color: var(--wp--preset--color--accent-2); }
.hq-compare td:last-child { font-weight: 600; }
.hq-note { margin: 12px 0 0; color: var(--wp--preset--color--contrast-2); font-size: 0.875rem; }

/* Prices */
.hq-group + .hq-group { margin-top: 56px; }
.hq-group > * { margin-block: 0; }
.hq-group > h3 { font-size: 24px; margin-bottom: 6px; }
.hq-group > p { color: var(--wp--preset--color--contrast-2); margin-bottom: 20px; }
.hq-group > .hq-grid { margin-top: 0; }
.wp-block-table.hq-addons { margin-top: 16px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--hq-radius); padding: 6px 22px; }
.hq-addons table { width: 100%; border-collapse: collapse; }
.hq-addons td { padding: 14px 0; border: 0; border-top: 1px solid var(--wp--preset--color--line); vertical-align: baseline; }
.hq-addons tr:first-child td { border-top: 0; }
.hq-addons td:last-child { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hq-fine { margin-top: 18px; color: var(--wp--preset--color--contrast-2); font-size: 0.875rem; }

/* How it works */
.hq-steps { counter-reset: step; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.hq-steps > .hq-step { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--wp--preset--color--accent); }
.hq-step > * { margin: 0; }
.hq-step::before { content: counter(step); font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 0.95rem; color: var(--wp--preset--color--accent-2); }
.hq-step h3 { font-size: 21px; }
.hq-step p { color: var(--wp--preset--color--contrast-2); }
.hq-step p.hq-when { color: var(--wp--preset--color--contrast-2); font-size: 0.875rem; }

/* FAQ */
.hq-faq { max-width: 760px; display: grid; }
.hq-faq > * { margin: 0; }
.hq-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); }
.hq-faq .wp-block-details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; font-weight: 600; font-size: 1.125rem; }
.hq-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.hq-faq .wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--heading); font-size: 24px; line-height: 1; color: var(--wp--preset--color--accent-2); transition: transform .2s; }
.hq-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.hq-faq .wp-block-details p { padding-bottom: 20px; margin: 0; color: var(--wp--preset--color--contrast-2); max-width: 62ch; }

/* Contact */
.hq-contact .wp-block-columns { gap: clamp(32px, 5vw, 64px); }
.hq-contact .hq-head { margin-bottom: 20px; }
.hq-lines { display: grid; gap: 10px; font-size: 1rem; }
.hq-lines > * { margin: 0; font-weight: 600; }

/* Enquiry form (the [agency_hq_enquiry] shortcode) */
form.hq-enquiry { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--hq-radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; margin: 0; }
.hq-field { display: grid; gap: 6px; min-width: 0; }
.hq-field label, .hq-field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.hq-field .hq-opt { font-weight: 400; color: var(--wp--preset--color--contrast-2); }
.hq-two-up { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.hq-enquiry, .hq-enquiry * { box-sizing: border-box; }
.hq-enquiry input[type="text"], .hq-enquiry input[type="tel"], .hq-enquiry input[type="email"], .hq-enquiry select, .hq-enquiry textarea { font: inherit; font-size: 16px; color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.hq-enquiry textarea { min-height: 96px; resize: vertical; }
.hq-enquiry fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hq-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hq-choices label { position: relative; font-weight: 600; font-size: 0.95rem; }
.hq-choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.hq-choices span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--base); cursor: pointer; }
.hq-choices input:checked + span { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.hq-choices input:focus-visible + span { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.hq-consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 0.875rem; color: var(--wp--preset--color--contrast-2); align-items: start; }
.hq-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--wp--preset--color--accent); }
.hq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hq-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hq-foot small { color: var(--wp--preset--color--contrast-2); font-size: 0.875rem; flex: 1 1 220px; }
.hq-error { color: var(--hq-bad); font-weight: 600; font-size: 0.95rem; margin: 0; }
.hq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem/1 var(--wp--preset--font-family--body); text-decoration: none; padding: 15px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.hq-btn-primary { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.hq-btn-primary:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.hq-btn-ghost { border-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--contrast); background: transparent; }
.hq-btn-ghost:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.hq-btn[disabled] { opacity: .6; cursor: progress; }
.hq-sent { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--hq-radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; justify-items: start; }
.hq-sent > * { margin: 0; }
.hq-sent h3 { font-size: 26px; }
.hq-sent p { color: var(--wp--preset--color--contrast-2); }
.hq-sent .hq-ref { font-size: 0.875rem; font-variant-numeric: tabular-nums; }

/* Privacy policy page */
.hq-legal { max-width: 720px; margin-inline: auto; display: grid; gap: 14px; }
.hq-legal > * { margin: 0; }
.hq-legal h2 { font-size: 22px; margin-top: 18px; }
.hq-legal p, .hq-legal li { color: var(--wp--preset--color--contrast-2); }
.hq-legal ul { padding-left: 20px; display: grid; gap: 6px; }

