/*
Theme Name: Hamburg Enterprises
Theme URI: https://hamburgenterprises.com
Description: Child theme of Twenty Twenty-Five for hamburgenterprises.com. Header, footer, page templates and the design system for Hamburg Enterprises, LLC and Hamburg Enterprises GmbH.
Author: Hamburg Enterprises
Template: twentytwentyfive
Version: 0.1.4
Text Domain: hamburgenterprises
*/

/* Tokens mirror theme.json: paper, ink, gold, paper-2, gold-light, slate, white, stone. */
:root {
	--he-line: rgba(20, 20, 20, 0.12);
	--he-line-dark: rgba(255, 255, 255, 0.14);
}

body {
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration: none;
}

.entry-content p,
.entry-content li {
	color: var(--wp--preset--color--accent-4);
}

h1 em,
h2 em {
	font-style: italic;
	color: var(--wp--preset--color--accent-1);
}

.entry-content > h2:not(:first-child) {
	margin-top: 2.75rem;
}

/* Eyebrow */
.he-eyebrow {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.72rem !important;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--accent-1) !important;
	margin-bottom: 1.1rem;
}

.he-eyebrow + h1,
.he-eyebrow + h2,
.he-eyebrow + h3 {
	margin-top: 0;
}

/* Notice */
.he-notice {
	font-size: 0.84rem !important;
	color: var(--wp--preset--color--accent-6) !important;
	border-left: 2px solid var(--wp--preset--color--accent-1);
	padding-left: 1rem;
}

/* Buttons */
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* ===== Header ===== */
.he-header-wrap {
	position: sticky;
	top: 0;
	z-index: 20;
}

.he-header {
	min-height: 78px;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.he-logo img {
	height: 34px;
	width: auto;
	display: block;
}

/* Core prints the navigation block's CSS after this sheet, so these carry extra specificity. */
.he-header-wrap .he-nav .wp-block-navigation-item .wp-block-navigation-item__content,
.he-header-wrap .he-nav .wp-block-navigation-item__content {
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
	padding: 0.5rem 0;
}

.he-header-wrap .he-nav .wp-block-navigation-item .wp-block-navigation-item__content:hover,
.he-header-wrap .he-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-3);
}

.he-header-wrap .he-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--base);
	font-size: 1.1rem;
}

.he-nav.wp-block-navigation {
	gap: 2rem;
}

.he-header-cta .wp-block-button__link {
	border-color: var(--wp--preset--color--accent-3) !important;
	color: var(--wp--preset--color--accent-3) !important;
	background: transparent !important;
	padding: 11px 18px;
}

.he-header-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-3) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.he-header-right {
	gap: 2rem;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--base);
}

@media (max-width: 782px) {
	.he-header {
		flex-wrap: nowrap !important;
		gap: 1rem;
	}
	.he-header-right {
		flex-direction: row-reverse;
		flex-wrap: nowrap !important;
		gap: 0.75rem;
	}
	.he-header-cta {
		display: none;
	}
	.he-logo img {
		height: 28px;
	}
}

/* ===== Sections ===== */
.entry-content > .he-band,
.entry-content > .he-dark,
.entry-content > .he-cta,
.entry-content > .he-strip {
	margin-top: 0;
	margin-bottom: 0;
}

.he-band,
.he-dark,
.he-cta {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.he-dark p,
.he-dark li,
.he-cta p,
.he-cta li,
.he-dark h1,
.he-dark h2,
.he-cta h2 {
	color: var(--wp--preset--color--base);
}

.he-dark .he-eyebrow,
.he-cta .he-eyebrow {
	color: var(--wp--preset--color--accent-3) !important;
}

.he-dark .wp-block-button.is-style-outline .wp-block-button__link,
.he-cta .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--accent-3);
	border-color: var(--wp--preset--color--accent-3);
}

.he-dark .wp-block-button.is-style-outline .wp-block-button__link:hover,
.he-cta .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--contrast);
}

.he-cta {
	text-align: center;
}

.he-cta p:not(.he-eyebrow) {
	color: rgba(255, 255, 255, 0.7);
	max-width: 52ch;
	margin-left: auto;
	margin-right: auto;
}

.he-cta .wp-block-buttons {
	margin-top: 2rem;
}

/* Rule under a hero heading */
.he-hero h1::after {
	content: "";
	display: block;
	width: 56px;
	height: 1px;
	background: var(--wp--preset--color--accent-1);
	margin: 26px 0 0;
}

/* ===== Split (two columns) ===== */
.he-split {
	gap: 4rem;
}

.he-hero {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--60);
}

.he-hero .wp-block-column:first-child {
	flex: 0 0 calc(56% - 2rem);
}

.he-hero .wp-block-column:last-child {
	flex: 0 0 calc(44% - 2rem);
}

.he-hero p:not(.he-eyebrow) {
	font-size: 1.08rem;
	max-width: 60ch;
}

.he-hero .wp-block-buttons {
	margin-top: 2rem;
}

.he-section-head {
	align-items: flex-end !important;
	padding-top: var(--wp--preset--spacing--70);
	margin-bottom: var(--wp--preset--spacing--40) !important;
}

.he-section-head h2 {
	margin-bottom: 0;
}

.he-feature .he-callout .he-eyebrow:first-child {
	font-size: 1.6rem !important;
	letter-spacing: 0.2em;
	color: #14213d !important;
	margin-bottom: 0.25rem;
}

.he-feature .he-callout .he-eyebrow:first-child + p {
	font-size: 0.78rem;
	color: var(--wp--preset--color--accent-6);
	margin-bottom: 1.25rem;
}

.he-feature p:not(.he-eyebrow) {
	font-size: 1.04rem;
}

.he-principle h2 {
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	font-style: italic;
}

.he-principle h2 em {
	color: var(--wp--preset--color--contrast);
}

.he-principle h2 + .he-eyebrow {
	margin-top: 1.25rem;
}

@media (max-width: 781px) {
	.he-split {
		gap: 2rem;
	}
	.he-hero {
		padding-top: var(--wp--preset--spacing--60);
	}
	.he-section-head {
		padding-top: var(--wp--preset--spacing--60);
	}
}

/* ===== Photo placeholders (until real photographs exist) ===== */
.he-photo {
	position: relative;
	border: 1px solid var(--he-line);
	background:
		linear-gradient(180deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.55)),
		radial-gradient(120% 80% at 70% 20%, #e9d9c2 0%, #c98c5c 35%, #8e4b33 70%, #4a2a22 100%);
}

.he-photo-tall {
	aspect-ratio: 4 / 5;
}

.he-photo-wide {
	aspect-ratio: 16 / 7;
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--50);
}

.he-photo .he-photo-label {
	position: absolute;
	left: 18px;
	bottom: 16px;
	margin: 0;
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 0.7rem !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.wp-block-image.he-photo-real {
	margin: 0;
}

.wp-block-image.he-photo-real img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wp-block-image.he-photo-real.he-photo-tall img {
	aspect-ratio: 4 / 5;
}

.wp-block-image.he-photo-real.he-photo-wide img {
	aspect-ratio: 16 / 7;
}

@media (max-width: 600px) {
	.he-photo-tall {
		aspect-ratio: 4 / 3;
	}
	.he-photo-wide {
		aspect-ratio: 3 / 2;
	}
}

/* ===== Proof strip ===== */
.he-strip {
	padding-top: 2.4rem;
	padding-bottom: 2.4rem;
}

.he-strip .wp-block-columns {
	gap: 1.5rem;
}

.he-stat {
	border-left: 1px solid var(--he-line-dark);
	padding-left: 1.4rem;
}

.he-stat-n {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 2.3rem !important;
	font-weight: 300;
	line-height: 1;
	color: var(--wp--preset--color--accent-3) !important;
	margin: 0 0 0.6rem !important;
}

.he-stat-l {
	font-size: 0.72rem !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.66) !important;
	margin: 0 !important;
}

@media (max-width: 781px) {
	.he-strip .wp-block-columns {
		flex-wrap: wrap !important;
	}
	.he-strip .wp-block-column {
		flex-basis: calc(50% - 0.75rem) !important;
		margin-bottom: 1.5rem;
	}
}

/* ===== Callout and cards ===== */
.he-callout {
	border: 1px solid var(--he-line);
	padding: 2.75rem;
}

.he-card {
	border: 1px solid var(--he-line);
	padding: 1.6rem 1.6rem 1.4rem;
	height: 100%;
}

.he-card h3 {
	font-size: 1.35rem;
	margin: 0 0 0.6rem;
}

.he-card p {
	font-size: 0.92rem;
	margin: 0 0 0.5rem;
}

@media (max-width: 600px) {
	.he-callout {
		padding: 1.5rem;
	}
}

/* ===== Roster: sectors and tiles ===== */
.he-sector {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	border-top: 1px solid var(--he-line);
}

.he-sector + .he-sector {
	margin-top: 0 !important;
}

.he-sector:last-of-type,
.he-sector + .he-band,
.he-sector + .he-cta {
	border-bottom: 1px solid var(--he-line);
}

.he-sector-cols {
	gap: 2.5rem;
}

.he-sector-title {
	font-size: 1.7rem !important;
	margin: 0 !important;
}

.he-sector-count {
	font-size: 0.72rem !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-6) !important;
	margin-top: 0.5rem !important;
}

.he-tiles-row {
	gap: 1rem;
	margin-bottom: 1rem;
}

.he-tiles-row:last-child {
	margin-bottom: 0;
}

.he-tile {
	border: 1px solid var(--he-line);
	padding: 1.4rem 1.4rem 1.25rem;
	min-height: 168px;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease;
}

.he-tile:hover {
	border-color: var(--wp--preset--color--accent-1);
}

.he-tile-logo {
	height: 44px;
	display: flex;
	align-items: center;
	margin: 0 0 1rem !important;
}

.he-tile-logo img {
	max-height: 44px;
	max-width: 150px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.he-tile-name {
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 600;
	font-size: 0.86rem !important;
	letter-spacing: 0;
	margin: 0 !important;
}

.he-tile-logo + .he-tile-name {
	margin-top: 0 !important;
}

.he-tile > .he-tile-name:first-child {
	font-family: var(--wp--preset--font-family--cormorant);
	font-weight: 400;
	font-size: 1.45rem !important;
	height: 44px;
	display: flex;
	align-items: center;
	margin-bottom: 1rem !important;
}

.he-tile-desc {
	font-size: 0.84rem !important;
	line-height: 1.5;
	margin: 0.3rem 0 0 !important;
}

.he-tile-url {
	margin-top: auto !important;
	padding-top: 0.9rem;
	font-size: 0.7rem !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
}

.he-tile-url a {
	color: var(--wp--preset--color--accent-1);
}

.he-tile-url a:hover {
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 781px) {
	.he-sector-cols {
		gap: 1rem;
	}
	.he-tiles-row {
		flex-wrap: wrap !important;
	}
	.he-tiles-row .wp-block-column {
		flex-basis: calc(50% - 0.5rem) !important;
	}
}

@media (max-width: 600px) {
	.he-tiles-row .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ===== Contact ===== */
.he-contact .he-eyebrow {
	margin-bottom: 0.4rem;
	margin-top: 1.5rem;
}

.he-contact .he-eyebrow:first-child {
	margin-top: 0;
}

.he-contact p {
	font-size: 0.92rem;
	margin: 0;
}

.he-form-placeholder {
	border: 1px dashed var(--he-line);
	padding: 2rem;
	text-align: center;
	color: var(--wp--preset--color--accent-6) !important;
}

/* Fluent Forms: inputs and the submit button follow the theme */
.fluentform .ff-el-form-control {
	border: 1px solid rgba(20, 20, 20, 0.18);
	border-radius: 0;
	background: #fff;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.95rem;
	padding: 0.7rem 0.85rem;
}

.fluentform .ff-el-form-control:focus {
	border-color: var(--wp--preset--color--accent-1);
	box-shadow: none;
	outline: none;
}

.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit.ff-btn-md {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	border-radius: 0 !important;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 15px 26px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fluentform .ff-btn-submit:hover {
	background: var(--wp--preset--color--accent-1) !important;
	border-color: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.fluentform .ff-message-success {
	border-left: 2px solid var(--wp--preset--color--accent-1);
	background: #fff;
	padding: 1rem 1.25rem;
}

/* ===== Footer ===== */
.he-footer {
	border-top: 1px solid var(--he-line-dark);
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--50);
	font-size: 0.84rem;
}

.he-footer p,
.he-footer a,
.he-footer .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.84rem;
}

.he-footer a:hover,
.he-footer .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-3);
}

.he-footer .he-eyebrow {
	color: var(--wp--preset--color--accent-3) !important;
	margin-bottom: 0.6rem;
}

.he-footer-logo img {
	height: 30px;
	width: auto;
	margin-bottom: 1rem;
}

.he-footer .wp-block-columns {
	gap: 2.5rem;
}

.he-footer-bottom {
	margin-top: 2.75rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--he-line-dark);
}

.he-footer-bottom p,
.he-footer-bottom .wp-block-navigation-item__content {
	font-size: 0.74rem;
	color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 781px) {
	.he-footer .wp-block-columns {
		flex-wrap: wrap !important;
	}
	.he-footer .wp-block-column {
		flex-basis: calc(50% - 1.25rem) !important;
	}
}

@media (max-width: 600px) {
	.he-footer .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ===== Legal pages and plain pages ===== */
.he-plain h2 {
	font-size: 1.7rem;
	margin-top: 2.5rem;
}

/* 404 */
.he-404 {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}
