/*
 * Nature By Atis: brand sections (homepage, shop, product pages).
 * Direction: docs/creative-direction.md ("herbarium plate & apothecary label").
 * Motion vocabulary: settle = cubic-bezier(.2,.7,.2,1); hover 200ms; settle 700ms; hairline 900ms. CSS only.
 */

.nba-home, .nba-shop, .nba-product, .nba-page {
	--nba-hair: rgba(32, 58, 42, .18);
	--nba-settle: cubic-bezier(.2, .7, .2, 1);
	--nba-pad-x: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem));
	--nba-wide: var(--wp--style--global--wide-size, 1240px);
}
.nba-home > * { margin-block: 0; }
.nba-home > section { padding-inline: var(--nba-pad-x); }
.nba-more { max-width: var(--nba-wide); margin-inline: auto; }
.nba-hero__grid, .nba-section-head, .nba-collection, .nba-collection-section__more,
.nba-story__grid, .nba-quality__grid { max-width: var(--nba-wide); margin-inline: auto; }

/* ---- Shared specimen-sheet typography -------------------------------------- */
.nba-eyebrow {
	display: flex; align-items: center; gap: .9rem; margin: 0 0 1.25rem;
	font-family: var(--wp--preset--font-family--body); font-size: .75rem; font-weight: 600;
	letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--deep-gold);
}
.nba-eyebrow--dark { color: var(--wp--preset--color--stone); }
.nba-rule { display: inline-block; width: 2.75rem; height: 1px; background: var(--wp--preset--color--gold); flex: none; transform-origin: left; }
.nba-link-arrow {
	display: inline-block; text-decoration: none; padding-bottom: .2rem; border-bottom: 1px solid currentColor;
	font-size: var(--wp--preset--font-size--small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.nba-link-arrow::after { content: "\2192"; margin-left: .5rem; display: inline-block; transition: transform .2s ease; }
.nba-link-arrow:hover::after { transform: translateX(3px); }
.nba-story .nba-link-arrow { color: var(--wp--preset--color--ivory); }

/* ---- Preview notice (remove with final content) ------------------------------ */
.nba-preview-notice {
	margin: 0; padding: .55rem var(--nba-pad-x); text-align: center;
	font-size: var(--wp--preset--font-size--x-small); letter-spacing: .04em;
	color: var(--wp--preset--color--deep-gold); border-bottom: 1px dashed var(--wp--preset--color--deep-gold);
}

/* ---- Plates (images live in hairline frames with captions) -------------------- */
.nba-plate { margin: 0; background: var(--wp--preset--color--white); border: 1px solid var(--nba-hair); padding: clamp(.75rem, 2.4vw, 1.75rem); }
.nba-plate img { display: block; width: 100%; height: auto; }
.nba-plate__caption {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: .9rem;
	font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--forest);
}
.nba-tag { color: var(--wp--preset--color--deep-gold); border: 1px dashed currentColor; padding: .1rem .45rem; letter-spacing: .08em; }
.nba-tag--dark { color: var(--wp--preset--color--stone); }

/* ---- 1. Hero: editorial headline over the collection "stage" ---------------------
   The six packaging concepts stand together as in the brand reference (concept render, always labelled). */
.nba-hero { padding-block: clamp(1.75rem, 4vw, 3.25rem) clamp(2.5rem, 5vw, 4.5rem); }
.nba-hero__grid { display: block; }
.nba-hero__title {
	margin: 0 0 1.25rem; font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 500;
}
.nba-hero__title-line { display: block; }
.nba-hero__lead { margin: 0 0 1.75rem; max-width: 36ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; }
.nba-hero__actions { display: flex !important; flex-wrap: wrap; gap: .75rem; }
.nba-hero__actions .wp-block-button__link { display: inline-block; }
@media (min-width: 900px) {
	.nba-hero__text { display: grid; grid-template-columns: 1.35fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); align-items: end; }
	.nba-hero__text .nba-eyebrow { grid-column: 1 / -1; }
	.nba-hero__title { grid-column: 1; grid-row: 2 / span 2; margin: 0; }
	.nba-hero__lead { grid-column: 2; grid-row: 2; }
	.nba-hero__actions { grid-column: 2; grid-row: 3; }
}

/* Collection stage (homepage hero + shop): a wide plate, image bleeds to the hairline frame */
.nba-stage { margin: clamp(1.75rem, 3.5vw, 2.75rem) auto 0; max-width: var(--nba-wide); border: 1px solid var(--nba-hair); background: var(--wp--preset--color--white); padding: clamp(.4rem, 1.2vw, .9rem); }
.nba-stage img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #EFE5D3; }
.nba-stage--shop img { aspect-ratio: 12 / 5; }
.nba-stage .nba-plate__caption { margin: .75rem .25rem .1rem; }
@media (max-width: 599.98px) {
	/* phones: no cropping (all six products stay visible); the plate widens towards the screen edges */
	.nba-stage { margin-inline: calc(-1 * var(--nba-pad-x) + .5rem); padding: .3rem; }
}
.nba-stage--shop { margin-bottom: clamp(2rem, 4vw, 3rem); }
.nba-plate__caption--render { justify-content: flex-start; }
.nba-render-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin: .75rem 0 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--forest); }
.nba-render-note .nba-tag { font-size: .625rem; font-weight: 600; text-transform: uppercase; }

/* ---- 2. Brand introduction: the single centred "dedication" moment ------------- */
.nba-intro { padding-block: clamp(3.5rem, 9vw, 7.5rem); border-top: 1px solid var(--nba-hair); }
.nba-intro__inner { max-width: 780px; margin-inline: auto; text-align: center; }
.nba-intro__mark { width: 64px; height: auto; margin: 0 auto 1.75rem; display: block; }
.nba-intro__statement {
	margin: 0 auto 1.5rem; max-width: 24ch; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.22; font-weight: 400; letter-spacing: -.01em;
}
.nba-intro__body { margin: 0 auto; max-width: 54ch; font-size: var(--wp--preset--font-size--medium); }

/* ---- 3. Collection: numbered specimen cards (dense) ---------------------------- */
.nba-collection-section { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6.5rem); background: var(--wp--preset--color--white); }
.nba-section-head { display: grid; gap: .5rem 3rem; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: clamp(1.75rem, 4vw, 3rem); border-bottom: 1px solid var(--nba-hair); }
.nba-section-head__title { margin: 0; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; font-weight: 500; letter-spacing: -.015em; }
.nba-section-head__lead { margin: 0; max-width: 46ch; font-size: var(--wp--preset--font-size--small); align-self: end; }
@media (min-width: 900px) {
	.nba-section-head { grid-template-columns: 1fr 1fr; }
	.nba-section-head .nba-eyebrow { grid-column: 1 / -1; }
	.nba-section-head__lead { justify-self: end; }
}
.nba-collection { list-style: none; padding: 0; margin-block: 0; display: grid; gap: clamp(1rem, 2.6vw, 2.25rem) clamp(.75rem, 2.2vw, 2rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .nba-collection { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nba-specimen__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.nba-plate--product { padding: clamp(.5rem, 1.4vw, .9rem); background: var(--wp--preset--color--ivory); transition: transform .2s ease, border-color .2s ease; }
.nba-plate--product img { aspect-ratio: 4 / 5; object-fit: cover; }
.nba-plate--product .nba-plate__caption { margin-top: .6rem; font-size: .625rem; }
.nba-specimen__no { margin-top: 1rem; font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--deep-gold); }
.nba-specimen__name { margin: .3rem 0 .25rem; font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: .01em; overflow-wrap: anywhere; }
.nba-specimen__status, .nba-specimen__price { margin: 0; font-size: var(--wp--preset--font-size--x-small); letter-spacing: .04em; }
.nba-specimen__summary { margin: 0; font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.nba-specimen__link:hover .nba-plate--product, .nba-specimen__link:focus-visible .nba-plate--product { transform: translateY(-2px); border-color: var(--wp--preset--color--gold); }
.nba-specimen__link:hover .nba-specimen__name { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.nba-collection-section__more { margin-top: clamp(2rem, 4vw, 3rem); text-align: right; }

/* ---- 4. Botanical story: the full-bleed forest "resting" band ------------------- */
.nba-story { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--ivory); padding-block: clamp(4rem, 10vw, 8.5rem); overflow: hidden; }
.nba-story__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.nba-story__art { margin: 0; max-width: 520px; width: 100%; justify-self: center; }
.nba-story__art img { display: block; width: 100%; height: auto; }
.nba-story__art .nba-plate__caption { color: var(--wp--preset--color--ivory); border-top: 1px solid rgba(245, 239, 227, .2); padding-top: .9rem; }
.nba-story__title { margin: 0 0 1.5rem; color: var(--wp--preset--color--ivory); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 500; letter-spacing: -.015em; max-width: 16ch; }
.nba-story__text p { max-width: 46ch; }
@media (min-width: 900px) {
	.nba-story__grid { grid-template-columns: .9fr 1.1fr; }
	.nba-story__art { justify-self: start; margin-left: calc(-1 * clamp(0rem, 3vw, 3rem)); } /* rule 2 break: the drawing may bleed */
}

/* ---- 5. Quality & transparency: a tight numbered ledger ------------------------ */
.nba-quality { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.nba-quality__grid { display: grid; gap: 2rem clamp(2rem, 6vw, 6rem); }
.nba-quality__head .nba-section-head__title { margin-bottom: 1.5rem; max-width: 14ch; }
@media (min-width: 900px) { .nba-quality__grid { grid-template-columns: 1fr 1.45fr; } }
.nba-ledger { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--nba-hair); }
.nba-ledger__item { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--nba-hair); }
.nba-ledger__no { font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; line-height: 1; color: var(--wp--preset--color--deep-gold); }
.nba-ledger__title { margin: 0 0 .5rem; font-size: var(--wp--preset--font-size--large); font-weight: 500; }
.nba-ledger__item p { margin: 0; font-size: var(--wp--preset--font-size--small); max-width: 58ch; }
.nba-ledger__item p + p { margin-top: .5rem; }
.nba-chip {
	display: inline-block; margin: 0 0 .6rem !important; padding: .15rem .55rem; border: 1px solid var(--wp--preset--color--deep-gold);
	color: var(--wp--preset--color--deep-gold); font-size: .6875rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

/* ---- Motion: one gesture, CSS scroll-driven only where supported ---------------- */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.nba-plate:not(.nba-plate--hero), .nba-story__art { /* first-screen content never animates */
			animation: nba-settle var(--nba-settle) both; animation-timeline: view(); animation-range: entry 0% entry 45%;
		}
		.nba-rule { animation: nba-draw var(--nba-settle) both; animation-timeline: view(); animation-range: entry 20% entry 80%; }
	}
}
@media print { .nba-plate, .nba-story__art, .nba-rule { animation: none !important; } }
/* Rise only, never fade: a scroll-driven fade left frames invisible wherever the view timeline doesn't advance
   (full-page captures, print/PDF, jumps), which showed as empty space above product names. Content stays visible. */
@keyframes nba-settle { from { transform: translateY(12px); } to { transform: none; } }
@keyframes nba-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
