/* ==========================================================================
   CSB Roastery — main.css  ·  Temă creată de ONBIT.RO
   ========================================================================== */

:root {
	--green-950: #08241d;
	--green-900: #0c3229;
	--green: #114639;
	--green-700: #1b5a4a;
	--green-200: #c9dbd2;
	--green-100: #e3ece6;
	--cream: #f3ebdd;
	--paper: #faf6ee;
	--white: #fffdf9;
	--ink: #17120e;
	--ink-2: #3b332c;
	--muted: #6f655b;
	--amber: #fbbc34;
	--amber-600: #e2a114;
	--line: rgba(23, 18, 14, .13);
	--line-light: rgba(243, 235, 221, .18);
	--danger: #b3261e;
	--ok: #1f7a4d;

	--f-display: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
	--f-body: 'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 18px;
	--radius-sm: 10px;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-spring: cubic-bezier(.34, 1.56, .64, 1);
	--shadow: 0 1px 2px rgba(23, 18, 14, .06), 0 12px 32px -12px rgba(23, 18, 14, .22);
	--header-h: 76px;
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: clamp(16px, .95rem + .15vw, 18px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--ink); }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--paper); }
.muted { color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

em { font-style: italic; }
.section__title em, .hero__title em, .page-hero__title em, .site-footer__big em, .shop-hero__title em {
	font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--green-700);
}

/* ---------- Typo helpers ---------- */
.eyebrow {
	font-family: var(--f-mono);
	font-size: .74rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--green-700);
	margin: 0 0 1.1rem;
	display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--amber); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(251,188,52,.6); animation: pulse 2.4s infinite; }
.hero__eyebrow::before { display: none; }

.section { padding-block: clamp(72px, 9vw, 136px); position: relative; }
.section--paper { background: var(--cream); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem);
	line-height: 1;
	letter-spacing: -.01em;
	margin: 0 0 .35em;
}
.section__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .icon { width: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
	--bg: transparent; --fg: var(--ink); --bd: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: .8em 1.4em;
	border-radius: 999px;
	border: 1.5px solid var(--bd);
	background: var(--bg);
	color: var(--fg);
	font-weight: 600;
	font-size: .97rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease), background .3s;
	white-space: nowrap;
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--fill, var(--green));
	transform: translateY(101%); border-radius: inherit;
	transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--fill-fg, var(--paper)); }
.btn:active { transform: scale(.97); }
.btn .icon { width: 18px; transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn--solid { --bg: var(--green); --fg: var(--paper); --bd: var(--green); --fill: var(--ink); }
.btn--amber { --bg: var(--amber); --fg: var(--ink); --bd: var(--amber); --fill: var(--paper); --fill-fg: var(--ink); }
.btn--ghost { --fill: var(--ink); }
.btn--ghost-light { --fg: var(--paper); --bd: rgba(243,235,221,.45); --fill: var(--paper); --fill-fg: var(--green); }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: var(--cream); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; overflow: hidden; height: 34px; display: flex; align-items: center; position: relative; z-index: 51; }
.topbar__track { display: flex; align-items: center; gap: 28px; white-space: nowrap; animation: marquee 40s linear infinite; padding-left: 28px; }
.topbar__track i { display: inline-flex; color: var(--amber); }
.topbar__mark { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 246, 238, .86);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: background .35s, border-color .35s, color .35s, transform .4s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); }
.has-hero .site-header:not(.is-scrolled):not(.is-open) { background: var(--green); color: var(--cream); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand__mark { width: 42px; height: 42px; color: var(--green); transition: transform .8s var(--ease-spring), color .3s; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .brand__mark { color: var(--amber); }
.brand:hover .brand__mark { transform: rotate(120deg); }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__csb { font-family: var(--f-body); font-weight: 800; font-size: 1.55rem; letter-spacing: .02em; }
.brand__sub { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; margin-top: 4px; opacity: .8; }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 30px); }
.nav__list a { text-decoration: none; font-weight: 500; font-size: .96rem; position: relative; padding: 6px 0; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.nav__list a:hover { color: inherit; }
.nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 4px; }
.iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; background: none; border: 0; cursor: pointer; color: inherit; position: relative; transition: background .25s; text-decoration: none; }
.iconbtn:hover { background: rgba(23,18,14,.07); color: inherit; }
.has-hero .site-header:not(.is-scrolled) .iconbtn:hover { background: rgba(243,235,221,.12); }
.iconbtn .icon { width: 22px; height: 22px; }
.cartbtn__count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--amber); color: var(--ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cartbtn__count.bump { animation: bump .6s var(--ease-spring); }
.navtoggle { display: none; }
.navtoggle__bars { width: 22px; height: 12px; position: relative; display: block; }
.navtoggle__bars i { position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.navtoggle__bars i:first-child { top: 0; }
.navtoggle__bars i:last-child { top: 10px; }
.is-open .navtoggle__bars i:first-child { top: 5px; transform: rotate(45deg); }
.is-open .navtoggle__bars i:last-child { top: 5px; transform: rotate(-45deg); }

.search-panel { border-top: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.search-panel__form { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.search-panel__form .icon { width: 22px; color: var(--muted); }
.search-panel__form input { flex: 1; border: 0; background: transparent; font-size: 1.15rem; padding: 10px 0; outline: none; }
.search-panel:not([hidden]) { animation: drop .35s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green); color: var(--cream); overflow: hidden; isolation: isolate; }
.hero__grain, .atlas .hero__grain { position: absolute; inset: 0; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; pointer-events: none; z-index: -1; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(calc(100svh - var(--header-h) - 34px), 860px); padding-block: clamp(48px, 7vw, 96px); }
.hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.1rem, 1.6rem + 6.2vw, 7.2rem); line-height: .94; letter-spacing: -.02em; margin: 0 0 .35em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__title .line:nth-child(3) > span { animation-delay: .16s; }
.hero__title .line:nth-child(4) > span { animation-delay: .24s; }
.hero__title em { color: var(--amber); }
.hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); max-width: 46ch; color: rgba(243,235,221,.84); opacity: 0; animation: fadeup .9s .45s var(--ease) forwards; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 40px; opacity: 0; animation: fadeup .9s .55s var(--ease) forwards; }
.hero__facts { list-style: none; padding: 26px 0 0; margin: 0; display: flex; gap: clamp(20px, 4vw, 48px); border-top: 1px solid var(--line-light); opacity: 0; animation: fadeup .9s .65s var(--ease) forwards; }
.hero__facts strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--amber); }
.hero__facts span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

.hero__stage { position: relative; aspect-ratio: 1 / 1.05; max-width: 600px; width: 100%; justify-self: end; }
.hero__sun { position: absolute; inset: 9% 6% 6% 9%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #23705c 0%, var(--green-900) 70%); box-shadow: inset 0 0 0 1px var(--line-light); animation: breathe 9s ease-in-out infinite; }
.bag { position: absolute; margin: 0; width: 44%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); opacity: 0; animation: bagin 1.2s var(--ease) forwards, float 7s ease-in-out infinite; }
.bag img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.bag::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--origin); }
.bag--1 { left: 27%; top: 10%; width: 50%; z-index: 3; --r: -2deg; animation-delay: .35s, 1.5s; }
.bag--2 { left: 0; top: 30%; z-index: 2; --r: -9deg; width: 41%; animation-delay: .5s, 2.2s; }
.bag--3 { right: 0; top: 34%; z-index: 2; --r: 8deg; width: 41%; animation-delay: .65s, 2.8s; }
.hero__badge { position: absolute; width: 30%; right: 4%; top: 0; z-index: 4; animation: spin 26s linear infinite; }
.hero__badge text { font-family: var(--f-mono); font-size: 13.2px; letter-spacing: 2.4px; fill: var(--amber); }
.hero__badge-mark { position: absolute; width: 11%; right: 13.5%; top: 9.5%; z-index: 4; color: var(--cream); }
.steam { position: absolute; width: 16%; left: 44%; top: -4%; z-index: 1; fill: none; stroke: rgba(243,235,221,.35); stroke-width: 2.2; stroke-linecap: round; }
.steam path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: steam 4.5s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .9s; }
.steam path:nth-child(3) { animation-delay: 1.8s; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 1.5px solid var(--line-light); border-radius: 20px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--amber); border-radius: 2px; animation: scrolldot 2s var(--ease) infinite; }

/* ---------- Marquee ---------- */
.marquee { background: var(--amber); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); }
.marquee__track { display: flex; align-items: center; gap: 30px; white-space: nowrap; padding-block: 18px; animation: marquee 45s linear infinite; width: max-content; }
.marquee__track span { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; }
.marquee__mark { width: 26px; height: 26px; flex: none; }

/* ---------- Category cards ---------- */
.cats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.catcard {
	--c-bg: var(--ink); --c-fg: var(--cream); --c-ac: var(--amber);
	position: relative; display: flex; flex-direction: column; min-height: clamp(340px, 34vw, 460px);
	padding: clamp(28px, 3.4vw, 48px); border-radius: var(--radius);
	background: var(--c-bg); color: var(--c-fg); text-decoration: none; overflow: hidden; isolation: isolate;
	transition: transform .6s var(--ease);
}
.catcard--green { --c-bg: #cfdccd; --c-fg: var(--green-900); --c-ac: var(--green); }
.catcard:hover { color: var(--c-fg); transform: translateY(-6px); }
.catcard__index { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .16em; opacity: .7; }
.catcard__mark { position: absolute; right: -8%; bottom: -14%; width: 64%; color: var(--c-ac); opacity: .16; z-index: -1; transition: transform 1.2s var(--ease); }
.catcard:hover .catcard__mark { transform: rotate(60deg) scale(1.06); opacity: .26; }
.catcard__title { margin-top: auto; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.6rem); line-height: .95; }
.catcard__text { max-width: 42ch; opacity: .85; }
.catcard__cta { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ac); }
.catcard__cta .icon { width: 18px; transition: transform .4s var(--ease); }
.catcard:hover .catcard__cta .icon { transform: translateX(6px); }

/* ---------- Product card ---------- */
.pgrid, ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); list-style: none; margin: 0; padding: 0; }
.pcard { position: relative; display: flex; flex-direction: column; height: 100%; }
.pcard__media { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--white); overflow: hidden; isolation: isolate; }
.pcard--green .pcard__media { background: #eef2ec; }
.pcard__media::before { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: radial-gradient(60% 70% at 50% 100%, color-mix(in srgb, var(--origin) 30%, transparent), transparent 70%); opacity: .0; transition: opacity .6s var(--ease); z-index: -1; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.pcard:hover .pcard__img { transform: scale(1.045) rotate(-1.2deg); }
.pcard:hover .pcard__media::before { opacity: 1; }
.pcard__tag { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 99px; background: rgba(255,253,249,.92); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 1px 0 var(--line); }
.pcard__tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--origin); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pcard__placeholder { display: grid; place-items: center; height: 100%; color: var(--green-200); }
.pcard__placeholder svg { width: 40%; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 16px 4px 0; }
.pcard__kind { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.pcard__title { font-family: var(--f-body); font-size: 1.06rem; font-weight: 600; line-height: 1.3; margin: 0 0 6px; }
.pcard__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.pcard:hover .pcard__title a { background-size: 100% 1px; color: inherit; }
.pcard__notes { font-family: var(--f-display); font-style: italic; font-size: 1.08rem; line-height: 1.3; color: var(--ink-2); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.pcard__price { font-weight: 700; font-size: 1.02rem; }
.pcard__price .from { font-weight: 400; color: var(--muted); font-size: .86em; }
.pcard__price del { opacity: .5; font-weight: 400; }
.pcard__price ins { text-decoration: none; }
.pcard__cta { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 14px; border-radius: 99px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: .84rem; font-weight: 600; transition: background .3s, gap .3s var(--ease); }
.pcard__cta .icon { width: 15px; }
.pcard__cta:hover { background: var(--green); color: var(--paper); gap: 10px; }

/* ---------- Atlas ---------- */
.atlas { background: var(--green-900); color: var(--cream); overflow: hidden; isolation: isolate; }
.atlas .section__title em { color: var(--amber); }
.atlas .section__lead { color: rgba(243,235,221,.78); }
.atlas__body { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.atlas__list { list-style: none; margin: 0; padding: 0; counter-reset: a; border-top: 1px solid var(--line-light); }
.atlas__item { border-bottom: 1px solid var(--line-light); }
.atlas__link { display: grid; grid-template-columns: 52px 1fr auto; grid-template-areas: "num name meta" "num notes notes"; align-items: baseline; column-gap: 16px; padding: 20px 8px; text-decoration: none; color: inherit; position: relative; transition: padding .5s var(--ease); }
.atlas__num { grid-area: num; font-family: var(--f-mono); font-size: .78rem; opacity: .55; }
.atlas__name { grid-area: name; font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 2.2vw, 3.3rem); line-height: 1; transition: color .4s; }
.atlas__meta { grid-area: meta; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; text-align: right; }
.atlas__notes { grid-area: notes; font-size: .95rem; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .45s, max-height .5s var(--ease), margin .5s var(--ease); color: rgba(243,235,221,.8); }
.atlas__item.is-active .atlas__link, .atlas__link:focus-visible { padding-left: 20px; }
.atlas__item.is-active .atlas__num { color: var(--origin); opacity: 1; }
.atlas__item.is-active .atlas__name { color: var(--origin); }
.atlas__item.is-active .atlas__notes { opacity: 1; max-height: 80px; margin-top: 8px; }
.atlas__link:hover { color: inherit; }
.atlas__stage { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: center; }
.atlas__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-light); animation: spin 60s linear infinite; }
.atlas__bag { position: absolute; inset: 14% 20%; margin: 0; border-radius: 16px; overflow: hidden; background: #fff; opacity: 0; transform: translateY(24px) rotate(-4deg) scale(.96); transition: opacity .6s var(--ease), transform .8s var(--ease); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 6px color-mix(in srgb, var(--origin) 70%, transparent); }
.atlas__bag img { width: 100%; height: 100%; object-fit: cover; }
.atlas__bag.is-active { opacity: 1; transform: none; }

/* ---------- Grind guide ---------- */
.grind-sec__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.grind { border-top: 1.5px solid var(--ink); }
.grind__row { display: grid; grid-template-columns: 170px 150px 1fr; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.grind__name { font-weight: 700; }
.grind__scale { display: flex; gap: 5px; }
.grind__scale span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); transition: background .4s; }
.grind__scale span.is-on { background: var(--green); box-shadow: 0 0 0 3px rgba(17,70,57,.15); }
.grind__scale--beans span { background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 9px); }
.grind__text { margin: 0; color: var(--ink-2); font-size: .95rem; }
.grind__legend { display: grid; grid-template-columns: 170px 150px 1fr; gap: 20px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; }
.grind__ends { display: flex; justify-content: space-between; }

/* ---------- Story ---------- */
.story__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 6vw, 96px); align-items: center; }
.story__copy p:not(.eyebrow) { color: var(--ink-2); max-width: 58ch; font-size: 1.08rem; }
.story__copy .btn { margin-top: 12px; }
.story__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--ink); border-left: 1px solid var(--line); }
.story__stats li { padding: 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story__stats strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem); line-height: 1; color: var(--green); }
.story__stats span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Benefits ---------- */
.benefits { background: var(--ink); color: var(--cream); padding-block: clamp(48px, 6vw, 80px); }
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.benefit .icon { width: 34px; height: 34px; color: var(--amber); margin-bottom: 16px; }
.benefit h3 { font-size: 1.08rem; margin-bottom: 6px; }
.benefit p { font-size: .94rem; color: rgba(243,235,221,.72); margin: 0; }

/* ---------- FAQ ---------- */
.faq-sec__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.faq { border-top: 1.5px solid var(--ink); }
.faq__item, .prose details { border-bottom: 1px solid var(--line); }
.faq__item summary, .prose details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-weight: 600; font-size: 1.08rem; }
.faq__item summary::-webkit-details-marker, .prose details summary::-webkit-details-marker { display: none; }
.faq__icon { width: 22px; flex: none; transition: transform .45s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a, .prose details > :not(summary) { color: var(--ink-2); padding-bottom: 6px; }
.faq__a { padding-bottom: 22px; max-width: 68ch; }
.prose details summary::after { content: "+"; font-family: var(--f-body); font-weight: 300; font-size: 1.6rem; line-height: 1; transition: transform .45s var(--ease); }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details[open] > :last-child { margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: var(--cream); position: relative; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer__cta { border-bottom: 1px solid var(--line-light); }
.site-footer__cta-inner { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-block: clamp(56px, 7vw, 100px); }
.site-footer__big { font-family: var(--f-display); font-size: clamp(2.8rem, 1.6rem + 5vw, 6.4rem); line-height: .95; margin: 0; max-width: 15ch; }
.site-footer__big em { color: var(--amber); }
.site-footer__visit { display: grid; gap: 10px; justify-items: start; }
.site-footer__visit p { display: flex; gap: 8px; align-items: center; margin: 0; }
.site-footer__visit p .icon { width: 20px; color: var(--amber); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); padding-block: 56px 40px; }
.site-footer__brand p { color: rgba(243,235,221,.7); max-width: 36ch; margin-top: 18px; font-size: .95rem; }
.brand--footer .brand__mark { color: var(--amber); }
.site-footer__h { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.contact-list li a, .contact-list li span { display: inline-flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { width: 18px; flex: none; margin-top: 3px; opacity: .8; }
.social { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; transition: background .3s, color .3s; }
.social a:hover { background: var(--amber); color: var(--ink); }
.social .icon { width: 19px; }
.anpc { display: grid; gap: 8px; margin-top: 20px; }
.anpc__badge { display: flex; align-items: center; gap: 10px; width: 250px; max-width: 100%; height: 50px; padding: 0 12px; border-radius: 6px; background: var(--cream); color: var(--green-950) !important; font-size: .66rem; line-height: 1.2; }
.anpc__badge strong { font-size: 1.05rem; letter-spacing: .04em; color: #0c4a8a; }
.site-footer__pay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 28px; }
.site-footer__pay img { background: #fff; border-radius: 6px; padding: 4px 8px; height: 40px; width: auto; }
.cards { display: inline-flex; gap: 8px; }
.cards svg { width: 48px; height: 30px; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line-light); padding-block: 22px 28px; font-size: .8rem; color: rgba(243,235,221,.6); }
.site-footer__legal p { margin: 0; max-width: 80ch; }
.site-footer__legal .credit a { color: var(--amber); font-weight: 600; }
.site-footer__legal .linklike { color: inherit; font-size: inherit; }

/* ---------- Page / prose ---------- */
.page-hero { background: var(--cream); padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero--compact { padding-block: 36px 28px; }
.page-hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 1.6rem + 4vw, 5.2rem); line-height: .98; letter-spacing: -.01em; margin: 10px 0 .2em; max-width: 18ch; }
.page-hero--compact .page-hero__title { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }
.page-hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin: 12px 0 0; }
.crumbs { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs__sep { opacity: .5; }

.prose { padding-block: clamp(40px, 6vw, 80px); }
.prose--page { max-width: 820px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); margin-top: 1.8em; line-height: 1.05; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--green); font-weight: 500; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose .wp-block-table { overflow-x: auto; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 3px solid var(--amber); font-family: var(--f-display); font-size: 1.6rem; line-height: 1.25; color: var(--ink); }
.prose .callout, .prose .wp-block-group.is-style-callout { background: var(--cream); border-radius: var(--radius-sm); padding: 20px 24px; border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius-sm); }
.prose .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.prose .lead { font-size: 1.25rem; color: var(--ink); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 72px); padding-block: clamp(40px, 6vw, 80px); align-items: start; }
.contact__info { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.contact__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact__card--legal { background: var(--cream); }
.contact__h { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; margin-bottom: 16px; }
.contact-list--big { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; font-size: 1.08rem; }
.contact-list--big a { text-decoration: none; font-weight: 600; }
.kv { margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.kv div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.kv dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; }
.cform { display: grid; gap: 4px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform__hp { position: absolute; left: -9999px; }
.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input:not([type=checkbox]), .field select, .field textarea,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce-page form .form-row .input-text {
	width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
	transition: border-color .25s, box-shadow .25s; font-size: 1rem; line-height: 1.3;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(17,70,57,.12); }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.field--check input { margin-top: 4px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.form-note { padding: 16px 20px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.form-note--ok { background: #e2f1e8; color: var(--ok); }
.form-note--err { background: #fbe6e4; color: var(--danger); }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(64px, 10vw, 140px); text-align: center; }
.notfound__inner { max-width: 640px; }
.notfound__mark { width: 120px; margin: 0 auto 24px; color: var(--green); animation: spin 18s linear infinite; }
.notfound__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.postline { padding-block: 18px; border-bottom: 1px solid var(--line); }

/* ---------- Divider ---------- */
.divider { display: flex; align-items: center; gap: 16px; color: var(--green); margin: 40px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider__mark { width: 28px; }

/* ---------- Consent ---------- */
.consent { position: fixed; z-index: 100; left: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(8,36,29,.45), 0 0 0 1px var(--line); animation: consentin .6s var(--ease); }
.consent__inner { padding: 24px; }
.consent__eyebrow { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-700); margin: 0 0 6px; }
.consent__title { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; margin: 0 0 8px; }
.consent__text { font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; }
.consent__text a { color: var(--green); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent__actions .btn { padding: .7em 1.1em; font-size: .88rem; flex: 1 1 auto; }
.consent__prefs { display: grid; gap: 10px; margin-bottom: 16px; padding: 14px; background: var(--paper); border-radius: 12px; }
.switch { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--green); grid-row: span 2; }
.switch span { font-weight: 600; font-size: .92rem; }
.switch small { color: var(--muted); font-size: .8rem; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bagin { from { opacity: 0; transform: translateY(60px) rotate(calc(var(--r) * 2)); } to { opacity: 1; transform: translateY(0) rotate(var(--r)); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes steam { 0% { stroke-dashoffset: 160; opacity: 0; } 30% { opacity: 1; } 70% { opacity: .6; } 100% { stroke-dashoffset: -160; opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(251,188,52,.6); } 70% { box-shadow: 0 0 0 10px rgba(251,188,52,0); } 100% { box-shadow: 0 0 0 0 rgba(251,188,52,0); } }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes consentin { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.pgrid, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.grind__row { grid-template-columns: 150px 120px 1fr; }
	.grind__legend { grid-template-columns: 150px 120px 1fr; }
}
@media (max-width: 960px) {
	:root { --header-h: 66px; }
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250, 246, 238, .98); }
	.navtoggle { display: inline-grid; }
	.nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; background: var(--paper); color: var(--ink); padding: 28px var(--gutter) 40px; transform: translateX(100%); transition: transform .55s var(--ease); overflow-y: auto; display: flex; flex-direction: column; }
	.is-open .nav { transform: none; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
	.is-open .nav__list li { opacity: 1; transform: none; }
	.is-open .nav__list li:nth-child(2) { transition-delay: .05s; } .is-open .nav__list li:nth-child(3) { transition-delay: .1s; } .is-open .nav__list li:nth-child(4) { transition-delay: .15s; } .is-open .nav__list li:nth-child(5) { transition-delay: .2s; } .is-open .nav__list li:nth-child(6) { transition-delay: .25s; }
	.nav__list a { display: block; padding: 16px 0; font-family: var(--f-display); font-size: 2rem; }
	.nav__list a::after { display: none; }
	.nav__mobile-extra { display: grid; gap: 12px; margin-top: auto; padding-top: 32px; }
	.nav__mobile-extra a { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 600; }
	.nav__mobile-extra .icon { width: 20px; color: var(--green); }
	body.nav-open { overflow: hidden; }
	.hero__inner { grid-template-columns: 1fr; min-height: 0; }
	.hero__stage { width: calc(100% - 24px); max-width: 440px; justify-self: center; order: -1; margin-top: -10px; }
	.hero__scroll { display: none; }
	.cats__grid, .atlas__body, .grind-sec__inner, .story__inner, .faq-sec__inner, .contact__grid { grid-template-columns: 1fr; }
	.atlas__stage { max-width: 340px; order: -1; }
	.benefits__grid { grid-template-columns: 1fr 1fr; }
	.contact__info { position: static; }
}
@media (max-width: 640px) {
	.pgrid, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pcard__notes { display: none; }
	.pcard__foot { flex-direction: column; align-items: stretch; }
	.pcard__cta { justify-content: center; }
	.pcard__title { font-size: .96rem; }
	.brand__sub { display: none; }
	.brand__mark { width: 36px; height: 36px; }
	.site-header__actions .iconbtn[aria-label="Contul meu"] { display: none; }
	.hero__facts strong { font-size: 1.7rem; }
	.grind__row { grid-template-columns: 1fr 110px; row-gap: 6px; }
	.grind__text { grid-column: 1 / -1; }
	.grind__legend { display: none; }
	.benefits__grid, .site-footer__grid { grid-template-columns: 1fr; }
	.cform__row { grid-template-columns: 1fr; }
	.atlas__link { grid-template-columns: 34px 1fr; grid-template-areas: "num name" "num meta" "num notes"; }
	.atlas__meta { text-align: left; margin-top: 6px; }
	.story__stats li { padding: 20px 16px; }
	.consent { left: 8px; right: 8px; bottom: 8px; width: auto; }
	.kv div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.hero__title .line > span, .hero__lead, .hero__ctas, .hero__facts, .bag { opacity: 1; transform: none; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
	.site-header, .topbar, .site-footer__cta, .consent, .marquee { display: none !important; }
	body { background: #fff; }
}
