/*
Theme Name: TM Homeworks
Theme URI: https://tmhomeworks.co.uk
Author: TM Homeworks
Description: One-page block theme for TM Homeworks, handyman and home improvements in South East London. Edit everything in Appearance › Editor.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tm-homeworks
*/

/* ---------- Page structure ---------- */
html { scroll-behavior: smooth; }
.wp-site-blocks > * + *,
body .tmh-main > * + * { margin-block-start: 0 !important; }
.wp-site-blocks { padding: 0; }

.tmh-section { padding: 96px 24px; }
.tmh-section-flush-bottom { padding-bottom: 0; }
body .tmh-section > * + * { margin-block-start: 48px; }
[id] { scroll-margin-top: 16px; }

/* ---------- Header ---------- */
.tmh-header { padding: 18px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.tmh-header-row { gap: 16px; }
.tmh-header-right { gap: 28px; }
.tmh-logo { margin: 0; }
.tmh-logo img { width: 148px !important; height: auto !important; max-width: none; display: block; }
.tmh-logo-small img { width: 106px !important; }
.tmh-nav { font-size: 15px; gap: 28px; }
.tmh-nav a { text-decoration: none; }
.tmh-nav a:hover { color: #ffffff; }
.tmh-btn-small .wp-block-button__link { padding: 11px 20px; font-size: 15px; }
.tmh-header-cta { margin: 0; }

/* ---------- Shared text styles ---------- */
.tmh-eyebrow {
	margin-block-end: 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}
body .tmh-intro > * { max-width: 680px; }
body .tmh-intro > * + * { margin-block-start: 14px; }
.tmh-h2 { margin-block-end: 0; }
.tmh-h2-small { font-size: 32px !important; line-height: 1.15; }
.tmh-h2-big { font-size: clamp(34px, 5vw, 52px) !important; }
.tmh-body { font-size: 18px; font-weight: 300; line-height: 1.6; margin-block-end: 0; }
.tmh-lead { font-size: 20px; font-weight: 300; line-height: 1.55; max-width: 560px; margin-block-end: 0; }

/* ---------- Hero ---------- */
.tmh-hero { padding-top: 88px; padding-bottom: 104px; }
.tmh-hero-cols { gap: 56px; }
body .tmh-hero-cols .wp-block-column > * + * { margin-block-start: 28px; }
.tmh-h1 { margin-block-end: 0; letter-spacing: -0.01em; }
.tmh-h1 mark {
	background-image: linear-gradient(100deg, #7E8BBD 0%, #4BB7B7 55%, #6CBDAA 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.tmh-hero-buttons { gap: 14px; }
.tmh-hero-icon { margin: 0 auto; text-align: center; }
.tmh-hero-icon img {
	width: min(100%, 320px);
	height: auto;
	filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

/* Buttons */
.wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; text-decoration: none; }
.tmh-btn-small .wp-block-button__link { min-height: 44px; }
.tmh-btn-outline .wp-block-button__link {
	background: transparent;
	color: #ffffff;
	border: 1.5px solid #4BB7B7;
	font-weight: 500;
}
.tmh-btn-outline .wp-block-button__link:hover { background: rgba(75, 183, 183, 0.15); color: #ffffff; }
.tmh-btn-call .wp-block-button__link::before,
.tmh-btn-wa .wp-block-button__link::before {
	content: "";
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: var(--tmh-icon) center / contain no-repeat;
	mask: var(--tmh-icon) center / contain no-repeat;
}
.tmh-btn-call { --tmh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.tmh-btn-wa { --tmh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E"); }

/* ---------- Services ---------- */
.tmh-grid-services { gap: 24px; }
.tmh-card {
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 1px 2px rgba(31, 37, 49, 0.06);
}
body .tmh-card > * + * { margin-block-start: 18px; }
.tmh-card-head { gap: 16px; align-items: center; }
.tmh-icon { margin: 0; flex-shrink: 0; }
.tmh-icon img { width: 52px !important; height: 52px !important; display: block; }
.tmh-card-title { margin-block-end: 0; font-size: 24px !important; }
.tmh-list {
	margin-block-end: 0;
	padding-left: 18px;
	columns: 2 200px;
	column-gap: 28px;
	font-size: 16px;
	line-height: 1.75;
	color: #3A4352;
}
.tmh-list li { margin: 0; break-inside: avoid; }

/* ---------- Gallery ---------- */
.tmh-grid-gallery { gap: 20px; }
.tmh-photo { margin: 0; }
.tmh-photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 18px;
	display: block;
}
.tmh-photo figcaption {
	margin: 12px 0 0;
	text-align: left;
	font-size: 16px;
	color: #3A4352;
}

/* ---------- How it works ---------- */
.tmh-grid-steps { gap: 24px; }
.tmh-step { padding-top: 24px; border-top: 2px solid #4BB7B7; }
body .tmh-step > * { margin: 0; }
body .tmh-step > * + * { margin-block-start: 12px; }
.tmh-step-num { font-size: 15px; font-weight: 600; letter-spacing: 0.2em; }
.tmh-step .tmh-body { font-size: 17px; }

/* ---------- Areas & reviews ---------- */
.tmh-grid-areas { gap: 24px; }
.tmh-panel { border-radius: 20px; padding: 36px; }
body .tmh-panel > * { margin: 0; }
body .tmh-panel > * + * { margin-block-start: 18px; }
.tmh-panel .tmh-body { font-size: 17px; }
.tmh-pills { gap: 10px; }
.tmh-pill {
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: #E6F4F3;
	color: #1F2531;
	font-size: 15px;
}
.tmh-quote { font-size: 19px; line-height: 1.55; font-weight: 300; }
.tmh-cite { font-size: 15px; }

/* ---------- Contact ---------- */
.tmh-contact { text-align: center; }
body .tmh-contact > * + * { margin-block-start: 24px; }
body .tmh-contact > .tmh-grid-contact { margin-block-start: 36px; }
.tmh-lead-narrow { max-width: 580px; margin-left: auto !important; margin-right: auto !important; font-size: 19px; }
.tmh-grid-contact { gap: 16px; max-width: 900px !important; }
.tmh-contact-card {
	position: relative;
	border-radius: 18px;
	padding: 28px 20px;
	text-align: center;
	transition: transform 0.15s ease;
}
.tmh-contact-card:not(.tmh-contact-primary) { border: 1px solid rgba(255, 255, 255, 0.12); }
.tmh-contact-card:hover { transform: translateY(-2px); }
body .tmh-contact-card > * { margin: 0; }
body .tmh-contact-card > * + * { margin-block-start: 10px; }
.tmh-contact-icon { margin: 0 auto; }
.tmh-contact-icon img { width: 28px !important; height: 28px !important; display: block; margin: 0 auto; }
.tmh-contact-label { font-size: 14px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.tmh-contact-value { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.tmh-contact-value a { color: inherit; text-decoration: none; }
.tmh-contact-value a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }

/* ---------- Footer ---------- */
.tmh-footer { padding: 32px 24px; }
.tmh-footer-row { gap: 16px; }
.tmh-footer-brand { gap: 12px; align-items: center; }
.tmh-footer-text { margin: 0; font-size: 14px; }
.tmh-footer-text a { color: inherit; }

/* ---------- Ordinary pages and posts ---------- */
.tmh-page { padding: 64px 24px 96px; }
.tmh-page-title { margin-bottom: 32px; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.tmh-section { padding: 64px 20px; }
	.tmh-hero { padding-top: 56px; padding-bottom: 72px; }
	.tmh-section-flush-bottom { padding-bottom: 0; }
	.tmh-header { padding: 14px 20px; }
	.tmh-logo img { width: 116px !important; }
	.tmh-header-right { gap: 12px; }
	.tmh-card, .tmh-panel { padding: 24px; }
	.tmh-hero-icon img { width: min(70%, 240px); }
}
