/*
Theme Name: Hinds-Bock
Theme URI: https://www.hinds-bock.com/
Description: Hinds-Bock brand child theme of Twenty Twenty-Five. Provides the branded header and footer.
Author: Hinds-Bock
Template: twentytwentyfive
Version: 1.0.0
Text Domain: hindsbock
*/

/* ------------------------------------------------------------------ *
 * Gotham font family (self-hosted OTF)
 * ------------------------------------------------------------------ */
@font-face {
	font-family: "Gotham";
	src: url("assets/fonts/gotham/Gotham-Book.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Gotham";
	src: url("assets/fonts/gotham/Gotham-Medium.otf") format("opentype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Gotham";
	src: url("assets/fonts/gotham/Gotham-Bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Gotham";
	src: url("assets/fonts/gotham/Gotham-Black.otf") format("opentype");
	font-weight: 800 900;
	font-style: normal;
	font-display: swap;
}

/* Apply Gotham across the whole site (overrides the parent theme fonts). */
:root {
	--wp--preset--font-family--body: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--wp--preset--font-family--heading: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--wp--preset--font-family--system-sans-serif: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

body,
button,
input,
select,
optgroup,
textarea,
.wp-block-button__link,
.wp-site-blocks,
h1, h2, h3, h4, h5, h6 {
	font-family: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ *
 * Home page (front-page.html)
 * ------------------------------------------------------------------ */

/* Header navigation: balance the caps in the bar and align/space the chevrons */
.hbk-nav .wp-block-navigation-item__content,
.hbk-nav .wp-block-navigation-item__label {
	line-height: 1.25;
}
/* Centre wrapped rows so the menu stays vertically centred in the blue bar */
.hbk-nav .wp-block-navigation__container {
	align-content: center;
}
/* Optically centre the all-caps labels in the blue bar (caps sit high in the
   line box because they have no descenders) */
.hbk-nav .wp-block-navigation-item__content {
	transform: translateY(1px);
}
/* Space the dropdown chevron from its label and keep it aligned with the caps */
.hbk-nav .wp-block-navigation-submenu__toggle {
	padding: 0;
	align-self: center;
}
.hbk-nav .wp-block-navigation__submenu-icon {
	position: static;
	align-self: center;
	margin: 0 0 0 18px;
	padding: 0;
	/* the WP chevron glyph sits low in its SVG box, so lift it to the caps' middle */
	transform: translateY(-1px);
}
.hbk-nav .wp-block-navigation__submenu-icon svg {
	display: block;
}

/* Dropdown submenu (flyout) spacing */
.hbk-nav .wp-block-navigation__submenu-container {
	padding-top: 6px;
	padding-bottom: 6px;
}
.hbk-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	transform: none;
	padding: 10px 18px !important;
}

/* Hero */
.hbk-hero-video {
	margin: 0;
}
.hbk-hero-video video {
	display: block;
	width: 100%;
	height: auto;
}

/* Food strip: four equal images */
.hbk-foodstrip {
	gap: 16px;
}
.hbk-foodstrip .hbk-foodstrip-img,
.hbk-foodstrip .hbk-foodstrip-img img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}
.hbk-foodstrip .hbk-foodstrip-img img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Call-to-action buttons */
.hbk-cta .hbk-cta-btn .wp-block-button__link {
	padding: 16px 28px;
}

/* Product grid */
.hbk-product-feature,
.hbk-product-card {
	margin: 0;
}
.hbk-product-feature img,
.hbk-product-card img {
	display: block;
	width: 100%;
	height: auto;
}
.hbk-product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.hbk-product-card {
	overflow: hidden;
	transition: transform 0.2s ease;
}
.hbk-product-card:hover {
	transform: translateY(-2px);
}

@media (max-width: 781px) {
	.hbk-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Capabilities video placeholders */
.hbk-video {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 200px;
	background-color: #0d4d6b;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.hbk-video:hover {
	background-color: #003c58;
}
.hbk-video-play {
	position: relative;
	display: block;
	width: 84px;
	height: 84px;
	border: 4px solid #ffffff;
	border-radius: 50%;
}
.hbk-video-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 15px 0 15px 26px;
	border-color: transparent transparent transparent #ffffff;
}
.hbk-capability-video {
	margin: 0;
}
.hbk-capability-video video {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 200px;
	object-fit: cover;
	background-color: #000;
}

/* Testimonials */
.hbk-quote-logo {
	margin: 0 auto 12px;
}
.hbk-quote-logo img {
	display: block;
	margin: 0 auto;
}
.hbk-testimonial-muffin {
	margin: 0;
}
.hbk-testimonial-muffin img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------ *
 * Product page (page-automatic-answer-depositors.html)
 * ------------------------------------------------------------------ */

.hbk-aad-hero-img img,
.hbk-aad-machine img {
	width: 100%;
	height: auto;
	display: block;
}
.hbk-aad-machine img {
	max-height: 50vh;
	width: auto;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}
.hbk-aad-food {
	max-width: 25vw;
	margin-left: auto;
	margin-right: 0;
}
.hbk-aad-food img {
	width: auto;
	max-width: 100%;
	max-height: 50vh;
	height: auto;
	display: block;
	margin-left: auto;
}

/* Feature / application bullet lists */
.hbk-aad-list {
	padding-left: 1.1em;
}
.hbk-aad-list li {
	margin-bottom: 8px;
}
.hbk-aad-apps .hbk-aad-list {
	list-style: none;
	padding-left: 0;
}
.hbk-aad-apps .hbk-aad-list li {
	padding-left: 16px;
	position: relative;
}
.hbk-aad-apps .hbk-aad-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	background-color: #dc2234;
	border-radius: 50%;
}

/* Technical specifications table */
.hbk-aad-table table {
	border-collapse: collapse;
	width: 100%;
}
.hbk-aad-table th,
.hbk-aad-table td {
	border: 1px solid #d5dde2;
	padding: 10px 14px;
	font-size: 13px;
	text-align: left;
}
.hbk-aad-table thead th {
	background-color: #003c58;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 12px;
}
.hbk-aad-table tbody tr:nth-child(even) {
	background-color: #f2f6f8;
}

/* FAQ accordion */
.hbk-aad-faq .wp-block-details {
	border-bottom: 1px solid #e0e6ea;
	padding: 12px 0;
}
.hbk-aad-faq .wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	color: #003c58;
	list-style: none;
	position: relative;
	padding-right: 28px;
}
.hbk-aad-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}
.hbk-aad-faq .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	font-weight: 400;
	color: #dc2234;
	line-height: 1;
}
.hbk-aad-faq .wp-block-details[open] summary::after {
	content: "\2013";
}

/* Parts & Service banner */
.hbk-parts-service {
	overflow: hidden;
}
.hbk-parts-service-row {
	align-items: stretch;
}
.hbk-parts-service-img {
	align-self: stretch;
}
.hbk-parts-service-img .wp-block-image,
.hbk-parts-service-img figure {
	margin: 0;
	height: 100%;
}
.hbk-parts-service-img img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 240px;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 781px) {
	/* Stack the text column above the image and let the buttons fill the width.
	   Selectors are kept highly specific to beat WordPress core's
	   `.wp-block-buttons.is-vertical > .wp-block-button.wp-block-button__width-50` rule. */
	.hbk-parts-service .wp-block-column:first-child {
		padding: 28px 22px !important;
	}
	.hbk-parts-service .wp-block-buttons,
	.hbk-parts-service .wp-block-buttons.is-vertical {
		width: 100%;
	}
	.hbk-parts-service .wp-block-buttons .wp-block-button.wp-block-button__width-50,
	.hbk-parts-service .wp-block-buttons.is-vertical > .wp-block-button.wp-block-button__width-50 {
		width: 100%;
	}
	.hbk-parts-service .wp-block-buttons .wp-block-button__link {
		display: block;
		width: 100%;
		text-align: center;
	}
	.hbk-parts-service-img img {
		min-height: 200px;
	}
}

/* ------------------------------------------------------------------ *
 * Sales / Contact page (page-sales.html)
 * ------------------------------------------------------------------ */
.hbk-bar-heading {
	background-color: #003c58;
	color: #ffffff;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 12px 18px;
	font-size: 20px;
	line-height: 1.2;
	margin: 0 0 20px;
}

/* Contact form */
.hbk-form-wrap {
	border: 1px solid #e2e6ea;
}
.hbk-form-header {
	background-color: #003c58;
	color: #ffffff;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 12px 18px;
	font-size: 18px;
}
.hbk-form-body {
	padding: 18px;
}
.hbk-form-body .hbk-form-intro {
	font-size: 12px;
	color: #666;
	margin: 0 0 16px;
}
.hbk-sales-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 18px;
}
.hbk-field--full {
	grid-column: 1 / -1;
}
.hbk-sales-form label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 2px;
	color: #1a1a1a;
}
.hbk-sales-form .hint {
	font-size: 11px;
	color: #888;
	margin: 0 0 4px;
}
.hbk-sales-form input,
.hbk-sales-form textarea {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #cfd6db;
	border-radius: 2px;
	margin-bottom: 16px;
	font-family: inherit;
	font-size: 13px;
	box-sizing: border-box;
}
.hbk-sales-form textarea {
	min-height: 96px;
	resize: vertical;
}
.hbk-sales-form .hbk-form-submit {
	background-color: #dc2234;
	color: #ffffff;
	border: none;
	padding: 11px 24px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 2px;
	cursor: pointer;
	font-size: 14px;
	grid-column: 1 / -1;
	justify-self: end;
}
.hbk-sales-form .hbk-form-submit:hover {
	background-color: #b81b2b;
}
.hbk-sales-form .hbk-radio-row {
	display: flex;
	gap: 24px;
	margin: 4px 0 18px;
}
.hbk-sales-form .hbk-radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
	font-size: 13px;
	margin: 0;
}
.hbk-sales-form .hbk-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.hbk-form-notice {
	border-radius: 2px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: 14px;
	line-height: 1.5;
}
.hbk-form-notice--ok {
	background-color: #e7f4ea;
	border: 1px solid #57a06a;
	color: #1e5e30;
}
.hbk-form-notice--err {
	background-color: #fdeaec;
	border: 1px solid #dc2234;
	color: #a3172a;
}
.hbk-sales-form .hbk-radio input {
	width: auto;
	margin: 0;
}
.hbk-sales-form::after {
	content: "";
	display: block;
	clear: both;
}

/* General information */
.hbk-info-label {
	font-weight: 700;
	letter-spacing: 1px;
	font-size: 15px;
	margin: 0 0 4px;
}
.hbk-info-box p {
	font-size: 15px;
	line-height: 1.45;
}

/* Representatives grids */
.hbk-reps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 40px;
}
.hbk-rep h4 {
	color: #1a1a1a;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.5px;
	margin: 0 0 6px;
}
.hbk-rep p {
	font-size: 13px;
	line-height: 1.55;
	margin: 0;
}
.hbk-rep a {
	color: inherit;
}
@media (max-width: 781px) {
	.hbk-reps-grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ *
 * History page (page-history.html)
 * ------------------------------------------------------------------ */
.hbk-history-facility img {
	width: 100%;
	height: auto;
	display: block;
}
/* Timeline thumbnails: uniform square-ish crop like the design */
.hbk-history-thumb {
	margin: 0;
}
.hbk-history-thumb img {
	width: 100%;
	height: 300px;
	min-height: 300px;
	object-fit: cover;
	display: block;
}
.hbk-history-timeline .hbk-history-era {
	border-top: 1px solid #e4e7e9;
	padding-top: 16px;
}
.hbk-history-list {
	padding-left: 1.2em;
}
.hbk-history-list li {
	margin-bottom: 2px;
}
/* Video thumbnail with centred play button */
.hbk-history-video-img {
	position: relative;
	margin: 0;
}
.hbk-history-video-img img {
	width: 100%;
	height: auto;
	display: block;
}
.hbk-history-video-img a {
	display: block;
	position: relative;
}
.hbk-history-video-img a::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 68px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background-color: rgba(0, 60, 88, 0.8);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 54% center;
	background-size: 26px 26px;
	pointer-events: none;
	transition: background-color 0.2s ease;
}
.hbk-history-video-img a:hover::after {
	background-color: rgba(220, 34, 52, 0.9);
}
@media (max-width: 781px) {
	.hbk-history-thumb img {
		height: 300px;
	}
}

/* Engineering page */
.hbk-eng-divider {
        display: flex;
        align-items: center;
        gap: 16px;
        text-transform: uppercase;
        white-space: nowrap;
}
.hbk-eng-divider::before,
.hbk-eng-divider::after {
        content: "";
        flex: 1 1 auto;
        height: 1px;
        background-color: #003c58;
}
.hbk-engineering-media {
        display: flex;
        flex-direction: column;
        gap: 20px;
}
.hbk-engineering-media .hbk-engineering-img {
        margin: 0;
}
.hbk-engineering-media .hbk-engineering-img img {
        width: 100%;
        height: auto;
        display: block;
}
