/* ==========================================================================
   AHM Industrial — Components
   Buttons, eyebrow labels, section headings, cards, forms, accordion,
   tabs, ratings, badges, media frames, comments, widgets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.ahm-btn {
	position: relative;
	display: inline-flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	padding: 16px 34px;
	border: 1px solid transparent;
	border-radius: var( --ahm-radius-pill );
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
	font-family: var( --ahm-font-heading );
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all var( --ahm-transition );
	-webkit-appearance: none;
	appearance: none;
}

.ahm-btn:hover,
.ahm-btn:focus {
	background-color: var( --ahm-dark );
	box-shadow: 0 10px 26px rgba( 10, 17, 25, 0.2 );
	color: var( --ahm-white );
	transform: translateY( -2px );
}

.ahm-btn svg {
	flex: none;
	width: 15px;
	height: 15px;
	transition: transform var( --ahm-transition );
}

.ahm-btn:hover svg {
	transform: translateX( 4px );
}

/* Variants */
.ahm-btn--dark {
	background-color: var( --ahm-dark );
}

.ahm-btn--dark:hover {
	background-color: var( --ahm-primary );
}

.ahm-btn--outline {
	background-color: transparent;
	border-color: var( --ahm-border );
	color: var( --ahm-heading );
}

.ahm-btn--outline:hover {
	border-color: var( --ahm-primary );
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
}

.ahm-btn--light {
	background-color: var( --ahm-white );
	color: var( --ahm-heading );
}

.ahm-btn--light:hover {
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
}

.ahm-btn--ghost-light {
	background-color: rgba( 255, 255, 255, 0.08 );
	border-color: rgba( 255, 255, 255, 0.22 );
	color: var( --ahm-white );
}

.ahm-btn--ghost-light:hover {
	background-color: var( --ahm-primary );
	border-color: var( --ahm-primary );
}

.ahm-btn--sm {
	padding: 12px 24px;
	font-size: 0.875rem;
}

.ahm-btn--lg {
	padding: 19px 42px;
	font-size: 1rem;
}

.ahm-btn--block {
	width: 100%;
}

/* Text link with arrow */
.ahm-link {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	color: var( --ahm-heading );
	font-family: var( --ahm-font-heading );
	font-size: 0.9375rem;
	font-weight: 600;
}

.ahm-link svg {
	width: 14px;
	height: 14px;
	transition: transform var( --ahm-transition );
}

.ahm-link:hover {
	color: var( --ahm-primary );
}

.ahm-link:hover svg {
	transform: translateX( 5px );
}

/* Circular icon button, used on cards */
.ahm-icon-btn {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var( --ahm-border );
	border-radius: 50%;
	color: var( --ahm-heading );
	transition: all var( --ahm-transition );
}

.ahm-icon-btn svg {
	width: 15px;
	height: 15px;
}

.ahm-icon-btn:hover {
	border-color: var( --ahm-primary );
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
}

/* Play button with pulsing ring */
.ahm-play {
	position: relative;
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	border: 0;
	border-radius: 50%;
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
	cursor: pointer;
	transition: transform var( --ahm-transition );
}

.ahm-play:hover {
	transform: scale( 1.07 );
}

.ahm-play svg {
	width: 22px;
	height: 22px;
	margin-left: 3px;
}

.ahm-play::before,
.ahm-play::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var( --ahm-primary );
	border-radius: 50%;
	animation: ahm-pulse 2.6s ease-out infinite;
}

.ahm-play::after {
	animation-delay: 1.3s;
}

@keyframes ahm-pulse {
	0% {
		opacity: 0.7;
		transform: scale( 1 );
	}
	100% {
		opacity: 0;
		transform: scale( 1.9 );
	}
}

/* --------------------------------------------------------------------------
   Eyebrow label + section heading
   -------------------------------------------------------------------------- */

.ahm-eyebrow {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 16px;
	color: var( --ahm-primary );
	font-family: var( --ahm-font-heading );
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ahm-eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	border-radius: 2px;
	background-color: currentColor;
}

.ahm-eyebrow--centered {
	justify-content: center;
}

.ahm-eyebrow--centered::after {
	content: "";
	width: 26px;
	height: 2px;
	border-radius: 2px;
	background-color: currentColor;
}

/* Pill-shaped variant used on dark backgrounds */
.ahm-eyebrow--pill {
	padding: 8px 18px;
	border: 1px solid rgba( 255, 91, 27, 0.35 );
	border-radius: var( --ahm-radius-pill );
	background-color: var( --ahm-primary-soft );
	letter-spacing: 0.12em;
}

.ahm-eyebrow--pill::before,
.ahm-eyebrow--pill::after {
	display: none;
}

.ahm-section-head {
	max-width: 700px;
	margin-bottom: 56px;
}

.ahm-section-head--center {
	margin-inline: auto;
	text-align: center;
}

.ahm-section-head__title {
	margin-bottom: 16px;
}

.ahm-section-head__text {
	margin-bottom: 0;
	font-size: 1.0625rem;
}

/* Heading on one side, description + CTA on the other */
.ahm-section-head--split {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
	align-items: flex-end;
	justify-content: space-between;
	max-width: none;
}

.ahm-section-head--split .ahm-section-head__title {
	max-width: 640px;
	margin-bottom: 0;
}

.ahm-section-head--split .ahm-section-head__aside {
	max-width: 420px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.ahm-card {
	position: relative;
	display: flex;
	overflow: hidden;
	flex-direction: column;
	height: 100%;
	border: 1px solid var( --ahm-border );
	border-radius: var( --ahm-radius );
	background-color: var( --ahm-white );
	transition: all var( --ahm-transition );
}

.ahm-card:hover {
	border-color: transparent;
	box-shadow: var( --ahm-shadow-lg );
	transform: translateY( -6px );
}

.ahm-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 11;
	background-color: var( --ahm-cream );
}

.ahm-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier( 0.25, 0.8, 0.25, 1 );
}

.ahm-card:hover .ahm-card__media img {
	transform: scale( 1.07 );
}

.ahm-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 28px 30px 32px;
}

.ahm-card__title {
	margin-bottom: 12px;
	font-size: 1.25rem;
	line-height: 1.35;
}

.ahm-card__title a {
	color: inherit;
}

.ahm-card__title a:hover {
	color: var( --ahm-primary );
}

.ahm-card__text {
	margin-bottom: 20px;
	font-size: 0.9375rem;
	line-height: 1.8;
}

.ahm-card__footer {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var( --ahm-border );
}

/* Post/date meta row */
.ahm-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	align-items: center;
	color: var( --ahm-muted );
	font-size: 0.8125rem;
	font-weight: 500;
}

.ahm-meta__item {
	display: inline-flex;
	gap: 7px;
	align-items: center;
}

.ahm-meta__item svg {
	flex: none;
	width: 14px;
	height: 14px;
	color: var( --ahm-primary );
}

.ahm-meta a {
	color: inherit;
}

.ahm-meta a:hover {
	color: var( --ahm-primary );
}

/* Floating date badge on blog media */
.ahm-date-badge {
	position: absolute;
	z-index: 2;
	top: 18px;
	left: 18px;
	padding: 10px 14px;
	border-radius: 6px;
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
	font-family: var( --ahm-font-heading );
	line-height: 1.1;
	text-align: center;
}

.ahm-date-badge__day {
	display: block;
	font-size: 1.375rem;
	font-weight: 700;
}

.ahm-date-badge__month {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Category chip */
.ahm-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var( --ahm-radius-pill );
	background-color: var( --ahm-primary-soft );
	color: var( --ahm-primary );
	font-family: var( --ahm-font-heading );
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ahm-chip--solid {
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
}

/* --------------------------------------------------------------------------
   Icon box (services / features)
   -------------------------------------------------------------------------- */

.ahm-iconbox {
	position: relative;
	overflow: hidden;
	height: 100%;
	padding: 38px 34px 40px;
	border: 1px solid var( --ahm-border );
	border-radius: var( --ahm-radius );
	background-color: var( --ahm-white );
	transition: all var( --ahm-transition );
}

/* Orange sheet that slides up on hover */
.ahm-iconbox::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 0;
	right: 0;
	left: 0;
	height: 0;
	background-color: var( --ahm-dark );
	transition: height 0.45s cubic-bezier( 0.25, 0.8, 0.25, 1 );
}

.ahm-iconbox:hover::before {
	height: 100%;
}

.ahm-iconbox > * {
	position: relative;
	z-index: 1;
}

.ahm-iconbox__icon {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin-bottom: 26px;
	border-radius: var( --ahm-radius );
	background-color: var( --ahm-primary-soft );
	color: var( --ahm-primary );
	transition: all var( --ahm-transition );
}

.ahm-iconbox__icon svg {
	width: 32px;
	height: 32px;
}

.ahm-iconbox:hover .ahm-iconbox__icon {
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
}

.ahm-iconbox__title {
	margin-bottom: 12px;
	font-size: 1.25rem;
	transition: color var( --ahm-transition );
}

.ahm-iconbox__title a {
	color: inherit;
}

.ahm-iconbox__text {
	margin-bottom: 0;
	font-size: 0.9375rem;
	line-height: 1.8;
	transition: color var( --ahm-transition );
}

.ahm-iconbox:hover .ahm-iconbox__title,
.ahm-iconbox:hover .ahm-iconbox__title a {
	color: var( --ahm-white );
}

.ahm-iconbox:hover .ahm-iconbox__text {
	color: rgba( 255, 255, 255, 0.72 );
}

.ahm-iconbox__link {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin-top: 22px;
	color: var( --ahm-primary );
	font-family: var( --ahm-font-heading );
	font-size: 0.875rem;
	font-weight: 600;
}

.ahm-iconbox__link svg {
	width: 13px;
	height: 13px;
}

/* Watermark number in the corner */
.ahm-iconbox__num {
	position: absolute;
	z-index: 0;
	top: 18px;
	right: 22px;
	color: var( --ahm-heading );
	font-family: var( --ahm-font-heading );
	font-size: 3.25rem;
	font-weight: 700;
	line-height: 1;
	opacity: 0.06;
	transition: opacity var( --ahm-transition ), color var( --ahm-transition );
}

.ahm-iconbox:hover .ahm-iconbox__num {
	color: var( --ahm-white );
	opacity: 0.14;
}

/* Compact horizontal variant */
.ahm-feature {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.ahm-feature__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: var( --ahm-radius );
	background-color: var( --ahm-primary-soft );
	color: var( --ahm-primary );
}

.ahm-feature__icon svg {
	width: 27px;
	height: 27px;
}

.ahm-feature__title {
	margin-bottom: 8px;
	font-size: 1.125rem;
}

.ahm-feature__text {
	margin-bottom: 0;
	font-size: 0.9375rem;
	line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */

.ahm-checklist {
	display: grid;
	gap: 14px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ahm-checklist--2col {
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}

.ahm-checklist li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: var( --ahm-heading );
	font-family: var( --ahm-font-heading );
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.6;
}

.ahm-checklist li::before {
	content: "";
	flex: none;
	width: 21px;
	height: 21px;
	margin-top: 2px;
	background-color: var( --ahm-primary );
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E" );
	background-position: center;
	background-repeat: no-repeat;
	background-size: 12px;
	border-radius: 50%;
}

.ahm-section--dark .ahm-checklist li {
	color: rgba( 255, 255, 255, 0.85 );
}

/* --------------------------------------------------------------------------
   Counters
   -------------------------------------------------------------------------- */

.ahm-counter {
	text-align: center;
}

.ahm-counter__value {
	display: flex;
	gap: 2px;
	align-items: baseline;
	justify-content: center;
	color: var( --ahm-heading );
	font-family: var( --ahm-font-heading );
	font-size: clamp( 2.25rem, 1.6rem + 2.4vw, 3.5rem );
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}

.ahm-counter__suffix,
.ahm-counter__prefix {
	color: var( --ahm-primary );
}

.ahm-counter__label {
	margin-top: 12px;
	margin-bottom: 0;
	font-size: 0.9375rem;
	font-weight: 500;
}

.ahm-section--dark .ahm-counter__value {
	color: var( --ahm-white );
}

.ahm-section--dark .ahm-counter__label {
	color: rgba( 255, 255, 255, 0.68 );
}

/* Dividers between counters in a row */
.ahm-counters {
	display: grid;
	gap: 40px 30px;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
}

.ahm-counters--divided .ahm-counter {
	position: relative;
}

.ahm-counters--divided .ahm-counter + .ahm-counter::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: -15px;
	width: 1px;
	background-color: var( --ahm-border );
}

.ahm-section--dark .ahm-counters--divided .ahm-counter + .ahm-counter::before {
	background-color: rgba( 255, 255, 255, 0.14 );
}

/* --------------------------------------------------------------------------
   Progress bars
   -------------------------------------------------------------------------- */

.ahm-progress + .ahm-progress {
	margin-top: 26px;
}

.ahm-progress__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	color: var( --ahm-heading );
	font-family: var( --ahm-font-heading );
	font-size: 0.9375rem;
	font-weight: 600;
}

.ahm-progress__track {
	height: 7px;
	overflow: hidden;
	border-radius: var( --ahm-radius-pill );
	background-color: var( --ahm-border );
}

.ahm-progress__bar {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient( 90deg, var( --ahm-primary ) 0%, var( --ahm-accent ) 100% );
	transition: width 1.4s cubic-bezier( 0.25, 0.8, 0.25, 1 );
}

.ahm-section--dark .ahm-progress__head {
	color: var( --ahm-white );
}

.ahm-section--dark .ahm-progress__track {
	background-color: rgba( 255, 255, 255, 0.14 );
}

/* --------------------------------------------------------------------------
   Accordion (FAQ)
   -------------------------------------------------------------------------- */

.ahm-accordion {
	display: grid;
	gap: 16px;
}

.ahm-accordion__item {
	overflow: hidden;
	border: 1px solid var( --ahm-border );
	border-radius: var( --ahm-radius );
	background-color: var( --ahm-white );
	transition: box-shadow var( --ahm-transition ), border-color var( --ahm-transition );
}

.ahm-accordion__item.is-open {
	border-color: transparent;
	box-shadow: var( --ahm-shadow );
}

.ahm-accordion__trigger {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 22px 26px;
	border: 0;
	background: none;
	color: var( --ahm-heading );
	font-family: var( --ahm-font-heading );
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
	transition: color var( --ahm-transition );
}

.ahm-accordion__item.is-open .ahm-accordion__trigger,
.ahm-accordion__trigger:hover {
	color: var( --ahm-primary );
}

.ahm-accordion__mark {
	position: relative;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: var( --ahm-primary-soft );
	transition: background-color var( --ahm-transition );
}

.ahm-accordion__mark::before,
.ahm-accordion__mark::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 2px;
	background-color: var( --ahm-primary );
	transition: all var( --ahm-transition );
}

.ahm-accordion__mark::before {
	width: 13px;
	height: 2px;
	transform: translate( -50%, -50% );
}

.ahm-accordion__mark::after {
	width: 2px;
	height: 13px;
	transform: translate( -50%, -50% );
}

.ahm-accordion__item.is-open .ahm-accordion__mark {
	background-color: var( --ahm-primary );
}

.ahm-accordion__item.is-open .ahm-accordion__mark::before,
.ahm-accordion__item.is-open .ahm-accordion__mark::after {
	background-color: var( --ahm-white );
}

.ahm-accordion__item.is-open .ahm-accordion__mark::after {
	height: 2px;
}

.ahm-accordion__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.4s cubic-bezier( 0.25, 0.8, 0.25, 1 );
}

.ahm-accordion__item.is-open .ahm-accordion__panel {
	grid-template-rows: 1fr;
}

.ahm-accordion__panel-inner {
	overflow: hidden;
}

.ahm-accordion__content {
	padding: 0 26px 26px;
	font-size: 0.9375rem;
	line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Ratings
   -------------------------------------------------------------------------- */

.ahm-rating {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	color: var( --ahm-accent );
}

.ahm-rating svg {
	width: 17px;
	height: 17px;
}

.ahm-rating__text {
	margin-left: 8px;
	color: var( --ahm-text );
	font-size: 0.875rem;
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Avatar stack
   -------------------------------------------------------------------------- */

.ahm-avatars {
	display: flex;
	align-items: center;
}

.ahm-avatars img,
.ahm-avatars span {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 3px solid var( --ahm-white );
	border-radius: 50%;
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
	font-family: var( --ahm-font-heading );
	font-size: 0.8125rem;
	font-weight: 700;
	object-fit: cover;
}

.ahm-avatars > * + * {
	margin-left: -14px;
}

/* --------------------------------------------------------------------------
   Media frames
   -------------------------------------------------------------------------- */

.ahm-frame {
	position: relative;
	overflow: hidden;
	border-radius: var( --ahm-radius-lg );
}

.ahm-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ahm-frame--video {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	background-color: var( --ahm-dark-2 );
}

.ahm-frame--video::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba( 10, 17, 25, 0.35 );
	transition: background-color var( --ahm-transition );
}

.ahm-frame--video:hover::before {
	background-color: rgba( 10, 17, 25, 0.5 );
}

.ahm-frame--video .ahm-play {
	position: relative;
	z-index: 2;
}

.ahm-frame__caption {
	position: absolute;
	z-index: 2;
	bottom: 22px;
	left: 22px;
	padding: 9px 18px;
	border-radius: var( --ahm-radius-pill );
	background-color: rgba( 10, 17, 25, 0.72 );
	color: var( --ahm-white );
	font-family: var( --ahm-font-heading );
	font-size: 0.8125rem;
	font-weight: 600;
	-webkit-backdrop-filter: blur( 6px );
	backdrop-filter: blur( 6px );
}

/* Decorative offset accent block behind an image */
.ahm-frame-stack {
	position: relative;
}

.ahm-frame-stack::before {
	content: "";
	position: absolute;
	z-index: 0;
	right: -18px;
	bottom: -18px;
	width: 62%;
	height: 58%;
	border-radius: var( --ahm-radius-lg );
	background-image: repeating-linear-gradient( 135deg, rgba( 255, 91, 27, 0.28 ) 0 2px, transparent 2px 10px );
}

.ahm-frame-stack > .ahm-frame {
	position: relative;
	z-index: 1;
}

/* Experience badge that overlaps an image corner */
.ahm-exp-badge {
	position: absolute;
	z-index: 3;
	right: 24px;
	bottom: 24px;
	padding: 24px 28px;
	border-radius: var( --ahm-radius );
	background-color: var( --ahm-primary );
	box-shadow: var( --ahm-shadow-lg );
	color: var( --ahm-white );
	text-align: center;
}

.ahm-exp-badge__value {
	display: block;
	font-family: var( --ahm-font-heading );
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}

.ahm-exp-badge__label {
	display: block;
	margin-top: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
	display: block;
	width: 100%;
	padding: 15px 20px;
	border: 1px solid var( --ahm-border );
	border-radius: var( --ahm-radius );
	background-color: var( --ahm-white );
	color: var( --ahm-heading );
	font-family: var( --ahm-font-body );
	font-size: 0.9375rem;
	line-height: 1.5;
	transition: border-color var( --ahm-transition ), box-shadow var( --ahm-transition );
	-webkit-appearance: none;
	appearance: none;
}

select {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b535d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E" );
	background-position: right 18px center;
	background-repeat: no-repeat;
	background-size: 15px;
	padding-right: 46px;
}

textarea {
	min-height: 150px;
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	color: var( --ahm-muted );
	opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var( --ahm-primary );
	box-shadow: 0 0 0 4px var( --ahm-primary-soft );
	outline: none;
}

label {
	display: block;
	margin-bottom: 8px;
	color: var( --ahm-heading );
	font-family: var( --ahm-font-heading );
	font-size: 0.875rem;
	font-weight: 600;
}

.ahm-form {
	display: grid;
	gap: 20px;
}

.ahm-form--2col {
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}

.ahm-form__field--full {
	grid-column: 1 / -1;
}

input[type="submit"],
button[type="submit"],
.submit {
	width: auto;
	padding: 16px 34px;
	border: 0;
	border-radius: var( --ahm-radius-pill );
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
	font-family: var( --ahm-font-heading );
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var( --ahm-transition );
}

input[type="submit"]:hover,
button[type="submit"]:hover {
	background-color: var( --ahm-dark );
	transform: translateY( -2px );
}

/* Search form */
.search-form {
	position: relative;
	display: flex;
}

.search-form .search-field {
	padding-right: 58px;
}

.search-form .search-submit {
	position: absolute;
	top: 5px;
	right: 5px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: var( --ahm-radius );
}

.search-form .search-submit svg {
	width: 16px;
	height: 16px;
}

.search-form .search-submit:hover {
	transform: none;
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */

.ahm-comments {
	margin-top: 64px;
	padding-top: 48px;
	border-top: 1px solid var( --ahm-border );
}

.ahm-comments__title,
.comment-reply-title {
	margin-bottom: 32px;
	font-size: var( --ahm-fs-h3 );
}

.comment-list {
	margin: 0 0 48px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 0;
	padding-left: 40px;
	list-style: none;
}

.comment-body {
	display: flex;
	gap: 20px;
	padding: 26px 0;
	border-bottom: 1px solid var( --ahm-border );
}

.comment-body .avatar {
	flex: none;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	object-fit: cover;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	align-items: center;
	margin-bottom: 10px;
}

.comment-author .fn {
	color: var( --ahm-heading );
	font-family: var( --ahm-font-heading );
	font-size: 1.0625rem;
	font-weight: 600;
	font-style: normal;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	color: var( --ahm-muted );
	font-size: 0.8125rem;
}

.comment-metadata a {
	color: inherit;
}

.comment-content {
	font-size: 0.9375rem;
	line-height: 1.8;
}

.reply {
	margin-top: 12px;
}

.comment-reply-link {
	display: inline-flex;
	align-items: center;
	padding: 7px 18px;
	border: 1px solid var( --ahm-border );
	border-radius: var( --ahm-radius-pill );
	color: var( --ahm-heading );
	font-family: var( --ahm-font-heading );
	font-size: 0.8125rem;
	font-weight: 600;
	transition: all var( --ahm-transition );
}

.comment-reply-link:hover {
	border-color: var( --ahm-primary );
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
}

.comment-respond {
	padding: 36px 34px;
	border-radius: var( --ahm-radius );
	background-color: var( --ahm-cream );
}

.comment-form {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}

.comment-form-comment,
.comment-form-cookies-consent,
.form-submit,
.comment-notes {
	grid-column: 1 / -1;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 10px;
	align-items: center;
}

.comment-form-cookies-consent input {
	width: auto;
}

.comment-form-cookies-consent label {
	margin-bottom: 0;
	font-weight: 400;
}

.comment-notes {
	margin: 0;
	color: var( --ahm-muted );
	font-size: 0.875rem;
}

.form-submit {
	margin: 0;
}

.no-comments {
	color: var( --ahm-muted );
	font-style: italic;
}

/* --------------------------------------------------------------------------
   Widgets / sidebar
   -------------------------------------------------------------------------- */

.ahm-sidebar {
	display: grid;
	gap: 30px;
	align-content: start;
}

.widget {
	padding: 30px 28px;
	border: 1px solid var( --ahm-border );
	border-radius: var( --ahm-radius );
	background-color: var( --ahm-white );
}

.widget-title,
.widget .wp-block-heading {
	position: relative;
	margin-bottom: 24px;
	padding-bottom: 14px;
	font-size: 1.1875rem;
}

.widget-title::after,
.widget .wp-block-heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 42px;
	height: 3px;
	border-radius: 2px;
	background-color: var( --ahm-primary );
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget ul li {
	padding: 11px 0;
	border-bottom: 1px dashed var( --ahm-border );
	font-size: 0.9375rem;
}

.widget ul li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.widget ul li a {
	color: var( --ahm-text );
	font-family: var( --ahm-font-heading );
	font-weight: 500;
}

.widget ul li a:hover {
	color: var( --ahm-primary );
}

.widget ul .children,
.widget ul .sub-menu {
	margin-top: 8px;
	padding-left: 18px;
}

.widget_tag_cloud .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.widget_tag_cloud a {
	padding: 8px 16px;
	border: 1px solid var( --ahm-border );
	border-radius: var( --ahm-radius-pill );
	color: var( --ahm-text );
	font-size: 0.8125rem !important;
	transition: all var( --ahm-transition );
}

.widget_tag_cloud a:hover {
	border-color: var( --ahm-primary );
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
}

/* Recent posts with thumbnails */
.ahm-widget-post {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 16px 0;
	border-bottom: 1px dashed var( --ahm-border );
}

.ahm-widget-post:first-child {
	padding-top: 0;
}

.ahm-widget-post:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ahm-widget-post__thumb {
	flex: none;
	width: 78px;
	height: 70px;
	overflow: hidden;
	border-radius: 6px;
	background-color: var( --ahm-cream );
}

.ahm-widget-post__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ahm-widget-post__title {
	margin-bottom: 6px;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.ahm-widget-post__title a {
	color: inherit;
}

.ahm-widget-post__title a:hover {
	color: var( --ahm-primary );
}

.ahm-widget-post__date {
	color: var( --ahm-muted );
	font-size: 0.75rem;
}

/* Dark CTA widget */
.ahm-widget-cta {
	position: relative;
	overflow: hidden;
	padding: 40px 32px;
	border: 0;
	background-color: var( --ahm-dark );
	color: rgba( 255, 255, 255, 0.72 );
	text-align: center;
}

.ahm-widget-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient( 135deg, rgba( 255, 91, 27, 0.07 ) 0 2px, transparent 2px 12px );
}

.ahm-widget-cta > * {
	position: relative;
}

.ahm-widget-cta__title {
	color: var( --ahm-white );
	font-size: 1.375rem;
}

.ahm-widget-cta__phone {
	display: block;
	margin: 18px 0 22px;
	color: var( --ahm-primary );
	font-family: var( --ahm-font-heading );
	font-size: 1.5rem;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Social links
   -------------------------------------------------------------------------- */

.ahm-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ahm-socials a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var( --ahm-border );
	border-radius: 50%;
	color: var( --ahm-heading );
	transition: all var( --ahm-transition );
}

.ahm-socials a svg {
	width: 16px;
	height: 16px;
}

.ahm-socials a:hover {
	border-color: var( --ahm-primary );
	background-color: var( --ahm-primary );
	color: var( --ahm-white );
	transform: translateY( -3px );
}

.ahm-socials--light a {
	border-color: rgba( 255, 255, 255, 0.16 );
	color: var( --ahm-white );
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.ahm-reveal {
	opacity: 0;
	transform: translateY( 28px );
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier( 0.25, 0.8, 0.25, 1 );
}

.ahm-reveal.is-visible {
	opacity: 1;
	transform: translateY( 0 );
}

/* Simple stagger for grid children */
.ahm-reveal-stagger > * {
	opacity: 0;
	transform: translateY( 28px );
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier( 0.25, 0.8, 0.25, 1 );
}

.ahm-reveal-stagger.is-visible > * {
	opacity: 1;
	transform: translateY( 0 );
}

.ahm-reveal-stagger.is-visible > *:nth-child( 2 ) { transition-delay: 0.1s; }
.ahm-reveal-stagger.is-visible > *:nth-child( 3 ) { transition-delay: 0.2s; }
.ahm-reveal-stagger.is-visible > *:nth-child( 4 ) { transition-delay: 0.3s; }
.ahm-reveal-stagger.is-visible > *:nth-child( 5 ) { transition-delay: 0.4s; }
.ahm-reveal-stagger.is-visible > *:nth-child( 6 ) { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   Marquee (scrolling tagline strip)
   -------------------------------------------------------------------------- */

.ahm-marquee {
	overflow: hidden;
	padding-block: 22px;
	background-color: var( --ahm-primary );
	-webkit-user-select: none;
	user-select: none;
}

.ahm-marquee__track {
	display: flex;
	width: max-content;
	gap: 48px;
	align-items: center;
	animation: ahm-marquee 26s linear infinite;
}

.ahm-marquee__item {
	display: inline-flex;
	gap: 48px;
	align-items: center;
	color: var( --ahm-white );
	font-family: var( --ahm-font-heading );
	font-size: clamp( 1.25rem, 1rem + 1vw, 1.875rem );
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.ahm-marquee__item::after {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: rgba( 255, 255, 255, 0.6 );
}

@keyframes ahm-marquee {
	from {
		transform: translateX( 0 );
	}
	to {
		transform: translateX( -50% );
	}
}

.ahm-marquee:hover .ahm-marquee__track {
	animation-play-state: paused;
}
