/*
Theme Name: The Maid
Theme URI: https://ketnalcreations.co.za
Author: Ketnal Creations
Author URI: https://ketnalcreations.co.za
Description: A minimal single-page WordPress theme for The Maid cleaning service. Deep forest green and warm gold, no header or footer chrome — just a full-width video hero, services and contact, with four replaceable image slots.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-maid
Tags: one-column, featured-images, translation-ready
*/

/* =========================================================================
   1. TOKENS
   ========================================================================= */

:root {
	--green:        #172E27;
	--green-deep:   #0E1D18;
	--green-soft:   #22463B;
	--gold:         #CCA435;
	--gold-light:   #E3C56B;
	--gold-deep:    #A98325;
	--ink:          #14201C;
	--body:         #4A5652;
	--muted:        #7C8783;
	--line:         #E4E7E5;
	--tint:         #F7F6F1;
	--white:        #FFFFFF;

	--serif: "Playfair Display", "Times New Roman", Georgia, serif;
	--sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--shell:  1200px;
	--gutter: clamp(20px, 5vw, 40px);
	--radius: 18px;
	--radius-sm: 12px;

	--shadow-sm: 0 2px 10px rgba(23, 46, 39, .06);
	--shadow:    0 14px 40px rgba(23, 46, 39, .10);
	--shadow-lg: 0 28px 70px rgba(23, 46, 39, .16);

	--section-y: clamp(64px, 9vw, 120px);
}

/* =========================================================================
   2. BASE
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 20px; }

body {
	margin: 0;
	background: var(--white);
	color: var(--body);
	font-family: var(--sans);
	font-size: 16.5px;
	font-weight: 400;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
	font-family: var(--serif);
	color: var(--ink);
	line-height: 1.14;
	margin: 0 0 .5em;
	font-weight: 600;
	letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
	border-radius: 4px;
}

.tm-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--green);
	color: #fff;
	padding: 12px 20px;
}
.tm-skip:focus { left: 12px; top: 12px; color: #fff; }

.tm-shell {
	width: min(100% - (var(--gutter) * 2), var(--shell));
	margin-inline: auto;
}

.tm-gold { color: var(--gold); }
.tm-icon { flex: none; }

/* =========================================================================
   3. BUTTONS
   ========================================================================= */

.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 14px 28px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
	white-space: nowrap;
}
.tm-btn:hover { transform: translateY(-2px); }

.tm-btn--green  { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.tm-btn--green:hover { background: var(--green-deep); color: #fff; box-shadow: var(--shadow); }

.tm-btn--gold   { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--green-deep); }
.tm-btn--gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--green-deep); box-shadow: 0 10px 26px rgba(204, 164, 53, .38); }

.tm-btn--ghost  { background: rgba(255, 255, 255, .9); color: var(--green); border-color: rgba(23, 46, 39, .18); }
.tm-btn--ghost:hover { background: #fff; border-color: var(--gold); color: var(--green); }

.tm-btn--outline { background: transparent; color: var(--green); border-color: var(--line); }
.tm-btn--outline:hover { background: var(--green); color: #fff; border-color: var(--green); }

.tm-btn--block { width: 100%; }

/* =========================================================================
   4. HERO
   ========================================================================= */

.tm-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(560px, 78vh, 760px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--green-deep);
}

.tm-hero__bg { position: absolute; inset: 0; z-index: -2; }
.tm-hero__video { width: 100%; height: 100%; object-fit: cover; }
.tm-hero__empty { width: 100%; height: 100%; padding: 20px; }

.tm-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(14, 29, 24, .94) 0%, rgba(14, 29, 24, .82) 34%, rgba(14, 29, 24, .35) 62%, rgba(14, 29, 24, .18) 100%);
}

/* The gold sweep from the brand collateral. */
.tm-hero__arc {
	position: absolute;
	right: -34%;
	top: -34%;
	width: 66%;
	height: 178%;
	border-radius: 50%;
	border-left: 12px solid var(--gold);
	background: transparent;
	transform: rotate(-8deg);
	opacity: .85;
	pointer-events: none;
}

.tm-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding-block: clamp(56px, 8vw, 96px);
	width: min(100% - (var(--gutter) * 2), var(--shell));
}

.tm-hero__copy { max-width: 610px; }

.tm-hero__title {
	font-size: clamp(42px, 6.6vw, 78px);
	color: #fff;
	margin: 0 0 18px;
	font-weight: 600;
}
.tm-hero__title span { display: block; }

.tm-hero__text {
	color: rgba(255, 255, 255, .84);
	font-size: clamp(16px, 1.5vw, 18.5px);
	max-width: 46ch;
	margin-bottom: 30px;
}

.tm-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.tm-hero__badge {
	position: relative;
	flex: none;
	width: 132px;
	height: 132px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--green-deep);
	border: 2px solid var(--gold);
	box-shadow: 0 0 0 8px rgba(204, 164, 53, .14);
	color: var(--gold);
}
.tm-hero__badge-ring {
	position: absolute;
	inset: 12px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px dashed rgba(204, 164, 53, .55);
	font-size: 8.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold-light);
	text-align: center;
	padding: 0 10px;
	line-height: 1.5;
}
/* =========================================================================
   5. SHARED SECTION FURNITURE
   ========================================================================= */

.tm-section { padding-block: var(--section-y); }
.tm-section--tint { background: var(--tint); }

.tm-head {
	max-width: 760px;
	margin: 0 auto clamp(40px, 5vw, 64px);
	text-align: center;
}
.tm-head__text { color: var(--muted); margin: 14px auto 0; max-width: 56ch; }

.tm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.tm-eyebrow::before,
.tm-eyebrow::after {
	content: "";
	width: 26px;
	height: 1px;
	background: var(--gold);
	opacity: .7;
}
.tm-eyebrow--light { color: var(--gold-light); }
.tm-eyebrow--light em { font-family: var(--serif); font-size: 14px; letter-spacing: .04em; text-transform: none; }

.tm-h2 { font-size: clamp(30px, 4.2vw, 50px); margin: 0; }
.tm-h2--light { color: #fff; }

.tm-flourish {
	display: block;
	width: 190px;
	height: 12px;
	margin: 0 0 24px;
	background:
		linear-gradient(90deg, var(--gold), rgba(204, 164, 53, 0)) left center / 100% 1px no-repeat;
	position: relative;
}
.tm-flourish::after {
	content: "";
	position: absolute;
	left: 84px;
	top: 3px;
	width: 7px;
	height: 7px;
	background: var(--gold);
	transform: rotate(45deg);
}

.tm-grid { display: grid; gap: 26px; }
.tm-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* =========================================================================
   6. MARQUEE
   ========================================================================= */

.tm-marquee {
	background: var(--green);
	color: var(--gold-light);
	overflow: hidden;
	padding-block: 15px;
	border-block: 1px solid rgba(204, 164, 53, .25);
}
.tm-marquee__track {
	display: flex;
	align-items: center;
	gap: 30px;
	width: max-content;
	animation: tm-scroll 34s linear infinite;
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(15px, 1.7vw, 20px);
	white-space: nowrap;
}
.tm-marquee__dot {
	width: 6px;
	height: 6px;
	background: var(--gold);
	transform: rotate(45deg);
	flex: none;
}
@keyframes tm-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.tm-marquee__track { animation: none; }
	html { scroll-behavior: auto; }
}

/* =========================================================================
   7. MEDIA + PLACEHOLDERS
   ========================================================================= */

.tm-media {
	position: relative;
	aspect-ratio: var(--ratio, 4 / 3);
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--tint);
}
.tm-media__img,
.tm-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.tm-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 20px;
	text-align: center;
	border: 1.5px dashed rgba(204, 164, 53, .6);
	border-radius: inherit;
	background:
		repeating-linear-gradient(135deg, rgba(204, 164, 53, .05) 0 12px, transparent 12px 24px),
		var(--tint);
	color: var(--green);
}
.tm-placeholder__mark {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(204, 164, 53, .18);
	border: 1px solid rgba(204, 164, 53, .5);
	position: relative;
	flex: none;
}
.tm-placeholder__mark::before,
.tm-placeholder__mark::after {
	content: "";
	position: absolute;
	background: var(--gold-deep);
}
.tm-placeholder__mark::before { left: 50%; top: 9px; width: 1.5px; height: 16px; transform: translateX(-50%); }
.tm-placeholder__mark::after  { top: 50%; left: 9px; height: 1.5px; width: 16px; transform: translateY(-50%); }

.tm-placeholder__label {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1.4;
}
.tm-placeholder__note {
	font-size: 12.5px;
	color: var(--muted);
	max-width: 34ch;
	line-height: 1.5;
}
.tm-placeholder__how {
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold-deep);
	background: rgba(204, 164, 53, .12);
	border-radius: 999px;
	padding: 4px 12px;
	margin-top: 3px;
}

.tm-placeholder--hero {
	position: relative;
	height: 100%;
	background:
		repeating-linear-gradient(135deg, rgba(204, 164, 53, .07) 0 14px, transparent 14px 28px),
		var(--green-deep);
	color: var(--gold-light);
	border-color: rgba(204, 164, 53, .45);
	border-radius: 0;
	gap: 12px;
	/* Keep the empty-state notice out from behind the hero copy. */
	align-items: flex-end;
	justify-content: flex-end;
	text-align: right;
	padding: 40px clamp(24px, 5vw, 64px) 48px;
}
.tm-placeholder--hero .tm-placeholder__label { font-size: 15px; }
.tm-placeholder--hero .tm-placeholder__note { color: rgba(255, 255, 255, .6); max-width: 52ch; }

/* =========================================================================
   8. SERVICE CARDS
   ========================================================================= */

.tm-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tm-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
	border-color: rgba(204, 164, 53, .5);
}
.tm-card:hover .tm-media__img { transform: scale(1.05); }

.tm-card__media { position: relative; }
.tm-card__media .tm-media { border-radius: 0; }

.tm-card__icon {
	position: absolute;
	left: 50%;
	bottom: -22px;
	transform: translateX(-50%);
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--green);
	color: var(--gold);
	border: 3px solid #fff;
	box-shadow: var(--shadow-sm);
}

.tm-card__body { padding: 34px 24px 28px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.tm-card__title { font-size: 20px; margin: 0 0 8px; }
.tm-card__text { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

.tm-ticks { text-align: left; display: grid; gap: 8px; margin-top: auto; }
.tm-ticks li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 14px;
	color: var(--body);
}
.tm-ticks .tm-icon { color: var(--gold-deep); margin-top: 5px; }

/* =========================================================================
   9. MORE SERVICES (icon-led, no photography)
   ========================================================================= */

.tm-more {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 22px;
	margin-top: 26px;
	padding-top: 34px;
	border-top: 1px solid var(--line);
}
.tm-more__item {
	text-align: center;
	padding: 6px 8px;
}
.tm-more__icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: rgba(204, 164, 53, .12);
	border: 1px solid rgba(204, 164, 53, .35);
	color: var(--gold-deep);
	transition: background .25s ease, color .25s ease, transform .25s ease;
}
.tm-more__item:hover .tm-more__icon {
	background: var(--green);
	border-color: var(--green);
	color: var(--gold-light);
	transform: translateY(-3px);
}
.tm-more__item h3 { font-size: 17px; margin: 0 0 6px; }
.tm-more__item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; }

.tm-more__cta {
	margin: 34px 0 0;
	text-align: center;
	font-size: 15.5px;
	color: var(--muted);
}
.tm-more__cta a {
	color: var(--gold-deep);
	font-weight: 600;
	border-bottom: 1px solid rgba(204, 164, 53, .5);
}

/* =========================================================================
   10. CONTACT
   ========================================================================= */

.tm-contact {
	background: linear-gradient(140deg, var(--green) 0%, var(--green-deep) 70%);
	position: relative;
	overflow: hidden;
}
.tm-contact::before {
	content: "";
	position: absolute;
	left: -12%;
	bottom: -40%;
	width: 60%;
	height: 150%;
	border-radius: 50%;
	border-right: 10px solid rgba(204, 164, 53, .35);
	pointer-events: none;
}

.tm-contact__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
.tm-contact__copy p { color: rgba(255, 255, 255, .78); max-width: 46ch; }
.tm-contact__copy .tm-h2 { margin-bottom: 18px; }

.tm-contact__list { display: grid; gap: 14px; margin-top: 26px; }
.tm-contact__list li {
	display: flex;
	align-items: center;
	gap: 14px;
	color: rgba(255, 255, 255, .9);
	font-size: 15.5px;
}
.tm-contact__list .tm-icon { color: var(--gold); }
.tm-contact__list a { color: #fff; }
.tm-contact__list a:hover { color: var(--gold-light); }

.tm-formcard {
	background: #fff;
	border-radius: var(--radius);
	padding: clamp(26px, 3.4vw, 40px);
	box-shadow: var(--shadow-lg);
	border-top: 4px solid var(--gold);
}
.tm-formcard h3 { font-size: 24px; margin-bottom: 20px; }

.tm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tm-form__row { display: grid; gap: 6px; margin: 0; }
.tm-form__row--full { grid-column: 1 / -1; }
.tm-form label {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--green);
}
.tm-form input,
.tm-form select,
.tm-form textarea {
	width: 100%;
	font-family: var(--sans);
	font-size: 15px;
	color: var(--ink);
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--tint);
	transition: border-color .2s ease, background .2s ease;
}
.tm-form input:focus,
.tm-form select:focus,
.tm-form textarea:focus {
	border-color: var(--gold);
	background: #fff;
	outline: none;
}
.tm-form textarea { resize: vertical; }
.tm-form__note { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.tm-form__note a { color: var(--gold-deep); font-weight: 600; }
/* =========================================================================
   11. INNER PAGES (page.php / single.php)
   ========================================================================= */

.tm-inner__body { max-width: 760px; }
.tm-inner__body .tm-head { text-align: left; margin-bottom: 32px; }
.tm-inner__body h2 { font-size: 30px; margin-top: 1.6em; }
.tm-inner__body h3 { font-size: 23px; margin-top: 1.4em; }
.tm-inner__body ul,
.tm-inner__body ol { list-style: revert; padding-left: 1.3em; margin-bottom: 1.2em; }
.tm-inner__body li { margin-bottom: .4em; }
.tm-inner__body a { color: var(--gold-deep); text-decoration: underline; }
.tm-inner__thumb { border-radius: var(--radius); margin-bottom: 28px; }
.tm-inner__body blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--gold);
	font-family: var(--serif);
	font-style: italic;
	font-size: 19px;
	color: var(--ink);
}

/* =========================================================================
   12. RESPONSIVE
   ========================================================================= */

@media (max-width: 1080px) {
	.tm-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.tm-more    { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
}

@media (max-width: 960px) {
	.tm-hero__badge { display: none; }
	.tm-hero__arc { opacity: .4; }
	.tm-contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
	.tm-grid--3,
	.tm-form { grid-template-columns: 1fr; }

	.tm-more { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
	.tm-more__item p { font-size: 13px; }

	.tm-hero { min-height: auto; }
	/* Keep the empty-hero notice from colliding with the stacked copy. */
	.tm-placeholder--hero > * { display: none; }
	.tm-hero__title { font-size: clamp(36px, 10vw, 48px); }
	.tm-hero__actions .tm-btn { flex: 1 1 auto; }
}
