/* ==========================================================================
   COMPONENTS — one block per component, in the same order as /components.
   ========================================================================== */

/* ---------- Hero (components/sections/hero.php) ---------- */
.hero {
	position: relative;
	display: flex;
	min-height: clamp(560px, 46vw, 680px);
	overflow: hidden;
	background: var(--lhdk-color-ink);
	color: var(--lhdk-color-on-dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: lhdk-zoom 8s ease-out forwards; }
.hero-overlay { position: absolute; inset: 0; background: var(--lhdk-overlay); }
.hero-content {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: clamp(4.5rem, 9vw, 7rem) var(--lhdk-space-lg);
}
.hero-title { max-width: 14ch; margin-bottom: var(--lhdk-space-md); font-size: var(--lhdk-font-size-display); line-height: 1.08; color: var(--lhdk-color-on-dark); }
.hero-description { max-width: 46ch; margin-bottom: var(--lhdk-space-lg); font-size: var(--lhdk-font-size-lead); font-weight: var(--lhdk-font-weight-light); color: var(--lhdk-color-on-dark-soft); }
.hero-location { display: flex; align-items: center; gap: 8px; margin: var(--lhdk-space-xl) 0 0; font-size: var(--lhdk-font-size-xs); letter-spacing: 0.04em; color: var(--lhdk-color-on-dark-soft); }
.hero-location .icon { color: var(--lhdk-color-accent-soft); }

.hero-in { opacity: 0; transform: translateY(22px); animation: lhdk-rise 0.9s var(--lhdk-ease) forwards; }
.hero-in.d1 { animation-delay: 0.15s; }
.hero-in.d2 { animation-delay: 0.3s; }
.hero-in.d3 { animation-delay: 0.45s; }
.hero-in.d4 { animation-delay: 0.6s; }
.hero-in.d5 { animation-delay: 0.75s; }
@keyframes lhdk-rise { to { opacity: 1; transform: none; } }
@keyframes lhdk-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Page hero (components/ui/page-hero.php) ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero.no-media { border-bottom: 1px solid var(--lhdk-color-border); }
.page-hero.has-media { display: flex; align-items: flex-end; min-height: clamp(340px, 38vw, 460px); background: var(--lhdk-color-ink); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: var(--lhdk-overlay-bottom); }
.page-hero-inner { position: relative; padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 4vw, 3.5rem); }
.page-hero .section-header { margin-bottom: 0; max-width: 780px; }
.page-hero-meta { margin: var(--lhdk-space-sm) 0 0; font-size: var(--lhdk-font-size-small); color: var(--lhdk-color-muted); }
.page-hero.has-media .page-hero-meta { color: var(--lhdk-color-on-dark-soft); }

/* ---------- Breadcrumbs (components/ui/breadcrumbs.php) ---------- */
.breadcrumbs { margin-bottom: var(--lhdk-space-md); font-size: var(--lhdk-font-size-xs); color: var(--lhdk-color-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.page-hero.has-media .breadcrumbs { color: var(--lhdk-color-on-dark-soft); }

/* ---------- Card grid (components/sections/card-grid.php) ---------- */
.card-grid { display: grid; gap: var(--lhdk-space-md); }
.card-grid-service { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-practice-area { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-post { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--lhdk-space-lg) var(--lhdk-space-md); }
.card-grid-empty { color: var(--lhdk-color-muted); }
@media (max-width: 1024px) {
	.card-grid-service, .card-grid-post { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid-practice-area { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.card-grid-service, .card-grid-post { grid-template-columns: 1fr; }
}

/* ---------- Cards (components/cards/*) ---------- */
.card { position: relative; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-link:hover { color: inherit; }
.card-media { position: relative; overflow: hidden; background: var(--lhdk-color-surface-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--lhdk-ease); }
.card-link:hover .card-media img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.125rem; margin-bottom: var(--lhdk-space-xs); }
.card-text { color: var(--lhdk-color-muted); font-size: var(--lhdk-font-size-small); font-weight: var(--lhdk-font-weight-light); }
.card-eyebrow { margin-bottom: var(--lhdk-space-xs); font-size: var(--lhdk-font-size-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; color: var(--lhdk-color-accent); }
.card-more, .card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: auto 0 0; padding-top: var(--lhdk-space-sm); font-size: var(--lhdk-font-size-xs); letter-spacing: 0.04em; color: var(--lhdk-color-muted); }
.card .icon-arrow { transition: transform var(--lhdk-duration) var(--lhdk-ease); }
.card-link:hover .icon-arrow { transform: translateX(4px); }

/* Service card: white card with photo on top */
.service-card .card-link {
	overflow: hidden;
	background: var(--lhdk-color-surface);
	border: 1px solid var(--lhdk-color-border);
	border-radius: var(--lhdk-radius-md);
	transition: transform 0.4s var(--lhdk-ease), box-shadow 0.4s ease;
}
.service-card .card-link:hover { transform: translateY(-6px); box-shadow: var(--lhdk-shadow-md); }
.service-card .card-media { aspect-ratio: 16 / 10; }
.service-card .card-body { padding: var(--lhdk-space-md); }
.service-card .card-more { justify-content: flex-start; color: var(--lhdk-color-text); }

/* Practice area card: tall photo tile */
.practice-card .card-link { overflow: hidden; border-radius: var(--lhdk-radius-md); transition: transform 0.4s var(--lhdk-ease), box-shadow 0.4s ease; }
.practice-card .card-link:hover { transform: translateY(-8px); box-shadow: var(--lhdk-shadow-lg); }
.practice-card .card-media { aspect-ratio: 3 / 4.2; }
.practice-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 9, 0) 40%, rgba(12, 11, 9, 0.85) 100%); }
.practice-card-title {
	position: absolute;
	left: var(--lhdk-space-md);
	right: var(--lhdk-space-md);
	bottom: var(--lhdk-space-md);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	font-size: 1.25rem;
	color: var(--lhdk-color-on-dark);
}
.practice-card-title .icon { color: var(--lhdk-color-primary); margin-bottom: 8px; }

/* Post card: photo + text, no box */
.post-card .card-media { aspect-ratio: 16 / 10; margin-bottom: var(--lhdk-space-md); border-radius: var(--lhdk-radius-sm); }
.post-card .card-title { font-family: var(--lhdk-font-body); font-size: 1rem; font-weight: var(--lhdk-font-weight-normal); line-height: 1.5; }
.post-card .card-meta { border-top: 1px solid var(--lhdk-color-border); margin-top: var(--lhdk-space-sm); padding-top: var(--lhdk-space-sm); }

/* ---------- Section backgrounds ---------- */
.section-services { background: var(--lhdk-color-surface-alt); }

/* ---------- Split sections: About + Team ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--lhdk-color-background); }
.split-media { position: relative; min-height: 560px; overflow: hidden; background: var(--lhdk-color-ink); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media-overlay { position: absolute; inset: 0; background: var(--lhdk-overlay-bottom); }
.split-media-content {
	position: absolute;
	inset: auto 0 0 0;
	padding: clamp(2rem, 5vw, 3.5rem);
}
.split-media-content .section-header { margin-bottom: var(--lhdk-space-md); }
.split-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--lhdk-space-lg);
	padding: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.split-media { min-height: 480px; }
}

/* Features ("Why choose us") */
.feature-list { display: grid; gap: var(--lhdk-space-lg); }
.feature { display: flex; gap: var(--lhdk-space-md); }
.feature-icon { flex: none; padding-top: 2px; }
.feature-title { margin-bottom: 6px; font-family: var(--lhdk-font-body); font-size: 1rem; font-weight: var(--lhdk-font-weight-medium); }
.feature-text { margin: 0; color: var(--lhdk-color-muted); font-size: var(--lhdk-font-size-small); font-weight: var(--lhdk-font-weight-light); }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: var(--lhdk-space-xl); margin: 0; }
.stat-number { font-family: var(--lhdk-font-heading); font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; }
.stat-label { margin: 8px 0 0; font-size: var(--lhdk-font-size-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lhdk-color-muted); }

/* ---------- Testimonial (components/ui/testimonial.php) ---------- */
.testimonial {
	margin: 0;
	padding: var(--lhdk-space-lg);
	background: var(--lhdk-color-surface);
	border: 1px solid var(--lhdk-color-border);
	border-radius: var(--lhdk-radius-md);
}
.testimonial-mark { width: 32px; height: 24px; margin-bottom: var(--lhdk-space-sm); color: var(--lhdk-color-primary); }
.testimonial-quote { margin: 0 0 var(--lhdk-space-md); font-size: 0.9375rem; line-height: 1.9; font-weight: var(--lhdk-font-weight-light); color: var(--lhdk-color-text-soft); }
.testimonial-quote p { margin: 0; }
.testimonial-author { display: flex; flex-direction: column; font-size: var(--lhdk-font-size-small); }
.testimonial-author strong { font-weight: var(--lhdk-font-weight-medium); }
.testimonial-author span { color: var(--lhdk-color-muted); }

/* ---------- CTA band / contact (components/sections/cta.php) ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--lhdk-color-ink); color: var(--lhdk-color-on-dark); }
.cta-band-media { position: absolute; inset: 0; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.cta-band-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 11, 9, 0.92), rgba(12, 11, 9, 0.6)); }
.cta-band-inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--lhdk-space-lg);
	padding-block: clamp(4rem, 8vw, 6.5rem);
}
.cta-band-copy { flex: 1 1 460px; }
.cta-band .section-header { margin-bottom: var(--lhdk-space-sm); }
.cta-band-email { margin: 0; font-size: var(--lhdk-font-size-small); color: var(--lhdk-color-on-dark-soft); }
.cta-band-email a { color: var(--lhdk-color-primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ (components/sections/faq.php) ---------- */
.faq { margin-top: var(--lhdk-space-xl); }
.faq-title { font-size: 1.75rem; margin-bottom: var(--lhdk-space-md); }
.faq-list { border-top: 1px solid var(--lhdk-color-border); }
.faq-item { border-bottom: 1px solid var(--lhdk-color-border); }
.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--lhdk-space-md);
	padding: 1.1rem 0;
	cursor: pointer;
	list-style: none;
	font-weight: var(--lhdk-font-weight-medium);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { width: 12px; height: 8px; color: var(--lhdk-color-accent); transition: transform var(--lhdk-duration) ease; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding-bottom: 1.1rem; color: var(--lhdk-color-text-soft); font-weight: var(--lhdk-font-weight-light); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Pagination (components/ui/pagination.php) ---------- */
.pagination { margin-top: var(--lhdk-space-xl); }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 14px;
	border: 1px solid var(--lhdk-color-border);
	border-radius: var(--lhdk-radius-pill);
	font-size: var(--lhdk-font-size-small);
}
.pagination .page-numbers.current { background: var(--lhdk-color-ink); border-color: var(--lhdk-color-ink); color: var(--lhdk-color-on-dark); }

/* ---------- Contact popups (components/forms/contact-modal.php) ---------- */
.modal { position: fixed; inset: 0; z-index: var(--lhdk-z-modal); display: grid; place-items: center; padding: 16px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(20, 18, 15, 0.55); opacity: 0; transition: opacity 0.3s ease; }
.modal-dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: clamp(1.75rem, 4vw, 2.5rem);
	background: var(--lhdk-color-surface);
	border-radius: var(--lhdk-radius-lg);
	box-shadow: var(--lhdk-shadow-lg);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.3s ease, transform 0.3s var(--lhdk-ease);
}
.modal-quick { width: min(460px, 100%); }
.modal.is-open .modal-overlay, .modal.is-open .modal-dialog { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.modal-close span { position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; background: var(--lhdk-color-text); }
.modal-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-head { margin-bottom: var(--lhdk-space-md); padding-right: 32px; }
.modal-title { font-size: 1.75rem; margin-bottom: var(--lhdk-space-xs); }
.modal-text { color: var(--lhdk-color-muted); font-size: var(--lhdk-font-size-small); margin: 0; }

/* Forms */
.contact-form { display: grid; gap: var(--lhdk-space-sm); }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: var(--lhdk-font-size-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lhdk-color-muted); }
.form-row input, .form-row select, .form-row textarea {
	width: 100%;
	padding: 0.8rem 0.95rem;
	background: #fff;
	border: 1px solid var(--lhdk-color-border);
	border-radius: var(--lhdk-radius-sm);
	font: inherit;
	font-size: 0.9375rem;
	color: var(--lhdk-color-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--lhdk-color-accent); box-shadow: 0 0 0 3px rgba(176, 138, 79, 0.15); }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-hp { position: absolute; left: -9999px; }
.form-feedback { min-height: 1.2em; font-size: var(--lhdk-font-size-small); }
.form-feedback.is-success { color: var(--lhdk-color-success); }
.form-feedback.is-error { color: var(--lhdk-color-error); }
.form-submit { width: 100%; }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.form-alt { margin: 0; text-align: center; font-size: var(--lhdk-font-size-xs); color: var(--lhdk-color-muted); }
.form-alt a { color: var(--lhdk-color-accent); }
