/*
 * ID Consultancy — main.css
 * Owned by theme-dev. Structural layout, typography, color tokens, and
 * responsive rules for every template in this theme.
 *
 * Interaction states (hover motion, nav open/close transitions, hero shape
 * animation, scroll-reveal show/hide) belong to frontend's interactions.css,
 * which loads after this file and reuses the custom properties below.
 * See docs/FRONTEND_HOOKS.md for the shared contract.
 */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	/* Brand palette (shared with interactions.css — do not redefine there) */
	--color-teal: #3AABB5;
	--color-orange: #D4612A;

	/* Neutrals */
	--color-ink: #16211F;
	--color-ink-soft: #3E4A48;
	--color-slate: #6B7574;
	--color-border: #DDE3E1;
	--color-off-white: #F7F5F1;
	--color-white: #FFFFFF;

	/* Derived tints */
	--color-teal-tint: #E6F4F5;
	--color-orange-tint: #FBEBE2;
	--color-ink-90: rgba(22, 33, 31, 0.9);
	--color-ink-60: rgba(22, 33, 31, 0.6);

	/* Typography */
	--font-heading: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--fs-base: 1rem;
	--fs-sm: 0.875rem;
	--fs-md: 1.125rem;
	--fs-lg: 1.375rem;
	--fs-xl: 1.75rem;
	--fs-2xl: 2.25rem;
	--fs-3xl: 3rem;
	--fs-4xl: 3.75rem;

	--lh-tight: 1.15;
	--lh-snug: 1.35;
	--lh-body: 1.65;

	/* Spacing scale */
	--space-3xs: 0.25rem;
	--space-2xs: 0.5rem;
	--space-xs: 0.75rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: 6rem;
	--space-3xl: 8rem;

	/* Layout */
	--container-max: 1200px;
	--container-padding: var(--space-md);
	--radius-sm: 6px;
	--radius-md: 14px;
	--radius-lg: 28px;

	--shadow-sm: 0 2px 8px rgba(22, 33, 31, 0.06);
	--shadow-md: 0 12px 32px rgba(22, 33, 31, 0.10);

	--transition-base: 200ms ease;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	color: var(--color-ink);
	background-color: var(--color-off-white);
}

img,
svg,
video,
iframe {
	max-width: 100%;
	display: block;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	line-height: var(--lh-tight);
	margin: 0 0 var(--space-sm);
	color: var(--color-ink);
	font-weight: 600;
}

p {
	margin: 0 0 var(--space-sm);
}

a {
	color: var(--color-teal);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover,
a:focus {
	color: var(--color-orange);
}

button {
	font-family: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}

.skip-link {
	position: fixed;
	top: -100px;
	left: var(--space-sm);
	z-index: 1000;
	background: var(--color-ink);
	color: var(--color-white);
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-sm);
	transition: top var(--transition-base);
}

.skip-link:focus {
	top: var(--space-sm);
	width: auto;
	height: auto;
	clip: auto;
	overflow: visible;
}

:focus-visible {
	outline: 3px solid var(--color-teal);
	outline-offset: 2px;
}

/* ==========================================================================
   3. Layout utilities
   ========================================================================== */

.site-wrapper {
	overflow-x: hidden;
}

.site-header__inner,
.hero__content,
.intro__inner,
.services-preview__inner,
.cta-band__inner,
.site-footer__inner,
.page-hero__inner,
.page-body__inner,
.about-mission__inner,
.about-values__inner,
.services-list__inner,
.contact-section__inner,
.contact-bridge__inner,
.post-list__inner {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs);
	padding: 0.875rem 1.75rem;
	border-radius: 999px;
	font-size: var(--fs-md);
	font-weight: 600;
	line-height: 1;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.button--primary {
	background-color: var(--color-orange);
	color: var(--color-white);
}

.button--primary:hover,
.button--primary:focus-visible {
	background-color: var(--color-teal);
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* ==========================================================================
   4. Site header & nav
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--color-off-white);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--space-sm);
	gap: var(--space-sm);
}

.site-header__site-title {
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
	font-weight: 700;
	color: var(--color-ink);
	letter-spacing: 0.01em;
}

.site-header__logo img {
	max-height: 48px;
	width: auto;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.site-nav {
	display: flex;
	align-items: center;
}

.site-header__lang-switch {
	display: flex;
	align-items: center;
	gap: var(--space-3xs);
	font-size: var(--fs-sm);
	font-weight: 700;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	padding: var(--space-3xs);
	flex-shrink: 0;
}

.site-header__lang-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25em;
	padding: 0.25em 0.6em;
	border-radius: 999px;
	color: var(--color-ink-soft);
	letter-spacing: 0.03em;
}

.site-header__lang-link:hover,
.site-header__lang-link:focus-visible {
	color: var(--color-ink);
}

.site-header__lang-link.is-active {
	background-color: var(--color-teal);
	color: var(--color-white);
}

.site-nav__toggle {
	position: relative;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.site-nav__toggle-icon,
.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after {
	display: block;
	width: 20px;
	height: 2px;
	background-color: var(--color-ink);
	border-radius: 2px;
}

.site-nav__toggle-icon {
	position: relative;
}

.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-nav__toggle-icon::before {
	top: -6px;
}

.site-nav__toggle-icon::after {
	top: 6px;
}

/* Mobile-first: menu is an off-canvas panel until frontend adds the
   ".site-nav__menu--open" state class via interactions.css. */
.site-nav__menu {
	position: fixed;
	inset: 0 0 0 auto;
	top: 0;
	width: min(320px, 85vw);
	height: 100vh;
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
	padding: calc(var(--space-2xl)) var(--space-md) var(--space-md);
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	transform: translateX(100%);
	visibility: hidden;
}

.site-nav__menu .menu-item,
.site-nav__menu li {
	border-bottom: 1px solid var(--color-border);
}

.site-nav__menu a {
	display: block;
	padding: var(--space-sm) 0;
	font-size: var(--fs-md);
	font-weight: 600;
	color: var(--color-ink);
}

.site-nav__menu a:hover,
.site-nav__menu a:focus {
	color: var(--color-orange);
}

@media (min-width: 900px) {
	.site-nav__toggle {
		display: none;
	}

	.site-nav__menu {
		position: static;
		width: auto;
		height: auto;
		background: transparent;
		box-shadow: none;
		padding: 0;
		flex-direction: row;
		align-items: center;
		gap: var(--space-lg);
		transform: none;
		visibility: visible;
	}

	.site-nav__menu .menu-item,
	.site-nav__menu li {
		border-bottom: none;
	}

	.site-nav__menu a {
		padding: var(--space-2xs) 0;
		font-size: var(--fs-base);
		position: relative;
	}
}

/* ==========================================================================
   5. Hero (front page)
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, var(--color-teal-tint) 0%, var(--color-off-white) 55%);
	padding-block: var(--space-2xl) var(--space-2xl);
}

/* Compound selector (not just .hero__media--bg) so this beats
   interactions.css's plain ".hero__media { position: relative }" rule on
   specificity regardless of stylesheet load order — both rules are
   single-class-equivalent otherwise, and the later-loaded stylesheet
   (interactions.css) would silently win the tie, collapsing this layer to
   height:0 and hiding the hero video/poster entirely. */
.hero__media.hero__media--bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background-color: var(--color-ink);
}

.hero__media-poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero__bg-overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(
		160deg,
		rgba(22, 33, 31, 0.78) 0%,
		rgba(22, 33, 31, 0.55) 45%,
		rgba(58, 171, 181, 0.45) 100%
	);
}

.hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding-top: var(--space-md);
}

.hero__title {
	font-size: clamp(var(--fs-3xl), 5vw, var(--fs-4xl));
	max-width: 18ch;
	margin-inline: auto;
	margin-bottom: var(--space-md);
	color: var(--color-white);
}

.hero__subtitle {
	font-size: var(--fs-md);
	color: rgba(255, 255, 255, 0.88);
	max-width: 52ch;
	margin-inline: auto;
	margin-bottom: var(--space-lg);
}

.hero__cta {
	margin-inline: auto;
}

@media (min-width: 900px) {
	.hero {
		padding-block: var(--space-3xl) var(--space-2xl);
	}
}

/* ==========================================================================
   5b. Full-bleed section photo backgrounds (About / Services / Contact page
   heroes + select homepage sections — see docs/TEAM.md "Real photography —
   REVISED" and docs/FRONTEND_HOOKS.md's "Full-bleed section photo
   backgrounds"). Defined once here, reused by .page-hero, .intro, and
   .cta-band wherever they carry the extra ".section-photo" class.
   ========================================================================== */

.section-photo {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.section-photo__bg-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.section-photo__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		160deg,
		rgba(22, 33, 31, 0.86) 0%,
		rgba(22, 33, 31, 0.68) 55%,
		rgba(22, 33, 31, 0.8) 100%
	);
}

/* Lighter variant for photos the default overlay reads as near-solid on
   (night shots, already-warm/bright interiors) — Services (New York) and
   Contact (Istanbul), set via idconsultancy_section_photos()' 'overlay' key
   in functions.php. Still dark enough for the white text rules below to
   stay legible. */
.section-photo__overlay--light {
	background: linear-gradient(
		160deg,
		rgba(22, 33, 31, 0.6) 0%,
		rgba(22, 33, 31, 0.38) 55%,
		rgba(22, 33, 31, 0.5) 100%
	);
}

.section-photo__inner {
	position: relative;
	z-index: 2;
}

/* Light-colored text over the dark overlay, elliman.com-style, for every
   section-content type that can appear inside a .section-photo band. */
.section-photo .intro__heading,
.section-photo .page-hero__title,
.section-photo .services-preview__heading {
	color: var(--color-white);
}

.section-photo .intro__body,
.section-photo .page-hero__intro {
	color: rgba(255, 255, 255, 0.88);
}

/* .service-card itself is transparent with light/white text (see "7. Services
   preview" below), so it already reads correctly on top of a .section-photo
   band without needing a color override here. */

/* ==========================================================================
   6. Intro / value-prop section
   ========================================================================== */

.intro {
	padding-block: var(--space-2xl);
}

.intro.section-photo {
	padding-block: var(--space-3xl);
}

.intro__inner {
	max-width: 760px;
	text-align: center;
}

.intro__heading {
	font-size: var(--fs-2xl);
}

.intro__body {
	font-size: var(--fs-md);
	color: var(--color-ink-soft);
}

/* ==========================================================================
   7. Services preview (homepage)
   ========================================================================== */

.services-preview {
	padding-block: var(--space-2xl);
	background-color: var(--color-white);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

/* Round 3: this section now carries the Istanbul photo (moved off the
   Contact page, see docs/TEAM.md) as a full-bleed background — same
   treatment as .intro.section-photo / .page-hero.section-photo, and the
   plain-color border/background above is irrelevant once the photo covers
   it. */
.services-preview.section-photo {
	padding-block: var(--space-3xl);
	border-top: none;
	border-bottom: none;
}

.services-preview__heading {
	text-align: center;
	font-size: var(--fs-2xl);
	margin-bottom: var(--space-xl);
}

.services-preview__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-sm);
}

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

/* Round 4: borderless-chip look replaced with a fully transparent card —
   only the Istanbul photo behind shows through, framed by a thin white
   border rather than a filled background (see docs/TEAM.md Round 4). */
.service-card {
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: var(--radius-sm);
	padding: var(--space-sm);
	transition: transform var(--transition-base);
}

.service-card:hover {
	transform: translateY(-3px);
}

.service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--color-teal-tint);
	color: var(--color-teal);
	margin-bottom: var(--space-2xs);
	font-size: 16px;
}

.service-card__title {
	font-size: calc(var(--fs-md) * 0.85);
	line-height: var(--lh-snug);
	margin-bottom: var(--space-3xs);
	color: var(--color-white);
}

.service-card__description {
	font-size: calc(var(--fs-sm) * 0.85);
	line-height: var(--lh-snug);
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 0;
}

.services-preview__view-all {
	text-align: center;
	margin-top: var(--space-lg);
	margin-bottom: 0;
}

.services-preview__view-all-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3xs);
	color: var(--color-teal);
	font-weight: 600;
	font-size: var(--fs-sm);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color var(--transition-base);
}

.services-preview__view-all-link:hover,
.services-preview__view-all-link:focus-visible {
	color: var(--color-orange);
}

/* ==========================================================================
   8. CTA band (shared)
   ========================================================================== */

.cta-band {
	padding-block: var(--space-2xl);
	background-color: var(--color-ink);
	color: var(--color-white);
	text-align: center;
}

.cta-band.section-photo {
	padding-block: var(--space-3xl);
}

.cta-band__inner {
	max-width: 640px;
}

.cta-band__heading {
	color: var(--color-white);
	font-size: var(--fs-2xl);
}

.cta-band__body {
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--fs-md);
	margin-bottom: var(--space-lg);
}

.cta-band__button {
	margin-inline: auto;
}

/* ==========================================================================
   9. Interior page hero (About / Services / Contact / generic)
   ========================================================================== */

.page-hero {
	padding-block: var(--space-2xl) var(--space-xl);
	background: linear-gradient(160deg, var(--color-orange-tint) 0%, var(--color-off-white) 60%);
	text-align: center;
}

.page-hero.section-photo {
	padding-block: var(--space-3xl) var(--space-2xl);
}

.page-hero__inner {
	max-width: 760px;
}

.page-hero__title {
	font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
	margin-bottom: var(--space-sm);
}

.page-hero__intro {
	font-size: var(--fs-md);
	color: var(--color-ink-soft);
	margin-bottom: 0;
}

.page-body {
	padding-block: var(--space-xl);
}

.page-body__inner {
	max-width: 760px;
}

/* ==========================================================================
   10. About page
   ========================================================================== */

/* Leadership hero — round 6 REPLACEMENT of the round-5 inline photo+text
   .leadership-bio (removed): a genuine full-bleed, full-viewport-height
   50/50 split hero, elliman.com/leadership-style, per docs/TEAM.md
   "Round 6". This REPLACES the generic template-parts/page-hero on this
   page — page-about.php no longer calls it. Mobile-first: photo stacks
   above the dark panel; side-by-side 50/50 from 900px up (consistent with
   this file's other breakpoints, e.g. section 4/9). */
.leadership-hero {
	display: flex;
	flex-direction: column;
}

.leadership-hero__photo {
	height: 60vh;
	min-height: 320px;
}

.leadership-hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.leadership-hero__panel {
	display: flex;
	align-items: center;
	background-color: var(--color-ink);
	padding: var(--space-2xl) var(--container-padding);
}

.leadership-hero__panel-inner {
	max-width: 32ch;
	margin-inline: auto;
}

.leadership-hero__name {
	font-family: var(--font-heading);
	font-weight: 300;
	font-size: clamp(var(--fs-2xl), 6vw, var(--fs-4xl));
	line-height: var(--lh-tight);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-white);
	margin-bottom: var(--space-sm);
}

.leadership-hero__title {
	font-size: var(--fs-sm);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-teal);
	font-weight: 600;
	margin-bottom: 0;
}

@media (min-width: 900px) {
	.leadership-hero {
		flex-direction: row;
		min-height: 100vh;
	}

	.leadership-hero__photo,
	.leadership-hero__panel {
		width: 50%;
		height: 100vh;
	}

	.leadership-hero__panel {
		padding: var(--space-3xl) var(--space-2xl);
	}
}

/* Plain content section below the leadership hero — mirrors the reference's
   white "ABOUT MICHAEL" band under its dark hero. Normal content width,
   normal light background (NOT inside the dark panel). */
.about-bio {
	padding-block: var(--space-2xl);
	background-color: var(--color-white);
}

.about-bio__inner {
	max-width: 760px;
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.about-bio__heading {
	font-size: var(--fs-2xl);
	letter-spacing: 0.02em;
	margin-bottom: var(--space-lg);
}

.about-bio__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.about-bio__body p {
	color: var(--color-ink-soft);
	font-size: var(--fs-md);
	margin-bottom: 0;
}

.about-mission {
	padding-block: var(--space-xl);
	background-color: var(--color-white);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.about-mission__inner {
	max-width: 700px;
	text-align: center;
}

.about-values {
	padding-block: var(--space-2xl);
}

.about-values__heading {
	text-align: center;
	font-size: var(--fs-2xl);
	margin-bottom: var(--space-xl);
}

.about-values__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
}

@media (min-width: 700px) {
	.about-values__grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

/* Compact, elliman.com-style — matches .service-detail's level of restraint:
   minimal padding, thin border accent instead of a heavy box, tight
   line-height, no drop shadow. */
.value-card {
	padding: var(--space-xs) var(--space-sm);
	border-left: 2px solid var(--color-teal);
	background-color: var(--color-white);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.value-card__title {
	font-size: var(--fs-md);
	line-height: var(--lh-snug);
	margin-bottom: var(--space-3xs);
}

.value-card__description {
	font-size: var(--fs-sm);
	line-height: var(--lh-snug);
	color: var(--color-ink-soft);
	margin-bottom: 0;
}

/* ==========================================================================
   11. Services page
   ========================================================================== */

.services-list {
	padding-block: var(--space-2xl);
}

.services-list__inner {
	display: flex;
	flex-direction: column;
}

/* Compact, elliman.com-style editorial list: a thin divider between rows
   instead of a boxed/shadowed card per item, small thin numerals rather
   than one giant digit, and tight vertical rhythm. */
.service-detail {
	display: grid;
	grid-template-columns: 2.75rem 1fr;
	gap: var(--space-sm) var(--space-md);
	align-items: start;
	padding: var(--space-md) var(--space-sm);
	margin-inline: calc(var(--space-sm) * -1);
	border-top: 1px solid var(--color-border);
}

.service-detail:first-child {
	border-top: none;
}

.service-detail--reverse {
	background-color: var(--color-off-white);
}

.service-detail__number {
	font-family: var(--font-heading);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--color-teal);
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.service-detail__title {
	font-size: var(--fs-lg);
	margin-bottom: var(--space-2xs);
}

.service-detail__description {
	color: var(--color-ink-soft);
	margin-bottom: 0;
}

.service-detail__list {
	display: grid;
	gap: var(--space-3xs);
	margin-top: var(--space-sm);
}

.service-detail__list-item {
	position: relative;
	padding-left: var(--space-sm);
	color: var(--color-slate);
	font-size: var(--fs-sm);
}

.service-detail__list-item::before {
	content: "\2013";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--color-teal);
	font-weight: 600;
}

@media (max-width: 560px) {
	.service-detail {
		grid-template-columns: 1fr;
		gap: var(--space-2xs);
	}

	.service-detail__number {
		font-size: var(--fs-sm);
	}
}

/* ==========================================================================
   11b. Services hub — tile grid (round 5 built the base grid; round 7 —
   see docs/TEAM.md "Round 7 — Services hub redesign" — laid the tiles over
   the new full-bleed 'services-hub-bg' photo as glassmorphism cards, and
   added the description line + scoped Fraunces/Inter typography below).
   Structural/base styling only — frontend's interactions.css owns the
   heidrick.com-style animated hover (scale/overlay/color-shift) on top of
   the ".service-tile" class below.
   ========================================================================== */

.services-tiles {
	position: relative;
	padding-block: var(--space-2xl);
}

.services-tiles.section-photo {
	padding-block: var(--space-3xl);
}

.services-tiles__inner {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.services-tiles__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}

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

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

/* Real <a> wrapping the whole tile (not a div with a nested link), so
   hover/focus states apply to one clean interactive element. Glassmorphism
   look per docs/TEAM.md Round 7 — translucent white fill + backdrop blur so
   the 'services-hub-bg' photo behind reads through the card, a thin
   near-white border standing in for the old solid card border, and light
   text (the card now sits on a dark-overlaid photo, not a white background).
   Selector is scoped to ".services-tiles__grid .service-tile" rather than a
   bare ".service-tile" purely so these declarations reliably win the
   cascade over interactions.css's own base ".service-tile" rule (background-
   color/display) — interactions.css loads after main.css and is frontend-
   owned, so this file can't edit it directly; raising specificity here is
   the non-invasive way to keep this component's resting look correct
   without touching that file. interactions.css's hover-state rules target
   ".service-tile:hover ..." (higher specificity still), so its animated
   hover/focus treatment continues to layer on top exactly as before. */
.services-tiles__grid .service-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 220px;
	padding: var(--space-lg) var(--space-md);
	background: rgba(255, 255, 255, 0.08);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--radius-md);
	color: var(--color-white);
}

.service-tile:hover,
.service-tile:focus-visible {
	color: var(--color-white);
}

/* Scoped Google Fonts load — see idconsultancy_enqueue_assets() in
   functions.php (enqueued only when is_page_template('page-services.php'))
   — with a fallback chain onto the theme's normal --font-heading token so a
   failed/blocked Google Fonts request still degrades to a serif face rather
   than the sans body font. */
.service-tile__title {
	font-family: 'Fraunces', var(--font-heading), serif;
	font-weight: 600;
	font-size: var(--fs-xl);
	line-height: var(--lh-snug);
	max-width: 22ch;
	color: var(--color-white);
	transition: color 0.3s ease;
}

.service-tile__description {
	font-family: 'Inter', var(--font-body), sans-serif;
	font-size: var(--fs-sm);
	line-height: var(--lh-snug);
	margin-top: var(--space-2xs);
	max-width: 28ch;
	color: rgba(255, 255, 255, 0.82);
	transition: color 0.3s ease;
}

@media (min-width: 900px) {
	.services-tiles__grid .service-tile {
		min-height: 280px;
		padding: var(--space-xl) var(--space-lg);
	}
}

/* ==========================================================================
   11c. Service detail article (page-service-detail.php, shared template for
   the 4 real service child pages). Layout/typography only — the body
   paragraphs are content-writer's verbatim copy and are never altered here.
   ========================================================================== */

.service-article {
	padding-block: var(--space-2xl);
}

.service-article__inner {
	max-width: 760px;
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.service-article__back {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3xs);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--color-slate);
	margin-bottom: var(--space-xl);
}

.service-article__back:hover,
.service-article__back:focus-visible {
	color: var(--color-orange);
}

.service-article__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.service-article__paragraph {
	color: var(--color-ink-soft);
	margin-bottom: 0;
}

/* Editorial "lede" treatment for the first paragraph — larger, slightly
   darker, and set off from the paragraphs that follow — a common way to
   break up a dense unaltered text block visually without touching wording. */
.service-article__paragraph--lede {
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
	line-height: var(--lh-snug);
	color: var(--color-ink);
}

/* ==========================================================================
   12. Contact page
   ========================================================================== */

/* Round 3 fix: a short bridging paragraph between the hero and the
   details+form section (docs/TEAM.md "Contact page flow"), so the page
   doesn't jump straight from hero to form. Simple centered paragraph band,
   no photo/heavy styling needed. */
.contact-bridge {
	padding-block: var(--space-lg);
}

.contact-bridge__inner {
	max-width: 700px;
	text-align: center;
}

.contact-bridge__body {
	font-size: var(--fs-md);
	color: var(--color-ink-soft);
	margin-bottom: 0;
}

.contact-section {
	padding-block: var(--space-2xl);
}

.contact-section__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
}

@media (min-width: 900px) {
	.contact-section__inner {
		grid-template-columns: 0.85fr 1.15fr;
		align-items: start;
	}
}

.contact-details {
	background-color: var(--color-teal-tint);
	border-radius: var(--radius-md);
	padding: var(--space-md);
}

.contact-details__heading {
	font-size: var(--fs-xl);
}

.contact-details__list {
	display: grid;
	gap: var(--space-md);
}

.contact-details__item {
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
}

.contact-details__label {
	font-size: var(--fs-sm);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-slate);
	font-weight: 600;
}

.contact-details__value {
	font-size: var(--fs-md);
	color: var(--color-ink);
	font-weight: 500;
}

.contact-form-wrap__intro {
	color: var(--color-ink-soft);
	margin-bottom: var(--space-md);
}

.contact-form__notice {
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-md);
	font-weight: 600;
}

.contact-form__notice--success {
	background-color: var(--color-teal-tint);
	color: var(--color-ink);
}

.contact-form__notice--error {
	background-color: var(--color-orange-tint);
	color: var(--color-ink);
}

/* Honeypot: visually and functionally hidden from real visitors/AT without
   display:none, which the simplest spam bots are coded to skip filling. */
.contact-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form {
	display: grid;
	gap: var(--space-md);
}

.contact-form__row {
	display: grid;
	gap: var(--space-2xs);
}

.contact-form__label {
	font-weight: 600;
	font-size: var(--fs-sm);
}

.contact-form__input,
.contact-form__textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-white);
	font-family: inherit;
	font-size: var(--fs-base);
	color: var(--color-ink);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
	border-color: var(--color-teal);
}

.contact-form__submit {
	justify-self: start;
}

/* ==========================================================================
   12b. Press page (round 5 — real items card grid; see docs/TEAM.md).
   Compact-card aesthetic matching .service-detail / .value-card elsewhere:
   thin border, restrained padding, no heavy box/shadow. Renders as either
   an <a> (item has a source link) or a <div> (no link) — same class either
   way, see page-press.php.
   ========================================================================== */

.press-list {
	padding-block: var(--space-2xl);
}

.press-list__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
}

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

.press-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-white);
	color: var(--color-ink);
}

a.press-card:hover,
a.press-card:focus-visible {
	border-color: var(--color-teal);
	color: var(--color-ink);
}

/* Round 6: real thumbnail image, brought back after the plain-text-list
   round-5 regression (see docs/TEAM.md "Round 6"). Fixed aspect ratio/size
   so the grid stays even across cards whose source images vary in
   dimensions — object-fit: cover crops to fill rather than distort. */
.press-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	background-color: var(--color-off-white);
}

.press-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.press-card__body {
	display: flex;
	flex-direction: column;
	padding: var(--space-md);
}

.press-card__date {
	font-size: var(--fs-sm);
	color: var(--color-slate);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: var(--space-2xs);
}

.press-card__title {
	font-family: var(--font-heading);
	font-size: var(--fs-md);
	line-height: var(--lh-snug);
	color: var(--color-ink);
	margin-bottom: var(--space-2xs);
}

.press-card__excerpt {
	font-size: var(--fs-sm);
	color: var(--color-ink-soft);
	line-height: var(--lh-snug);
}

/* ==========================================================================
   13. Blog/search fallback (index.php)
   ========================================================================== */

.post-list {
	padding-block: var(--space-xl);
}

.post-list__inner {
	max-width: 800px;
	display: grid;
	gap: var(--space-lg);
}

.post-card {
	padding-bottom: var(--space-lg);
	border-bottom: 1px solid var(--color-border);
}

.post-card__title {
	font-size: var(--fs-xl);
}

.post-list__pagination {
	margin-top: var(--space-md);
}

/* ==========================================================================
   14. Site footer
   ========================================================================== */

.site-footer {
	background-color: var(--color-ink);
	color: rgba(255, 255, 255, 0.82);
	padding-top: var(--space-2xl);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
	padding-bottom: var(--space-xl);
}

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

@media (min-width: 1000px) {
	.site-footer__inner {
		grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
	}
}

.site-footer__site-title {
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
	color: var(--color-white);
	font-weight: 700;
}

.site-footer__logo img {
	max-height: 40px;
	filter: brightness(0) invert(1);
}

.site-footer__tagline {
	color: rgba(255, 255, 255, 0.65);
	max-width: 32ch;
}

.site-footer__heading {
	color: var(--color-white);
	font-size: var(--fs-sm);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: var(--space-sm);
}

.site-footer__menu,
.site-footer__contact-list {
	display: grid;
	gap: var(--space-2xs);
}

.site-footer__menu a,
.site-footer__contact-list a {
	color: rgba(255, 255, 255, 0.82);
}

.site-footer__menu a:hover,
.site-footer__contact-list a:hover {
	color: var(--color-orange);
}

.site-footer__contact-item {
	color: rgba(255, 255, 255, 0.82);
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-block: var(--space-md);
}

.site-footer__copyright {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-padding);
	margin-bottom: 0;
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.55);
	text-align: center;
}

.widget__title {
	color: var(--color-white);
	font-size: var(--fs-sm);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
