/**
 * TODOS LABTECH homepage (2026-11-24) – presentation for the Elementor sections with `td-home-*` classes.
 * Loaded on the front page only. Content stays in Elementor.
 */

.td-hero-text .elementor-widget-text-editor p,
.td-home-section .elementor-widget-text-editor p { margin: 0; }
.td-home-section .elementor-heading-title { margin: 0; }

/* About image */
.td-about-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

/* Cards: equal heights, image frame, subtle hover lift */
.td-home-grid > .e-con.td-home-card { height: 100%; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.td-home-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(6, 43, 82, .10); border-color: #C9D7E6; }
.td-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.td-card-img { margin: 0; }
.td-home-card .td-card-body.e-con { flex: 1 1 auto; }
.td-prod-card .td-card-body > .e-con:last-child,
.td-cat-card .td-card-body > .elementor-widget-button:last-child { margin-top: auto; }
.td-cat-card .elementor-widget-image a, .td-cat-card .elementor-widget-image img { display: block; }
.td-cat-card .elementor-heading-title a { color: inherit; }
.td-home-card .elementor-heading-title a { color: inherit; }
.td-home-card .elementor-heading-title a:hover { color: #0877F9; }

/* Featured products: image + full-width product-name button (navy, hover blue) */
.td-prod-card .td-card-body.e-con { flex: 0 0 auto; }
.td-prod-card { justify-content: space-between; }
.td-name-btn .elementor-button { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; text-align: center; transition: background-color .2s ease; }
.td-name-btn .elementor-button:focus-visible { outline: 2px solid #0877F9; outline-offset: -4px; }

/* Why cards */
.td-why-icon .elementor-icon { display: inline-flex; }

/* Client logo marquee: now the shared About-style marquee in style.css (V7, 2026-11-25). FAQ styles: style.css. */

@media (prefers-reduced-motion: reduce) {
	.td-home-card, .td-home-card:hover { transition: none; transform: none; }
}

/* Hero (2026-11-24 corrections): background-image slides with two CTAs; pagination dots only. */
.td-home-hero .td-hero-text .elementor-widget-text-editor p { margin: 0; }
.td-home-hero .td-hero-controls .td-hero-arrow,
.td-home-hero .td-hero-controls .td-hero-toggle { background: rgba(6, 43, 82, .6); }
.td-home-hero .td-hero-controls .td-hero-arrow:hover,
.td-home-hero .td-hero-controls .td-hero-toggle:hover { background: rgba(6, 43, 82, .85); }
.td-home-hero .td-hero-dots button::before { box-shadow: 0 0 0 1px rgba(6, 43, 82, .35); }
/* Phones (2026-11-27): dots sit lower in the 180px banner, clear of the buttons. */
@media (max-width: 767px) {
	.td-home-hero .td-hero-slider .td-hero-controls--dots { bottom: -10px; }
}


/* Product Categories cards (2026-11-24): 40% image column fills the card height; image on top below 768px. */
.td-cat-card.e-con { min-width: 0; }
.td-cat-card .td-cat-media.e-con { position: relative; min-height: 300px; overflow: hidden; }
.td-cat-card .td-cat-img,
.td-cat-card .td-cat-img a { position: absolute; inset: 0; display: block; }
.td-cat-card .td-cat-img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.td-cat-card .td-cat-pos-vials img { object-position: 50% 55%; }
.td-cat-card .td-cat-pos-inst img { object-position: 30% 50%; }
.td-cat-card .elementor-widget-text-editor p { margin: 0; }
@media (max-width: 767px) {
	.td-cat-card .td-cat-media.e-con { min-height: 0; aspect-ratio: 4 / 3; }
}
