/*
Theme Name: DeCarnis 2026
Theme URI: https://restavracija.decarnis.com
Author: DeCarnis
Description: Custom theme for Restavracija DeCarnis, built around an easy daily/weekend menu editor.
Version: 1.0
Text Domain: decarnis
*/

:root {
	--bg: #FAF7F2;
	--ink: #1C1917;
	--accent: #8A1C2B;
	--accent-dark: #5E111C;
	--muted: #57534E;
	--body-text: #44403C;
	--line: #E5DDD0;
	--line-soft: #CFC6B8;
	--card-tan: #F0E6D8;
	--card-tan-2: #F3ECE1;
	--dark: #1C1917;
	--darker: #141110;
	--on-dark: #E7E0D6;
	--on-dark-muted: #A8A29E;
	--row-line: #3A332E;
	--heading-font: 'Bricolage Grotesque', sans-serif;
	--body-font: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body-font);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

.wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

h1, h2 { font-family: var(--heading-font); margin: 0; }

.eyebrow {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent);
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	box-sizing: border-box;
}
.btn-primary { background: var(--accent); color: #fff; border: none; }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-light { border: 1.5px solid #6B625A; color: #fff; background: transparent; }
.btn-white { background: #fff; color: var(--ink); }

/* top bar */
.topbar {
	background: var(--dark);
	color: var(--on-dark);
	font-size: 14px;
}
.topbar .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 24px;
	padding: 8px 24px;
}
.topbar a {
	color: var(--on-dark);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
}
.topbar .phone { font-weight: 600; }

/* header / nav */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(250,247,242,0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 32px;
	padding: 10px 24px;
}
.logo {
	text-decoration: none;
	color: var(--ink);
	display: flex;
	flex-direction: column;
	line-height: 1;
	min-height: 44px;
	justify-content: center;
}
.logo .mark {
	font-family: var(--heading-font);
	font-weight: 800;
	font-size: 30px;
	letter-spacing: -0.02em;
}
.logo .mark span { color: var(--accent); }
.logo .sub {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: 4px;
}
.main-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 22px;
}
.navlink {
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	padding: 10px 4px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
.navlink:hover { color: var(--accent); }
.nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
}
.nav-toggle { display: none; }

@media (max-width: 760px) {
	.hide-sm { display: none !important; }
	.row-rev { flex-direction: column !important; }
	.main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 2px; }
	.main-nav.is-open { display: flex; }
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: none;
		background: transparent;
		cursor: pointer;
	}

	/* A lot of secondary/label text (eyebrows, hours, captions, form labels) was sized for
	   desktop reading distance and came out noticeably small on a phone - bump it up here. */
	body { font-size: 18px; }
	.eyebrow { font-size: 14px; }
	.topbar { font-size: 15px; }
	.logo .sub { font-size: 12px; }
	.navlink { font-size: 17px; }
	.nav-cta { font-size: 16px; }
	.hero-hours { font-size: 15px; }
	/* Keep all 5 day tabs on one row on any phone width, rather than risk wrapping again -
	   equal-width flex items that shrink their own padding instead of wrapping to a new line. */
	.day-tabs { flex-wrap: nowrap; gap: 6px; }
	.day-tab { flex: 1 1 0; min-width: 0; padding: 8px 4px; font-size: 14px; text-align: center; }
	.daily-head .week-date { font-size: 15px; }
	.mains-list .main-side, .mains-list .empty { font-size: 16px; }
	.side-card .eyebrow { font-size: 14px; }
	.weekend-item .desc { font-size: 16px; }
	.field { font-size: 15px; }
	.site-footer { font-size: 15px; }
	.delivery-hours { font-size: 16px; }
}

/* hero */
.hero { position: relative; padding: 72px 0 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 0 24px; }
.hero-copy { flex: 1 1 460px; min-width: 0; position: relative; z-index: 2; }
.hero-copy h1 {
	margin: 0 0 24px;
	font-weight: 800;
	font-size: clamp(46px, 6.4vw, 92px);
	line-height: 0.98;
	letter-spacing: -0.035em;
}
.hero-copy p.lead {
	margin: 0 0 36px;
	font-size: 19px;
	line-height: 1.65;
	color: var(--body-text);
	max-width: 34em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-hours {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 40px;
	font-size: 14px;
	color: var(--muted);
}
.hero-hours strong { color: var(--ink); }

.hero-art { flex: 1 1 460px; min-width: 0; position: relative; min-height: 460px; }
.hero-art .disc {
	position: absolute;
	inset: 6% 4% 4% 10%;
	border-radius: 50%;
	background: var(--card-tan);
}
.plate img { display: block; width: 100%; height: auto; border-radius: 16px; }
.hero-art .plate-main { position: relative; z-index: 2; width: 92%; margin: 30px 0 0 6%; }
.hero-art .plate-float-1 { position: absolute; z-index: 3; width: 34%; right: -4%; top: -6%; }
.hero-art .plate-float-2 { position: absolute; z-index: 3; width: 32%; left: -8%; bottom: -10%; }

/* offering rows */
.offerings { padding: 40px 0; }
.offerings .wrap { display: flex; flex-direction: column; gap: 120px; padding: 0 24px; }
.offer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.offer-row .plate { flex: 1 1 420px; min-width: 0; max-width: 580px; margin: 0 auto; }
.offer-row .plate img { border-radius: 24px; }
.offer-copy { flex: 1 1 400px; min-width: 0; }
.offer-copy .num {
	margin: 0 0 8px;
	font-family: var(--heading-font);
	font-weight: 800;
	font-size: 72px;
	line-height: 1;
	color: #E8DCCB;
}
.offer-copy h2 {
	margin: 0 0 18px;
	font-weight: 700;
	font-size: 40px;
	line-height: 1.08;
	letter-spacing: -0.02em;
}
.offer-copy p { margin: 0 0 26px; color: var(--body-text); font-size: 18px; }
.tlink {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	text-decoration: none;
	font-size: 16px;
	min-height: 44px;
	border-bottom: 2px solid currentColor;
	color: var(--accent);
}

/* kitchen strip */
.kitchen-strip { padding: 100px 0 40px; }
.kitchen-strip .wrap { padding: 0 24px; }
.strip-box {
	overflow: hidden;
	border-radius: 28px;
	background: var(--card-tan-2);
	padding: 36px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.strip-row {
	display: flex;
	gap: 40px;
	align-items: center;
	width: max-content;
	animation: stripMove 36s linear infinite;
}
.strip-row .plate { width: 260px; flex: none; }
.strip-row .plate img { border-radius: 18px; }
@keyframes stripMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-row { animation: none; } }

/* daily menu */
.daily-menu { padding: 100px 0 110px; scroll-margin-top: 80px; }
.daily-menu .wrap { padding: 0 24px; }
.daily-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
	margin-bottom: 36px;
}
.daily-head h2 { font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.daily-head .week-date { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.day-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.day-tab {
	font: inherit;
	cursor: pointer;
	min-height: 48px;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .02em;
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--line-soft);
}
.day-tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.daily-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.mains-card {
	flex: 1 1 460px;
	min-width: 0;
	background: var(--dark);
	color: #F5EFE6;
	border-radius: 24px;
	padding: 36px 36px 40px;
	position: relative;
	overflow: hidden;
}
.mains-card .eyebrow { color: #C9B79C; margin-bottom: 6px; }
.mains-list { display: flex; flex-direction: column; margin-top: 18px; }
.mains-list .main-item { padding: 18px 0; border-top: 1px solid var(--row-line); }
.mains-list .main-item:first-child { border-top: none; }
.mains-list .main-name { margin: 0; font-family: var(--heading-font); font-weight: 700; font-size: 25px; line-height: 1.2; }
.mains-list .main-side { margin: 4px 0 0; font-size: 15px; color: #C9BFB2; }
.mains-list .empty { color: #C9BFB2; font-size: 15px; }

.side-grid { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.side-card { background: var(--card-tan); border-radius: 20px; padding: 24px; }
.side-card .eyebrow { font-size: 12px; margin-bottom: 10px; }
.side-card p:not(.eyebrow) { margin: 0; padding: 7px 0; font-weight: 600; }
/* divider between consecutive dish entries only (not before the first one) - without this, two
   or more items with no gap between them just read as one run-on line, especially on mobile. */
.side-card p:not(.eyebrow) + p:not(.eyebrow) { border-top: 1px dashed var(--line-soft); }
.side-card .empty { color: var(--muted); font-weight: 500; }
.side-photo { grid-column: span 2; width: 78%; margin: 4px auto 0; }
.side-photo img { border-radius: 18px; }

/* weekend menu */
.weekend-menu { padding: 100px 0; background: var(--card-tan-2); scroll-margin-top: 80px; position: relative; overflow: hidden; }
.weekend-menu .wrap { max-width: 780px; position: relative; z-index: 2; padding: 0 24px; }
.weekend-menu .eyebrow, .weekend-menu h2, .weekend-menu > .wrap > p.lead { text-align: center; }
.weekend-menu h2 { margin: 0 0 14px; font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.weekend-menu p.lead { margin: 0 auto 44px; color: var(--body-text); max-width: 32em; }
.weekend-list { display: flex; flex-direction: column; background: var(--bg); border-radius: 24px; padding: 12px 32px; }
.weekend-item { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px dashed var(--line-soft); }
.weekend-item:last-child { border-bottom: none; }
.weekend-item .name { margin: 0; font-weight: 700; font-size: 19px; }
.weekend-item .desc { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.weekend-item .price { margin: 0; font-weight: 700; white-space: nowrap; }
.weekend-list .empty { padding: 20px 0; color: var(--muted); }

/* reservation + delivery */
.cards-section { padding: 110px 0; }
.cards-section .wrap { display: flex; flex-wrap: wrap; gap: 24px; padding: 0 24px; }
.card-box {
	flex: 1 1 460px;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 28px;
	padding: 40px;
	box-sizing: border-box;
	scroll-margin-top: 90px;
}
.card-box h2 { margin: 0 0 14px; font-weight: 700; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
.card-box p.desc { margin: 0 0 24px; color: var(--body-text); }

.cf7-reservation { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.cf7-reservation .wpcf7-form p { margin: 0; }
.cf7-reservation .wpcf7-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.cf7-reservation .form-intro { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
	font: inherit;
	font-weight: 500;
	min-height: 46px;
	padding: 10px 14px;
	border: 1.5px solid var(--line-soft);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	box-sizing: border-box;
	width: 100%;
}
.cf7-reservation input[type=submit] {
	grid-column: 1 / -1;
	font: inherit;
	font-weight: 700;
	min-height: 52px;
	border-radius: 999px;
	border: 2px solid var(--ink);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.cf7-reservation .wpcf7-response-output { grid-column: 1 / -1; margin: 0; }

.delivery-stack { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.delivery-card {
	flex: none;
	background: var(--accent);
	color: #fff;
	border-radius: 28px;
	padding: 40px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	scroll-margin-top: 90px;
}
.delivery-card .eyebrow { color: #F3D9C9; }
.delivery-card h2 { margin: 0 0 14px; font-weight: 700; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
.delivery-card p.desc { color: #FBEDE4; }
.delivery-hours {
	margin-top: auto;
	padding-top: 28px;
	display: flex;
	gap: 12px;
	align-items: center;
	font-size: 15px;
	font-weight: 600;
	color: #FBEDE4;
}
.delivery-photo { width: 88%; max-width: 480px; margin: auto auto 0; }
.delivery-photo img { border-radius: 24px; }

/* contact */
.contact-section { background: var(--dark); color: var(--on-dark); padding: 100px 0; scroll-margin-top: 80px; }
.contact-section .wrap { display: flex; flex-wrap: wrap; gap: 56px 80px; padding: 0 24px; }
.contact-section h2 { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: #fff; margin: 0 0 28px; }
.hours-col { flex: 1 1 320px; min-width: 0; }
.hours-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--row-line); font-size: 18px; }
.hours-row:last-child { border-bottom: 1px solid var(--row-line); }
.hours-row strong { color: #fff; }
.contact-col { flex: 1.3 1 380px; min-width: 0; }
.contact-col .addr-label { margin: 0 0 4px; color: var(--on-dark-muted); }
.contact-col .addr { margin: 0 0 22px; font-size: 22px; font-weight: 700; color: #fff; line-height: 1.35; }
.contact-col .maps-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1.5px solid #6B625A;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	box-sizing: border-box;
}
.contact-col .note { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--row-line); }
.contact-col .note + .note { margin-top: 14px; padding-top: 0; border-top: none; }
.contact-col a { color: #fff; font-weight: 700; }

/* footer */
.site-footer { background: var(--darker); color: var(--on-dark-muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 26px 24px; }
.site-footer a { color: var(--on-dark); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* scroll reveal - only takes effect once JS confirms it can run the reveal; without JS, everything stays visible */
.js .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fade-in { opacity: 1; transform: none; transition: none; } }

/* day panels: hidden attribute does the heavy lifting, this just ensures layout doesn't jump */
.day-panel { width: 100%; }

/* .daily-grid sets display:flex unconditionally, which (being an author rule) otherwise beats
   the browser's own low-priority default styling for the hidden attribute - reinforce it here. */
[hidden] { display: none !important; }
