/*
 * FotograafTarief — Homepage styling
 * Bron: DESIGN-BRIEF.md, stap 3 ("Volgorde van bouwen") + sectie 5.1.
 *
 * Gebruikt uitsluitend de --ft-* tokens uit ft-design-tokens.css.
 * Betreft: hero-zoekbalk, USP-balk, "Populaire soorten fotografie",
 * "Hoe het werkt". Geen wijzigingen aan bestaande kt- en sg-flow selectors.
 */

/* ==========================================================================
   Hero — zoekbalk (twee velden + gouden knop)
   ========================================================================== */

.ft-hero-search-wrap,
#ft-hero-search-form.ft-hero-search-wrap {
	width: 100%;
	max-width: 620px;
	margin: 1.5rem 0 0;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 10px;
	position: relative;
	font-family: var(--ft-font-family);
}

.ft-hero-search-wrap * {
	box-sizing: border-box;
}

.ft-hero-search__field,
#ft-hero-search-form .ft-hero-search__field {
	position: relative;
	display: flex;
	align-items: center;
	height: var(--ft-field-height);
	background: var(--ft-white);
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius-button);
	flex: 1 1 220px !important;
	min-width: 0 !important;
	max-width: 100%;
}

.ft-hero-search__field:focus-within {
	border-color: var(--ft-gold);
	box-shadow: 0 0 0 1px var(--ft-gold);
}

.ft-hero-search__icon {
	color: var(--ft-gold);
	font-size: 15px;
	padding-left: 14px;
	pointer-events: none;
}

.ft-hero-search__field--select select {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	background: transparent;
	outline: none;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0 34px 0 10px;
	font-family: inherit;
	font-size: var(--ft-body-size);
	color: var(--ft-black);
	cursor: pointer;
}

.ft-hero-search__field--select::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--ft-text-gray);
	border-bottom: 2px solid var(--ft-text-gray);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.ft-hero-search__field--loc input[type="text"] {
	border: none;
	background: transparent;
	outline: none;
	flex: 1;
	height: 100%;
	padding: 0 10px;
	font-family: inherit;
	font-size: var(--ft-body-size);
	color: var(--ft-black);
	min-width: 0;
}

.ft-hero-search__btn {
	flex: 0 0 auto;
	height: var(--ft-field-height);
	padding: var(--ft-button-padding);
	background: var(--ft-gold);
	color: var(--ft-white);
	border: none;
	border-radius: var(--ft-radius-button);
	font-size: var(--ft-button-font-size);
	font-weight: var(--ft-button-font-weight);
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ft-hero-search__btn:hover {
	background: #a3835f; /* --ft-gold ~10% donkerder */
}

@media (max-width: 600px) {
	/* De desktop-regels hierboven zijn !important gemaakt (verdediging tegen
	   een niet-gevonden overschrijvende regel elders); daarom moeten deze
	   mobiele tegenregels dat ook zijn, anders wint de desktop-rij-layout
	   alsnog op mobiel ondanks de media query. */
	.ft-hero-search-wrap,
	#ft-hero-search-form.ft-hero-search-wrap {
		flex-wrap: wrap !important;
		flex-direction: column !important;
	}
	.ft-hero-search__field,
	#ft-hero-search-form .ft-hero-search__field {
		/* flex-basis geldt op de hoofdas; die is nu verticaal, dus resetten
		   zodat de expliciete veldhoogte weer wint (anders wordt elk veld
		   220px hoog i.p.v. breed). */
		flex: 0 0 auto !important;
		width: 100%;
	}
	.ft-hero-search__btn {
		width: 100%;
	}
}

/* Suggestie-dropdown (plaatsveld) — zelfde klassenamen als de gedeelde
   Mapbox-JS in combined_painters.php al hardcode (createSuggestionItem()),
   hier alleen opnieuw gestyled met --ft-* tokens ipv de blauwe kt-variant. */
#sg-suggestions-loc-hero.sg-suggestions-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	max-height: 260px;
	overflow-y: auto;
	background: var(--ft-white);
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius-button);
	box-shadow: var(--ft-shadow-card-hover);
	z-index: 1000;
}

#sg-suggestions-loc-hero .sg-suggestion-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 1rem;
	border-bottom: 1px solid var(--ft-border);
	cursor: pointer;
}

#sg-suggestions-loc-hero .sg-suggestion-item:last-child {
	border-bottom: none;
}

#sg-suggestions-loc-hero .sg-suggestion-item:hover {
	background: var(--ft-gold-pale);
}

#sg-suggestions-loc-hero .sg-suggestion-icon {
	color: var(--ft-gold);
	width: 18px;
	text-align: center;
}

#sg-suggestions-loc-hero .sg-suggestion-details .name {
	font-weight: 600;
	font-size: 14px;
	color: var(--ft-black);
}

#sg-suggestions-loc-hero .sg-suggestion-details .address {
	color: var(--ft-text-gray);
	font-size: 12px;
}

/* ==========================================================================
   USP-balk (onder de hero)
   ========================================================================== */

.ft-usp-bar {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem;
	font-family: var(--ft-font-family);
}

.ft-usp-item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	flex: 0 1 280px;
}

.ft-usp-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ft-gold-pale);
	color: var(--ft-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.ft-usp-text {
	font-size: var(--ft-body-size);
	font-weight: 600;
	color: var(--ft-black);
	line-height: var(--ft-line-height-heading);
}

/* ==========================================================================
   Populaire soorten fotografie
   ========================================================================== */

.ft-popular-types {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 3.5rem;
	font-family: var(--ft-font-family);
}

.ft-popular-types__header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 2.25rem;
}

.ft-popular-types__header h2 {
	font-size: var(--ft-h2-size-mobile);
	font-weight: var(--ft-h2-weight);
	color: var(--ft-black);
	line-height: var(--ft-line-height-heading);
	margin: 0 0 0.6rem;
}

@media (min-width: 768px) {
	.ft-popular-types__header h2 {
		font-size: var(--ft-h2-size);
	}
}

.ft-popular-types__header p {
	font-size: var(--ft-body-size);
	color: var(--ft-text-gray);
	line-height: var(--ft-line-height-body);
	margin: 0;
}

.ft-popular-types__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

@media (max-width: 900px) {
	.ft-popular-types__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ft-popular-types__grid {
		grid-template-columns: 1fr;
	}
}

.ft-type-card {
	display: block;
	background: var(--ft-white);
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius-card);
	box-shadow: var(--ft-shadow-card);
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ft-type-card:hover {
	box-shadow: var(--ft-shadow-card-hover);
	border-color: var(--ft-gold);
}

.ft-type-card__media {
	height: 120px;
	background: linear-gradient(135deg, var(--ft-black) 0%, var(--ft-anthracite) 60%, var(--ft-gold) 130%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ft-type-card__media i {
	color: var(--ft-gold-light);
	font-size: 30px;
}

/* Kaartfoto (gekoppeld via termmeta, zie ft_popular_photography_types_shortcode()).
   object-position: top i.p.v. center — de 120px-hoge kaart is veel breder-dan-hoog,
   dus een center-crop van een 600x400 (3:2) bronfoto zou bij portretten het hoofd
   raken. Bovenkant vasthouden werkt voor alle vier de huidige foto's (portret,
   bruidspaar, kantoor, concert-fotograaf staan allemaal met het belangrijkste in de
   bovenste helft van het beeld). */
.ft-type-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.ft-type-card__body {
	padding: 16px;
}

.ft-type-card__body h3 {
	font-size: var(--ft-h3-size-mobile);
	font-weight: var(--ft-h3-weight);
	color: var(--ft-black);
	margin: 0 0 6px;
}

@media (min-width: 768px) {
	.ft-type-card__body h3 {
		font-size: var(--ft-h3-size);
	}
}

.ft-type-card__body p {
	font-size: var(--ft-meta-size);
	color: var(--ft-text-gray);
	line-height: var(--ft-line-height-body);
	margin: 0;
}

/* ==========================================================================
   Hoe het werkt (vier genummerde stappen, gouden cirkels + verbindingslijn)
   ========================================================================== */

.ft-how-it-works {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 3.5rem;
	font-family: var(--ft-font-family);
}

.ft-how-it-works__header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 2.5rem;
}

.ft-how-it-works__header h2 {
	font-size: var(--ft-h2-size-mobile);
	font-weight: var(--ft-h2-weight);
	color: var(--ft-black);
	line-height: var(--ft-line-height-heading);
	margin: 0 0 0.6rem;
}

@media (min-width: 768px) {
	.ft-how-it-works__header h2 {
		font-size: var(--ft-h2-size);
	}
}

.ft-how-it-works__header p {
	font-size: var(--ft-body-size);
	color: var(--ft-text-gray);
	margin: 0;
}

.ft-how-it-works__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	position: relative;
}

@media (max-width: 900px) {
	.ft-how-it-works__grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 2.5rem;
	}
}

@media (max-width: 480px) {
	.ft-how-it-works__grid {
		grid-template-columns: 1fr;
	}
}

.ft-how-step {
	position: relative;
	text-align: center;
	padding-top: 8px;
}

/* Verbindingslijn tussen de cirkels (alleen desktop, 4 kolommen naast elkaar) */
@media (min-width: 901px) {
	.ft-how-step:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 38px;
		left: calc(50% + 38px);
		width: calc(100% - 76px);
		height: 2px;
		background: var(--ft-gold-pale);
	}
}

.ft-how-step__circle {
	width: 76px;
	height: 76px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--ft-gold);
	color: var(--ft-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	position: relative;
	z-index: 1;
}

.ft-how-step__num {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ft-black);
	color: var(--ft-white);
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ft-how-step h3 {
	font-size: var(--ft-h3-size-mobile);
	font-weight: var(--ft-h3-weight);
	color: var(--ft-black);
	margin: 0 0 6px;
}

@media (min-width: 768px) {
	.ft-how-step h3 {
		font-size: var(--ft-h3-size);
	}
}

.ft-how-step p {
	font-size: var(--ft-meta-size);
	color: var(--ft-text-gray);
	line-height: var(--ft-line-height-body);
	margin: 0;
	max-width: 220px;
	margin-inline: auto;
}


/* ==========================================================================
   Laatste inspiratie (homepage, shortcode [ft_home_inspiration])
   Zelfde kaartstijl als .ft-type-card.
   ========================================================================== */

.ft-home-news {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 3.5rem;
	font-family: var(--ft-font-family);
}

.ft-home-news__header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 1.25rem;
}

.ft-home-news__header h2 {
	font-size: var(--ft-h2-size-mobile);
	font-weight: var(--ft-h2-weight);
	color: var(--ft-black);
	line-height: var(--ft-line-height-heading);
	margin: 0 0 0.6rem;
}

.ft-home-news__header p {
	margin: 0;
	font-size: var(--ft-body-size);
	color: var(--ft-text-gray);
	line-height: var(--ft-line-height-body);
}

.ft-home-news__pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

.ft-home-news__pills button {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 8px 14px;
	border: 1px solid var(--ft-gold);
	border-radius: 999px;
	background: var(--ft-white);
	color: var(--ft-anthracite);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.ft-home-news__pills button.is-active,
.ft-home-news__pills button:hover,
.ft-home-news__pills button:focus {
	background: var(--ft-gold);
	color: var(--ft-white);
}

.ft-home-news__grid[hidden] {
	display: none;
}

@media (min-width: 768px) {
	.ft-home-news__header h2 {
		font-size: var(--ft-h2-size);
	}
}

.ft-home-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ft-home-news__card {
	min-width: 0;
	background: var(--ft-white);
	border: 1px solid var(--ft-border);
	border-radius: var(--ft-radius-card);
	box-shadow: var(--ft-shadow-card);
	overflow: hidden;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ft-home-news__card:hover {
	box-shadow: var(--ft-shadow-card-hover);
	border-color: var(--ft-gold);
}

.ft-home-news__card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.ft-home-news__media {
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--ft-black) 0%, var(--ft-anthracite) 60%, var(--ft-gold) 130%);
	overflow: hidden;
}

.ft-home-news__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.ft-home-news__body {
	padding: 16px;
}

.ft-home-news__cat {
	margin: 0 0 6px;
	font-size: var(--ft-meta-size);
	font-weight: 600;
	color: var(--ft-gold);
}

.ft-home-news__body h3 {
	font-size: var(--ft-h3-size-mobile);
	font-weight: var(--ft-h3-weight);
	color: var(--ft-black);
	margin: 0 0 6px;
}

.ft-home-news__body p {
	font-size: var(--ft-meta-size);
	color: var(--ft-text-gray);
	line-height: var(--ft-line-height-body);
	margin: 0;
}

.ft-home-news__btn {
	display: inline-flex;
	margin-top: 12px;
	color: var(--ft-gold);
	font-weight: 600;
}

.ft-home-news__more {
	margin: 28px 0 0;
	text-align: center;
}

.ft-home-news__more a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: var(--ft-radius-button);
	background: var(--ft-gold);
	color: var(--ft-white);
	font-weight: 600;
	text-decoration: none;
}

.ft-home-news__more a:hover {
	background: var(--ft-gold-hover, #a07d58);
	color: var(--ft-white);
}

@media (max-width: 900px) {
	.ft-home-news__grid {
		grid-template-columns: 1fr;
	}
}
