/*
Theme Name: Rochon Genova
Theme URI: https://negliadesign.com
Author: Neglia Design [ Graeme Demarsh ]
Author URI: https://negliadesign.com
Description: Custom theme by Neglia Design
Version: 1.1.0
*/

/*--------------------------------------------------------------
Design Tokens & Color Aliases
--------------------------------------------------------------*/
:root {
	/* Utility tokens — used throughout style.css and blocks.css */
	--rg-text-muted:   var(--wp--preset--color--mid-gray);   /* subtitles, secondary body text */
	--rg-text-hint:    var(--wp--preset--color--light-gray); /* dates, captions, meta */
	--rg-surface-dim:  rgba(0,0,0,0.06); /* placeholder / empty image bg */
	--rg-border-light: rgba(0,0,0,0.15); /* subtle dividers */

	/* Block editor color aliases — map legacy .has-burgundy-* to the correct variable */
	.has-burgundy-color            { color: var(--wp--preset--color--theme-primary) !important; }
	.has-burgundy-background-color { background-color: var(--wp--preset--color--theme-primary) !important; }
	.has-burgundy-border-color     { border-color: var(--wp--preset--color--theme-primary) !important; }
}

/*--------------------------------------------------------------
Reset & Base Elements
--------------------------------------------------------------*/
html {
	font-family: sans-serif;
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
	-webkit-tap-highlight-color: rgba(124, 0, 32, 0.15);
	height: 100%;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

body {
	margin:0;
	height:100%;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
	display: block;
}

img {
	vertical-align: middle;
	height: auto;
	max-width: 100%;
}

svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

embed,
iframe,
object {
	max-width: 100%;
}

figure {
	display:block;
	margin: 0 auto 1em;
}

table {
	max-width:100%;
	border-collapse:collapse;
	border-spacing:0;
}



/*--------------------------------------------------------------
Header
--------------------------------------------------------------*/

/* Body offset: header-top + header-nav combined height.
   Mobile (≤600px): stacked layout is taller — bump padding accordingly. */
html body {
	padding-top: 175px;
}

@media (min-width: 601px) {
	html body {
		padding-top: 125px;
	}
}

@media (min-width: 992px) {
	html body {
		padding-top: 148px;
	}
}

body.admin-bar .site-header {
	top: 32px; /* WP admin bar: 32px on desktop */
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px; /* WP admin bar collapses to 46px on mobile */
	}
}

.site-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 99;
	background-color: var(--wp--preset--color--cream);
}


/*--------------------------------------------------------------
Header top row: Since badge | Logo | CTA + Phones
--------------------------------------------------------------*/
.header-top__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto;
	padding: 1.2rem var(--wp--style--root--padding-right) 1.2rem var(--wp--style--root--padding-left);
	border-bottom: 3px double rgba(0,0,0,0.28);
}

/* Since 1999 — beige pill, serif italic, primary text */
.header-top__since {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 0.2em;
	background-color: var(--wp--preset--color--beige);
	color: var(--wp--preset--color--theme-primary);
	padding: 0.45em 1.1em;
	border-radius: 6px;
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	letter-spacing: 0.02em;
}

/* Logo */
.site-logo {
	justify-self: center;
	display: block;
	text-decoration: none;
}

.site-logo:hover {
	text-decoration: none;
}

.site-logo svg {
	display: block;
	height: clamp(32px, 5vw, 62px);
	width: auto;
}


/* Right-side: CTA + phones */
.header-top__actions {
	justify-self: end;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.28rem;
}

/* CTA text link */
.header-top__cta {
	display: inline-block;
	color: var(--wp--preset--color--soft-black) !important;
	text-decoration: underline !important;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.header-top__cta:hover,
.header-top__cta:focus {
	opacity: 0.65;
	color: var(--wp--preset--color--soft-black) !important;
	text-decoration: underline !important;
}

/* Phone numbers below the button */
.header-top__phones {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.7rem;
	color: var(--wp--preset--color--theme-primary);
}

.header-top__phone {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s;
}

.header-top__phone:hover {
	opacity: 0.75;
	color: var(--wp--preset--color--theme-primary);
	text-decoration: none;
}

.header-top__phone-sep {
	opacity: 0.5;
}

/* Mobile header: stack since → logo → contact, center everything */
@media (max-width: 600px) {
	.header-top__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 0.35rem;
		padding-top: 0.55rem;
		padding-bottom: 0.55rem;
	}

	.header-top__since {
		justify-self: center; /* override: base is justify-self: start */
		font-size: 0.72rem;
		padding: 0.3em 0.8em;
	}

	.header-top__actions {
		justify-self: center; /* override: base is justify-self: end */
		align-items: center;
	}
}


/*--------------------------------------------------------------
Header nav row — centered with full-height dividers
--------------------------------------------------------------*/
.header-nav {
	background-color: var(--wp--preset--color--cream);
}

.header-nav__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto;
	padding: 0 var(--wp--style--root--padding-right) 0 var(--wp--style--root--padding-left);
}

@media (max-width: 991px) {
	.header-nav__inner {
		justify-content: flex-end;
		flex-wrap: wrap;
	}
}

@media (max-width: 600px) {
	.header-nav__inner {
		justify-content: center;
	}
}


/*--------------------------------------------------------------
Navigation
--------------------------------------------------------------*/

/* ── General menu styles (base) ── */

.site-nav {
	position: relative;
	display: flex;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
}

/* Top-level list — flex row so border-left spans full height */
.site-nav > ul {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: flex;
	align-items: stretch;
}

/* All li elements */
.site-nav li {
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
}

/* Short centered dividers between top-level items */
.site-nav > ul > li + li::before {
	content: '';
	display: block;
	width: 1px;
	height: 0.85em;
	background: rgba(0,0,0,0.20);
	align-self: center;
	flex-shrink: 0;
}

/* Anchor defaults */
.site-nav a {
	display: flex;
	align-items: center;
	position: relative;
	text-align: center;
	text-decoration: none;
	font-weight: 500;
	letter-spacing: 0.13em;
	font-size: 0.72rem;
	color: var(--wp--preset--color--soft-black);
	height: 100%;
}

/* Top-level anchor padding */
.site-nav > ul > li > a {
	padding: 0.8rem 1rem;
}

.site-nav a:hover {
	text-decoration: none;
}

/* Dropdown caret on items with children */
.site-nav ul.menu > li.menu-item-has-children > a::after {
	content: ' ';
	position: absolute;
	top: 50%;
	right: 0.2rem;
	transform: translateY(-50%);
	display: block;
	width: 0.6em;
	height: 0.6em;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23222222' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	pointer-events: none;
	transition: transform 0.25s ease;
}

.site-nav ul.menu > li.menu-item-has-children.open > a::after {
	transform: translateY(-50%) rotate(180deg);
}

/* Active / current page */
.site-nav ul.menu > li.current-menu-item > a,
.site-nav ul.menu > li.current-menu-parent > a,
.site-nav ul.menu > li.current-page-ancestor > a {
	color: var(--wp--preset--color--theme-primary);
	font-weight: 700;
}

/* Hover / focus on top-level links */
.site-nav ul.menu > li:hover > a,
.site-nav ul.menu > li > a:hover,
.site-nav ul.menu > li > a:focus,
.site-nav ul.menu > li > a:active {
	color: var(--wp--preset--color--theme-primary);
	text-decoration: none;
}




/* ── Desktop dropdowns (≥ 992px) — positioning & container ── */

@media (min-width: 992px) {

	/* li must be relative so absolute dropdown anchors to it */
	.site-nav > ul > li {
		position: relative;
	}

	/* base dropdown container — hidden off-canvas */
	.site-nav ul ul {
		position: absolute;
		top: 100%;
		left: -999em;
		z-index: 99999;
		min-width: 220px;
		max-width: 400px;
		background-color: var(--wp--preset--color--cream);
		border-top: 2px solid var(--wp--preset--color--theme-primary);
		box-shadow: 0 8px 24px rgba(0,0,0,0.10);
	}

	/* reveal dropdown */
	.site-nav ul > li:hover > ul,
	.site-nav ul > li.open > ul {
		left: 0;
	}

	/* dropdown li: block, not flex */
	.site-nav ul ul li {
		display: block;
	}
}


/* ── Dropdown content (all sizes) ── */

.site-nav ul ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav ul ul li {
	display: block;
}

.site-nav ul ul a {
	text-align: left;
	padding: 12px 17px;
	color: inherit;
	border-bottom: 1px solid rgba(0,0,0,0.15);
	white-space: nowrap;
}

/* remove border on last dropdown item */
.site-nav ul ul li:last-child a {
	border-bottom: none;
	padding-bottom: 14px;
}



/* ── Nested submenus (3rd level) ── */

.site-nav ul ul ul {
	padding: 0 0 7px 10px;
}

/* active/hover states in submenus */
.site-nav ul.sub-menu a:hover,
.site-nav ul.sub-menu a:focus,
.site-nav ul.sub-menu li.current-menu-item a,
.site-nav ul.sub-menu li.current-menu-parent a,
.site-nav ul.sub-menu li.current-page-ancestor a {
	color: var(--wp--preset--color--theme-primary);
}



/* ── Mobile menu toggle ── */

.menu-toggle {
	display: none;
	align-self: center;
	flex-direction: row;
	align-items: center;
	gap: 0.4em;
	border: none;
	border-radius: 0;
	background-color: transparent;
	cursor: pointer;
	transition: color 0.25s ease-in-out, opacity 0.25s ease-in-out;
	min-width: auto;
	color: var(--wp--preset--color--theme-primary);
	padding: 3px 15px;
	margin: 0;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active {
	color: var(--wp--preset--color--theme-primary);
	background-color: transparent;
}

/* show toggle on mobile */
@media (max-width: 991px) {
	.menu-toggle {
		display: flex;
	}
}

/* label + icon sizing */
.menu-toggle span {
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
}

.menu-toggle svg {
	display: block;
	fill: currentColor;
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
}

/* hamburger lines + transition */
.menu-toggle svg .line {
  opacity: 1;
  transform: rotate(0);
  transform-box: view-box;
  transform-origin: center;
  transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

/* Expanded (X) */
.menu-toggle[aria-expanded="true"] svg .line-1 {
  transform: rotate(45deg) translateY(30%);
}

.menu-toggle[aria-expanded="true"] svg .line-2 {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] svg .line-3 {
  transform: rotate(-45deg) translateY(-30%);
}


/* ── Mobile navigation panel (≤ 991px) ── */

body.mobile-menu-visible {
	overflow: hidden;
}

@media screen and (max-width: 991px) {

	/* Hide ::before dividers — they only make sense in the horizontal desktop nav */
	.site-nav > ul > li + li::before {
		display: none;
	}

	/* Reset flex on mobile top-level ul */
	.site-nav > ul {
		display: block;
	}

	/* collapsed by default; expands to full header width */
	.main-navigation {
		display: none;
		overflow-x: hidden;
		overflow-y: auto;
		width: 100%;
		background-color: var(--wp--preset--color--cream);
		border-top: 1px solid rgba(0,0,0,0.07);
	}

	/* shown when toggled */
	.main-navigation.visible {
		display: block;
	}

	/* panel inner spacing */
	.main-navigation > ul {
		margin: 0;
		padding: 0.5rem 0 1rem;
	}

	/* vertical list items */
	.main-navigation li {
		display: block;
		font-size: 0.95rem;
	}

	/* separators between top-level items */
	.main-navigation > ul > li {
		border-bottom: 1px solid rgba(0,0,0,0.07);
	}

	.main-navigation > ul > li:last-child {
		border-bottom: none;
	}

	/* mobile link padding + left align */
	.main-navigation > ul > li > a {
		padding: 0.75rem 1.2rem;
		text-align: left;
		font-size: 0.85rem;
		letter-spacing: 0.1em;
	}

	/* nested submenu block behavior for mobile */
	.main-navigation ul ul {
		position: relative;
		display: none;
		margin-bottom: 8px;
	}

	/* show nested submenu when parent is open (mobile) */
	.main-navigation ul li.menu-item-has-children.open ul {
		display: block;
	}

	/* nested items in mobile */
	.main-navigation ul ul li {
		display: block;
	}

	/* nested link padding in mobile */
	.main-navigation ul ul a {
		text-align: left;
		padding: 8px 8px 8px 30px;
		font-size: 0.8rem;
	}

	/* third-level padding in mobile */
	.main-navigation ul ul ul {
		padding: 0 0 7px 10px;
	}
}




/*--------------------------------------------------------------
Posts
--------------------------------------------------------------*/
.posts-archive__wrap{
	padding-top: var(--wp--preset--spacing--2-xl);
}




.posts-archive__select {
	position: relative;
	display: inline-block;
}

.posts-archive__select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.4rem; /* ← adjust this to move inward */
	transform: translateY(-50%);
	width: 12px;
	height: 8px;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}


.posts-archive__select select {
	appearance: none;
	border: 0;
	background: var(--wp--preset--color--white);
	border-radius: 20px;
	padding: 1.1rem 1.7rem;
	font-weight: 700;
	min-width: 250px;
}

/* ── Posts grid — 4 columns ── */
.posts-grid {
	padding: var(--wp--preset--spacing--2-xl) 0;
	margin: 0;
	list-style: none;
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.posts-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1200px) {
	.posts-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ── Post card ── */
.posts-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.posts-card:hover,
.posts-card:focus-visible {
	text-decoration: none;
}

/* Featured image — full-bleed at top */
.posts-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.posts-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.posts-card:hover .posts-card__img {
	transform: scale(1.03);
}

.posts-card__img-placeholder {
	width: 100%;
	height: 100%;
	background: var(--wp--preset--color--beige);
}

/* Card body */
.posts-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding-top: 0.75rem;
	flex: 1;
}

/* Category tag — pill with light fill, italic primary text */
.posts-card__tag {
	align-self: flex-start;
	display: inline-block;
	margin: 0;
	font-style: italic;
	font-weight: 400;
	font-size: 0.8rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--theme-primary);
	background-color: var(--wp--preset--color--beige);
	border-radius: 100px;
	padding: 0.2em 0.75em;
}

/* Title — italic, normal weight */
.posts-card__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 400;
	font-style: italic;
	line-height: 1.35;
	color: var(--wp--preset--color--soft-black);
	transition: color 0.15s;
}

.posts-card:hover .posts-card__title {
	color: var(--wp--preset--color--theme-primary);
}

/* Date */
.posts-card__date {
	font-size: 0.72rem;
	color: var(--rg-text-hint);
	font-weight: 500;
}

/* Excerpt */
.posts-card__excerpt {
	color: var(--rg-text-muted);
	font-size: 0.825rem;
	line-height: 1.55;
	margin-top: 0.15rem;
}

.posts-card__excerpt p {
	margin: 0;
	font-size: inherit;
}

/* Empty state */
.posts-empty {
	padding: var(--wp--preset--spacing--lg) 0 var(--wp--preset--spacing--xl);
}



/*--------------------------------------------------------------
Single Post
--------------------------------------------------------------*/

/* ── Hero — beige bg, full-width ── */
.post-hero {
	background: var(--wp--preset--color--beige);
	padding-top: var(--wp--preset--spacing--3-xl);
	padding-bottom: var(--wp--preset--spacing--3-xl);
}

.post-hero__inner {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto;
	margin-right: auto;
}

.post-hero__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0 0 var(--wp--preset--spacing--sm);
}

.post-hero__pill,
.post-hero__pill:hover,
.post-hero__pill:focus,
.post-hero__pill:active {
	text-decoration: none;
}

.post-hero__title {
	margin: 0 0 0;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
}

.post-hero__date {
	margin: 1rem 0 0;
	font-size: 0.85rem;
	color: var(--rg-text-muted);
}

/* ── Body — constrained prose ── */
.post-body {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto;
	margin-right: auto;
	padding-top: var(--wp--preset--spacing--3-xl);
	padding-bottom: var(--wp--preset--spacing--4-xl);
}

.post-body__content {
	min-width: 0;
}



/*--------------------------------------------------------------
Paginate
--------------------------------------------------------------*/
.paginate-area {
	padding: 0 0 var(--wp--preset--spacing--4-xl);
	font-size: 1.3rem;
}

/* UL wrapper from paginate_links(type=list) */
.paginate-area ul.page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

/* LI items */
.paginate-area ul.page-numbers > li {
	margin: 0;
	padding: 0;
}

/* Links + spans */
.paginate-area .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	padding: 0.35rem 0.6rem;
}

/* Current page */
.paginate-area .page-numbers.current {
	color: var(--wp--preset--color--theme-primary);
	font-weight: bold;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--wp--preset--color--theme-primary);
	text-underline-offset: 0.2em;
}

/* Dots (…) */
.paginate-area .page-numbers.dots {
	padding: 0.35rem 0.2rem;
}

/* Next / Prev arrows */
.paginate-area .page-numbers.next::before {
	content: ' ';
	display: inline-block;
	width: 1em;
	height: 1em;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23222B35' d='M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z'%3E%3C/path%3E%3C/svg%3E");
}

.paginate-area .page-numbers.prev::after {
	content: ' ';
	display: inline-block;
	width: 1em;
	height: 1em;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23222B35' d='M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z'%3E%3C/path%3E%3C/svg%3E");
}



/*--------------------------------------------------------------
Footer
--------------------------------------------------------------*/
.site-footer {
	margin: 0;
	padding: 0;
}

/* ── Logo ── */
.site-footer__logo {
	display: flex;
	justify-content: center;
	margin-bottom: var(--wp--preset--spacing--lg);
}

.site-footer__logo svg {
	width: 100%;
	max-width: clamp(260px, 48%, 460px);
	fill: var(--wp--preset--color--beige);
}

/* ── Navigation ── */
.site-footer .wp-block-navigation .wp-block-navigation__container {
	justify-content: center;
	flex-wrap: wrap;
}

.site-footer .wp-block-navigation-item + .wp-block-navigation-item {
	border-left: 1px solid rgba(240, 237, 231, 0.3);
}

.site-footer .wp-block-navigation-item__content {
	color: var(--wp--preset--color--beige) !important;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.3em 1em;
}

.site-footer .wp-block-navigation-item__content:hover {
	opacity: 0.75;
}

/* ── Separator ── */
.site-footer .wp-block-separator {
	border-color: rgba(240, 237, 231, 0.2) !important;
	border-top-width: 1px;
	margin-top: var(--wp--preset--spacing--lg);
	margin-bottom: var(--wp--preset--spacing--lg);
}

/* ── Credits ── */
.site-footer__credits {
	opacity: 0.5;
	margin-top: var(--wp--preset--spacing--sm) !important;
}

.site-footer__credits a {
	text-decoration: none;
}

.site-footer__credits a:hover {
	text-decoration: underline;
}



/*--------------------------------------------------------------
Helper classes
--------------------------------------------------------------*/
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: polygon(0px 0px, 0px 0px,0px 0px, 0px 0px);
    position: absolute !important;
    white-space: nowrap;
    height: 1px;
    width: 1px;
    overflow: hidden;
}



/*--------------------------------------------------------------
Forms
--------------------------------------------------------------*/
/* Ensure inputs inherit theme font and colour */
input,
select,
textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

/* Visual styling */
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="password"],
input[type="search"],
select,
textarea {
	width: 100%;
	border: 1px solid #DCDEE0;
	background-color: var(--wp--preset--color--white);
	border-radius: 10px;
}

input[type="text"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="number"]:focus-visible,
input[type="email"]:focus-visible,
input[type="url"]:focus-visible,
input[type="date"]:focus-visible,
input[type="password"]:focus-visible,
input[type="search"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--theme-primary);
	outline-offset: 0;
	border-color: var(--wp--preset--color--theme-primary);
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="password"],
input[type="search"],
select {
	padding: 16px 20px;
}

textarea {
	padding: 18px 20px;
	overflow: auto;
}



/*--------------------------------------------------------------
Print
--------------------------------------------------------------*/
@media print {

	.site-header,
	.site-footer {
		display:none;
	}

}


/*--------------------------------------------------------------
Shared CPT Patterns
Applies to person, case, and practice area single templates.
Individual sections below may add to or override these.
--------------------------------------------------------------*/

/* Hero section — beige background, 3-xl vertical padding */
.person-hero,
.case-hero,
.pa-hero {
	background: var(--wp--preset--color--beige);
	padding-top: var(--wp--preset--spacing--3-xl);
	padding-bottom: var(--wp--preset--spacing--3-xl);
}

/* Hero inner — centered, content width */
.person-hero__inner,
.case-hero__inner,
.pa-hero__inner {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto;
	margin-right: auto;
}

/* Body layout — centered, 1-col mobile → sidebar desktop */
.person-body,
.case-body,
.pa-body {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto;
	margin-right: auto;
	padding-top: var(--wp--preset--spacing--3-xl);
	padding-bottom: var(--wp--preset--spacing--4-xl);
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: start;
}

/* Desktop sidebar — 200px nav col + content (person + PA share same layout) */
@media (min-width: 960px) {
	.person-body,
	.pa-body {
		grid-template-columns: 200px 1fr;
		gap: 4rem;
	}

	/* Case: content left, sidebar right */
	.case-body {
		grid-template-columns: 1fr 280px;
		gap: 4rem;
	}
}

/* Prevent grid blowout on content column */
.person-body__content,
.pa-body__content,
.case-body__content {
	min-width: 0;
}

/* Outlined pill tag — case type label + person area tags */
.case-card__type,
.person-hero__area-tag {
	display: inline-block;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.4;
	color: var(--wp--preset--color--theme-primary);
	border: 1px solid var(--wp--preset--color--theme-primary);
}


/*--------------------------------------------------------------
People
--------------------------------------------------------------*/

/* ── People grid — 4 columns ── */
.people-archive__wrap {
	padding-top: var(--wp--preset--spacing--2-xl);
	padding-bottom: var(--wp--preset--spacing--4-xl);
}

.people-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) {
	.people-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 900px) {
	.people-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ── People block (rg/people) ── */
/* People block carousel/card styles live entirely in blocks.css */

/* ── People archive: grouped sections ── */
.people-archive__group {
	margin-bottom: var(--wp--preset--spacing--3-xl);
}

.people-archive__group-heading {
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--soft-black);
	margin: 0 0 1.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--wp--preset--color--theme-primary);
}

/* ── Single person: hero ── */

/* Mobile: info stacked above photo */
.person-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

/* Desktop: info LEFT, photo RIGHT */
@media (min-width: 768px) {
	.person-hero__inner {
		grid-template-columns: 1fr 300px;
		align-items: start;
		gap: 3rem;
	}
}

@media (min-width: 1100px) {
	.person-hero__inner {
		grid-template-columns: 1fr 360px;
	}
}

/* On mobile the media moves below info; on desktop it stays in col 2 */
.person-hero__media {
	max-width: 260px;
	width: 100%;
	order: -1; /* photo first on mobile */
}

@media (min-width: 768px) {
	.person-hero__media {
		max-width: none;
		order: 0; /* back to DOM order = col 2 */
	}
}

.person-hero__headshot {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.person-hero__headshot-placeholder {
	width: 100%;
	aspect-ratio: 3 / 4;
	background: var(--rg-surface-dim);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--soft-black);
}

/* Eyebrow — shared across person + PA heroes */
.person-hero__eyebrow,
.pa-hero__eyebrow {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--theme-primary);
	margin: 0 0 0.75rem;
}

/* Name — display-sized */
.person-hero__name {
	font-size: clamp(2.25rem, 6vw, 4.5rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	margin: 0 0 0.5rem;
	line-height: 1.05;
	color: var(--wp--preset--color--soft-black);
}

/* Role */
.person-hero__role {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--theme-primary);
	margin: 0 0 1.5rem;
}

/* Practice area tags */
.person-hero__areas {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.person-hero__area-tag {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	padding: 0.3em 0.65em;
	transition: background 0.15s ease, color 0.15s ease;
}

.person-hero__area-tag:hover {
	background: var(--wp--preset--color--theme-primary);
	color: var(--wp--preset--color--white);
}

/* Phone extension + toll-free */
.person-hero__ext,
.person-hero__toll-free {
	font-size: 0.8rem;
	color: var(--rg-text-muted);
}

/* Constrain inline icon SVGs — overrides the global svg { width:100% } reset */
.person-hero__contact-item svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* Contact strip */
.person-hero__contact {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.person-hero__contact-item {
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--soft-black);
}

.person-hero__contact-item--location {
	color: var(--rg-text-muted);
}

.person-hero__contact-link {
	color: var(--wp--preset--color--soft-black);
	text-decoration: none;
}

.person-hero__contact-link:hover {
	color: var(--wp--preset--color--theme-primary);
	text-decoration: underline;
}

/* .person-hero__actions removed — CTA button lives in site header */

/* ── Single person: body (jump-nav + content) ── */
/* Layout handled by shared .person-body rule in SHARED CPT PATTERNS above */

/*--------------------------------------------------------------
Jump Nav
Shared sticky sidebar nav for person & practice area singles.
--------------------------------------------------------------*/

/* Hidden on mobile, sticky on desktop */
.rg-jump-nav {
	display: none;
}

@media (min-width: 960px) {
	.rg-jump-nav {
		display: block;
		position: sticky;
		top: 150px; /* below fixed header */
		max-height: calc(100vh - 180px);
		overflow-y: auto;
	}
}

.rg-jump-nav__label {
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--theme-primary);
	margin: 0 0 0.75rem;
}

.rg-jump-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid rgba(0,0,0,0.1);
}

.rg-jump-nav__item {
	margin: 0;
}

.rg-jump-nav__link {
	display: block;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--rg-text-muted);
	text-decoration: none;
	padding: 0.35rem 0 0.35rem 1rem;
	border-left: 2px solid transparent;
	margin-left: -2px;
	transition: color 0.15s, border-color 0.15s;
}

.rg-jump-nav__link:hover,
.rg-jump-nav__link.is-active {
	color: var(--wp--preset--color--theme-primary);
	border-left-color: var(--wp--preset--color--theme-primary);
}

/* h3 items indented */
.rg-jump-nav__item--h3 .rg-jump-nav__link {
	padding-left: 1.75rem;
	font-size: 0.75rem;
}

/* ── Sidebar blocks (case single) ── */
.case-sidebar-block {
	background: var(--wp--preset--color--beige);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.case-sidebar-block:last-child {
	margin-bottom: 0;
}

.case-sidebar-block__title {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--theme-primary);
	margin: 0 0 1rem;
}

.case-sidebar-block__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.case-sidebar-block__item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.case-sidebar-block__link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--soft-black);
	text-decoration: none;
}

.case-sidebar-block__link:hover {
	color: var(--wp--preset--color--theme-primary);
	text-decoration: underline;
}

.case-sidebar-block__date {
	font-size: 0.72rem;
	color: var(--rg-text-hint);
}

/* CTA sidebar block */
.case-sidebar-block--cta {
	background: var(--wp--preset--color--theme-primary);
	color: var(--wp--preset--color--white);
}

.case-sidebar-block--cta .case-sidebar-block__title {
	color: rgba(255,255,255,0.7);
}

.case-sidebar-block--cta p {
	font-size: 0.875rem;
	margin: 0 0 1rem;
	opacity: 0.9;
}

.case-sidebar-block__cta-btn {
	display: inline-block;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--theme-primary);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.65em 1.3em;
	transition: background 0.15s;
}

.case-sidebar-block__cta-btn:hover {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--theme-primary);
}

/* ── Lawyer avatar mini-cards (case sidebar) ── */
.case-sidebar-block__people {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.case-sidebar-block__person-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: inherit;
}

.case-sidebar-block__person-link:hover .case-sidebar-block__person-name {
	color: var(--wp--preset--color--theme-primary);
}

.case-sidebar-block__person-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--rg-surface-dim);
}

.case-sidebar-block__person-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.case-sidebar-block__person-info {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.case-sidebar-block__person-name {
	font-size: 0.875rem;
	font-weight: 600;
	transition: color 0.15s;
}

.case-sidebar-block__person-role {
	font-size: 0.72rem;
	color: var(--rg-text-muted);
}


/*--------------------------------------------------------------
Cases
--------------------------------------------------------------*/

/* ── Type filter ── */
.cases-archive__wrap {
	padding-bottom: var(--wp--preset--spacing--4-xl);
}

.cases-archive__filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2.5rem;
}

.cases-archive__filter-btn {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--soft-black);
	border: 1px solid rgba(0,0,0,0.2);
	padding: 0.4em 1em;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cases-archive__filter-btn:hover,
.cases-archive__filter-btn.is-active {
	background: var(--wp--preset--color--theme-primary);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--theme-primary);
}

/* ── Cases grid — 4 columns ── */
.cases-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) {
	.cases-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.cases-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1200px) {
	.cases-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ── Case card ── */
.case-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: var(--wp--preset--color--cream);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
	box-shadow: 0 8px 32px rgba(0,0,0,0.10);
	transform: translateY(-3px);
}

/* Featured image */
.case-card__img-wrap {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--wp--preset--color--beige);
}

.case-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.case-card:hover .case-card__img {
	transform: scale(1.03);
}

/* Card body */
.case-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
	flex: 1;
}

.case-card__type {
	align-self: flex-start;
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	padding: 0.25em 0.7em;
}

.case-card__title {
	font-size: 0.975rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
	color: var(--wp--preset--color--soft-black);
}

.case-card:hover .case-card__title {
	color: var(--wp--preset--color--theme-primary);
}

.case-card__subtitle,
.case-card__excerpt {
	font-size: 0.825rem;
	color: var(--rg-text-muted);
	margin: 0;
	line-height: 1.5;
}

.case-card__arrow {
	margin-top: auto;
	color: var(--wp--preset--color--theme-primary);
	display: block;
}

/* ── Single case ── */
/* .case-hero bg + padding handled by shared rule in SHARED CPT PATTERNS above */

.case-hero__types {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.case-hero__title {
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 700;
	margin: 0 0 0.75rem;
	line-height: 1.15;
}

.case-hero__subtitle {
	font-size: 1.1rem;
	color: var(--rg-text-muted);
	margin: 0;
	max-width: 65ch;
}

/* .case-body layout handled by shared rule in SHARED CPT PATTERNS above */

/*--------------------------------------------------------------
Practice Areas
--------------------------------------------------------------*/

.practice-areas-archive__wrap {
	padding-bottom: var(--wp--preset--spacing--4-xl);
}

/* ── Practice area grid ── */
.practice-areas-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) {
	.practice-areas-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.practice-areas-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ── Child page hero ── */
/* .pa-hero bg + padding handled by shared rule in SHARED CPT PATTERNS above */

.pa-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 768px) {
	.pa-hero__inner {
		grid-template-columns: 1fr 160px;
		gap: 3rem;
	}
}

/* .pa-hero__eyebrow — shared with .person-hero__eyebrow above */

.pa-hero__eyebrow-link {
	color: inherit;
	text-decoration: none;
}

.pa-hero__eyebrow-link:hover {
	text-decoration: underline;
}

.pa-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--soft-black);
	margin: 0 0 0.75rem;
	line-height: 1.1;
}

.pa-hero__subtitle {
	font-size: 1rem;
	color: var(--rg-text-muted);
	margin: 0;
	max-width: 52ch;
	line-height: 1.6;
}

.pa-hero__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pa-hero__icon img {
	width: 100%;
	max-width: 140px;
	height: auto;
	opacity: 0.85;
}

@media (max-width: 767px) {
	.pa-hero__icon {
		display: none; /* hide icon on mobile — keep hero compact */
	}
}

/* ── Child page body — jump nav + content ── */
/* .pa-body layout handled by shared rule in SHARED CPT PATTERNS above */




/*--------------------------------------------------------------
Archive Hero Covers
--------------------------------------------------------------*/

/* .rg-pill--on-dark styles live in blocks.css alongside the rest of the pill system */

/*
 * Inside a cover block with layout:constrained the inner container
 * is already constrained. Force left-align so content doesn't centre.
 */
.wp-block-cover.alignfull .wp-block-cover__inner-container {
	margin-left: 0;
	margin-right: auto;
}

.wp-block-cover.alignfull .wp-block-cover__inner-container .wp-block-heading,
.wp-block-cover.alignfull .wp-block-cover__inner-container p,
.wp-block-cover.alignfull .wp-block-cover__inner-container .wp-block-buttons {
	text-align: left;
}



/*--------------------------------------------------------------
Prose
Applied to .person-body__content, .case-body__content, etc.
Gives consistent typographic rhythm to WordPress body copy.
--------------------------------------------------------------*/
.rg-prose {
	max-width: 72ch;
}

.rg-prose h2 {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--soft-black);
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
}

.rg-prose h3 {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--soft-black);
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

.rg-prose p {
	margin-top: 0;
	margin-bottom: 1em;
	line-height: 1.7;
}

.rg-prose ul,
.rg-prose ol {
	margin-bottom: 1em;
	padding-left: 1.5em;
	line-height: 1.7;
}

.rg-prose a {
	color: var(--wp--preset--color--theme-primary);
}

.rg-prose a:hover {
	text-decoration: none;
}

.rg-prose strong {
	font-weight: 700;
}




/*--------------------------------------------------------------
404 — Not Found
--------------------------------------------------------------*/

.error-404__hero {
	background: var(--wp--preset--color--beige);
	padding-top: var(--wp--preset--spacing--3-xl);
	padding-bottom: var(--wp--preset--spacing--3-xl);
	min-height: 60vh;
	display: flex;
	align-items: center;
}

.error-404__inner {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto;
	margin-right: auto;
}

.error-404__eyebrow {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--theme-primary);
	margin: 0 0 0.75rem;
}

.error-404__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	margin: 0 0 1.25rem;
	line-height: 1.1;
}

.error-404__message {
	font-size: 1.1rem;
	max-width: 52ch;
	margin: 0 0 2rem;
	color: var(--rg-text-muted);
}

.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 3rem;
}

.error-404__btn {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	transition: opacity 0.2s ease;
}

.error-404__btn:hover {
	opacity: 0.85;
}

.error-404__btn--primary {
	background: var(--wp--preset--color--theme-primary);
	color: var(--wp--preset--color--beige);
}

.error-404__btn--outline {
	background: transparent;
	color: var(--wp--preset--color--theme-primary);
	border: 2px solid var(--wp--preset--color--theme-primary);
}

.error-404__links-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
	color: var(--rg-text-muted);
}

.error-404__links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.error-404__links a {
	font-size: 0.9rem;
	color: var(--wp--preset--color--theme-primary);
	text-decoration: underline;
}

.error-404__links a:hover {
	text-decoration: none;
}
