/*
Theme Name: Websites on the House
Author: Laura
Description: The help I wish I'd had at the start. A warm, friendly block theme for Websites on the House, with an editable homepage built from ready-made sections.
Version: 1.9.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: websites-on-the-house
*/

/* ---------- Basics ---------- */
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
.wp-block-image { margin: 0; }

/* ---------- Type helpers ---------- */
.woth-label {
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.5;
	margin: 0;
}
.woth-bold,
.woth-thin {
	text-transform: uppercase;
	margin: 0 !important;
	font-size: clamp(52px, 8vw, 116px) !important;
}
.woth-bold { font-weight: 800 !important; line-height: 0.88 !important; letter-spacing: -0.04em !important; }
.woth-thin { font-weight: 200 !important; line-height: 0.95 !important; letter-spacing: -0.03em !important; }
.woth-bold.is-huge,
.woth-thin.is-huge { font-size: clamp(56px, 10vw, 150px) !important; }
.woth-heading-pair { gap: 0 !important; }
.woth-heading-pair > * { margin-block: 0 !important; }

/* ---------- Header ---------- */
.woth-banner {
	background: var(--wp--preset--color--butter);
	padding-block: 12px;
	font-size: 14px;
	font-weight: 500;
}
.woth-banner p { margin: 0; }
.woth-header { padding-block: 14px; background: var(--wp--preset--color--cream); }
.woth-brand { gap: 12px !important; align-items: center; }
.woth-logo img { width: 52px; height: 52px; display: block; }
.woth-brand .wp-block-site-title,
.woth-brand .woth-site-name {
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	margin: 0;
}
.woth-brand .wp-block-site-title a,
.woth-brand .woth-site-name a { text-decoration: none; }
.woth-nav-wrap { gap: 22px !important; align-items: center; }
.woth-nav-wrap .wp-block-navigation { font-size: 15px; font-weight: 500; }
.woth-nav-wrap .wp-block-navigation a { text-decoration: none; }
.woth-nav-wrap .wp-block-button__link { padding: 11px 20px; font-size: 14px; }

/* ---------- Hero ---------- */
.woth-hero-photo img {
	width: 100%;
	height: clamp(220px, 28vw, 360px);
	object-fit: cover;
	display: block;
}
.woth-hero {
	position: relative;
	background: var(--wp--preset--color--periwinkle);
	padding-top: clamp(36px, 5vw, 64px);
	padding-bottom: 28px;
}
.woth-hero .woth-thin { color: var(--wp--preset--color--white); }
.woth-hero-star {
	position: absolute !important;
	right: clamp(16px, 6vw, 80px);
	top: -80px;
	width: 160px;
	transform: rotate(10deg);
	z-index: 2;
}
.woth-hero-foot { margin-top: 40px !important; align-items: flex-end; }
.woth-details { gap: 32px !important; }

/* ---------- About ---------- */
.woth-about { background: var(--wp--preset--color--cream-light); padding-block: clamp(40px, 5vw, 72px); }
.woth-about-top { align-items: flex-end !important; }
.woth-about-word {
	font-weight: 800 !important;
	font-size: clamp(56px, 8vw, 110px) !important;
	line-height: 0.82 !important;
	letter-spacing: -0.04em !important;
	position: relative;
	z-index: 1;
	margin: 0 !important;
}
.woth-photo img { width: 100%; height: 320px; object-fit: cover; display: block; }
.woth-quote {
	font-weight: 300;
	font-size: clamp(26px, 3vw, 36px) !important;
	line-height: 1.2;
	margin: 0;
}
.woth-quote-box {
	border-top: 1px solid #D6D4CC;
	border-bottom: 1px solid #D6D4CC;
	padding-block: 28px;
}
.woth-stats {
	position: relative;
	background: var(--wp--preset--color--butter);
	border-radius: 16px;
	padding: 40px 32px;
}
.woth-stats .woth-big {
	font-weight: 800;
	font-size: 56px !important;
	line-height: 1;
	letter-spacing: -0.03em;
	margin: 0;
}
.woth-sticker-design {
	position: absolute !important;
	right: 16px;
	top: -58px;
	width: 124px;
	transform: rotate(-12deg);
}

/* ---------- The help I wish I'd had ---------- */
.woth-help { background: var(--wp--preset--color--butter); padding-block: clamp(48px, 6vw, 88px); }
.woth-help-cols { align-items: flex-end !important; }
.woth-signature {
	font-family: var(--wp--preset--font-family--caveat);
	font-size: 44px !important;
	line-height: 1;
	margin: 0;
}
.woth-note { font-size: 14px !important; font-style: italic; }
.woth-promise {
	background: var(--wp--preset--color--cream);
	border-radius: 12px;
	padding: 20px 22px;
}
.woth-promise p { margin: 0; }
.woth-promise .woth-card-title { font-weight: 700; font-size: 18px; }

/* ---------- How it works ---------- */
.woth-how {
	background: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--white);
	padding-block: clamp(40px, 5vw, 72px);
}
.woth-how .woth-thin { color: var(--wp--preset--color--periwinkle); }
.woth-step { border-top: 1px solid var(--wp--preset--color--periwinkle); padding-top: 18px; }
.woth-step .woth-label { color: var(--wp--preset--color--butter); }
.woth-step-title { font-weight: 600; font-size: 22px !important; margin: 0; }

/* ---------- Icons and cards ---------- */
.woth-icon img { width: 64px; height: 64px; display: block; }
.woth-get { padding-top: clamp(40px, 5vw, 72px); }
.woth-get-head { align-items: center; }
.woth-website-sticker img { width: 260px; display: block; }
.woth-card {
	background: var(--wp--preset--color--cream-light);
	border-radius: 16px;
	padding: 26px;
	gap: 10px !important;
}
.woth-card p { margin: 0; }
.woth-card-title { font-weight: 700; font-size: 19px !important; }

/* ---------- Prices ---------- */
.woth-prices { padding-block: clamp(40px, 5vw, 72px); }
.woth-price-card {
	position: relative;
	background: var(--wp--preset--color--periwinkle);
	border-radius: 12px;
	padding: 26px;
	gap: 10px !important;
}
.woth-price-card p { margin: 0; }
.woth-price {
	font-weight: 700;
	font-size: 40px !important;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.woth-price small { font-size: 16px; font-weight: 500; }
.woth-popular {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--wp--preset--color--butter);
	border-radius: 999px;
	padding: 5px 14px !important;
	font-size: 10px !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------- Comparison ---------- */
.woth-compare-section { background: var(--wp--preset--color--cream-light); padding-block: clamp(40px, 5vw, 72px); }
.woth-compare { overflow-x: auto; border: 1px solid #E2E0D8; border-radius: 12px; }
.woth-compare table { min-width: 720px; border-collapse: collapse; font-size: 15px; }
.woth-compare th,
.woth-compare td { border: 0; border-top: 1px solid #E2E0D8; padding: 16px 18px; text-align: left; vertical-align: top; }
.woth-compare thead th { border-top: 0; background: var(--wp--preset--color--cream); font-weight: 600; }
.woth-compare thead th:nth-child(2) { background: var(--wp--preset--color--butter); font-weight: 700; }
.woth-compare td:first-child { font-weight: 600; }
.woth-compare td:nth-child(2) { background: #FDF8E6; }
.woth-small { font-size: 13px !important; opacity: 0.8; }

/* ---------- Call to action and footer ---------- */
.woth-cta { background: var(--wp--preset--color--periwinkle); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.woth-cta .woth-thin { color: var(--wp--preset--color--white); }
.woth-footer { font-size: 15px; line-height: 1.5; }
.woth-footer p { margin: 0; }
.woth-footer .woth-logo img { width: 56px; height: 56px; }

/* ---------- Ordinary pages and posts ---------- */
.woth-page { padding-block: clamp(40px, 5vw, 72px); }
.woth-page .wp-block-post-title { font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; font-size: clamp(40px, 6vw, 80px); line-height: 0.95; }

/* ---------- Phones ---------- */
@media (max-width: 781px) {
	.woth-about-word { margin-right: 0 !important; }
	.woth-hero-star { width: 110px; top: -55px; }
	.woth-website-sticker img { width: 200px; }
}

/* ---------- Remove the default gaps between full-width sections ---------- */
.wp-site-blocks > * { margin-block-start: 0 !important; }
.woth-main > * { margin-block-start: 0 !important; }
.woth-header,
.woth-footer { padding-inline: clamp(16px, 4vw, 56px); }
.woth-h3 { font-size: 22px !important; font-weight: 500; margin: 0; }

.woth-wordmark img { width: 190px; height: auto; display: block; }

@media (max-width: 781px) { .woth-wordmark img { width: 150px; } }
.woth-compare thead { border-bottom: 0 !important; }
.woth-compare tfoot { border-top: 0 !important; }

.woth-hero-photo img { height: clamp(260px, 34vw, 460px); object-position: center 40%; }
.woth-photo img { height: 360px; }
.woth-cutout { background: var(--wp--preset--color--periwinkle); display: flex; justify-content: center; align-items: flex-end; overflow: hidden; height: 360px; }
.woth-cutout img { width: auto !important; height: 100% !important; object-fit: contain !important; }

/* ---------- Website showcase ---------- */
.woth-showcase { background: var(--wp--preset--color--cream); padding-top: 28px; padding-bottom: 104px; overflow: hidden; }
.woth-showcase .woth-label { margin-bottom: 24px !important; }
.woth-showcase-row { gap: clamp(12px, 2vw, 28px) !important; }
.woth-browser {
	flex: 1 1 0; min-width: 0; max-width: 420px;
	background: #FFFFFF; border-radius: 14px; overflow: hidden;
	box-shadow: 0 18px 40px rgba(58, 46, 40, 0.16);
	padding-top: 28px; position: relative;
}
.woth-browser::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 28px; background: #EDE6D8;
	background-image: radial-gradient(circle at 16px 14px, #D9CDB8 4.5px, transparent 5px), radial-gradient(circle at 31px 14px, #D9CDB8 4.5px, transparent 5px), radial-gradient(circle at 46px 14px, #D9CDB8 4.5px, transparent 5px);
}
.woth-browser img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.woth-browser.is-left { transform: rotate(-3deg) translateY(10px); }
.woth-browser.is-middle { transform: translateY(-12px); }
.woth-browser.is-right { transform: rotate(3deg) translateY(10px); }
.woth-about .woth-photo:first-of-type img { object-position: center 35%; }
@media (max-width: 781px) {
	.woth-showcase-row { flex-wrap: nowrap !important; }
	.woth-browser.is-left, .woth-browser.is-right { display: none; }
	.woth-browser.is-middle { transform: none; max-width: 100%; }
}

/* ---------- Swipeable website examples ---------- */
.woth-showcase { padding-bottom: 96px; }
.woth-showcase-row {
	flex-wrap: nowrap !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 8px 0 28px;
	max-width: none !important;
	gap: 24px !important;
}
.woth-browser,
.woth-browser.is-left,
.woth-browser.is-middle,
.woth-browser.is-right {
	flex: 0 0 min(880px, 84%) !important;
	max-width: none !important;
	transform: none !important;
	display: block !important;
	scroll-snap-align: start;
}
.woth-swipe-hint { font-size: 13px !important; font-weight: 500; margin: 0 !important; }

/* 1.6: FAQs */
.woth-faqs { background: var(--wp--preset--color--cream-light); padding-block: clamp(40px, 5vw, 72px); }
.woth-faq-cols { gap: 40px !important; }
.woth-faq { background: #FFFFFF; border: 1px solid #E5DACA; border-radius: 14px; padding: 18px 22px; margin-block: 0 10px !important; }
.woth-faq summary { cursor: pointer; font-weight: 600; font-size: 18px; line-height: 1.4; }
.woth-faq p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; }

/* 1.6: footer */
.woth-footer { background: var(--wp--preset--color--espresso) !important; color: var(--wp--preset--color--white); padding-block: clamp(40px, 5vw, 64px) 28px !important; display: block !important; }
.woth-footer a { color: var(--wp--preset--color--white); text-decoration: none; }
.woth-footer a:hover { text-decoration: underline; }
.woth-footer-top { gap: 40px !important; align-items: flex-start !important; max-width: 1200px; margin-inline: auto !important; }
.woth-footer-intro { flex: 2 1 340px; max-width: 520px; gap: 18px !important; }
.woth-footer-col { flex: 1 1 160px; gap: 10px !important; font-size: 15px; }
.woth-footer .woth-wordmark img { width: 220px; }
.woth-footer-message { font-size: 22px; font-weight: 300; line-height: 1.4; }
.woth-footer-soft { color: #E9E1D4; font-size: 15px; line-height: 1.6; }
.woth-footer-email a { color: var(--wp--preset--color--butter); font-weight: 600; font-size: 17px; }
.woth-footer-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--periwinkle); }
.woth-footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; margin-top: 40px !important; gap: 12px !important; font-size: 13px; color: #CFC5B6; max-width: 1200px; margin-inline: auto !important; }
.woth-faqs .woth-bold, .woth-faqs .woth-thin { font-size: clamp(44px, 6vw, 84px) !important; }
.woth-footer-col p, .woth-footer-intro p { margin: 0; }

/* 1.7: layout tweaks */
.woth-header { padding-block: 22px 18px !important; align-items: center !important; }
.woth-hero { padding-top: clamp(48px, 6vw, 80px) !important; }
.woth-hero-star { top: 28px !important; }
.woth-hero-intro { max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin-top: 28px !important; }
.woth-showcase { padding-top: clamp(40px, 5vw, 64px) !important; }
.woth-about-top .woth-label { margin-bottom: 18px !important; }
.woth-about-body { align-items: stretch !important; margin-top: 40px !important; }
.woth-about-left, .woth-about-right { display: flex; flex-direction: column; gap: 24px; }
.woth-about-left > *, .woth-about-right > * { margin-block: 0 !important; }
.woth-about-right .woth-stats { margin-top: auto !important; }
.woth-about-right > p { padding-top: 46px; }
.woth-signature { margin-top: 28px !important; }
@media (max-width: 781px) {
	.woth-hero-star { width: 84px !important; top: 14px !important; right: 12px !important; }
	.woth-about-right > p { padding-top: 0; }
	.woth-about-right .woth-stats { margin-top: 56px !important; }
}
.woth-hero .woth-hero-intro { margin-left: 0 !important; margin-right: auto !important; }
@media (max-width: 781px) {
	.woth-header { flex-wrap: nowrap !important; padding-block: 18px 14px !important; }
	.woth-header .woth-nav-wrap .wp-block-buttons { display: none; }
	.woth-header .woth-wordmark img { width: 150px; }
	.woth-hero-star { width: 72px !important; top: -28px !important; right: 14px !important; }
}
@media (max-width: 781px) { .woth-showcase { padding-bottom: 48px !important; } }

/* 1.8: alignment and size fixes */
.woth-hero > *, .woth-showcase > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.woth-hero-foot { display: flex !important; flex-wrap: wrap; justify-content: space-between !important; align-items: flex-end !important; width: 100%; gap: 24px !important; }
.woth-hero-foot .wp-block-buttons { margin: 0 !important; flex: 0 0 auto; justify-content: flex-start !important; }
.woth-hero .woth-details .woth-label { font-size: 14px !important; line-height: 1.5; }
.woth-banner p { font-size: 16px !important; }
.woth-showcase > .woth-label { font-size: 18px !important; letter-spacing: 0.04em; text-align: center; width: 100%; }
.woth-swipe-hint { width: 100%; text-align: center !important; font-size: 15px !important; margin-top: 8px !important; }
.woth-faqs .woth-bold, .woth-faqs .woth-thin { font-size: clamp(40px, 4vw, 64px) !important; white-space: nowrap; }
.woth-footer .woth-wordmark { margin: 0 0 6px !important; }
.woth-footer-intro { gap: 22px !important; }
@media (max-width: 781px) { .woth-hero .woth-details .woth-label { font-size: 12px !important; } .woth-banner p { font-size: 14px !important; } }
.woth-hero > .woth-hero-intro { max-width: 620px !important; }

/* 1.9: founding price */
.woth-price s { font-size: 0.55em; font-weight: 500; opacity: 0.6; margin-right: 4px; }
.woth-founding { display: inline-block; align-self: flex-start; background: var(--wp--preset--color--butter); border-radius: 999px; padding: 4px 12px; font-size: 13px !important; font-weight: 700; line-height: 1.35; }
