/* ==========================================================================
   Nuroast design tokens (Figma "Colors" 197:9638 + variables of Home 65:7766)
   ========================================================================== */
:root {
	/* Brand */
	--nr-coral: #d46851;
	--nr-buttercream: #f4e1a7;
	--nr-soft-blue: #a5b9e0;
	--nr-burgundy: #7a3438;
	--nr-dusty-rose: #d4a095;
	--nr-dark-brown: #4c2f19;
	--nr-oat: #eae1cb;
	/* Neutral */
	--nr-n50: #fffbf5;
	--nr-n100: #fff9f1;
	--nr-n200: #f6f0e7;
	--nr-n300: #dbd7d0;
	--nr-n400: #b1afab;
	--nr-n500: #6f6c69;
	--nr-n600: #4d4b48;
	--nr-n700: #1d1d1c;
	--nr-n900: #212121;
	--nr-black: #000;
	--nr-white: #fff;

	/* Semantic */
	--nr-bg: var(--nr-n100);
	--nr-surface: var(--nr-n200);
	--nr-border: var(--nr-n300);
	--nr-text: var(--nr-n700);
	--nr-muted: var(--nr-n500);

	/* Typography */
	--nr-font-display: "Urbanist", "Inter", system-ui, sans-serif;
	--nr-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nr-fs-hero: 48px;    /* Urbanist 800 / 50 */
	--nr-fs-h1: 40px;      /* Urbanist 800 / 46 */
	--nr-fs-h2: 40px;
	--nr-fs-h3: 32px;      /* category card titles */
	--nr-fs-h4: 24px;      /* Urbanist 700 card titles */
	--nr-fs-lead: 24px;    /* Inter 500 about text */
	--nr-fs-price: 20px;   /* Inter 600 */
	--nr-fs-body: 16px;
	--nr-fs-small: 14px;
	--nr-fs-xs: 12px;

	/* Layout (Figma "Global Layout": 1440 frame, 1308 content, 66 side margin) */
	--nr-container: 1308px;
	--nr-gutter: 66px;
	--nr-gap: 12px;
	--nr-section-gap: 100px;
	--nr-radius-lg: 16px;
	--nr-radius: 12px;
	--nr-radius-sm: 8px;
	--nr-radius-pill: 56px;
	--nr-shadow-card: 0 4px 80px rgba(0, 0, 0, .16), 0 0 8px rgba(76, 54, 6, .32);
	--nr-header-h: 114px;
}

@media (max-width: 1100px) {
	:root { --nr-gutter: 32px; --nr-section-gap: 80px; }
}
@media (max-width: 767px) {
	:root {
		--nr-gutter: 20px;
		--nr-section-gap: 64px;
		--nr-fs-hero: 36px;
		--nr-fs-h1: 32px;
		--nr-fs-h2: 32px;
		--nr-fs-h3: 28px;
		--nr-fs-h4: 20px;
		--nr-fs-lead: 18px;
		--nr-header-h: 58px;
	}
}

/* ==========================================================================
   Base (on top of Hello Elementor's reset)
   ========================================================================== */
html { scroll-behavior: smooth; }
body.nuroast {
	background: var(--nr-bg);
	color: var(--nr-text);
	font-family: var(--nr-font-body);
	font-size: var(--nr-fs-body);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.nr-locked { overflow: hidden; }

.nuroast h1, .nuroast h2, .nuroast h3, .nuroast h4, .nuroast h5, .nuroast h6 {
	font-family: var(--nr-font-display);
	font-weight: 800;
	color: var(--nr-text);
	line-height: 1.15;
	margin-block: 0 .5em;
}
.nuroast h1 { font-size: var(--nr-fs-h1); }
.nuroast h2 { font-size: var(--nr-fs-h2); }
.nuroast h3 { font-size: var(--nr-fs-h4); font-weight: 700; }
.nuroast p { margin-block: 0 1em; }
:where(.nuroast) a { color: inherit; text-decoration: none; transition: color .15s, opacity .15s, background-color .15s; }
:where(.nuroast) a:hover { color: var(--nr-burgundy); }
.nuroast img { max-width: 100%; height: auto; }
.nuroast :focus-visible { outline: 2px solid var(--nr-coral); outline-offset: 2px; }

.nr-container {
	width: 100%;
	max-width: calc(var(--nr-container) + var(--nr-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--nr-gutter);
	box-sizing: border-box;
}

.nr-icon { display: inline-block; flex: none; vertical-align: middle; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	left: 8px; top: 8px; padding: 12px 16px; background: var(--nr-white); color: var(--nr-text);
}

/* Section heading pattern: eyebrow with coral dots + Urbanist headline + muted lead */
.nr-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0;
	font: 400 var(--nr-fs-small)/1.2 var(--nr-font-body);
	letter-spacing: .02em; text-transform: uppercase; color: var(--nr-muted);
}
.nr-eyebrow__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--nr-coral); flex: none; }
.nr-eyebrow--light { color: rgba(255, 255, 255, .6); }
.nr-eyebrow--muted { color: rgba(0, 0, 0, .6); }

.nr-h2 {
	font-family: var(--nr-font-display) !important;
	font-weight: 800 !important;
	font-size: var(--nr-fs-h2) !important;
	line-height: 1.15 !important;
	color: var(--nr-text);
	margin: 0 !important;
	text-wrap: balance;
}

/* Buttons (Figma: 40px pills, Inter Medium 16) */
.nr-btn,
.nuroast .button,
.nuroast button.button,
.nuroast input.button,
.nuroast .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 4px;
	min-height: 40px; padding: 10px 20px; box-sizing: border-box;
	border: 1px solid transparent; border-radius: var(--nr-radius-pill);
	font: 500 16px/1.2 var(--nr-font-body);
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.nr-btn--dark,
.nuroast .button,
.nuroast button.button,
.nuroast input.button,
.nuroast .wp-element-button { background: var(--nr-black); color: var(--nr-white); }
.nr-btn--dark:hover,
.nuroast .button:hover,
.nuroast button.button:hover,
.nuroast .wp-element-button:hover { background: var(--nr-n600); color: var(--nr-white); }
.nr-btn--light { background: var(--nr-white); color: var(--nr-black); }
.nr-btn--light:hover { background: var(--nr-n200); color: var(--nr-black); }
.nr-btn--outline { background: transparent; color: var(--nr-n600); border-color: var(--nr-border); padding-right: 16px; }
.nr-btn--outline:hover { background: var(--nr-white); color: var(--nr-text); }
.nr-btn--block { width: 100%; }
.nr-btn__icon { width: 24px; height: 24px; }
.nr-btn--dark .nr-btn__icon { color: var(--nr-white); }

.nr-round-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 40px; border-radius: var(--nr-radius-pill);
	background: var(--nr-white); color: var(--nr-black); flex: none;
}
.nr-round-btn:hover { background: var(--nr-black); color: var(--nr-white) !important; }
.nr-round-btn .nr-icon { width: 24px; height: 24px; }

.nr-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--nr-text); cursor: pointer;
}
.nr-icon-btn:hover { background: rgba(0, 0, 0, .05); color: var(--nr-text); }
.nr-icon-btn .nr-icon { width: 24px; height: 24px; }

/* Tags */
.nr-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.nr-tag {
	display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--nr-radius-pill);
	background: var(--nr-white); color: var(--nr-muted);
	font: 500 var(--nr-fs-xs)/16px var(--nr-font-body); letter-spacing: .02em; text-transform: uppercase;
}
.nr-tag--accent { color: var(--nr-burgundy); }
.nr-tags--muted .nr-tag { background: var(--nr-n300); text-transform: none; font-size: 14px; letter-spacing: 0; color: var(--nr-n600); }

/* Roast scale (Figma "Roast Scale" 215 x 5) */
.nr-roast { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nr-roast__label { font: 400 14px/16px var(--nr-font-body); color: var(--nr-n900); }
.nr-roast__scale {
	position: relative; display: flex; justify-content: space-between; align-items: center;
	width: 215px; max-width: 100%; height: 5px;
}
.nr-roast__scale::before {
	content: ""; position: absolute; left: 3px; right: 3px; top: 2px; height: 1px; background: var(--nr-n400);
}
.nr-roast__step { position: relative; width: 5px; height: 5px; background: var(--nr-n400); }
.nr-roast__step.is-active { width: 11px; background: var(--nr-coral); }

/* Close (x) and burger glyphs */
.nr-close, .nr-burger { position: relative; display: inline-block; width: 20px; height: 20px; }
.nr-close::before, .nr-close::after {
	content: ""; position: absolute; left: 1px; right: 1px; top: 9px; height: 2px; border-radius: 2px; background: currentColor;
}
.nr-close::before { transform: rotate(45deg); }
.nr-close::after { transform: rotate(-45deg); }
.nr-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; }
.nr-burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; }

/* Empty states */
.nr-empty { display: flex; justify-content: center; margin: 24px 0 8px; }
.nr-empty img { width: 100px; height: auto; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Neutralise Hello Elementor's pink button reset for theme UI buttons */
.nuroast .nr-icon-btn, .nuroast .nr-submenu-toggle, .nuroast .nr-qty__btn, .nuroast .nr-menu-toggle, .nuroast .nr-search-toggle {
	background-color: transparent; border: 0; color: var(--nr-text); padding: 0; border-radius: 50%; box-shadow: none;
}
.nuroast .nr-icon-btn:hover, .nuroast .nr-icon-btn:focus, .nuroast .nr-submenu-toggle:hover, .nuroast .nr-submenu-toggle:focus,
.nuroast .nr-qty__btn:hover, .nuroast .nr-qty__btn:focus { background-color: rgba(0, 0, 0, .05); color: var(--nr-text); }
.nuroast .nr-submenu-toggle:hover, .nuroast .nr-submenu-toggle:focus { background-color: transparent; }
.nuroast .nr-newsletter button, .nuroast .nr-newsletter button:hover { background: var(--nr-black); color: var(--nr-white); border: 0; }

/* Elementor's global kit colours links (".elementor-kit-N a"); keep theme components on design colours. */
body.nuroast a { color: inherit; }
body.nuroast a:hover { color: var(--nr-burgundy); }
body.nuroast a.nr-btn--dark, body.nuroast a.nr-btn--dark:hover,
body.nuroast a.button, body.nuroast a.button:hover, body.nuroast .nr-round-btn:hover { color: var(--nr-white); }
body.nuroast a.nr-btn--light, body.nuroast a.nr-btn--light:hover, body.nuroast .nr-round-btn { color: var(--nr-black); }
body.nuroast a.nr-btn--outline { color: var(--nr-n600); }
body.nuroast a.nr-btn--outline:hover { color: var(--nr-text); }
