/*
Theme Name: LM Cotizador (Child)
Theme URI: https://example.com/
Description: Child theme for Twenty Twenty-Five for LM quotation catalog.
Author: LM
Template: twentytwentyfive
Version: 0.1.0
Text Domain: lm-cotizador
*/

/* Base styles live in assets/css/woocommerce.css (and future files). */

/* Hero pack-shot adjustments */
.lm-packshot-image {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	margin: 0 auto;
}

/* Hero carousel inverted section: image left, text right */
.lm-hero-carousel__inner {
	display: flex;
	gap: 2rem;
	align-items: center;
}
.lm-hero-carousel__visual {
	flex: 1 1 60%;
}
.lm-hero-carousel__copy {
	flex: 1 1 40%;
}
.lm-hero-carousel__subtitle {
	color: #666;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

/* Kicker icon (fire) */
.lm-hero-carousel__copy .lm-section-kicker {
	color: #f44336;
	display: inline-flex;
	align-items: center;
}

.lm-kicker-icon {
	width: 1.25em;
	height: 1.25em;
	margin-right: 0.5rem;
	vertical-align: -0.125em;
	fill: currentColor;
}
.lm-hero-carousel__actions {
	margin-top: 1rem;
}

/* Emoji kicker sizing */
.lm-kicker-emoji {
    display: inline-block;
    font-size: 1.5em; /* 1.5x the surrounding text */
    line-height: 1;
    margin-right: 0.5rem;
    vertical-align: -0.125em;
}

@media (max-width: 768px) {
	.lm-hero-carousel__inner {
		flex-direction: column-reverse; /* text on top, carousel below */
		gap: 1rem;
	}
	.lm-hero-carousel__visual, .lm-hero-carousel__copy {
		flex: 1 1 auto;
		width: 100%;
	}
	.lm-hero-carousel__copy {
		text-align: center;
	}
}

/* Spacing: add top padding to the hero-carousel section */
.lm-hero-carousel {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
	.lm-hero-carousel {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}
}

/* Full-bleed separator image between sections */
.lm-separator {
	width: 100%;
	overflow: hidden;
}
.lm-separator-image {
	display: block;
	width: 100vw; /* fill the viewport width */
	max-width: 100vw;
	margin-left: calc(50% - 50vw); /* center full-bleed inside constrained container */
	height: clamp(140px, 20vh, 300px); /* min 140px, ideal ~20vh, max 300px */
	object-fit: cover;
}

@media (max-width: 768px) {
	.lm-separator-image {
		height: clamp(90px, 14vh, 180px);
	}
}

/* Promo card: ensure background video fills the container on all viewports */
.lm-promo__card {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
}
.lm-promo__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}
.lm-promo__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-o-object-fit: cover;
}
.lm-promo__badge,
.lm-promo__content {
	position: relative;
	z-index: 1;
}

@media (max-width: 768px) {
	.lm-promo__card {
		min-height: 240px;
	}
}

/* Ensure promo video fills the card on tablet widths too */
@media (max-width: 1024px) {
	.lm-promo__card {
		min-height: 320px; /* increase so video has room to cover */
	}
	.lm-promo__media,
	.lm-promo__video {
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}
	.lm-promo__video {
		object-fit: cover;
		background-color: transparent;
		display: block;
		transform: translateZ(0);
	}
}

/* On narrow/tablet screens, enlarge and center the video so it always fills the card (zoom toward center) */
@media (max-width: 1024px) {
	.lm-promo__media {
		overflow: hidden;
	}
	.lm-promo__video {
		position: absolute;
		top: 50%;
		left: 50%;
		width: auto;
		height: 120%; /* make video taller than container so it crops top/bottom */
		min-width: 120%;
		transform: translate(-50%, -50%);
		object-fit: cover;
		object-position: center center;
	}
}

/* Mobile small screens: increase zoom to avoid black bars at 425px and below */
@media (max-width: 425px) {
	.lm-promo__card {
		min-height: 260px;
	}
	.lm-promo__video {
		position: absolute;
		top: 50%;
		left: 50%;
		width: auto;
		height: 140%;
		min-width: 140%;
		transform: translate(-50%, -50%) scale(1.3);
		transform-origin: center center;
		object-fit: none; /* use none on small screens to avoid black bars and allow scale/translate */
		object-position: center center;
		will-change: transform;
	}
}

/* Carousel arrows: show simple black arrows (no background) */
.lm-hero-swiper .swiper-button-prev,
.lm-hero-swiper .swiper-button-next {
	background: transparent;
	color: #000;
	width: auto;
	height: auto;
	border-radius: 0;
	box-shadow: none;
	padding: 0.25rem; /* small click target without opaque background */
}
.lm-hero-swiper .swiper-button-prev::after,
.lm-hero-swiper .swiper-button-next::after {
	color: #000;
	font-size: 20px;
}

/* Product card tweaks */
.lm-product-card__title {
    font-size: 16px;
}

