/**
 * @file
 * Site header: top bar (logo, main menu, search, contact) over the hero image,
 * with the page title at the bottom of the hero.
 *
 * Figma: "Header" (2581:1854) and "Practice Areas/Hero_Practice_Areas"
 * (2474:6244), desktop frame 1920px wide, hero 385px high.
 */

.site-header { position: relative; display: flex; flex-direction: column; min-height: 385px; padding: 0 var(--osent-gutter); color: var(--osent-color-white); background-color: #1c2527; /* Overlays from the design, top to bottom, then the photo. */ background-image: linear-gradient(270deg, rgba(28, 37, 39, 0.8) 0%, rgba(28, 37, 39, 0) 24.3%), linear-gradient(103deg, rgb(28, 37, 39) 31.9%, rgba(1, 38, 82, 0.2) 68.6%, rgba(28, 37, 39, 0) 97.8%), linear-gradient(180deg, rgba(1, 38, 82, 0) 50%, rgba(1, 38, 82, 0.75) 100%), linear-gradient(180deg, rgba(1, 38, 82, 0.75) 0%, rgba(1, 38, 82, 0) 52.5%), var(--osent-hero-image, url(../../images/hero-default.jpg)); background-repeat: no-repeat; background-position: center, center, center, center, 70% 30%; background-size: cover; }

/* Top bar. */
.site-header__bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; Xgap: 32px; padding: 24px 0; border-bottom: 1px solid var(--osent-color-white); }

/* Logo (Site branding block). */
.site-header__branding { flex-shrink: 0; }
.site-header__branding .block { margin: 0; }
.site-header__branding .site-logo { display: block; width: 185px; }
.site-header__branding .site-logo img { display: block; width: 100%; height: auto; }
/* The design shows the logo only. */
.site-header__branding .site-name,
.site-header__branding .site-slogan { display: none; }

/* Menu wrapper: nav + actions, to the right of the logo. As in the design
   (space-between), the menu sits centered between logo and buttons. */
.site-header__menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 42px; min-width: 0; margin-left: 32px; }
.site-header__nav { display: start; flex: 1; Xjustify-content: center; min-width: 0; }

/* Main navigation (Main navigation menu block). */
.site-header__nav .block,
.site-header__nav ul.menu { margin: 0; }
.site-header__nav ul.menu { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 28px; padding: 24px 0 0; list-style: none; }
.site-header__nav ul.menu ul { display: none; /* The design has no dropdowns. */ }
.site-header__nav .menu-item { padding: 0; list-style: none; }
.site-header__nav .menu-item a { display: block; padding-bottom: 10px; border-bottom: 1px solid transparent; color: var(--osent-color-white); font-size: 16px; font-weight: 600; line-height: 20px; letter-spacing: 1.6px; text-transform: uppercase; text-decoration: none; white-space: nowrap; font-feature-settings: "liga" 0, var(--osent-font-features); }
.site-header__nav .menu-item a:hover,
.site-header__nav .menu-item a:focus-visible,
.site-header__nav .menu-item a.is-active,
.site-header__nav .menu-item--active-trail > a { color: var(--osent-color-gold); }
.site-header__nav .menu-item a.is-active,
.site-header__nav .menu-item--active-trail > a { border-bottom-color: var(--osent-color-gold); }

/* Search + Contact. */
.site-header__actions { display: flex; flex-shrink: 0; align-items: center; gap: 20px; padding-top: 10px; }
.site-header__actions .block { margin: 0; }
.site-header__search { display: flex; align-items: center; justify-content: center; width: 53px; height: 53px; border-radius: 50px; background: var(--osent-color-beige); }
.site-header__search img { display: block; width: 20px; height: 20px; }

/* Page title at the bottom of the hero. */
.site-header__title { display: flex; flex: 1; align-items: flex-end; padding: 40px 0 56px; }
.site-header__title .block { margin: 0; }
.site-header__title h1,
.site-header__title-text { margin: 0; color: var(--osent-color-beige); font-size: 102px; font-weight: 600; line-height: 1; overflow-wrap: break-word; }

/* Tabs (View / Edit / …) directly under the header. */
.site-tabs { padding: 16px var(--osent-gutter) 0; background: var(--osent-color-beige); }
.site-tabs .block { margin: 0; }
.site-tabs ul.tabs { margin: 0; }

/* Mobile menu toggle (hidden on desktop). */
.site-header__toggle { display: none; }

/* Narrower desktops: tighten spacing. */
@media (max-width: 1600px) {
	.site-header__menu,
	.site-header__nav ul.menu { gap: 20px; }
	.site-header__nav .menu-item a { font-size: 14px; letter-spacing: 1.2px; }
	.site-header__title-text { font-size: 80px; }
}

/* Tablet and mobile: collapsible menu. */
@media (max-width: 1199px) {
	:root { --osent-gutter: 24px; }
	.site-header { min-height: 300px; }
	.site-header__bar { padding: 16px 0; }
	.site-header__branding .site-logo { width: 140px; }
	.site-header__toggle { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--osent-color-white); border-radius: 50%; background: transparent; color: var(--osent-color-white); cursor: pointer; }
	.site-header__toggle-icon,
	.site-header__toggle-icon::before,
	.site-header__toggle-icon::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 0.2s ease, background-color 0.2s ease; }
	.site-header__toggle-icon { position: relative; }
	.site-header__toggle-icon::before,
	.site-header__toggle-icon::after { position: absolute; left: 0; content: ""; }
	.site-header__toggle-icon::before { top: -6px; }
	.site-header__toggle-icon::after { top: 6px; }
	.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon { background-color: transparent; }
	.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::before { transform: translateY(6px) rotate(45deg); }
	.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

	.site-header__menu { position: absolute; top: 100%; right: calc(var(--osent-gutter) * -1); left: calc(var(--osent-gutter) * -1); display: none; flex-direction: column; align-items: stretch; gap: 24px; padding: 24px var(--osent-gutter) 32px; background: var(--osent-color-navy); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); }
	/* Without JavaScript the menu stays visible. */
	html:not(.js) .site-header__menu,
	.site-header.is-menu-open .site-header__menu { display: flex; }
	html:not(.js) .site-header__menu { position: static; }
	.site-header__nav { justify-content: flex-start; }
	.site-header__nav ul.menu { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; }
	.site-header__nav .menu-item a { padding: 10px 0; }
	.site-header__title { padding: 32px 0 40px; }
	.site-header__title-text { font-size: clamp(36px, 7vw, 64px); }
}
