/**
 * Frutas de la Tierra - Component Styles
 * Classes with prefix fdt- and custom block style definitions.
 */

/* ==========================================================================
   Hero Cover & Headers (C01, C02, C03)
   ========================================================================== */
.fdt-hero-cover {
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: calc(var(--fdt-header-height) + 40px) 24px 60px;
	box-sizing: border-box;
}

.fdt-hero-interior {
	min-height: 440px;
	display: flex;
	align-items: center;
	padding: calc(var(--fdt-header-height) + 60px) 24px 60px;
	position: relative;
}

.fdt-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(26, 26, 26, 0.95) 100%);
	pointer-events: none;
}

.fdt-hero-content {
	position: relative;
	z-index: 2;
	max-width: 960px;
	margin: 0 auto;
	text-align: center;
}

.fdt-hero-interior .fdt-hero-content {
	text-align: left;
	margin: 0;
	max-width: 840px;
}

/* ==========================================================================
   Metrics Strip (C04)
   ========================================================================== */
.fdt-metrics-strip {
	background-color: var(--fdt-color-accent);
	color: var(--fdt-color-on-accent);
	padding: 48px 24px;
	width: 100%;
}

.fdt-metrics-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
	text-align: center;
}

.fdt-metric-item .fdt-metric-value {
	font-family: var(--fdt-font-display);
	font-size: clamp(2.5rem, 2rem + 2vw, 4.5rem);
	line-height: 0.95;
	margin: 0 0 8px 0;
	color: var(--fdt-color-on-accent);
}

.fdt-metric-item .fdt-metric-label {
	font-family: var(--fdt-font-condensed);
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0;
	color: var(--fdt-color-on-accent);
	opacity: 0.9;
}

/* ==========================================================================
   Editorial Mosaic (C06)
   ========================================================================== */
.fdt-mosaic-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: stretch;
}

.fdt-mosaic-tall {
	grid-row: span 2;
	border-radius: 3px;
	overflow: hidden;
	background-color: var(--fdt-color-surface);
	min-height: 320px;
}

.fdt-mosaic-tall img,
.fdt-mosaic-stack img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fdt-mosaic-stack {
	border-radius: 3px;
	overflow: hidden;
	background-color: var(--fdt-color-surface);
	min-height: 160px;
}

@media screen and (max-width: 768px) {
	.fdt-mosaic-grid {
		grid-template-columns: 1fr;
	}
	.fdt-mosaic-tall {
		grid-row: auto;
		min-height: 240px;
	}
}

/* ==========================================================================
   Cards & Panels (C07, C08, C10, C12, C22)
   ========================================================================== */
.is-style-fdt-panel,
.fdt-card {
	background-color: var(--fdt-color-surface);
	border: 1px solid var(--fdt-color-border);
	border-radius: 3px;
	padding: 32px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.is-style-fdt-panel:hover,
.fdt-card:hover {
	border-color: rgba(46, 204, 90, 0.4);
}

.is-style-fdt-accent-border {
	background-color: var(--fdt-color-surface);
	border: 2px solid var(--fdt-color-accent);
	border-radius: 3px;
	padding: 32px;
}

/* Reverse layout in desktop for alternating cards */
@media screen and (min-width: 782px) {
	.is-style-fdt-reverse-desktop .wp-block-columns {
		flex-direction: row-reverse !important;
	}
	.wp-block-columns.is-style-fdt-reverse-desktop {
		flex-direction: row-reverse !important;
	}
}

/* Outline button style */
.is-style-fdt-outline .wp-block-button__link,
.wp-block-button.is-style-fdt-outline .wp-block-button__link {
	background-color: transparent !important;
	border: 1.5px solid var(--fdt-color-accent) !important;
	color: var(--fdt-color-contrast) !important;
}

.is-style-fdt-outline .wp-block-button__link:hover,
.wp-block-button.is-style-fdt-outline .wp-block-button__link:hover {
	background-color: var(--fdt-color-accent) !important;
	color: var(--fdt-color-on-accent) !important;
}

/* Eyebrow tag style */
.is-style-fdt-eyebrow,
.fdt-eyebrow {
	font-family: var(--fdt-font-condensed) !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.2em !important;
	color: var(--fdt-color-accent) !important;
	margin-bottom: 12px !important;
}

/* Features list with green bullet */
.is-style-fdt-feature-list {
	list-style: none !important;
	padding-left: 0 !important;
}

.is-style-fdt-feature-list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 12px;
}

.is-style-fdt-feature-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--fdt-color-accent);
	font-weight: 700;
	font-family: var(--fdt-font-condensed);
}

/* ==========================================================================
   Attributes Strip (C09)
   ========================================================================== */
.fdt-attributes-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	padding: 48px 0;
}

.fdt-attribute-item {
	padding: 24px;
	background-color: var(--fdt-color-surface);
	border: 1px solid var(--fdt-color-border);
	border-radius: 3px;
}

/* ==========================================================================
   Services Header Back Strip (6.3, C03, 8.7)
   ========================================================================== */
.fdt-services-back-bar {
	background-color: var(--fdt-color-base-darkest);
	border-bottom: 1px solid var(--fdt-color-border);
	padding: 8px 40px;
	font-family: var(--fdt-font-condensed);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fdt-services-back-bar a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--fdt-color-muted);
	text-decoration: none;
}

.fdt-services-back-bar a:hover {
	color: var(--fdt-color-accent);
}

/* ==========================================================================
   Floating Action Button (6.5)
   ========================================================================== */
.fdt-floating-contact {
	position: fixed;
	bottom: max(24px, env(safe-area-inset-bottom, 24px));
	right: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--fdt-color-accent);
	color: var(--fdt-color-on-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	z-index: 999;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.fdt-floating-contact:hover {
	transform: scale(1.08);
	background-color: #26b34e;
	color: var(--fdt-color-on-accent);
}

.fdt-floating-contact svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

/* ==========================================================================
   Header CTA Button
   ========================================================================== */
.fdt-header-cta .wp-block-button__link {
	padding: 8px 20px !important;
	font-family: var(--fdt-font-condensed) !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	background-color: var(--fdt-color-accent) !important;
	color: var(--fdt-color-on-accent) !important;
	border-radius: 3px !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.fdt-header-cta .wp-block-button__link:hover {
	background-color: #26b34e !important;
	transform: translateY(-1px);
}

@media screen and (max-width: 820px) {
	.fdt-header-btn-wrap {
		display: none !important;
	}
}

/* ==========================================================================
   Empty / Neutral Placeholder Helper (Section 4.3 & 4.4)
   ========================================================================== */
.fdt-empty-placeholder {
	border: 1px dashed var(--fdt-color-border);
	padding: 32px;
	text-align: center;
	border-radius: 3px;
	color: var(--fdt-color-muted);
}
