/*
Theme Name: Brand It! Midlands
Theme URI: https://branditmidlands.co.uk
Author: Brand It! Midlands
Description: Custom one-page-install theme for Brand It! Midlands — one brand, every touchpoint. Bold geometric type, ink & teal palette drawn from the brand mark.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: brandit
*/

/* ================= TOKENS ================= */
:root {
	--ink: #232930;        /* logo charcoal */
	--ink-soft: #3a434d;
	--teal: #008E98;       /* logo teal */
	--teal-dark: #00727a;
	--teal-tint: #e5f4f5;
	--paper: #fefefe;
	--mist: #f2f4f5;
	--line: #e2e6e8;
	--muted: #5c6670;
	--display: 'Sora', system-ui, sans-serif;
	--body: 'Manrope', system-ui, sans-serif;
	--radius: 10px;
	--wrap: 1180px;
	--pad: clamp(20px, 4vw, 48px);
}

/* ================= RESET / BASE ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1.2em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead { color: #b9c1c9; }

/* Eyebrow label — encodes the section's place in the story */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--teal); margin-bottom: 18px;
}
.eyebrow::before { content: "!"; font-family: var(--display); font-size: 1.15rem; font-weight: 800; line-height: 0; }

.accent { color: var(--teal); }

/* ================= BUTTONS ================= */
.btn {
	display: inline-flex; align-items: baseline; gap: 2px;
	font-family: var(--display); font-weight: 700; font-size: 1rem;
	padding: 16px 28px; border-radius: var(--radius);
	transition: transform .15s ease, background .15s ease, color .15s ease;
	cursor: pointer; border: 2px solid transparent;
}
.btn__bang { color: currentColor; transition: transform .2s ease; display: inline-block; }
.btn:hover .btn__bang { transform: rotate(12deg) translateY(-2px); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--ink .btn--ghost { border-color: #fff; color: #fff; }
.section--ink .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ================= HEADER ================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(254,254,254,.92); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.site-logo img { width: clamp(150px, 18vw, 210px); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav li { position: relative; }
.site-nav a {
	display: block; padding: 10px 14px; font-weight: 700; font-size: .95rem; color: var(--ink);
	border-radius: 8px;
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--teal); }
/* dropdown */
.site-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px;
	box-shadow: 0 18px 40px rgba(35,41,48,.12);
	padding: 8px; display: block;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	flex-direction: column;
}
.site-nav .sub-menu li { width: 100%; }
.site-nav .sub-menu a { padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.site-nav .sub-menu a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav .menu-item-has-children > a::after { content: " ▾"; font-size: .7em; }
.header-cta { white-space: nowrap; padding: 12px 20px; font-size: .9rem; }

/* burger */
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 920px) {
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.site-nav {
		position: fixed; inset: 84px 0 0 0; background: var(--paper);
		display: none; padding: 24px var(--pad); overflow: auto;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav a { font-size: 1.15rem; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 18px; }
	body.nav-open { overflow: hidden; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ================= HERO ================= */
.hero { padding: clamp(72px, 10vw, 140px) 0 0; overflow: hidden; }
.hero h1 { max-width: 12em; }
.hero__rotator { color: var(--teal); display: inline-block; min-width: 6.2em; }
.hero__rotator .word { display: inline-block; animation: bim-word-in .45s ease; }
@keyframes bim-word-in { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 0; }
.hero__meta { margin-top: 22px; font-weight: 700; color: var(--muted); font-size: .95rem; }

/* Touchpoint marquee — the "every touchpoint" strip */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: bim-marquee 30s linear infinite; }
.marquee__item { font-family: var(--display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; color: var(--ink-soft); }
.marquee__item::after { content: "!"; color: var(--teal); margin-left: 3px; }
@keyframes bim-marquee { to { transform: translateX(-50%); } }

/* ================= SERVICE INDEX (editorial rows) ================= */
.svc-index { border-top: 1px solid var(--line); }
.svc-row {
	display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: center;
	padding: 26px 8px; border-bottom: 1px solid var(--line); color: var(--ink);
	transition: background .15s ease, padding-left .15s ease;
}
.svc-row:hover { background: var(--teal-tint); padding-left: 20px; color: var(--ink); }
.svc-row__icon { width: 44px; height: 44px; color: var(--teal); }
.svc-row__icon svg { width: 100%; height: 100%; }
.svc-row__name { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.7rem); letter-spacing: -0.01em; }
.svc-row__short { display: block; color: var(--muted); margin: 4px 0 0; font-size: .98rem; }
.svc-row__tag { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.svc-row__arrow { font-family: var(--display); font-weight: 800; color: var(--teal); font-size: 1.3rem; transition: transform .15s ease; }
.svc-row:hover .svc-row__arrow { transform: translateX(6px); }
@media (max-width: 640px) {
	.svc-row { grid-template-columns: 40px 1fr; }
	.svc-row__side { display: none; }
	.svc-row__icon { width: 34px; height: 34px; }
}

/* ================= PHOTOS ================= */
.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1020px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo { margin: 0; }
.photo .site-photo {
	width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
	border-radius: 12px; border: 1px solid var(--line); background: #E5F4F5;
	transition: transform .15s ease;
}
.photo:hover .site-photo { transform: translateY(-3px); }
.photo--tall .site-photo { aspect-ratio: 14 / 9; border-radius: 14px; }
.photo figcaption {
	font-family: var(--display); font-weight: 700; font-size: .72rem;
	color: var(--muted); margin-top: 8px; letter-spacing: .06em; text-transform: uppercase;
}
.photo figcaption::after { content: "!"; color: var(--teal); }

/* ================= GENERIC GRIDS / CARDS ================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.section--mist .card { border-color: #e8ebec; }

/* Steps (process) */
.step { position: relative; padding-left: 0; }
.step__num { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--teal); line-height: 1; margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* Check list */
.checks { list-style: none; margin: 0 0 1.4em; padding: 0; }
.checks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); font-weight: 600; }
.checks li::before {
	content: "!"; position: absolute; left: 6px; top: 8px;
	font-family: var(--display); font-weight: 800; color: var(--teal); font-size: 1.15rem;
}

/* ================= FAQ ================= */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
	font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding: 22px 4px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--teal); font-weight: 800; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 4px 22px; margin: 0; max-width: 52em; }

/* ================= TESTIMONIALS ================= */
.quote { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.quote__mark { font-family: var(--display); font-size: 3rem; font-weight: 800; color: var(--teal); line-height: .6; }
.quote__text { font-size: 1.05rem; font-weight: 600; margin: 0; }
.quote__who { color: var(--muted); font-size: .9rem; margin: 0; }
.quote__who strong { color: var(--ink); display: block; }

/* ================= CTA BANNER ================= */
.cta-banner { text-align: left; }
.cta-banner h2 { max-width: 15em; }
.cta-banner .btn { margin-top: 10px; }

/* ================= PAGE HERO (inner pages) ================= */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero--art { overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero--art .page-hero__grid { grid-template-columns: 1.25fr .75fr; }
@media (max-width: 860px) { .page-hero--art .page-hero__grid { grid-template-columns: 1fr; } }

/* Art plate — branded frame that makes illustrations part of the page system */
.art-plate {
	background: var(--teal-tint);
	border-radius: 24px;
	padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) 18px;
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	max-width: 440px; margin-left: auto;
	position: relative;
}
.art-plate::before {
	content: "!";
	position: absolute; top: 14px; right: 22px;
	font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--teal);
	opacity: .5;
}
.art-plate img { width: 100%; max-width: 340px; }
.art-plate__label {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--display); font-weight: 700; font-size: .72rem;
	letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
	white-space: nowrap;
}
.art-plate__label::before, .art-plate__label::after {
	content: ""; display: block; width: 26px; height: 2px; background: var(--teal);
}
@media (max-width: 860px) {
	.art-plate { margin: 0 auto; max-width: 380px; }
}
.page-hero .crumb { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; display: block; }
.page-hero .crumb a { color: var(--teal-dark); }

/* ================= CONTACT ================= */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; font-size: .9rem; margin: 18px 0 6px; }
.form input, .form select, .form textarea {
	width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
	border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-tint); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { margin-top: 24px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.notice { padding: 16px 20px; border-radius: var(--radius); font-weight: 700; margin-bottom: 24px; }
.notice--ok { background: var(--teal-tint); color: var(--teal-dark); border: 1px solid var(--teal); }
.notice--err { background: #fdeeee; color: #9c2b2b; border: 1px solid #e3b4b4; }
.info-block { border-left: 3px solid var(--teal); padding-left: 20px; margin-bottom: 26px; }
.info-block h3 { margin-bottom: 4px; font-size: 1rem; }
.info-block p, .info-block a { margin: 0; color: var(--muted); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; }

/* ================= FOOTER ================= */
.site-footer { background: var(--ink); color: #aeb6be; padding: clamp(56px, 7vw, 88px) 0 32px; }
.site-footer a { color: #dfe4e8; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-mark { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: .02em; }
.footer-mark .accent { color: var(--teal); }
.footer-strap { margin: 10px 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid #39424c; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ================= SCROLL REVEAL ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.marquee__track { animation: none; }
	.hero__rotator .word { animation: none; }
	html { scroll-behavior: auto; }
}

/* ================= WP BASICS ================= */
.entry-content { max-width: 760px; }
.entry-content img { border-radius: 12px; }
.alignwide { max-width: var(--wrap); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
