/*
Theme Name: LaTeaDoh
Theme URI: https://www.lateadoh.co.uk/
Description: Child theme of Twenty Twenty-Five for LaTeaDoh, Pollokshields.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Text Domain: lateadoh
*/

/* Header logo */
.ltd-logo img { display: block; height: 56px; width: auto; }
@media (max-width: 600px) { .ltd-logo img { height: 35px; } }

/* Sticky, slightly translucent header */
.ltd-header {
	position: sticky; top: 0; z-index: 50;
	backdrop-filter: saturate(140%) blur(8px);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
}
body.admin-bar .ltd-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ltd-header { top: 46px; } }

/* Eyebrow labels */
.ltd-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 600;
}

/* Cards */
.ltd-card { height: 100%; }
.ltd-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Quotes */
.ltd-quote { border-left: 3px solid var(--wp--preset--color--accent-1); padding-left: 1.25rem; }

/* Hours table */
.ltd-hours table { border-collapse: collapse; width: 100%; }
.ltd-hours td { border: 0; border-bottom: 1px solid var(--wp--preset--color--accent-6); padding: 0.55rem 0; white-space: nowrap; }
.ltd-hours td:first-child { padding-right: 1rem; }
footer .ltd-hours td { border-bottom-color: rgba(241, 230, 207, 0.15); padding: 0.35rem 0; font-size: 0.95rem; }
.ltd-quote p { font-size: clamp(1.2rem, 1.6vw, 1.45rem) !important; line-height: 1.45; }
.ltd-quote cite { font-style: normal; font-family: var(--wp--preset--font-family--manrope); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ltd-hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Map */
.ltd-map iframe { width: 100%; height: 380px; border: 0; border-radius: 6px; display: block; }

/* Contact form 7 */
.wpcf7 input:not([type=submit]):not([type=checkbox]), .wpcf7 textarea {
	width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 4px; background: #fff; font: inherit; color: inherit; box-sizing: border-box;
}
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 1rem; }
.wpcf7 input[type=submit] {
	background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base);
	border: 0; border-radius: 999px; padding: 0.85rem 1.8rem; font: inherit; font-weight: 600; cursor: pointer;
}
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--accent-3); }

/* Video */
.ltd-video video { width: 100%; border-radius: 6px; display: block; }

/* Split hero */
.ltd-hero-split { min-height: 78vh; align-items: stretch !important; gap: 0 !important; padding: 0 !important; }
.ltd-hero-split > .wp-block-column:last-child { align-self: stretch !important; display: flex; padding: 0 !important; }
.ltd-hero-split .ltd-hero-split__img { margin: 0 !important; flex: 1; display: flex; }
.ltd-hero-split .ltd-hero-split__img img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; object-position: 50% 60%; display: block; }
@media (max-width: 781px) {
	.ltd-hero-split .ltd-hero-split__img img { height: 52vh; min-height: 300px; }
	.ltd-hero-split > .wp-block-column:first-child { padding-left: var(--wp--preset--spacing--50) !important; padding-right: var(--wp--preset--spacing--50) !important; }
}

/* Footer: never squeeze the opening hours */
@media (min-width: 1100px) {
	footer .ltd-footer-hours { flex: 0 0 auto !important; min-width: 220px; }
}
@media (min-width: 782px) and (max-width: 1099px) {
	footer .wp-block-columns { flex-wrap: wrap !important; row-gap: 2.5rem; }
	footer .wp-block-columns > .wp-block-column { flex: 0 0 calc(50% - 2rem) !important; }
}
footer .ltd-hours figure, footer .wp-block-table { overflow: visible; }

footer a[href^="mailto:"] { overflow-wrap: normal; word-break: normal; }

/* Long day labels (e.g. Christmas hours) may wrap; times stay on one line */
.ltd-hours td:first-child { white-space: normal; }

/* Footer badge: centre it on phones */
@media (max-width: 781px) {
	footer .ltd-footer-logo { margin: 0 auto var(--wp--preset--spacing--40); width: 180px !important; }
}

/* Even out line lengths in centred intro text */
p.has-text-align-center { text-wrap: balance; }

/* Product grids: centre the cards when there are fewer than a full row */
.woocommerce ul.products { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; margin: 0 !important; width: calc((100% - 4rem) / 3) !important; }
@media (max-width: 768px) { .woocommerce ul.products li.product { width: calc((100% - 2rem) / 2) !important; } }
@media (max-width: 480px) { .woocommerce ul.products li.product { width: 100% !important; } }
