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

/*--------------------------------------------------------------
Design Tokens
--------------------------------------------------------------*/
:root {
	--inhaus-text-muted:   #555555; /* subtitles, secondary body text */
	--inhaus-text-hint:    #888888; /* dates, captions, meta */
	--inhaus-border-light: rgba(0,0,0,0.15); /* subtle dividers */
}

/*--------------------------------------------------------------
Reset & Base Elements
--------------------------------------------------------------*/
html {
	font-family: sans-serif;
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
	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;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	text-decoration: none;
	font-weight: inherit;
	color: inherit;
}

b, strong { font-weight: bold; }
dfn, cite, em, i { font-style: italic; }

a {
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/*--------------------------------------------------------------
Header & Navigation
--------------------------------------------------------------*/

/* Push content below fixed header */
html body {
	padding-top: 85px;
}

body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.site-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 99;
	background-color: var(--wp--preset--color--white);
	border-bottom: 3px solid var(--wp--preset--color--secondary);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto;
	padding: 0.9rem var(--wp--style--root--padding-right) 0.9rem var(--wp--style--root--padding-left);
}

.site-logo {
	display: block;
	text-decoration: none;
	flex-shrink: 0;
}

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

.site-logo__img {
	display: block;
	height: clamp(44px, 5vw, 60px);
	width: auto;
}

.site-logo__text {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--wp--preset--color--secondary);
}

.main-navigation {
	flex: 1;
}

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
}

.nav-menu li {
	margin: 0;
	padding: 0;
	position: relative;
}

.nav-menu a {
	display: block;
	padding: 0.5rem 1.1rem;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	transition: color 0.15s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.nav-menu li.current-menu-item > a,
.nav-menu li.current-menu-parent > a,
.nav-menu li.current-page-ancestor > a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* Last item — outlined CTA button */
.nav-menu > li:last-child > a {
	padding: 1em 1.8em;
	border: 2px solid var(--wp--preset--color--secondary);
	border-radius: var(--wp--preset--border-radius--md);
	color: var(--wp--preset--color--secondary);
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-menu > li:last-child > a:hover,
.nav-menu > li:last-child > a:focus,
.nav-menu > li:last-child.current-menu-item > a {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--white) !important;
	text-decoration: none;
}

/* Dropdown */
.nav-menu ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 9999;
	min-width: 200px;
	background-color: var(--wp--preset--color--white);
	border-top: 2px solid var(--wp--preset--color--primary);
	box-shadow: 0 8px 24px rgba(0,0,0,0.10);
	list-style: none;
	margin: 0;
	padding: 0.4rem 0;
}

.nav-menu li:hover > ul,
.nav-menu li.open > ul {
	display: block;
}

.nav-menu ul a {
	padding: 0.6rem 1.2rem;
	font-size: 0.8rem;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-menu ul li:last-child a {
	border-bottom: none;
}

/* Mobile toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
}

.menu-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background-color: var(--wp--preset--color--secondary);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
	.menu-toggle {
		display: flex;
	}

	.main-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--wp--preset--color--white);
		border-top: 1px solid rgba(0,0,0,0.08);
		box-shadow: 0 8px 24px rgba(0,0,0,0.10);
		padding: 1rem var(--wp--style--root--padding-right) 1.5rem var(--wp--style--root--padding-left);
	}

	.main-navigation.visible {
		display: block;
	}

	.nav-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.nav-menu a {
		padding: 0.65rem 0;
		font-size: 0.85rem;
		border-bottom: 1px solid rgba(0,0,0,0.06);
		width: 100%;
	}

	.nav-menu > li:last-child > a {
		display: inline-block;
		width: auto;
		margin-top: 0.75rem;
		border-bottom: none;
	}

	.nav-menu ul {
		display: none;
		position: static;
		box-shadow: none;
		border-top: none;
		padding: 0 0 0 1rem;
	}

	.nav-menu li.open > ul {
		display: block;
	}
}

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

.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--surface);
}

.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(255,255,255,0.2);
}

.site-footer .wp-block-navigation-item__content {
	color: var(--wp--preset--color--surface) !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 {
	color: var(--wp--preset--color--white) !important;
}

.site-footer .wp-block-separator {
	border-color: rgba(255,255,255,0.15) !important;
	border-top-width: 1px;
	margin-top: var(--wp--preset--spacing--lg);
	margin-bottom: var(--wp--preset--spacing--lg);
}

.site-footer__credits {
	color: var(--wp--preset--color--surface);
	margin-top: var(--wp--preset--spacing--sm) !important;
}

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

/*--------------------------------------------------------------
Forms
--------------------------------------------------------------*/
input,
select,
textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

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--primary);
	outline-offset: 0;
	border-color: var(--wp--preset--color--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;
}

/*--------------------------------------------------------------
Helpers
--------------------------------------------------------------*/
.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;
}

/*--------------------------------------------------------------
Print
--------------------------------------------------------------*/
@media print {
	.site-header,
	.site-footer {
		display: none;
	}
}

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

.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); }
}

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

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

.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--surface);
}

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

.posts-card__tag {
	align-self: flex-start;
	display: inline-block;
	margin: 0;
	font-style: italic;
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--surface);
	border-radius: 100px;
	padding: 0.2em 0.75em;
}

.posts-card__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 400;
	font-style: italic;
	line-height: 1.35;
	color: var(--wp--preset--color--secondary);
	transition: color 0.15s;
}

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

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

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

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

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

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

.paginate-area ul.page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

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

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

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

.paginate-area .page-numbers.dots {
	padding: 0.35rem 0.2rem;
}

.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");
}

/*--------------------------------------------------------------
Shared page hero base — primary blue, content-width, rounded bottom corners
Applied to block template part heroes (.page-hero) and PHP heroes (.post-hero, .team-hero)
--------------------------------------------------------------*/

.page-hero,
.post-hero,
.team-hero {
	background-color: var(--wp--preset--color--primary);
	border-bottom-left-radius:  var(--wp--preset--border-radius--2-xl);
	border-bottom-right-radius: var(--wp--preset--border-radius--2-xl);
	overflow: hidden;
	max-width: var(--wp--style--global--content-size);
	margin-left: auto;
	margin-right: auto;
}


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

.post-hero {
	padding-top: var(--wp--preset--spacing--3-xl);
	padding-bottom: var(--wp--preset--spacing--3-xl);
}

.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;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--wp--preset--color--white);
}

.post-hero__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0 0;
	font-size: 0.85rem;
	color: var(--wp--preset--color--white);
}

/* Body — constrained prose area */
.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;
}

/* Prose — applied to .post-body__content for typographic rhythm */
.inhaus-prose {
	max-width: 72ch;
}

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

.inhaus-prose h3 {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--secondary);
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

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

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

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

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

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

/*--------------------------------------------------------------
Team
--------------------------------------------------------------*/

/* Archive grid */
.team-archive__wrap {
	padding-top: var(--wp--preset--spacing--2-xl);
	padding-bottom: var(--wp--preset--spacing--4-xl);
}

.team-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 2vw, 1.75rem);
}

@media (max-width: 768px) {
	.team-archive__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.team-archive__grid { grid-template-columns: 1fr; }
}

/* Unique team-hero properties (shared base is in .page-hero/.post-hero/.team-hero above) */
.team-hero {
	position: relative;
}

.team-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
}

.team-hero__content {
	padding: var(--wp--preset--spacing--3-xl) var(--wp--preset--spacing--2-xl);
}

.team-hero__name {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 700;
	color: var(--wp--preset--color--white);
	margin: 0 0 0.3rem;
	line-height: 1.1;
}

.team-hero__role {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
	margin: 0 0 1.75rem;
}

.team-hero__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.team-hero__contact-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1rem;
	color: var(--wp--preset--color--white);
}

.team-hero__contact-item a {
	color: inherit;
	text-decoration: none;
}

.team-hero__contact-item a:hover {
	text-decoration: underline;
}

.team-hero__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--wp--preset--color--secondary);
}

.team-hero__visual {
	align-self: stretch;
}

/* Single body */
.team-body {
	padding: var(--wp--preset--spacing--4-xl) 0;
}

.team-body__inner {
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto;
}

@media (max-width: 780px) {
	.team-hero__inner {
		grid-template-columns: 1fr;
	}

	.team-hero__visual {
		order: -1; /* photo above text on mobile */
	}

	.team-hero__content {
		padding-top: var(--wp--preset--spacing--2-xl);
	}
}

/*--------------------------------------------------------------
404
--------------------------------------------------------------*/
.error-404__hero {
	background: var(--wp--preset--color--surface);
	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--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(--inhaus-text-muted);
}

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

.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(--inhaus-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--primary);
	text-decoration: underline;
}

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