/* =========================================================================
   FindHostingDeals Home template (page-tpl_fhd_home.php)
   Loaded only on pages using that template, after fhd-brand.css,
   so the tokens (--fhd-*) are available.
   ========================================================================= */

:root {
	--fhd-home-hero-bottom-space: 76px;
	--fhd-home-tile-overlap: -38px;
	--fhd-home-sidebar-basis: 300px;
	--fhd-home-main-basis: 620px;
}

/* The hero has its own large search, so the small header search is hidden here. */
.page-template-page-tpl_fhd_home-php .top-header .main-search {
	display: none;
}


/* HERO ---------------------------------------------------------------- */

/* Couponis puts 100px above every <main>; the hero sits flush under the nav instead. */
main.fhd-home {
	margin: 0;
}

.fhd-hero {
	background: var(--fhd-navy);
	color: var(--fhd-white);
	border-top: 1px solid var(--fhd-navy-raised);
	padding: 56px 0 var(--fhd-home-hero-bottom-space);
}

.fhd-hero-title {
	margin: 0 0 18px;
	max-width: 760px;
	color: var(--fhd-white);
	font-family: var(--fhd-font-heading);
	font-size: clamp(34px, 5vw, 52px);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.fhd-hero-highlight {
	color: var(--fhd-amber);
}

.fhd-hero-subtitle {
	margin: 0 0 24px;
	max-width: 620px;
	color: var(--fhd-on-dark);
	font-size: 18px;
	line-height: 1.55;
}

.fhd-hero-search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 720px;
}

.fhd-hero-search-field {
	flex: 1 1 340px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 16px;
	background: var(--fhd-white);
	border-radius: 12px;
	color: var(--fhd-slate);
}

.fhd-hero-search-field svg {
	flex: none;
}

.fhd-hero-search-field input,
.fhd-hero-search-field input:focus {
	flex: 1;
	min-width: 0;
	min-height: 54px;
	border: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	color: var(--fhd-navy);
	font-family: var(--fhd-font-body);
	font-size: 16px;
	padding: 0;
}

.fhd-hero-search-field:focus-within {
	outline: 3px solid var(--fhd-amber);
	outline-offset: 2px;
}

.fhd-hero-search-button {
	min-height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: 12px;
	background: var(--fhd-amber);
	color: var(--fhd-navy);
	font-family: var(--fhd-font-body);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.fhd-hero-search-button:hover,
.fhd-hero-search-button:focus-visible {
	background: var(--fhd-amber-deep);
}


/* CATEGORY TILES ------------------------------------------------------ */

.fhd-categories {
	position: relative;
	margin-top: var(--fhd-home-tile-overlap);
}

.fhd-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	margin: 0;
}

.fhd-category-tile,
.fhd-category-tile:visited {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 74px;
	padding: 16px;
	background: var(--fhd-white);
	border: 1px solid var(--fhd-line);
	border-radius: 14px;
	box-shadow: var(--fhd-card-shadow);
	color: var(--fhd-navy);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.fhd-category-tile:hover,
.fhd-category-tile:focus-visible {
	border-color: var(--fhd-teal);
	color: var(--fhd-navy);
	transform: translateY(-2px);
}

.fhd-category-icon {
	flex: none;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--fhd-teal-mist);
	color: var(--fhd-teal);
	font-size: 20px;
}

.fhd-category-icon svg {
	width: 24px;
	height: 24px;
	stroke: var(--fhd-teal);
}

.fhd-category-icon svg[data-fhd-icon] {
	fill: none !important;
}

.fhd-category-icon img {
	max-width: 24px;
	max-height: 24px;
}

.fhd-category-name {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
}


/* LAYOUT -------------------------------------------------------------- */

.fhd-home-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 28px;
	padding: 48px 0 64px;
}

.fhd-deals {
	flex: 999 1 var(--fhd-home-main-basis);
	min-width: 0;
}

.fhd-home-sidebar {
	flex: 1 1 var(--fhd-home-sidebar-basis);
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}


/* DEALS --------------------------------------------------------------- */

.fhd-section-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.fhd-section-heading h2 {
	margin: 0;
	font-size: 28px;
	letter-spacing: -0.02em;
}

.fhd-section-heading-icon {
	display: flex;
	color: var(--fhd-amber-deep);
}

.fhd-deals-empty {
	margin-bottom: 18px;
	padding: 24px;
	color: var(--fhd-slate);
}

.fhd-all-deals,
.fhd-all-deals:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-top: 4px;
	font-weight: 700;
	color: var(--fhd-teal);
}

.fhd-all-deals:hover {
	color: var(--fhd-teal-deep);
}


/* SIDEBAR ------------------------------------------------------------- */

.fhd-sidebar-heading {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
}

.fhd-compare {
	padding: 20px;
	margin: 0;
}

.fhd-compare-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.fhd-compare-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--fhd-navy);
	font-size: 14px;
}

.fhd-compare-icon {
	display: flex;
	color: var(--fhd-teal);
}

.fhd-submit-box {
	padding: 20px;
	background: var(--fhd-amber-cream);
	border: 1px solid #F3D9A0;
	border-radius: var(--fhd-radius-card);
}

.fhd-submit-box p {
	margin: 0 0 14px;
	color: var(--fhd-ink-soft);
	font-size: 14px;
	line-height: 1.5;
}

.fhd-submit-button,
.fhd-submit-button:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	border-radius: var(--fhd-radius-control);
	background: var(--fhd-navy);
	color: var(--fhd-white);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.fhd-submit-button:hover,
.fhd-submit-button:focus-visible {
	background: var(--fhd-teal);
	color: var(--fhd-white);
}


/* PAGE CONTENT BELOW THE LAYOUT -------------------------------------- */

.fhd-page-content {
	padding-bottom: 64px;
}


/* PHONES -------------------------------------------------------------- */

@media (max-width: 767px) {
	.fhd-hero {
		padding-top: 36px;
	}

	.fhd-hero-subtitle {
		font-size: 16px;
	}

	.fhd-hero-search-button {
		flex: 1 1 100%;
	}

	.fhd-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fhd-section-heading h2 {
		font-size: 22px;
	}

	.fhd-home-layout {
		padding-top: 32px;
	}
}
