/*
Theme Name: Loombrook
Theme URI: https://loombrook.com
Author: Loombrook
Description: Custom theme for Loombrook. Calm and architectural: chalk and graphite, one ultramarine accent, square corners, rugs shot as architecture. Mobile first.
Version: 1.0.1
Requires PHP: 8.0
Text Domain: loombrook
*/

/* Design read: premium home-goods DTC coming-soon page for design-conscious buyers
   spending ~$900-1,000 on a rug, mostly arriving from Meta ads on phones. Calm,
   architectural, texture first. Dials: VARIANCE 6, MOTION 2 (one reveal), DENSITY 2.
   Every rug competitor is warm cream/clay/terracotta with Atlas-mountain stories and
   serif or Jost type, so this is cool chalk + graphite, ultramarine used sparingly,
   Archivo (wide cut for display), zero radius everywhere. Page theme is light-locked. */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo.woff2") format("woff2");
	font-weight: 300 800;
	font-stretch: 62% 125%;
	font-display: swap;
}

:root {
	--bg: #f3f4f2;
	--bg-2: #e9ebe8;
	--surface: #ffffff;
	--ink: #17191c;
	--ink-2: #40454b;
	--muted: #5f656c;
	--line: #cfd3cf;
	--accent: #2a3fd6;
	--accent-2: #1f31b3;
	--accent-ink: #f7f8ff;
	--danger: #b3261e;
	--radius: 0px;
	--wrap: 1280px;
	--gutter: clamp(16px, 4vw, 44px);
	--font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.62;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.br-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: .7rem 1rem; }
.br-skip:focus { left: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.br-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.br-section { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); }

/* ---------- type ---------- */
.br-h1, .br-h2, .br-h3 { margin: 0; font-weight: 640; font-stretch: 112%; letter-spacing: -0.03em; }
.br-h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.0; }
.br-h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); line-height: 1.05; }
.br-h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.2; letter-spacing: -0.015em; }
.br-lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 42ch; margin: 1.2rem 0 0; }
.br-body { color: var(--ink-2); max-width: 64ch; }
.br-small { color: var(--muted); font-size: .92rem; max-width: 40ch; }

/* ---------- header: ONE row at every width ---------- */
.br-header { position: sticky; top: 0; z-index: 40; background: rgba(243, 244, 242, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.br-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: nowrap; }
.br-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.br-brand:hover { color: var(--ink); }
.br-word { font-weight: 700; font-stretch: 125%; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.br-nav { display: flex; align-items: center; gap: clamp(4px, 1.6vw, 26px); flex-wrap: nowrap; white-space: nowrap; }
.br-nav > a, .br-dd > summary { font-size: .95rem; font-weight: 520; text-decoration: none; padding: 8px 4px; cursor: pointer; }
.br-nav > a:hover, .br-dd > summary:hover { color: var(--accent); }
.br-dd { position: relative; }
.br-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; }
.br-dd > summary::-webkit-details-marker { display: none; }
.br-dd > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.br-dd[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.br-dd-panel { position: absolute; top: calc(100% + 12px); left: -12px; min-width: 230px; display: grid; padding: 8px 0; background: var(--surface); border: 1px solid var(--ink); }
.br-dd-right { left: auto; right: -12px; }
.br-dd-panel a { padding: 11px 18px; text-decoration: none; font-weight: 500; }
.br-dd-panel a:hover { background: var(--bg-2); color: var(--ink); }
.br-cart { display: inline-flex; align-items: center; gap: 8px; }
.br-cart-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 600; }

.br-nav-narrow { display: none; }
@media (max-width: 760px) {
	.br-nav-wide { display: none; }
	.br-nav-narrow { display: block; }
	.br-word { font-size: .9rem; letter-spacing: .12em; }
}
@media (max-width: 360px) { .br-word { display: none; } }

/* ---------- buttons + sign-up ---------- */
.br-btn, .sc-button, .button, button.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 0;
	background: var(--ink); color: var(--bg) !important; font: 600 .98rem/1 var(--font); letter-spacing: .02em;
	text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.br-btn:hover, .sc-button:hover, .button:hover, #place_order:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) !important; }
.br-btn:active, .sc-button:active, .button:active, #place_order:active { transform: translateY(1px); }

.sc-signup { margin-top: 2rem; max-width: 520px; }
.sc-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.sc-row { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.sc-input, .input-text, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
	width: 100%; min-height: 52px; padding: 0 16px; border-radius: 0;
	border: 1px solid #8a9096; background: var(--surface); color: var(--ink); font: 400 1rem/1.3 var(--font);
}
textarea { padding: 14px 16px; min-height: 120px; }
.sc-row .sc-input { border-right: 0; }
.sc-input::placeholder, .input-text::placeholder { color: #6f757b; }
.sc-input:focus, .input-text:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sc-note { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.sc-status { margin: 8px 0 0; min-height: 1.4em; font-weight: 600; color: var(--accent); }
.sc-signup.is-error .sc-status { color: var(--danger); }
.sc-signup.is-error .sc-input { border-color: var(--danger); }
.sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
	.sc-row { grid-template-columns: 1fr; gap: 10px; }
	.sc-row .sc-input { border-right: 1px solid #8a9096; }
	.sc-button { width: 100%; }
}

/* ---------- home: hero (image full-bleed left, copy right) ---------- */
.lb-hero { display: grid; grid-template-columns: 1fr; }
.lb-hero-media { margin: 0; aspect-ratio: 4 / 5; max-height: 72vh; overflow: hidden; background: var(--bg-2); order: 2; }
.lb-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.lb-hero-copy { padding: 36px var(--gutter) 44px; order: 1; }
@media (min-width: 900px) {
	.lb-hero { grid-template-columns: 1.05fr .95fr; min-height: calc(100dvh - 65px); }
	.lb-hero-media { order: 1; max-height: none; aspect-ratio: auto; }
	.lb-hero-copy { order: 2; align-self: center; padding: 64px clamp(40px, 6vw, 96px); }
}

/* ---------- home: the pair (captions below images, never over them) ---------- */
.lb-pair { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
.lb-pair figure { margin: 0; }
.lb-pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-2); }
.lb-pair figcaption { margin-top: 14px; color: var(--ink-2); max-width: 46ch; }
.lb-pair figcaption strong { color: var(--ink); font-weight: 620; }
@media (min-width: 900px) {
	.lb-pair { grid-template-columns: 1fr 1fr; gap: 24px; }
	.lb-pair-b { margin-top: 96px; }
}

/* ---------- home: statement (graphite field, the one dark block) ---------- */
.lb-statement { background: var(--ink); color: var(--bg); }
.lb-statement .br-wrap { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); }
.lb-statement-h { margin: 0; font-weight: 640; font-stretch: 118%; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 18ch; }
.lb-statement-b { margin: 1.4rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c8ccd0; max-width: 52ch; }

/* ---------- home: checked before listed ---------- */
.lb-check { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.lb-check-media { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.lb-check-media img { width: 100%; height: 100%; object-fit: cover; }
.lb-check-body { margin-top: 1.2rem; }
@media (min-width: 900px) { .lb-check { grid-template-columns: .8fr 1.2fr; gap: 80px; } }

/* ---------- home: join ---------- */
.lb-join { border-top: 1px solid var(--line); background: var(--bg-2); }
.lb-join-inner { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: end; }
@media (min-width: 900px) { .lb-join-inner { grid-template-columns: 1fr 1fr; gap: 80px; } }
.lb-join .sc-signup { margin-top: 0; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
	.br-reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
	.br-reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- prose pages ---------- */
.br-page-title { margin-bottom: 1.8rem; }
.br-prose { max-width: 760px; }
.br-prose .br-body h2 { color: var(--ink); font-size: 1.3rem; font-weight: 640; font-stretch: 110%; letter-spacing: -0.015em; margin: 2.4rem 0 .6rem; }
.br-prose .br-body h3 { color: var(--ink); font-size: 1.08rem; margin: 1.6rem 0 .4rem; }
.br-prose .br-body ul { padding-left: 1.2rem; }
.br-prose .br-body a { color: var(--accent); }
.br-prose details { border-top: 1px solid var(--line); padding: 18px 0; }
.br-prose details:last-of-type { border-bottom: 1px solid var(--line); }
.br-prose summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.06rem; }
.br-prose details p { margin: .6rem 0 0; }

/* ---------- store ---------- */
.br-store h1.page-title, .br-store .woocommerce-products-header__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 640; font-stretch: 112%; letter-spacing: -0.03em; margin: 0 0 1rem; }
.br-store .term-description { color: var(--ink-2); max-width: 60ch; }
.woocommerce-result-count, .woocommerce-ordering { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.woocommerce-ordering select { min-height: 42px; width: auto; }
ul.products { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 28px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; } }
ul.products li.product { margin: 0; padding: 0; width: auto; float: none; }
ul.products li.product a { text-decoration: none; }
ul.products li.product img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); }
ul.products li.product h2 { font-size: 1rem; font-weight: 600; margin: .9rem 0 .2rem; }
ul.products li.product .price { color: var(--ink-2); }
.br-empty { max-width: 620px; padding: 32px 0; }
.br-empty .br-body { margin-top: .6rem; }

.single-product div.product { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .single-product div.product { grid-template-columns: 1.2fr .8fr; gap: 64px; } }
.single-product div.product .woocommerce-product-gallery { margin: 0; width: auto; float: none; }
.single-product div.product .summary { margin: 0; width: auto; float: none; }
.single-product .product_title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 640; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 .6rem; }
.single-product .price { font-size: 1.25rem; font-weight: 600; }
.single-product .woocommerce-tabs, .single-product .related, .single-product .upsells { grid-column: 1 / -1; }
.woocommerce-tabs ul.tabs { list-style: none; padding: 0; display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 0; text-decoration: none; font-weight: 600; }
.woocommerce-tabs ul.tabs li.active a { box-shadow: inset 0 -2px 0 var(--ink); }
form.cart { display: flex; gap: 10px; align-items: stretch; margin: 1.4rem 0; }
form.cart .quantity input { width: 84px; text-align: center; }
.br-assurances { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.br-assurances li { padding-left: 20px; position: relative; }
.br-assurances li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--accent); }

.br-store-page { max-width: 1100px; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 1.4rem; padding: 14px 18px; background: var(--surface); border: 1px solid var(--ink); }
.woocommerce-error { border-color: var(--danger); color: var(--danger); }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; margin-left: 12px; }
table.shop_table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--surface); }
table.shop_table th, table.shop_table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table img { width: 64px; }
.cart-collaterals { margin-top: 28px; }
.cart_totals h2, #order_review_heading, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { font-size: 1.25rem; font-weight: 640; font-stretch: 110%; }
form.checkout { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 960px) {
	form.checkout { grid-template-columns: 1.1fr .9fr; }
	form.checkout #customer_details { grid-row: 1 / span 2; }
}
.col2-set .col-1, .col2-set .col-2 { width: auto; float: none; }
.form-row { margin: 0 0 14px; }
.form-row label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
#payment { background: var(--surface); border: 1px solid var(--line); padding: 18px; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 14px; }
#payment .payment_box { background: var(--bg); padding: 14px; color: var(--ink-2); }
#place_order { width: 100%; margin-top: 12px; }
.select2-container--default .select2-selection--single { min-height: 52px; border-radius: 0 !important; border: 1px solid #8a9096 !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 50px !important; padding-left: 16px !important; }

/* ---------- footer ---------- */
.br-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.br-footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.br-footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .br-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .br-footer-brand { grid-column: auto; } }
.br-footer-h { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.br-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.br-footer ul a { text-decoration: none; color: var(--ink-2); }
.br-footer ul a:hover { color: var(--accent); }
.br-footer .br-small { margin-top: 14px; }
.br-colophon { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
