/* =====================================================================
   TULIO — main stylesheet
   Premium Nordic fire-grill store. Warm paper, ink text, corten-rust
   accents; Fraunces display serif + Inter body.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
	--ink: #211d1a;
	--ink-soft: #4a423b;
	--ink-mute: #6f655b;
	--paper: #f6f2ea;
	--paper-card: #fbf9f3;
	--sand: #ece4d6;
	--line: #ddd3c4;
	--rust: #9c5631;
	--rust-deep: #7d4022;
	--steel: #6f7378;
	--steel-dark: #34383b;
	--sea: #9fb6bd;
	--rowan: #c79a64;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--container: 1200px;
	--container-narrow: 760px;
	--radius: 3px;
	--radius-lg: 6px;
	--shadow-sm: 0 1px 2px rgba(33, 29, 26, .06), 0 2px 8px rgba(33, 29, 26, .05);
	--shadow-md: 0 6px 30px rgba(33, 29, 26, .12);

	--space-s: clamp(1rem, .8rem + 1vw, 1.5rem);
	--space-m: clamp(2rem, 1.4rem + 3vw, 3.5rem);
	--space-l: clamp(3.5rem, 2.4rem + 5vw, 6.5rem);

	--header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-deep); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-m) 0; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, .6rem + 2.5vw, 2.5rem); }
.container--narrow { max-width: var(--container-narrow); }
.eyebrow {
	font-family: var(--font-body);
	font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--rust); margin: 0 0 1rem;
}
.lead { font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); color: var(--ink-soft); line-height: 1.6; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--radius); }
.section { padding-block: var(--space-l); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--steel-dark); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.text-center { text-align: center; }
.measure { max-width: 60ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn, .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1;
	letter-spacing: .02em;
	padding: .95rem 1.6rem;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink); color: var(--paper);
	cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
	text-decoration: none; white-space: nowrap;
}
.btn:hover, .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce .button.alt:hover {
	background: var(--rust); border-color: var(--rust); color: #fff; text-decoration: none; transform: translateY(-1px);
}
.btn--ghost {
	background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--rust { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn--rust:hover { background: var(--rust-deep); border-color: var(--rust-deep); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(246, 242, 234, .9);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.site-header__brand { flex: 0 0 auto; }
.site-logo {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.5rem;
	letter-spacing: .14em;
	color: var(--ink);
	text-transform: uppercase;
}
.site-logo:hover { color: var(--rust); text-decoration: none; }
.site-logo__mark {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	color: var(--rust);
}
.site-logo__mark svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.1;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.site-logo__word { line-height: 1; }
.custom-logo { max-height: 44px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav__menu { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav__menu a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.site-nav__menu a:hover { color: var(--rust); text-decoration: none; }
.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--ink); }
.cart-link:hover { color: var(--rust); }
.cart-link__count {
	position: absolute; top: -8px; right: -10px;
	min-width: 18px; height: 18px; padding: 0 4px;
	display: grid; place-items: center;
	font-family: var(--font-body); font-size: .68rem; font-weight: 700; line-height: 1;
	background: var(--rust); color: #fff; border-radius: 999px;
}
.nav-toggle { display: none; flex-direction: column; gap: 4px; width: 40px; height: 40px; padding: 9px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.15) 0%, rgba(20,16,12,.1) 40%, rgba(20,16,12,.72) 100%); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(2.5rem, 1rem + 7vw, 6rem); }
.hero .eyebrow { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.hero__title { color: #fff; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); margin-bottom: .35em; }
.hero__sub { color: rgba(255,255,255,.92); max-width: 46ch; font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); margin-bottom: 1.8rem; }
.hero__price { font-family: var(--font-display); font-size: 1.25rem; color: #fff; margin: 0 0 1.4rem; }
.hero__price span { color: #f0d9c8; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--ink); color: var(--paper); }
.trust-strip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; padding-block: 1.1rem; text-align: center; }
.trust-strip__item { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 500; letter-spacing: .02em; color: var(--paper); }
.trust-strip__item svg { color: var(--rowan); flex: 0 0 auto; }

/* ---------- Generic section heads ---------- */
.section__head { max-width: 64ch; margin-bottom: var(--space-m); }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 4vw, 5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.split__body { max-width: 52ch; }

/* ---------- Feature grid (Miksi TULIO) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, .8rem + 2vw, 2.4rem); }
.feature { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); }
.feature__icon { width: 40px; height: 40px; color: var(--rust); margin-bottom: 1rem; }
.feature h3 { margin-bottom: .4em; }
.feature p { margin: 0; color: var(--ink-soft); }

/* ---------- Steps (Ruoanlaitto) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, .8rem + 2vw, 2.4rem); counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: 2.4rem; color: var(--rust); display: block; margin-bottom: .4rem; line-height: 1; }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Spec table ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec th, .spec td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.spec th { font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); width: 55%; }
.spec td { text-align: right; font-weight: 600; }

/* ---------- Product detail pair ---------- */
.detail-pair {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1rem, .8rem + 2vw, 2rem);
}
.detail-pair figure {
	margin: 0;
}
.detail-pair img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	background: #fff;
}
.detail-pair figcaption {
	margin-top: .65rem;
	color: var(--ink-soft);
	font-size: .92rem;
	font-weight: 600;
	text-align: center;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: .9rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-tall { grid-column: span 4; aspect-ratio: 3/4; }
.gallery .g-wide { grid-column: span 8; aspect-ratio: 16/10; }
.gallery .g-sq { grid-column: span 4; aspect-ratio: 1; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta-banner__media { position: absolute; inset: 0; }
.cta-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,12,.55); }
.cta-banner__inner { position: relative; z-index: 2; padding-block: var(--space-l); }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.9); }

/* ---------- Pages / posts ---------- */
.page-head { padding-block: var(--space-m) var(--space-s); border-bottom: 1px solid var(--line); margin-bottom: var(--space-m); }
.entry-content { font-size: 1.06rem; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-card__media img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; }
.post-card__title { font-size: 1.3rem; margin: .8rem 0 .3rem; }

/* =====================================================================
   WooCommerce
   ===================================================================== */
.wc-main { padding-block: var(--space-l); }
.woocommerce .container > h1.page-title,
.woocommerce-products-header { margin-bottom: var(--space-m); }
.woocommerce-products-header__title { font-size: clamp(2rem,1.4rem + 2.5vw,3rem); }

/* Shop grid */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem,.8rem + 2vw,2.4rem); margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: left; }
.woocommerce ul.products li.product a img { border-radius: var(--radius-lg); margin-bottom: .9rem; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-sm); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-display); font-size: 1.3rem; padding: 0; }
.woocommerce ul.products li.product .price { color: var(--ink); font-weight: 600; }
.woocommerce ul.products li.product .price del { color: var(--ink-mute); font-weight: 400; }
.woocommerce ul.products li.product .button { margin-top: .6rem; }

/* Single product */
.single-product div.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem,1rem + 4vw,4rem); align-items: start; }
.single-product div.product .woocommerce-product-gallery { margin: 0; }
.single-product div.product .woocommerce-product-gallery__image img { border-radius: var(--radius-lg); }
.single-product div.product .product_title { font-size: clamp(2rem,1.5rem + 2.5vw,3.2rem); margin-bottom: .2em; }
.single-product div.product p.price, .single-product div.product span.price { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); }
.single-product .woocommerce-product-details__short-description { font-size: 1.08rem; color: var(--ink-soft); margin-block: 1rem 1.5rem; }
.single-product div.product form.cart { margin-block: 1.5rem; display: flex; gap: .8rem; align-items: stretch; flex-wrap: wrap; }
.single-product div.product form.cart .quantity input { width: 4.5rem; height: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); }
.single-product .product_meta { margin-top: 1.5rem; font-size: .9rem; color: var(--ink-mute); }
.single-product .product_meta > span { display: block; margin-bottom: .3rem; }

/* Product tabs */
.woocommerce-tabs { grid-column: 1 / -1; margin-top: var(--space-m); }
.woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.5rem; padding: 0 0 .6rem; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a { display: inline-block; padding: .6rem 1rem; font-weight: 600; color: var(--ink-soft); border-radius: var(--radius); }
.woocommerce-tabs ul.tabs li.active a { background: var(--ink); color: var(--paper); }
.woocommerce-tabs .panel h2 { font-size: 1.5rem; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top: 3px solid var(--rust); background: var(--paper-card); padding: 1rem 1.2rem; border-radius: var(--radius); list-style: none; margin-bottom: 1.5rem;
}
.woocommerce-message { border-top-color: var(--rust); }
.woocommerce-error { border-top-color: #b3261e; }
.woocommerce .woocommerce-message .button, .woocommerce-info .button { float: right; }

/* Cart / checkout tables + forms */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius-lg); border-collapse: separate; border-spacing: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 1rem; border-top: 1px solid var(--line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text, .select2-container .select2-selection {
	padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); font: inherit;
}
.woocommerce .cart_totals h2, .woocommerce-checkout h3 { font-size: 1.4rem; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
	.split, .single-product div.product { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 0; }
	.features, .steps, .woocommerce ul.products, .post-list { grid-template-columns: repeat(2, 1fr); }
	.gallery .g-wide { grid-column: span 12; }
	.gallery .g-tall, .gallery .g-sq { grid-column: span 6; }
}
@media (max-width: 720px) {
	:root { --header-h: 64px; }
	.nav-toggle { display: flex; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
		background: var(--paper); border-bottom: 1px solid var(--line);
		max-height: 0; overflow: hidden; transition: max-height .25s ease; box-shadow: var(--shadow-md);
	}
	.site-header.is-nav-open .site-nav { max-height: 70vh; }
	.site-nav__menu { flex-direction: column; gap: 0; padding: .5rem 0; }
	.site-nav__menu li { border-bottom: 1px solid var(--line); }
	.site-nav__menu a { display: block; padding: 1rem clamp(1.1rem,.6rem + 2.5vw,2.5rem); }
	.site-header.is-nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.site-header.is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.site-header.is-nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.features, .steps, .woocommerce ul.products, .post-list { grid-template-columns: 1fr; }
	.detail-pair { grid-template-columns: 1fr; }
	.gallery .g-tall, .gallery .g-sq, .gallery .g-wide { grid-column: span 12; }
	.single-product div.product form.cart { flex-direction: column; align-items: stretch; }
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--steel-dark); color: #d9d2c7; margin-top: var(--space-l); }
.site-footer a { color: #e7ddcb; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-m); padding-block: var(--space-m); }
.site-footer__logo { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .14em; color: #fff; margin: 0 0 .4rem; }
.site-footer__tagline { color: #b8b0a4; max-width: 28ch; }
.site-footer__heading { font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; color: #fff; margin: 0 0 .8rem; }
.site-footer__menu { list-style: none; margin: 0; padding: 0; }
.site-footer__menu li { margin-bottom: .5rem; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.08); }
.site-footer__bar-inner { padding-block: 1.1rem; font-size: .85rem; color: #9b9286; }
.site-footer__bar-inner p { margin: 0; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-s); } }
