/* Three Brothers theme styles.
   Colours and fonts come from theme.json presets. This file holds what blocks cannot express:
   the brushed-metal grounds, gold-ruled labels, photo plates and section layouts. */

:root {
	--tb-green: var(--wp--preset--color--primary);
	--tb-green-light: var(--wp--preset--color--primary-light);
	--tb-gold: var(--wp--preset--color--accent);
	--tb-gold-light: var(--wp--preset--color--accent-light);
	--tb-gold-dark: var(--wp--preset--color--accent-dark);
	--tb-steel: var(--wp--preset--color--steel);
	--tb-line: var(--wp--preset--color--line);
	--tb-soft: var(--wp--preset--color--ink-soft);
	--tb-on-green: #cdd7d1;
	--tb-display: var(--wp--preset--font-family--heading);
}

/* Sections sit flush against each other; spacing lives inside each section. */
.wp-site-blocks > * { margin-block-start: 0; }
.tb-main > * { margin-block-start: 0 !important; }
h1, h2, h3 { text-wrap: balance; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--tb-gold); outline-offset: 3px; }

/* Brushed-metal green ground, taken from the logo finish */
.tb-brushed {
	background-color: var(--tb-green);
	background-image:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 3px),
		linear-gradient(120deg, #0b2a1b 0%, #17402b 55%, #0b2a1b 100%);
	color: var(--tb-on-green);
}
.tb-brushed :is(h1, h2, h3, h4) { color: #ffffff; }
.tb-brushed a { color: var(--tb-on-green); }
.tb-brushed a:hover { color: #ffffff; }

/* Gold-ruled label, as in the logo's second line */
.tb-ruled {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-family: var(--tb-display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--tb-gold-dark);
}
.tb-ruled::after { content: ""; height: 1px; width: 44px; background: currentColor; }
.tb-brushed .tb-ruled { color: var(--tb-gold-light); }

/* Photo plate: brushed steel panel that stands in for product photography */
.tb-plate {
	position: relative;
	display: grid;
	place-items: center;
	border: 1px solid var(--tb-gold);
	border-radius: 2px;
	background-color: var(--tb-steel);
	background-image:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0px, rgba(255, 255, 255, 0.5) 1px, transparent 1px, transparent 4px),
		linear-gradient(115deg, #b9c0c2 0%, #eef1f1 38%, #c7cdcf 62%, #e6eaea 100%);
}
.tb-plate > * { margin: 0; }
.tb-plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-todo {
	padding: 3px 10px;
	border: 1px dashed var(--tb-gold-dark);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.75);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tb-gold-dark);
}

/* Buttons */
.wp-block-button__link { transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.tb-btn-gold .wp-block-button__link { background: var(--tb-gold-light); color: var(--tb-green); }
.tb-btn-gold .wp-block-button__link:hover { background: #e4cd9d; color: var(--tb-green); }
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid var(--tb-green);
	background: transparent;
	color: var(--tb-green);
	padding: 14px 25px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--tb-green); color: #ffffff; }
.tb-brushed .wp-block-button.is-style-outline .wp-block-button__link { border-color: rgba(214, 185, 129, 0.6); color: var(--tb-gold-light); }
.tb-brushed .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(214, 185, 129, 0.12); color: var(--tb-gold-light); }

/* Top strip */
.tb-topstrip { background: var(--tb-green); color: var(--tb-on-green); padding-block: 9px; }
.tb-topstrip p { margin: 0; font-size: 13px; text-align: center; }

/* Header */
.tb-header { background: #ffffff; border-bottom: 1px solid var(--tb-line); }
.tb-header-row { min-height: 84px; gap: 24px; }
.tb-brand { margin: 0; line-height: 0; }
.tb-brand a {
	display: block;
	width: 230px;
	height: 44px;
	background: url(../img/logo-horizontal.png) left center / contain no-repeat;
	overflow: hidden;
	text-indent: -9999px;
	white-space: nowrap;
}
.tb-header-tools { gap: 18px; }
.tb-nav { font-family: var(--tb-display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.tb-nav .wp-block-navigation__container { gap: 28px; }
.tb-nav .wp-block-navigation-item__content { padding: 8px 0; border-bottom: 2px solid transparent; color: var(--wp--preset--color--contrast); }
.tb-nav .wp-block-navigation-item__content:hover,
.tb-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--tb-gold); }
.tb-nav .wp-block-navigation__responsive-container.is-menu-open { background: #ffffff; padding: 24px; }
.tb-header .wc-block-mini-cart__button { color: var(--tb-green); }

/* Hero */
.tb-hero { padding-block: 72px; }
.tb-hero-cols { gap: 56px; margin-block: 0; }
.tb-hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -0.01em; margin-block: 22px 0; }
.tb-hero h1 em { font-style: normal; color: var(--tb-gold-light); }
.tb-lead { font-size: 18px; max-width: 46ch; margin-block: 22px 0; }
.tb-hero .wp-block-buttons { margin-block-start: 28px; gap: 14px; }
.tb-plate-hero { aspect-ratio: 5 / 4; box-shadow: 0 30px 60px rgba(4, 20, 12, 0.4); }

/* Sections */
.tb-section { padding-block: 84px; }
.tb-section-alt { background: #ffffff; border-block: 1px solid var(--tb-line); }
.tb-section > h2, .tb-steps > h2 { margin-block: 0 40px; }
.tb-section-intro { color: var(--tb-soft); max-width: 60ch; margin-block: -24px 40px; }

/* Categories */
.tb-cats { gap: 24px; margin-block: 0; }
.tb-cat { height: 100%; background: #ffffff; border: 1px solid var(--tb-line); border-radius: 2px; overflow: hidden; transition: border-color 0.18s ease; }
.tb-cat:hover { border-color: var(--tb-gold); }
.tb-cat .tb-plate { border: 0; border-bottom: 1px solid var(--tb-line); border-radius: 0; aspect-ratio: 16 / 9; }
.tb-cat-body { padding: 28px; }
.tb-cat-body > * { margin-block: 0 10px; }
.tb-cat-body h3 { font-size: 22px; }
.tb-cat-body h3 a { text-decoration: none; }
.tb-cat-body p { color: var(--tb-soft); font-size: 15px; }
.tb-more { margin: 0 !important; }
.tb-more a { font-family: var(--tb-display); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tb-gold-dark); text-decoration: none; }
.tb-more a::after { content: " \2192"; }

/* Why stainless steel: heading on the left, points on the right */
.tb-why-cols { gap: 56px; margin-block: 0; }
.tb-why-cols h2 { margin-block: 0 14px; }
.tb-why-cols .tb-section-intro { margin-block: 0; }
.tb-why-item { border-top: 1px solid var(--tb-gold); padding-block: 20px; }
.tb-why-item > * { margin-block: 0; }
.tb-why-item h3 { font-size: 19px; margin-block-end: 6px; }
.tb-why-item p { color: var(--tb-soft); }

/* How ordering works */
.tb-steps { padding-block: 76px; }
.tb-steps-cols { gap: 40px; margin-block: 0; }
.tb-step { border-top: 1px solid rgba(214, 185, 129, 0.45); padding-top: 22px; }
.tb-step > * { margin-block: 0 8px; }
.tb-step-num { font-family: var(--tb-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--tb-gold-light); font-variant-numeric: tabular-nums; }
.tb-step h3 { font-size: 18px; font-weight: 600; }
.tb-step p:last-child { font-size: 15px; margin: 0; }

/* WhatsApp call to action */
.tb-cta { background: #ffffff; border-top: 1px solid var(--tb-line); padding-block: 52px; }
.tb-cta-row { gap: 22px; }
.tb-cta h2 { font-size: 26px; margin: 0 0 6px; }
.tb-cta p { color: var(--tb-soft); margin: 0; }

/* Footer */
.tb-footer { padding-block: 64px 28px; font-size: 15px; }
.tb-footer-cols { gap: 40px; margin-block: 0; }
.tb-footer-brand { margin: 0 0 16px; }
.tb-footer-brand a {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	padding-inline-start: 64px;
	background: url(../img/mark.png) left center / 50px auto no-repeat;
	font-family: var(--tb-display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.12em;
	line-height: 1.35;
	text-transform: uppercase;
	color: #ffffff;
	text-decoration: none;
}
.tb-foot-h { font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tb-gold-light) !important; margin-block: 0 16px; }
.tb-links { list-style: none; margin: 0; padding: 0; }
.tb-links li { margin-block-end: 10px; }
.tb-links a { text-decoration: none; }
.tb-legal { margin-block-start: 48px; padding-top: 22px; border-top: 1px solid rgba(214, 185, 129, 0.28); font-size: 13px; color: #9fb0a6; gap: 10px 24px; }
.tb-legal p { margin: 0; }

/* Floating WhatsApp button */
.tb-wa-float { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 30; margin: 0; }
.tb-wa-float a {
	display: inline-flex;
	align-items: center;
	height: 52px;
	padding: 0 22px;
	border-radius: 26px;
	background: #1f7a4a;
	color: #ffffff;
	font-family: var(--tb-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(11, 42, 27, 0.3);
}
.tb-wa-float a:hover { background: #24905a; color: #ffffff; }

/* Inner pages */
.tb-page { padding-block: 56px 84px; }
.tb-page > .wp-block-post-title { margin-block: 0 28px; }

/* WooCommerce */
.wc-block-product, .wc-block-grid__product, ul.products li.product { background: var(--wp--preset--color--base); border: 1px solid var(--tb-line); border-radius: 2px; padding-bottom: 20px; }
.wc-block-product .wp-block-post-title, .wc-block-product h3 { font-size: 17px; font-weight: 600; padding-inline: 16px; }
.wc-block-product .wp-block-post-title a { text-decoration: none; }
.wc-block-components-product-price, .wp-block-woocommerce-product-price { font-family: var(--tb-display); font-weight: 700; color: var(--wp--preset--color--contrast); }
.woocommerce-store-notice, .wc-block-components-notice-banner { border-radius: 2px; }
.tb-shop-empty { color: var(--tb-soft); }

/* Coming soon page */
.tb-soon { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 100vh; margin: 0; }
.tb-soon > * { margin: 0 !important; }
.tb-soon-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(24px, 7vw, 110px); }
.tb-soon-copy > * { margin-block: 0; }
.tb-soon-brand { font-family: var(--tb-display); font-weight: 700; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: #ffffff; margin-block-end: 72px !important; }
.tb-soon-brand span { display: block; font-weight: 500; font-size: 10px; letter-spacing: 0.34em; color: var(--tb-gold-light); margin-top: 4px; }
.tb-soon h1 { font-size: 54px; line-height: 1.08; letter-spacing: -0.01em; margin-block: 22px 0; }
.tb-soon h1 em { font-style: normal; color: var(--tb-gold-light); }
.tb-soon .tb-lead { margin-block: 22px 0; }
.tb-soon-notes { margin-block-start: 44px !important; padding-top: 22px; border-top: 1px solid rgba(214, 185, 129, 0.35); font-size: 14px; }
.tb-soon-plate { border: 0; border-radius: 0; border-inline-start: 1px solid var(--tb-gold); }
.tb-soon-mark { width: min(62%, 360px); aspect-ratio: 490 / 480; background: url(../img/mark.png) center / contain no-repeat; overflow: hidden; text-indent: -9999px; filter: drop-shadow(0 24px 30px rgba(11, 42, 27, 0.28)); }

/* Tablet */
@media (max-width: 1024px) {
	.tb-hero { padding-block: 56px; }
	.tb-hero h1 { font-size: 40px; }
	.tb-nav .wp-block-navigation__container { gap: 18px; }
	.tb-nav { font-size: 12px; }
	.tb-brand a { width: 190px; }
	.tb-soon h1 { font-size: 42px; }
}

/* Mobile */
@media (max-width: 781px) {
	body { --wp--style--root--padding-left: 16px; --wp--style--root--padding-right: 16px; }
	.tb-header-row { min-height: 68px; gap: 12px; }
	.tb-brand a { width: 170px; height: 36px; }
	.tb-hero h1 { font-size: 34px; }
	.tb-lead { font-size: 16px; }
	.tb-hero .wp-block-button, .tb-hero .wp-block-button__link, .tb-cta .wp-block-button, .tb-cta .wp-block-button__link { width: 100%; }
	.tb-section { padding-block: 56px; }
	.tb-section > h2, .tb-steps > h2 { font-size: 26px; margin-block-end: 28px; }
	.tb-steps { padding-block: 56px; }
	.tb-why-cols { gap: 28px; }
	.tb-wa-float a { height: 48px; padding: 0 18px; }
	.tb-soon { grid-template-columns: 1fr; }
	.tb-soon-plate { order: -1; min-height: 240px; border-inline-start: 0; border-bottom: 1px solid var(--tb-gold); }
	.tb-soon-mark { width: 150px; }
	.tb-soon-copy { padding: 44px 20px 56px; }
	.tb-soon-brand { margin-block-end: 40px !important; }
	.tb-soon h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
