/**
 * HaveYouBean — main stylesheet.
 *
 * Sections 1–6 are a direct port of the project's reference design
 * (artifacts/have-you-bean/src/index.css) so the WordPress front end renders
 * identically to the original React build: same tokens, same class names,
 * same keyframes and timings. Section 7 adds the WordPress-only extras
 * (admin bar offset, blog templates, comments, alignment classes) re-toned
 * to the same design system.
 */

/* ============================================================ 1. TOKENS === */
:root {
	--font-manrope: 'Manrope', sans-serif;
	--font-newsreader: 'Newsreader', serif;
	color-scheme: light;
	--background: #f5f0e7;
	--foreground: #1b1d19;
	--card: #fffdf8;
	--card-foreground: #1b1d19;
	--primary: #173d32;
	--primary-foreground: #fffdf8;
	--secondary: #d9dfd2;
	--secondary-foreground: #173d32;
	--muted: #e8e3da;
	--muted-foreground: #5d625d;
	--accent: #a65332;
	--accent-foreground: #fffdf8;
	--border: #cdc7bc;
	--input: #bdb6aa;
	--ring: #a65332;
	--destructive: #a65332;
	--radius: .25rem;
}

/* ============================================================ 2. BASE === */
*,
*::before,
*::after { box-sizing: border-box; border-color: var(--border); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* The pre-reveal translateX(±3.5rem) states must never create a horizontal
   scrollbar; clip the viewport exactly as the design intends. */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-manrope);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
	font-size: 1.06rem;
}

h1, h2, h3 { font-family: var(--font-newsreader); font-weight: 400; }
h4, h5, h6 { font-family: var(--font-newsreader); font-weight: 400; }

img, svg, video { max-width: 100%; height: auto; }

a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-foreground); }

svg.hyb-icon { display: inline-block; vertical-align: middle; }

/* ================================================= 3. REFERENCE LAYOUT === */
.site-shell { width: min(100% - 2rem, 1280px); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; transform: translateY(-200%); background: var(--card); padding: .75rem 1rem; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.95); color: var(--foreground); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header-inner { height: 72px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: -.03em; }
.brand-logo { height: 2.75rem; width: auto; }
.brand-mark { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .75rem; letter-spacing: .06em; }
.desktop-nav { display: none; margin-left: auto; align-items: center; gap: 2rem; }
.desktop-nav a { font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 0.95rem; font-weight: 700; transition: color 0.25s ease, opacity 0.2s ease; }
.desktop-nav a:hover { color: var(--accent); opacity: 1; }
.desktop-nav a.is-active, .mobile-nav a.is-active { color: var(--accent) !important; opacity: 1 !important; font-weight: 800; }
.site-footer nav a { transition: opacity .2s ease; }
.site-footer nav a:hover { opacity: .62; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; border: 1px solid transparent; padding: .75rem 1.1rem; font-size: .78rem; font-weight: 700; letter-spacing: .01em; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button svg, .text-link svg { width: 1rem; height: 1rem; transition: transform .2s ease; }
.button:hover svg, .text-link:hover svg { transform: translateX(4px); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--primary); color: var(--primary-foreground); }
.button-primary:hover { background: var(--foreground); }
.button-header { display: none; margin-left: auto; border-color: var(--primary); color: var(--primary); font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; }
.button-header:hover { background: var(--primary); color: #ffffff; }
.button-light { background: var(--card); color: var(--foreground); }
.button-light:hover { background: var(--secondary); }
.icon-button { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; background: transparent; color: inherit; border: 0; }
.icon-button svg { width: 1.35rem; }
.mobile-nav-wrap { margin-left: auto; display: contents; }
.mobile-nav { position: fixed; top: 72px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 1.25rem 1rem 1.5rem; background: #ffffff; color: var(--foreground); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.mobile-nav > a:not(.button) { padding: 1rem 0; border-bottom: 1px solid var(--border); font-family: var(--font-newsreader); font-size: 1.5rem; color: var(--foreground); }
.mobile-nav .button { margin-top: 1rem; background: var(--primary); color: #ffffff; }
.mobile-nav[hidden] { display: none; }

/* ==================================================== 4. REFERENCE HERO === */
.hero { min-height: 780px; height: 100svh; position: relative; display: flex; align-items: center; overflow: hidden; background: var(--foreground); color: var(--card); isolation: isolate; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; object-fit: cover; object-position: 64% center; animation: hero-image-in 1.8s cubic-bezier(.2,.7,.2,1) both, ken-burns 32s ease-in-out infinite 1.8s; }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(16, 22, 18, 0.42) 0%, rgba(16, 22, 18, 0.88) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(16,22,18,.14); opacity: 0; animation: hero-wash-in 1.4s .2s ease-out forwards; }
.hero-content { width: 100%; position: relative; z-index: 2; padding-block: 8rem 6rem; }
.hero-kicker { display: flex; align-items: center; gap: .85rem; margin-bottom: 2rem; overflow: hidden; animation: hero-rise .75s .2s cubic-bezier(.2,.7,.2,1) both; }
.hero-kicker span { width: 3.5rem; height: 2px; background: var(--accent); transform-origin: left; animation: hero-line 1.2s .65s cubic-bezier(.2,.7,.2,1) both; }
.hero-kicker p { margin: 0; color: var(--secondary); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 1080px; margin: 0; font-size: clamp(3.2rem, 9.2vw, 8rem); line-height: .88; letter-spacing: -.05em; text-wrap: balance; }
.hero h1 span, .hero h1 em { display: block; animation: hero-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 span { animation-delay: .32s; background: linear-gradient(135deg, #ffffff 30%, var(--secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 em { font-family: var(--font-newsreader); font-style: italic; font-weight: 300; animation-delay: .46s; background: linear-gradient(135deg, var(--accent) 30%, #e28f6d 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow { margin: 0 0 1.25rem; color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: var(--secondary); }
.hero-lower { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; margin-top: 2.5rem; max-width: 620px; }
.hero-copy { max-width: 590px; margin: 0; font-size: clamp(1.18rem, 2.5vw, 1.35rem); line-height: 1.6; color: color-mix(in srgb, var(--card) 85%, transparent); animation: hero-rise .8s .62s cubic-bezier(.2,.7,.2,1) both; }
.hero-actions { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; animation: hero-rise .8s .76s cubic-bezier(.2,.7,.2,1) both; }
.hero-actions .button-light { background: #ffffff; color: var(--foreground); border-color: #ffffff; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); transition: all 0.25s ease; }
.hero-actions .button-light:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(166, 83, 50, 0.22); }
.hero-actions .button-outline-light { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #ffffff; background: transparent; transition: all 0.25s ease; }
.hero-actions .button-outline-light:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); transform: translateY(-3px); }
.button-outline-light { border: 1.5px solid color-mix(in srgb, var(--card) 45%, transparent); background: transparent; color: var(--card); }
.button-outline-light:hover { border-color: var(--card); background: color-mix(in srgb, var(--card) 10%, transparent); }
.text-link { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem 0; border-bottom: 1px solid currentColor; background: transparent; border-top: 0; border-left: 0; border-right: 0; font-size: .78rem; font-weight: 750; }
.light-link { color: var(--card); }
.light-link svg { transform: none; }
.hero-edge-note { display: none; position: absolute; right: 2.5rem; top: 50%; z-index: 2; align-items: center; gap: 1.25rem; writing-mode: vertical-rl; color: color-mix(in srgb, var(--card) 75%, transparent); animation: hero-fade 1s 1s ease both; }
.hero-edge-note span { color: var(--secondary); font-family: var(--font-newsreader); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.05em; }
.hero-edge-note p { margin: 0; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.hero-scroll { position: absolute; right: 2rem; bottom: 2rem; z-index: 3; display: flex; align-items: center; gap: .65rem; color: var(--card); font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transition: color 0.25s ease; animation: hero-fade 1s 1.1s ease both; }
.hero-scroll:hover { color: var(--accent); }
.hero-scroll svg { width: 1.1rem; animation: hero-bob 1.8s ease-in-out infinite; }
@keyframes hero-image-in { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1.02); } }
@keyframes ken-burns { 0%, 100% { transform: scale(1.02) translate(0, 0); } 50% { transform: scale(1.08) translate(-1%, -0.5%); } }
@keyframes hero-wash-in { to { opacity: 1; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.35rem); } }
.section { padding-block: 6rem; scroll-margin-top: 70px; }

/* ── Scroll-reveal animation classes ── */
.reveal-fade-up {
	opacity: 0;
	transform: translateY(2.8rem);
	transition: opacity 0.9s cubic-bezier(.22,.68,0,1), transform 0.95s cubic-bezier(.22,.68,0,1);
}
.reveal-fade-left {
	opacity: 0;
	transform: translateX(-3.5rem);
	transition: opacity 0.9s cubic-bezier(.22,.68,0,1), transform 0.95s cubic-bezier(.22,.68,0,1);
}
.reveal-fade-right {
	opacity: 0;
	transform: translateX(3.5rem);
	transition: opacity 0.9s cubic-bezier(.22,.68,0,1), transform 0.95s cubic-bezier(.22,.68,0,1);
}
.is-revealed { opacity: 1 !important; transform: none !important; }

/* on mobile: convert left/right slides to simple fade-up so nothing clips off-screen */
@media (max-width: 767px) {
	.reveal-fade-left  { transform: translateY(2rem); }
	.reveal-fade-right { transform: translateY(2rem); }
	.is-revealed { transform: none !important; }

	/* Mobile copy legibility enhancements */
	body { font-size: 1.12rem !important; }
	.hero-copy { font-size: 1.3rem !important; line-height: 1.65 !important; }
	.about-copy { font-size: 1.2rem !important; line-height: 1.8 !important; }
	.service-content > p:not(.service-summary) { font-size: 1.18rem !important; line-height: 1.8 !important; }
	.consultation-content p:not(.eyebrow) { font-size: 1.18rem !important; line-height: 1.8 !important; }
	.contact-copy > p:not(.eyebrow) { font-size: 1.18rem !important; line-height: 1.8 !important; }
}

/* ================================================ 5. REFERENCE SECTIONS === */
.about-section { overflow: hidden; }
.about-heading { display: grid; gap: 1rem; }
.about-heading h2 { max-width: 1120px; margin: 0; font-size: clamp(3.4rem, 8.5vw, 8rem); line-height: .9; letter-spacing: -.055em; text-wrap: balance; }
.about-heading h2 em { color: var(--primary); font-weight: 300; }
.about-index { margin: 0; color: var(--muted-foreground); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.about-editorial { display: grid; gap: 2.5rem; margin-top: 4rem; }
.about-story { display: flex; flex-direction: column; gap: 2.5rem; }
.about-pullquote { margin: 0; color: var(--primary); font-family: var(--font-newsreader); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; }
.about-copy { max-width: 620px; font-size: 1.15rem; line-height: 1.75; }
.about-copy p { margin: 0 0 1.25rem; }
.about-copy .lead { font-family: var(--font-newsreader); font-size: 1.5rem; line-height: 1.45; }
.image-frame { position: relative; overflow: hidden; background: var(--muted); }
.image-frame img, .consultation-image img { object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.image-frame:hover img { transform: scale(1.025); }
.image-frame > img, .consultation-image > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-image { min-height: 520px; margin: 0; }
.about-image figcaption { position: absolute; inset: auto 0 0 auto; z-index: 2; max-width: 290px; padding: 1rem; background: var(--card); font-size: .72rem; }
.about-image figcaption span { display: block; margin-bottom: .35rem; color: var(--accent); font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.about-principles { display: flex; flex-direction: column; margin-top: 4rem; border-top: 1px solid var(--border); }
.about-principles p { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--border); font-family: var(--font-newsreader); font-size: 1.3rem; }
.about-principles span { color: var(--accent); font-family: var(--font-manrope); font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.section-intro h2, .services-heading h2, .contact-copy h2 { max-width: 760px; margin: 0; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.why-section { background: var(--primary); color: var(--primary-foreground); }
.why-center { display: flex; flex-direction: column; align-items: center; gap: 5rem; }
.why-header { text-align: center; }
.why-header h2 { margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -.045em; text-align: center; }

/* ── Why HaveYouBean rows ── */
.why-rows { display: flex; flex-direction: column; width: 100%; max-width: 860px; margin: 0 auto; }
.why-row {
	opacity: 0;
	transform: translateX(-2.5rem);
	transition: opacity 0.75s cubic-bezier(.22,.68,0,1), transform 0.75s cubic-bezier(.22,.68,0,1);
	cursor: default;
}
.why-row--visible { opacity: 1; transform: translateX(0); }
.why-row-inner {
	display: grid;
	grid-template-columns: 4rem 1fr;
	align-items: start;
	gap: 2rem;
	padding: 2rem 0;
	border-top: 1px solid color-mix(in srgb, var(--card) 16%, transparent);
	transition: padding-left 0.3s ease;
}
.why-row:last-child .why-row-inner { border-bottom: 1px solid color-mix(in srgb, var(--card) 16%, transparent); }
.why-row--hovered .why-row-inner { padding-left: .5rem; }
.why-row-left { display: flex; flex-direction: column; align-items: flex-start; padding-top: .35rem; }
.why-row-num {
	font-family: var(--font-manrope);
	font-size: .65rem;
	font-weight: 800;
	letter-spacing: .14em;
	color: var(--accent);
	transition: transform 0.3s ease;
}
.why-row--hovered .why-row-num { transform: translateY(-2px); }
.why-row-text { display: flex; flex-direction: column; gap: .85rem; }
.why-row-title {
	margin: 0;
	font-family: var(--font-newsreader);
	font-size: clamp(1.35rem, 2.6vw, 1.9rem);
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: -.03em;
	color: var(--primary-foreground);
	transition: letter-spacing 0.3s ease;
}
.why-row--hovered .why-row-title { letter-spacing: -.015em; }
.why-row-body {
	margin: 0;
	font-size: .93rem;
	line-height: 1.7;
	color: color-mix(in srgb, var(--card) 58%, transparent);
	transition: color 0.3s ease;
}
.why-row--hovered .why-row-body { color: color-mix(in srgb, var(--card) 76%, transparent); }

.services-heading { display: grid; gap: 1rem; }
.services-heading p:last-child { max-width: 570px; line-height: 1.7; }
.service-list { margin-top: 5rem; }
.service { display: grid; gap: 2rem; padding-block: 3rem; border-top: 1px solid var(--border); }
.service-image { aspect-ratio: 4/5; }
.service-content { align-self: center; }
.service-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.service-meta svg { width: 1.4rem; height: 1.4rem; }
.service h3 { margin: 0; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.04em; }
.service-summary { max-width: 560px; margin: 1.5rem 0; font-family: var(--font-newsreader); font-size: 1.45rem; line-height: 1.4; }
.service-content > p:not(.service-summary) { max-width: 570px; color: var(--muted-foreground); font-size: 1.12rem; line-height: 1.75; }
.service ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0; padding: 0; list-style: none; }
.service li { border: 1px solid var(--border); padding: .45rem .7rem; font-size: .7rem; }
.consultation { display: grid; background: var(--foreground); color: var(--card); scroll-margin-top: 70px; }
.consultation-image { position: relative; min-height: 430px; overflow: hidden; }
.consultation-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 4rem max(1rem, calc((100vw - 1280px) / 2)); }
.consultation-content h2 { max-width: 690px; margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: .94; letter-spacing: -.045em; }
.consultation-content p:not(.eyebrow) { max-width: 570px; margin: 1.5rem 0 2rem; color: color-mix(in srgb, var(--card) 72%, transparent); line-height: 1.7; }
.contact-section { background: var(--card); }
.contact-grid { display: grid; gap: 4rem; }
.contact-copy > p:not(.eyebrow) { max-width: 530px; margin-top: 1.5rem; color: var(--muted-foreground); line-height: 1.7; }
.contact-details { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-details li { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--muted-foreground); }
.contact-details li svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--accent); }
.contact-details a { color: var(--foreground); text-decoration: none; }
.contact-details a:hover { color: var(--accent); }
.contact-social { display: flex; gap: 1rem; margin-top: 2rem; }
.contact-social a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--border); color: var(--muted-foreground); transition: border-color .2s, color .2s, background .2s; }
.contact-social a:hover { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.contact-social a svg { width: 1rem; height: 1rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; background: var(--background); border-top: 3px solid var(--primary); }
.form-grid { display: grid; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .72rem; font-weight: 750; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--input); border-radius: 0; background: transparent; padding: .7rem .1rem; color: var(--foreground); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--destructive); }
.field-error, .submit-error { margin: 0; color: var(--destructive); font-size: .72rem; }
.checkbox-field { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .5rem; }
.checkbox-field input { width: 1rem; height: 1rem; margin-top: .15rem; accent-color: var(--primary); }
.checkbox-field .field-error { grid-column: 2; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .button { align-self: flex-start; }
.contact-form .button:disabled { opacity: .6; cursor: wait; }
.form-note { margin: 0; color: var(--muted-foreground); font-size: .68rem; }
.form-success { min-height: 420px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2rem; background: var(--background); border-top: 3px solid var(--primary); }
.form-success[hidden], .contact-form[hidden] { display: none; }
.form-success > span { width: 3rem; height: 3rem; display: grid; place-items: center; margin-bottom: 2rem; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); }
.form-success h3 { margin: 0; font-size: 2.5rem; }
.form-success p:not(.eyebrow) { max-width: 500px; line-height: 1.7; }

/* ── Footer ── */
.site-footer { padding-top: 5rem; background: var(--foreground); color: var(--card); }
.footer-main { display: grid; gap: 3rem; padding-bottom: 5rem; }
.footer-brand-col { display: flex; flex-direction: column; }
.footer-brand { margin-bottom: 1.25rem; }
.footer-logo { height: 4.5rem !important; width: auto !important; }
.footer-brand-col > p { max-width: 300px; color: color-mix(in srgb, var(--card) 52%, transparent); line-height: 1.65; font-size: .82rem; margin: 0 0 1.75rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid color-mix(in srgb, var(--card) 18%, transparent); color: color-mix(in srgb, var(--card) 52%, transparent); transition: border-color .22s ease, color .22s ease; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social a svg { width: .95rem; height: .95rem; }
.footer-label { color: var(--secondary); font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 1.25rem; }
.footer-nav-col nav,
.footer-services-col nav { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.site-footer nav a { font-size: .82rem; color: color-mix(in srgb, var(--card) 58%, transparent); text-decoration: none; transition: color .2s ease; }
.site-footer nav a:hover { color: var(--card); }
.footer-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .82rem; color: color-mix(in srgb, var(--card) 58%, transparent); }
.footer-contact-list li svg { width: .95rem; height: .95rem; flex-shrink: 0; margin-top: .15rem; color: var(--accent); }
.footer-contact-list a { color: inherit; text-decoration: none; transition: color .2s ease; }
.footer-contact-list a:hover { color: var(--card); }
.footer-bottom { display: flex; flex-direction: column; gap: .6rem; padding-block: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--card) 12%, transparent); }
.footer-bottom-left { display: flex; flex-direction: column; gap: .35rem; }
.footer-bottom-left p { margin: 0; color: color-mix(in srgb, var(--card) 40%, transparent); font-size: .67rem; }
.back-to-top { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border: 1px solid color-mix(in srgb, var(--card) 20%, transparent); color: color-mix(in srgb, var(--card) 60%, transparent); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: border-color .22s ease, color .22s ease, background .22s ease; align-self: flex-start; }
.back-to-top:hover { border-color: var(--accent); color: var(--card); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.back-to-top svg { width: .85rem; height: .85rem; }

/* ============================================= 6. REFERENCE BREAKPOINTS === */
@media (min-width: 640px) {
	.site-shell { width: min(100% - 3rem, 1280px); }
	.hero-actions { flex-direction: row; align-items: center; }
	.about-principles { flex-direction: row; }
	.about-principles p { flex: 1; padding: 1.5rem; border-right: 1px solid var(--border); }
	.about-principles p:first-child { padding-left: 0; }
	.about-principles p:last-child { border-right: 0; }
	.form-grid { grid-template-columns: 1fr 1fr; }
	.contact-form { padding: 2.5rem; }
	.footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
	.desktop-nav { display: flex; }
	.header-inner > .button-header { display: inline-flex; margin-left: 0; }
	.mobile-nav-wrap { display: none; }
	.hero-content { padding-bottom: 7rem; }
	.hero-edge-note { display: flex; }
	.hero-scroll { right: 2.5rem; bottom: 2.5rem; }
	.section { padding-block: 9rem; }
	.about-heading { grid-template-columns: 1fr auto; align-items: start; }
	.about-heading h2 { grid-column: 1 / -1; }
	.about-editorial { grid-template-columns: 1.2fr .8fr; gap: 5rem; margin-top: 6rem; }
	.about-story { justify-content: space-between; padding: 2rem 0; }
	.about-image { min-height: 760px; }
	.service { grid-template-columns: 1fr 1fr; gap: 7rem; padding-block: 5rem; }
	.service-image { aspect-ratio: auto; height: 100%; }
	.service-reverse .service-image { order: 2; }
	.service-reverse .service-content { order: 1; }
	.services-heading { grid-template-columns: 1.25fr .75fr; }
	.services-heading .eyebrow { grid-column: 1 / -1; }
	.consultation { grid-template-columns: 1fr 1fr; min-height: 720px; }
	.consultation-image { min-height: 720px; }
	.consultation-content { padding-inline: clamp(3rem, 7vw, 8rem); }
	.contact-grid { grid-template-columns: .9fr 1.1fr; gap: 7rem; }
	.footer-main { grid-template-columns: 1.6fr .55fr .7fr 1fr; gap: 4rem; }
	.footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
	.back-to-top { align-self: auto; }
}

@media (min-width: 1024px) {
	.header-inner { height: 90px; }
	.site-header { background: rgba(255, 255, 255, 0.95); }
	.brand { font-size: 1.25rem; font-weight: 800; gap: .8rem; }
	.brand-logo { height: 5.5rem !important; }
	.footer-logo { height: 6rem !important; }
	.brand-mark { width: 5.5rem; height: 5.5rem; font-size: 1.15rem; }
	.hero-content { padding-bottom: 8rem; }
}

/* ======================================================= 7. WP EXTRAS === */

/* Fixed header vs the WordPress admin bar */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-nav { top: calc(72px + 32px); }
@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
	body.admin-bar .mobile-nav { top: calc(72px + 46px); }
}
@media (max-width: 600px) {
	#wpadminbar { position: fixed !important; }
	html { margin-top: 46px !important; }
}

/* Screen reader text (WP standard) */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--card); clip: auto; clip-path: none; color: var(--foreground);
	height: auto; width: auto; padding: 1rem; z-index: 100000;
}

/* Simple reveal for WP inner pages ([data-reveal] markup) */
[data-reveal] {
	opacity: 0;
	transform: translateY(2rem);
	transition: opacity 0.9s cubic-bezier(.22,.68,0,1), transform 0.95s cubic-bezier(.22,.68,0,1);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* Inner-page hero band (blog, archives, legal pages) */
.page-hero { background: var(--primary); color: var(--primary-foreground); padding: calc(72px + 4rem) 0 4rem; }
.page-hero h1 { margin: 0; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.045em; }
.page-hero .eyebrow { color: var(--secondary); }
.page-hero p:not(.eyebrow) { max-width: 620px; margin: 1.25rem 0 0; color: color-mix(in srgb, var(--card) 72%, transparent); line-height: 1.7; }
.breadcrumbs { margin-bottom: 1.25rem; font-size: .72rem; color: color-mix(in srgb, var(--card) 60%, transparent); }
.breadcrumbs a { color: var(--secondary); }
.breadcrumbs .sep { opacity: .5; margin: 0 .4rem; }
.entry-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; font-size: .72rem; color: color-mix(in srgb, var(--card) 65%, transparent); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.entry-meta .cat { color: var(--secondary); }
@media (min-width: 1024px) { .page-hero { padding-top: calc(90px + 5rem); } }

/* Article body + legal pages */
.article-body { max-width: 720px; margin-inline: auto; font-size: 1rem; line-height: 1.75; }
.article-body h2, .article-body h3 { margin: 2.25rem 0 1rem; letter-spacing: -.03em; line-height: 1.1; }
.article-body h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.article-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.article-body p { margin: 0 0 1.25rem; }
.article-body a { color: var(--primary); border-bottom: 1px solid var(--accent); }
.article-body a:hover { color: var(--accent); }
.article-body img { margin: 1.75rem 0; }
.article-body blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 3px solid var(--accent); font-family: var(--font-newsreader); font-size: 1.4rem; line-height: 1.4; color: var(--primary); }
.article-body :where(ul, ol) { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.page-links { margin-top: 1.5rem; font-weight: 700; display: flex; gap: .5rem; }

/* Post cards (blog index/archive) */
.post-grid { display: grid; gap: 2rem; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); }
.post-card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--muted); display: block; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .post-card-media img { transform: scale(1.025); }
.post-card-body { display: flex; flex-direction: column; flex: 1; gap: .75rem; padding: 1.5rem; }
.post-card-meta { display: flex; gap: .75rem; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.post-card-meta time { color: var(--muted-foreground); letter-spacing: .06em; }
.post-card h3 { margin: 0; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.03em; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { margin: 0; font-size: .9rem; line-height: 1.65; color: var(--muted-foreground); }
.post-card .text-link { margin-top: auto; align-self: flex-start; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

/* Tags + post navigation */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tag-list a { border: 1px solid var(--border); padding: .45rem .7rem; font-size: .7rem; }
.tag-list a:hover { border-color: var(--accent); color: var(--accent); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: 720px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); font-weight: 700; font-size: .85rem; }
.post-nav a:hover { color: var(--accent); }

/* Pagination */
.pagination-wrap { margin-top: 4rem; }
.pagination-wrap .nav-links { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.pagination-wrap .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--border); font-weight: 700; font-size: .8rem; }
.pagination-wrap .page-numbers.current { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.pagination-wrap .page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent); }

/* Comments */
.comments-area { max-width: 720px; margin: 3.5rem auto 0; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.comments-area .comments-title, .comment-respond .comment-reply-title { font-size: 1.9rem; letter-spacing: -.03em; margin: 0 0 1.5rem; }
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.25rem; }
.comment-list ol.children { list-style: none; padding-left: 1.5rem; margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.comment-list .comment-body { background: var(--card); border: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.comment-list .comment-author { display: flex; align-items: center; gap: .75rem; font-weight: 700; margin-bottom: .35rem; }
.comment-list .comment-author img { border-radius: 50%; }
.comment-list .comment-meta { font-size: .72rem; color: var(--muted-foreground); margin-bottom: .75rem; }
.comment-list .reply { margin-top: .75rem; font-size: .78rem; font-weight: 700; }
.comment-list .reply a:hover { color: var(--accent); }
.comment-respond label { display: block; font-size: .72rem; font-weight: 750; margin-bottom: .4rem; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
	width: 100%; border: 0; border-bottom: 1px solid var(--input); border-radius: 0; background: transparent; padding: .7rem .1rem; margin-bottom: 1.25rem;
}
.comment-respond input:focus, .comment-respond textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.comment-respond .submit { min-height: 46px; display: inline-flex; align-items: center; gap: .7rem; border: 1px solid transparent; padding: .75rem 1.1rem; font-size: .78rem; font-weight: 700; background: var(--primary); color: var(--primary-foreground); transition: background .2s ease; }
.comment-respond .submit:hover { background: var(--foreground); }
.comment-respond .comment-notes, .comment-respond .comment-form-cookies-consent { font-size: .72rem; color: var(--muted-foreground); }
.comment-respond .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.comment-respond .comment-form-cookies-consent input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--primary); }

/* Search form */
.search-form { display: flex; gap: .75rem; align-items: stretch; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; border: 0; border-bottom: 1px solid var(--input); border-radius: 0; background: transparent; padding: .7rem .1rem; }
.search-form .search-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.search-form .search-submit { min-height: 46px; border: 1px solid transparent; padding: .75rem 1.1rem; font-size: .78rem; font-weight: 700; background: var(--primary); color: var(--primary-foreground); transition: background .2s ease; }
.search-form .search-submit:hover { background: var(--foreground); }

/* Image placeholder for unset media */
.img-placeholder { display: grid; place-items: center; position: absolute; inset: 0; background: var(--muted); color: var(--muted-foreground); }
.img-placeholder svg { width: 2.5rem; height: 2.5rem; opacity: .6; }

/* WP core alignment/caption classes */
.alignwide { width: min(100%, 1280px); }
.alignfull { width: 100%; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { font-size: .72rem; color: var(--muted-foreground); text-align: center; margin-top: .5rem; }
.sticky, .bypostauthor { display: block; }

/* ================================================== 8. REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.reveal-fade-up, .reveal-fade-left, .reveal-fade-right, .why-row, [data-reveal] { opacity: 1 !important; transform: none !important; }
}
