/* Chooz Companion 1.1.0 — chooz/section styles (from chooz-production.css). */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@700;900&family=Archivo:wght@400;700&family=Marcellus&family=Albert+Sans:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;700;800&family=Figtree:wght@400;600&display=swap');

/* Chooz Web Studio preview stylesheet.
   Source of truth: wordpress/themes/chooz-production/assets/css/theme.css
   (copied verbatim below the shim — keep in sync when the theme changes).
   The shim replaces WordPress-provided defaults (theme.json font presets and
   layout classes) that don't exist inside the preview iframe. */

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.wp-block-navigation a {
	text-decoration: underline;
}

/* ── theme.css (verbatim) ─────────────────────────────────────────────── */


* {
	box-sizing: border-box;
}

body {
	background: #ffffff;
	color: #0f172a;
	margin: 0;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 1180px;
}

.chooz-preview-topbar {
	background: #211b1d;
	color: #ffffff;
	font-size: 0.82rem;
	font-weight: 800;
	padding: 0.55rem 1.5rem;
}

.chooz-preview-topbar p {
	margin: 0;
}

.chooz-site-header {
	background: #ffffff;
	border-bottom: 1px solid #f1f1f1;
	padding: 1.55rem 1.75rem;
}

.chooz-site-header > .wp-block-group {
	align-items: center;
	gap: 1.5rem;
}

.chooz-brand {
	align-items: center;
	gap: 1rem;
}

.chooz-brand-mark {
	align-items: center;
	background: linear-gradient(135deg, #ff4b00, #dc1f00);
	border-radius: 999px;
	color: #ffffff;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 900;
	height: 44px;
	justify-content: center;
	margin: 0;
	width: 44px;
}

.chooz-site-header .wp-block-site-title {
	color: #d70000;
	font-size: 1.15rem;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
}

.chooz-site-header .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.chooz-header-actions {
	align-items: center;
	gap: 2rem;
}

.chooz-site-header .wp-block-navigation a {
	color: #7f1d1d;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0;
	text-decoration: underline;
	text-transform: uppercase;
	text-underline-offset: 3px;
}

.chooz-header-actions .wp-block-buttons {
	margin: 0;
}

.wp-block-button.chooz-header-quote .wp-block-button__link {
	background: #d70000;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 8px 18px rgba(215, 0, 0, 0.2);
	color: #ffffff;
	font-size: 0.9rem;
	padding: 0.9rem 1.55rem;
	white-space: nowrap;
}

.chooz-page-shell {
	max-width: none;
	padding: 0;
}

.chooz-page-shell > .wp-block-post-content {
	margin: 0;
	max-width: none;
}

.chooz-production-meta,
.chooz-handoff-notes {
	display: none;
}

.chooz-template-module {
	margin: 0;
	max-width: none !important;
	padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2.25rem);
}

.chooz-template-module > * {
	margin-left: auto;
	margin-right: auto;
	max-width: 1040px;
}

.chooz-template-module > p:first-child {
	color: #b91c1c;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

.chooz-template-module h1,
.chooz-template-module h2 {
	color: #0f172a;
	font-size: clamp(2.25rem, 5vw, 4rem);
	font-weight: 950;
	letter-spacing: 0;
	line-height: 1.02;
	margin-bottom: 1.25rem;
	margin-top: 0;
}

.chooz-template-module h3 {
	color: #0f172a;
	font-size: 1.35rem;
	font-weight: 950;
	letter-spacing: 0;
	line-height: 1.12;
	margin-bottom: 0.75rem;
	margin-top: 0;
}

.chooz-template-module p {
	color: #475569;
	font-size: 1.05rem;
	line-height: 1.7;
}

.chooz-module-hero {
	background-image:
		linear-gradient(90deg, rgba(15, 15, 15, 0.84), rgba(15, 15, 15, 0.58)),
		url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80");
	background-position: center;
	background-size: cover;
	color: #ffffff;
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
	min-height: 548px;
	padding-bottom: 4.8rem;
	padding-top: 5rem;
}

.chooz-module-hero > * {
	margin-left: 0;
	margin-right: 0;
	max-width: 720px;
}

.chooz-module-hero > p:first-child {
	color: #ffffff;
	font-size: 0.9rem;
	grid-column: 1;
	margin-bottom: 1rem;
}

.chooz-module-hero h1,
.chooz-module-hero h2,
.chooz-module-hero p {
	color: #ffffff;
	grid-column: 1;
}

.chooz-module-hero h1,
.chooz-module-hero h2 {
	font-size: clamp(3rem, 5.2vw, 4rem);
	max-width: 720px;
}

.chooz-module-hero > p:not(:first-child) {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.5;
	max-width: 720px;
}

.chooz-module-hero .wp-block-buttons {
	grid-column: 1;
	margin-top: 0.5rem;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.wp-block-button__link {
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 950;
	letter-spacing: 0;
	padding: 0.9rem 1.55rem;
}

.wp-block-button.chooz-primary-cta .wp-block-button__link {
	background: #ef0000;
	border: 2px solid #ef0000;
	box-shadow: 0 8px 18px rgba(239, 0, 0, 0.22);
	color: #ffffff;
}

.wp-block-button.chooz-secondary-cta .wp-block-button__link {
	background: #ffffff;
	border: 2px solid #ffffff;
	color: #d70000;
}

.chooz-hero-proof-card {
	align-self: center;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
	color: #0f172a;
	grid-column: 2;
	grid-row: 1 / span 5;
	margin: 0;
	max-width: 340px;
	padding: 1.8rem 1.55rem;
	width: 100%;
}

.chooz-hero-proof-card h3,
.chooz-hero-proof-card p {
	color: #0f172a;
}

.chooz-hero-proof-card > p {
	color: #475569;
	font-size: 0.8rem;
	line-height: 1.55;
}

.chooz-hero-proof-grid {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 1.4rem;
}

.chooz-hero-proof-item,
.chooz-module-card {
	background: #ffffff;
	border: 1px solid #dfe4ea;
	border-radius: 12px;
	padding: 1rem;
}

.chooz-hero-proof-item h3 {
	color: #d70000;
	font-size: 1.55rem;
	margin-bottom: 0.25rem;
}

.chooz-hero-proof-item p {
	color: #475569;
	font-size: 0.76rem;
	line-height: 1.35;
	margin: 0;
}

.chooz-module-cluster-intro,
.chooz-module-city-intro,
.chooz-module-intro,
.chooz-module-service-sections,
.chooz-module-services,
.chooz-module-answer-sections,
.chooz-module-child-cards {
	background: #ffffff;
}

.chooz-module-landmarks,
.chooz-module-map,
.chooz-module-priority-links,
.chooz-module-links,
.chooz-module-schema,
.chooz-module-proof,
.chooz-module-local-proof,
.chooz-module-faq {
	background: #f8fafc;
	border-bottom: 1px solid #e5e7eb;
	border-top: 1px solid #e5e7eb;
}

.chooz-module-cards {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	margin-top: 2rem;
}

.chooz-module-card {
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.chooz-module-card h3 {
	font-size: 1.1rem;
}

.chooz-module-card p {
	font-size: 0.9rem;
	line-height: 1.55;
}

.chooz-module-cta {
	background: #211b1d;
	color: #ffffff;
}

.chooz-module-cta h2,
.chooz-module-cta h3,
.chooz-module-cta p {
	color: #ffffff;
}

.chooz-site-footer {
	background: #211b1d;
	color: #ffffff;
	margin-top: 0;
	padding: 2rem 1.5rem;
}

.chooz-site-footer p {
	margin: 0;
}

@media (max-width: 900px) {
	.chooz-module-hero {
		display: block;
		min-height: auto;
	}

	.chooz-hero-proof-card {
		margin-top: 2rem;
		max-width: none;
	}

	.chooz-header-actions {
		gap: 1rem;
	}
}

@media (max-width: 700px) {
	.chooz-preview-topbar {
		display: none;
	}

	.chooz-site-header {
		padding: 1rem;
	}

	.chooz-site-header > .wp-block-group,
	.chooz-header-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.chooz-module-hero {
		padding-bottom: 3rem;
		padding-top: 3rem;
	}

	.chooz-module-hero h1,
	.chooz-module-hero h2,
	.chooz-template-module h1,
	.chooz-template-module h2 {
		font-size: 2.45rem;
	}

	.chooz-hero-proof-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Web Studio additions (v0.2.0) ───────────────────────────────────── */

.chooz-module-gallery {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-top: 2rem;
}

.chooz-module-gallery .wp-block-image {
	margin: 0;
}

.chooz-module-gallery img {
	border-radius: 12px;
	display: block;
	height: 220px;
	object-fit: cover;
	width: 100%;
}

/* Template variants — accent shifts per registered page template. */
.chooz-variant-classic-navy .chooz-template-module > p:first-child,
.chooz-variant-classic-navy .chooz-hero-proof-item h3 { color: #1e3a8a; }
.chooz-variant-classic-navy .wp-block-button.chooz-primary-cta .wp-block-button__link {
	background: #1e3a8a; border-color: #1e3a8a; box-shadow: 0 8px 18px rgba(30, 58, 138, 0.22);
}
.chooz-variant-clean-burgundy .chooz-template-module > p:first-child,
.chooz-variant-clean-burgundy .chooz-hero-proof-item h3 { color: #7f1d1d; }
.chooz-variant-clean-burgundy .wp-block-button.chooz-primary-cta .wp-block-button__link {
	background: #7f1d1d; border-color: #7f1d1d; box-shadow: 0 8px 18px rgba(127, 29, 29, 0.22);
}
.chooz-variant-warm-local .chooz-template-module > p:first-child,
.chooz-variant-warm-local .chooz-hero-proof-item h3 { color: #c2410c; }
.chooz-variant-warm-local .wp-block-button.chooz-primary-cta .wp-block-button__link {
	background: #ea580c; border-color: #ea580c; box-shadow: 0 8px 18px rgba(234, 88, 12, 0.22);
}

.chooz-variant-painters-family-01 .chooz-template-module > p:first-child,
.chooz-variant-painters-family-01 .chooz-hero-proof-item h3 { color: #25365b; }
.chooz-variant-painters-family-01 .wp-block-button.chooz-primary-cta .wp-block-button__link {
	background: #ff4b15; border-color: #ff4b15; box-shadow: 0 8px 18px rgba(255, 75, 21, 0.22);
}

/* Painters Family 01 — the family's typeface (Raleway). Applied via the
   template variant class so other templates keep the theme default. */
.chooz-variant-painters-family-01,
.chooz-variant-painters-family-01 h1,
.chooz-variant-painters-family-01 h2,
.chooz-variant-painters-family-01 h3,
.chooz-variant-painters-family-01 p,
.chooz-variant-painters-family-01 a {
	font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Red Sport / Luxe Taupe / Midnight Gold variants (v0.5.0) ──────────────
   Base palette + typography for the newer registry templates
   (src/components/templates/registry.ts). Role mapping mirrors
   themePaletteCss (lib/web-studio/colors.ts): primary → module eyebrow +
   proof-stat headings, accent → card icons. Brand palette overrides ride
   each page as a wp:html <style> using the same selectors, so per-project
   colors cleanly outrank these base rules. */

/* Red Sport — deep red + gold on cream, condensed uppercase display type,
   square corners, charcoal CTA (the design's darkButton). */
.chooz-variant-red-sport,
.chooz-variant-red-sport p,
.chooz-variant-red-sport a {
	font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.chooz-variant-red-sport h1,
.chooz-variant-red-sport h2,
.chooz-variant-red-sport h3 {
	font-family: "Saira Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.chooz-variant-red-sport .chooz-template-module { background: #fbf7f4; }
.chooz-variant-red-sport .chooz-module-landmarks,
.chooz-variant-red-sport .chooz-module-map,
.chooz-variant-red-sport .chooz-module-priority-links,
.chooz-variant-red-sport .chooz-module-links,
.chooz-variant-red-sport .chooz-module-schema,
.chooz-variant-red-sport .chooz-module-proof,
.chooz-variant-red-sport .chooz-module-local-proof,
.chooz-variant-red-sport .chooz-module-faq {
	background: #f2ede9;
	border-color: #e3dcd4;
}
.chooz-variant-red-sport .chooz-template-module h1,
.chooz-variant-red-sport .chooz-template-module h2,
.chooz-variant-red-sport .chooz-template-module h3 { color: #323030; }
.chooz-variant-red-sport .chooz-template-module > p:first-child,
.chooz-variant-red-sport .chooz-hero-proof-item h3 { color: #a40000; }
.chooz-variant-red-sport .chooz-hero-proof-item,
.chooz-variant-red-sport .chooz-module-card {
	border-color: #e0d9d0;
	border-radius: 0;
}
.chooz-variant-red-sport .wp-block-button.chooz-primary-cta .wp-block-button__link {
	background: #323030;
	border-color: #323030;
	border-radius: 0;
	box-shadow: 8px 8px 0 #c29545;
	color: #fbf7f4;
	text-transform: uppercase;
}
.chooz-variant-red-sport .chooz-card-icon,
.chooz-variant-red-sport svg.chooz-card-icon { color: #c29545; }

/* Luxe Taupe — quiet-luxury white, uppercase Marcellus serif headings,
   hairline rules, square corners, taupe CTA (the design's primaryButton). */
.chooz-variant-luxe-taupe,
.chooz-variant-luxe-taupe p,
.chooz-variant-luxe-taupe a {
	font-family: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.chooz-variant-luxe-taupe h1,
.chooz-variant-luxe-taupe h2,
.chooz-variant-luxe-taupe h3 {
	font-family: "Marcellus", Georgia, serif;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.chooz-variant-luxe-taupe .chooz-template-module { background: #ffffff; }
.chooz-variant-luxe-taupe .chooz-module-landmarks,
.chooz-variant-luxe-taupe .chooz-module-map,
.chooz-variant-luxe-taupe .chooz-module-priority-links,
.chooz-variant-luxe-taupe .chooz-module-links,
.chooz-variant-luxe-taupe .chooz-module-schema,
.chooz-variant-luxe-taupe .chooz-module-proof,
.chooz-variant-luxe-taupe .chooz-module-local-proof,
.chooz-variant-luxe-taupe .chooz-module-faq {
	background: #f6f3f0;
	border-color: #e8e2dc;
}
.chooz-variant-luxe-taupe .chooz-template-module h1,
.chooz-variant-luxe-taupe .chooz-template-module h2,
.chooz-variant-luxe-taupe .chooz-template-module h3 { color: #1e293b; }
.chooz-variant-luxe-taupe .chooz-template-module > p:first-child,
.chooz-variant-luxe-taupe .chooz-hero-proof-item h3 { color: #5c5250; }
.chooz-variant-luxe-taupe .chooz-hero-proof-item,
.chooz-variant-luxe-taupe .chooz-module-card {
	border-color: #e8e2dc;
	border-radius: 0;
}
.chooz-variant-luxe-taupe .wp-block-button.chooz-primary-cta .wp-block-button__link {
	background: #5c5250;
	border-color: #5c5250;
	border-radius: 0;
	box-shadow: none;
	color: #ffffff;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.chooz-variant-luxe-taupe .chooz-card-icon,
.chooz-variant-luxe-taupe svg.chooz-card-icon { color: #da9800; }

/* Midnight Gold — dark-indigo page, elevated slate panels, muted-gold
   accents, outlined gold CTA (the design's goldButton). */
.chooz-variant-midnight,
.chooz-variant-midnight p,
.chooz-variant-midnight a {
	font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.chooz-variant-midnight h1,
.chooz-variant-midnight h2,
.chooz-variant-midnight h3 {
	font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 800;
}
.chooz-variant-midnight .chooz-template-module { background: #161826; }
.chooz-variant-midnight .chooz-module-landmarks,
.chooz-variant-midnight .chooz-module-map,
.chooz-variant-midnight .chooz-module-priority-links,
.chooz-variant-midnight .chooz-module-links,
.chooz-variant-midnight .chooz-module-schema,
.chooz-variant-midnight .chooz-module-proof,
.chooz-variant-midnight .chooz-module-local-proof,
.chooz-variant-midnight .chooz-module-faq {
	background: #1b1e2e;
	border-color: rgba(255, 255, 255, 0.07);
}
.chooz-variant-midnight .chooz-template-module h1,
.chooz-variant-midnight .chooz-template-module h2,
.chooz-variant-midnight .chooz-template-module h3 { color: #f5f6fa; }
.chooz-variant-midnight .chooz-template-module p { color: #a9aec2; }
.chooz-variant-midnight .chooz-template-module > p:first-child,
.chooz-variant-midnight .chooz-hero-proof-item h3 { color: #d4a73e; }
.chooz-variant-midnight .chooz-hero-proof-card,
.chooz-variant-midnight .chooz-hero-proof-item,
.chooz-variant-midnight .chooz-module-card {
	background: #232532;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: none;
}
.chooz-variant-midnight .chooz-hero-proof-card h3 { color: #f5f6fa; }
.chooz-variant-midnight .wp-block-button.chooz-primary-cta .wp-block-button__link {
	background: transparent;
	border: 1px solid #d4a73e;
	border-radius: 8px;
	box-shadow: none;
	color: #d4a73e;
	font-weight: 600;
}
.chooz-variant-midnight .wp-block-button.chooz-secondary-cta .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #e9e9ed;
}
.chooz-variant-midnight .chooz-card-icon,
.chooz-variant-midnight svg.chooz-card-icon { color: #e0b85c; }

/* Custom-section layout containers (Web Studio element builder). */
.chooz-flex-row { display: flex; flex-wrap: wrap; gap: 1.5em; align-items: center; }
.chooz-flex-row > * { flex: 1 1 0; min-width: 180px; margin: 0; }
@media (max-width: 640px) { .chooz-flex-row { flex-direction: column; } }

.chooz-flex-row.chooz-flex-natural > * { flex: 0 1 auto; min-width: 0; }

.chooz-box { display: flex; flex-direction: column; gap: 1em; min-width: 0; }
.chooz-box > * { margin: 0; }

/* Testimonials carousel — swipe/scroll in the preview (arrows are theme JS). */
.chooz-module-cards.chooz-carousel {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.chooz-module-cards.chooz-carousel::-webkit-scrollbar { display: none; }
.chooz-module-cards.chooz-carousel > * {
	flex: 0 0 100%;
	scroll-snap-align: start;
	min-width: 0;
}
@media (min-width: 782px) {
	.chooz-module-cards.chooz-carousel > * { flex-basis: calc((100% - 2rem) / 3); }
}

.chooz-module-map .chooz-module-card h3 {
	font-size: 1.125rem;
	font-weight: 500;
	text-align: center;
}

.chooz-card-icon,
svg.chooz-card-icon {
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	color: #ff4b15;
	margin-bottom: 0.75rem;
}

.wp-block-columns { display: flex; flex-wrap: wrap; gap: 2em; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.chooz-flex-row { display: flex; flex-wrap: wrap; gap: 1.5em; align-items: center; }
.chooz-flex-row > * { flex: 1 1 0; min-width: 180px; margin: 0; }
.chooz-flex-row.chooz-flex-natural > * { flex: 0 1 auto; min-width: 0; }
.chooz-box { display: flex; flex-direction: column; gap: 1em; min-width: 0; }
.chooz-box > * { margin: 0; }
@media (max-width: 640px) { .wp-block-columns, .chooz-flex-row { flex-direction: column; } }
.chooz-handoff-notes { display: none !important; }
