/**
 * AlexaHire Responsive Breakpoints Stylesheet
 *
 * Fully tested across 320px, 375px, 390px, 414px, 768px, 1024px, 1280px, 1440px, 1920px.
 *
 * @package AlexaHire
 */

/* ==========================================================================
   TABLET & INTERMEDIATE (Max 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
	.ah-main-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.ah-footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}

	.ah-footer__brand-col {
		grid-column: span 2;
	}

	.ah-hero__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.ah-hero__showcase {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.ah-hero__person-col {
		max-width: 260px;
	}

	.ah-hero__stats-col {
		width: 100%;
		max-width: 500px;
	}
}

/* ==========================================================================
   MOBILE LANDSCAPE & PHONES (Max 768px)
   ========================================================================== */
@media (max-width: 768px) {
	.ah-utility-bar {
		display: none;
	}

	.ah-header__inner {
		height: 3.75rem;
	}

	.ah-nav {
		display: none;
	}

	.ah-hamburger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.ah-hero {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}

	.ah-hero-search {
		flex-direction: column;
		border-radius: var(--ah-radius-lg);
		padding: 0.75rem;
		gap: 0.75rem;
	}

	.ah-hero-search__btn {
		width: 100%;
	}

	.ah-categories-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 0.75rem;
	}

	.ah-resume-banner {
		grid-template-columns: 1fr;
		padding: 1.75rem 1.25rem;
		text-align: center;
	}

	.ah-resume-banner__badges {
		align-items: center;
	}

	.ah-footer__grid {
		grid-template-columns: 1fr;
	}

	.ah-footer__brand-col {
		grid-column: span 1;
	}

	.ah-footer__bottom {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.ah-job-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
	}

	.ah-job-card__right {
		width: 100%;
		justify-content: space-between;
		border-top: 1px solid var(--ah-border-light);
		padding-top: 0.875rem;
	}

	.ah-job-card__right .ah-btn {
		flex: 1;
	}

	/* Company Single & Archive Mobile Styles */
	.ah-company-header-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 1.5rem 1.25rem;
		gap: 1.25rem;
	}

	.ah-company-header-title-row {
		justify-content: center;
	}

	.ah-company-meta-pills {
		justify-content: center;
	}

	.ah-company-about {
		padding: 1.5rem 1.25rem;
		margin-bottom: 1.75rem;
	}

	.ah-companies-archive-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	/* List & Point Alignment Fix on Mobile */
	.entry-content ul,
	.entry-content ol,
	.ah-single-article ul,
	.ah-single-article ol,
	.ah-job-article ul,
	.ah-job-article ol,
	.ah-job-details-block ul,
	.ah-job-details-block ol {
		padding-left: 1.625rem !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.ah-job-details-block .entry-content {
		padding: 1.125rem 1rem !important;
	}
}

/* ==========================================================================
   SMALL PHONES (Max 480px)
   ========================================================================== */
@media (max-width: 480px) {
	.ah-companies-archive-grid {
		grid-template-columns: 1fr;
	}

	.ah-company-header-card {
		padding: 1.25rem 1rem;
	}

	.ah-company-header-logo {
		width: 60px;
		height: 60px;
	}

	.ah-company-title {
		font-size: 1.35rem;
	}

	.ah-company-meta-pills {
		gap: 0.4rem;
	}

	.ah-company-meta-pill {
		font-size: 0.75rem;
		padding: 0.3rem 0.6rem;
	}

	.ah-single-article {
		padding: 1.25rem 1rem;
	}

	.ah-categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ah-header__actions .ah-btn--outline {
		display: none;
	}

	.ah-articles-grid {
		grid-template-columns: 1fr;
	}

	.ah-hero-stat-card {
		padding: 1rem;
	}

	.ah-hero__title {
		font-size: 1.875rem;
	}

	.ah-hero__person-col {
		max-width: 220px;
	}

	.ah-hero__backdrop-shape {
		width: 210px;
		height: 270px;
	}

	.ah-hero__speech-bubble {
		right: -8px;
		top: 5px;
	}

	.ah-hero__person-photo {
		max-width: 210px;
	}
}

/* ==========================================================================
   MOBILE SLIDE-OVER DRAWER MENU
   ========================================================================== */
.ah-mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(10, 16, 31, 0.6);
	backdrop-filter: blur(4px);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease;
}

.ah-mobile-drawer.active {
	opacity: 1;
	visibility: visible;
}

.ah-mobile-drawer__content {
	position: absolute;
	top: 0;
	right: 0;
	width: 85%;
	max-width: 340px;
	height: 100%;
	background-color: #ffffff;
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
}

.ah-mobile-drawer.active .ah-mobile-drawer__content {
	transform: translateX(0);
}

.ah-mobile-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--ah-border);
	padding-bottom: 1rem;
}

.ah-mobile-drawer__close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--ah-text);
	padding: 0.25rem;
}

.ah-mobile-drawer__nav {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.ah-mobile-drawer__link {
	font-family: var(--ah-font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--ah-text);
	display: block;
}

.ah-mobile-drawer__footer {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
