/* CNC site — static HTML/CSS/JS, no build step, no backend.
   Accent green is the official brand olive green (#8FA84A), darkened to #677935 for
   WCAG AA contrast (4.65:1) as both button text and link text — the raw brand hex
   only hits 2.58:1 against the base background, which fails AA for text/buttons.
   --color-accent-soft carries the raw brand hex for decorative, non-text uses
   (icon fills, dot accents) where contrast rules don't apply.
   --color-gold is a supporting premium accent (not part of the brand mark) used
   sparingly for dividers, quote glyphs, and rating stars to lift perceived quality
   without displacing the brand green as the primary identity color. */

:root {
	--color-base: #FCFBF7;
	--color-surface: #F4F3EA;
	--color-contrast: #191F17;
	--color-contrast-2: #47523F;
	--color-accent: #677935;
	--color-accent-soft: #8FA84A;
	--color-accent-2: #E8ECDA;
	--color-border: #E3E1D3;
	--color-gold: #AD8A4E;
	--color-gold-soft: #F1E7D3;

	--font-heading: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--section-gap: clamp(3.5rem, 7vw, 8.5rem);
	--content-width: 1160px;

	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 26px;

	--shadow-sm: 0 2px 10px -4px rgba(21,26,17,0.10);
	--shadow-md: 0 18px 40px -16px rgba(21,26,17,0.20);
	--shadow-lg: 0 30px 60px -20px rgba(21,26,17,0.28);

	--color-citrus: #C97A2E;
	/* Warm secondary tint, pairs with --color-accent-2 (sage) as an alternate
	   section background so pages don't read as one unbroken shade of green. */
	--color-citrus-tint: #FBE8D2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--color-base);
	color: var(--color-contrast-2);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--color-contrast);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--color-accent); }
a:hover { color: var(--color-contrast); }

.wrap {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.wrap-narrow {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Header */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.15rem 1.5rem;
	max-width: var(--content-width);
	margin: 0 auto;
}

.site-title {
	font-family: var(--font-heading);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--color-contrast);
	text-decoration: none;
	display: flex;
	align-items: center;
}

.site-title img {
	height: 44px;
	width: auto;
	display: block;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	color: var(--color-contrast-2);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	position: relative;
	transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--color-accent);
}

/* .btn inside the nav must keep its own white-on-accent text — .site-nav a
   above is more specific than .btn alone and would otherwise win. */
.site-nav a.btn,
.site-nav a.btn:hover,
.site-nav a.btn[aria-current="page"] {
	color: var(--color-base);
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: var(--color-contrast);
	padding: 0.25rem;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.85rem 1.65rem;
	border-radius: var(--radius-sm);
	background: var(--color-accent);
	color: var(--color-base);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	border: 1px solid var(--color-accent);
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn:hover {
	background: var(--color-contrast);
	border-color: var(--color-contrast);
	color: var(--color-base);
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-outline {
	background: transparent;
	color: var(--color-accent);
	border: 1px solid var(--color-accent);
	box-shadow: none;
}

.btn-outline:hover { background: var(--color-accent); color: var(--color-base); }

.btn-light {
	background: var(--color-base);
	color: var(--color-contrast);
	border: 1px solid var(--color-base);
}

.btn-light:hover { background: var(--color-gold-soft); border-color: var(--color-gold-soft); color: var(--color-contrast); }

/* Warm citrus variant — used sparingly for the single most energetic CTA on
   a page (e.g. a WhatsApp/chat prompt), not a replacement for the primary
   green .btn everywhere. */
.btn-citrus {
	background: var(--color-citrus);
	border-color: var(--color-citrus);
	color: var(--color-base);
}
.btn-citrus:hover { background: #A8651F; border-color: #A8651F; }

.btn-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Sections */
section { padding: var(--section-gap) 0; position: relative; }
.section-surface { background: var(--color-surface); }
.section-dark { background: var(--color-contrast); color: var(--color-base); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--color-base); }
.section-accent {
	background:
		radial-gradient(ellipse 60% 90% at 88% 8%, rgba(173,138,78,0.16), transparent 60%),
		radial-gradient(ellipse 55% 75% at 8% 100%, rgba(201,122,46,0.14), transparent 60%),
		var(--color-accent-2);
	overflow: hidden;
}

/* Warm alternate to .section-surface — same role (a shaded section break),
   peach-toned instead of sage so a page doesn't read as a single hue end to end. */
.section-warm {
	background:
		radial-gradient(ellipse 60% 85% at 92% 0%, rgba(201,122,46,0.12), transparent 60%),
		var(--color-citrus-tint);
	overflow: hidden;
}

.text-center { text-align: center; }
.eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	color: var(--color-accent);
	font-weight: 700;
}

/* Grid layouts */
.grid {
	display: grid;
	gap: 1.75rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
	.grid-2 { grid-template-columns: 1fr 1fr; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.grid-3 { grid-template-columns: repeat(3, 1fr); }
	.grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
	display: grid;
	gap: 3rem;
	align-items: center;
	grid-template-columns: 1fr;
}
@media (min-width: 800px) {
	.split { grid-template-columns: 1fr 1fr; }
	.split.reverse > *:first-child { order: 2; }
}

/* Cards */
.card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.75rem;
	background: var(--color-base);
	box-shadow: var(--shadow-sm);
	transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
	overflow: hidden;
}
.card:hover {
	transform: translateY(-7px);
	box-shadow: var(--shadow-lg);
	border-color: transparent;
}

.card img, .split img, .hero-media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-sm);
}

/* Photo header on service cards, bleeding to the card's edges.
   Selector is deliberately more specific than ".card img" above so every
   card gets the same fixed-height crop instead of its own natural aspect ratio. */
.card img.service-photo {
	width: calc(100% + 3.5rem);
	height: 180px;
	object-fit: cover;
	display: block;
	margin: -1.75rem -1.75rem 1.35rem;
	border-radius: 0;
	transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.card:hover img.service-photo {
	transform: scale(1.06);
}

.quote-card {
	background: var(--color-base);
	border-radius: var(--radius-md);
	padding: 2rem 1.85rem 1.75rem;
	box-shadow: var(--shadow-sm);
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote-card::before {
	content: "\201C";
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 3.5rem;
	line-height: 1;
	color: var(--color-gold);
	opacity: 0.55;
	display: block;
	margin-bottom: 0.25rem;
}
.quote-card p:first-of-type { font-size: 1.08rem; font-weight: 500; color: var(--color-contrast); }
.quote-card .author {
	font-weight: 600;
	color: var(--color-accent);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--color-border);
}

.price { font-weight: 700; color: var(--color-contrast); margin-bottom: 0.75rem; }

/* Small metadata pill (platform + price on a community-group card, etc.) —
   visually distinct from .eyebrow so it reads as card metadata, not a
   repeated section-kicker pattern. */
.badge {
	display: inline-block;
	background: var(--color-accent-2);
	color: var(--color-contrast-2);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	margin-bottom: 0.75rem;
}

/* Product-catalog group heading (Shop page) — groups a long flat list into
   named clusters instead of repeating a label on every card. */
.shop-group-heading {
	font-size: 1.1rem;
	margin: 2.5rem 0 1.25rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--color-border);
}
.shop-group-heading:first-of-type { margin-top: 0; }

/* Compact blog list row (About Michelle page) — pairs with one featured
   .split post above so three blog items don't repeat the card-grid shape
   already used twice above this section on the page. */
.blog-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
}
.blog-list-item {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 1.25rem;
	align-items: center;
}
.blog-list-item img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: var(--radius-sm);
}
.blog-list-item h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.blog-list-item p { margin: 0; font-size: 0.95rem; }
@media (max-width: 560px) {
	.blog-list-item { grid-template-columns: 72px 1fr; }
	.blog-list-item img { width: 72px; height: 72px; }
}

/* FAQ */
.faq-item {
	border-bottom: 1px solid var(--color-border);
	padding: 1.4rem 0;
}
.faq-item h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.faq-item p { margin: 0; }

/* Footer */
.site-footer {
	background: var(--color-contrast);
	color: var(--color-base);
	padding: 4rem 1.5rem 2rem;
	position: relative;
}
.site-footer::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--color-accent-soft), var(--color-citrus) 35%, var(--color-gold) 65%, var(--color-accent-soft));
}
.site-footer .wrap { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) {
	.site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 {
	color: var(--color-base);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-family: var(--font-body);
	font-weight: 700;
	opacity: 0.9;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer a { color: var(--color-base); opacity: 0.85; text-decoration: none; }
.site-footer a:hover { opacity: 1; color: var(--color-gold-soft); }
.footer-bottom {
	max-width: var(--content-width);
	margin: 2.5rem auto 0;
	padding: 1.5rem 1.5rem 0;
	border-top: 1px solid rgba(252,251,247,0.15);
	font-size: 0.85rem;
	opacity: 0.65;
}

/* Placeholder media block (stand-in for real photography) */
.placeholder-media {
	background: var(--color-accent-2);
	color: var(--color-accent);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 2rem;
	min-height: 220px;
}

/* Real photography — fills a fixed-height frame, cropped to fit */
.photo-cover {
	width: 100%;
	height: 320px;
	object-fit: cover;
	border-radius: var(--radius-md);
	display: block;
	box-shadow: var(--shadow-md);
}
.photo-cover.short { height: 240px; }
.photo-cover.tall { height: 440px; }

/* Isolated product/package renders (transparent PNGs) sit on a soft tile
   instead of floating on the page background. */
.product-shot {
	background: var(--color-surface);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 1.25rem;
	margin-bottom: 1rem;
}
.product-shot img {
	max-height: 180px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

/* Book/e-book cover renders already include their own shadow and background */
.book-cover {
	width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
	display: block;
	margin-bottom: 1rem;
	box-shadow: var(--shadow-md);
}

/* Mouse-tracking 3D tilt (applied to .photo-cover by assets/motion.js) */
.tilt {
	transition: transform 0.15s ease-out;
	transform-style: preserve-3d;
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.card, .btn, .card img.service-photo, .tilt, .quote-card { transition: none; }
}

/* Responsive 16:9 video embeds */
.video-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-surface);
	box-shadow: var(--shadow-md);
}
.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Mobile nav */
@media (max-width: 720px) {
	.site-header { position: relative; }
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 1.5rem;
		right: 1.5rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		background: var(--color-base);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-md);
		padding: 1.4rem;
		box-shadow: var(--shadow-lg);
		z-index: 20;
	}
	.site-nav.open { display: flex; }
}

/* Floating WhatsApp chat button */
.whatsapp-fab {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25D366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	z-index: 40;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: var(--shadow-lg);
	animation: none;
}
.whatsapp-fab svg { width: 30px; height: 30px; display: block; }
@media (max-width: 720px) {
	.whatsapp-fab { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
	.whatsapp-fab svg { width: 26px; height: 26px; }
}

/* Gentle idle bob — small, slow, always-on sign of life on the one element
   that's present on every page. Pauses on hover so it doesn't fight the
   hover lift above. */
@keyframes gentle-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}
.whatsapp-fab { animation: gentle-bob 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
	.whatsapp-fab { animation: none; }
}

/* ---------------------------------------------------------------------
   Botanical/fruit line-art motifs — hand-drawn accents (citrus slice,
   leaf sprig, grain stalk, avocado half) that echo the logo's leaf-and-
   fruit mark. Purely decorative: aria-hidden, pointer-events:none, and
   never load-bearing for content. Positioned per-instance via inline
   style (top/left/right/bottom/width) on each <svg class="organic-shape">.
   Animated by assets/motion.js (GSAP); the CSS below is the static/
   no-JS/reduced-motion resting state. ------------------------------- */
.hero-organics {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}
.organic-shape {
	position: absolute;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	opacity: 0.22;
	color: var(--color-accent-soft);
}
.organic-shape.ink-gold { color: var(--color-gold); }
.organic-shape.ink-citrus { color: var(--color-citrus); }
.organic-shape.ink-base { color: var(--color-base); opacity: 0.14; }

/* Content that sits above a .hero-organics layer needs an explicit stack
   context, since the organics layer is itself position:absolute at z:0. */
.hero-organics + * ,
.split.has-organics { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
	.organic-shape { animation: none !important; }
}
@media (max-width: 640px) {
	.hero-organics { opacity: 0.7; }
}

/* Magnetic CTA: JS applies the pull transform; CSS just primes a smooth
   spring-back and keeps the element as its own compositor layer. */
.btn-magnetic {
	display: inline-block;
	will-change: transform;
}

/* Scroll-choreographed grids: assets/motion.js staggers children of any
   element carrying this class via gsap.from(), which sets the hidden
   "from" state at animation setup time — content is visible by default
   in plain HTML/CSS, so a blocked/slow/failed script never leaves
   anything permanently hidden. */
