/*
Theme Name:  Hamburgerbruket
Theme URI:   https://hamburgerbruket.se
Author:      Hamburgerbruket
Author URI:  https://hamburgerbruket.se
Description: 3D-inspirerat tema för Hamburgerbruket. Mörk industriell estetik med djupa skuggor, perspektivtransformationer och rörlig grid-bakgrund.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hamburgerbruket
Tags:        restaurant, dark, custom-colors, custom-menu, featured-images, full-width-template
*/

/* ─────────────────────────────────────────
   CSS RESET & CUSTOM PROPERTIES
───────────────────────────────────────── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--char:  #1a1208;
	--ember: #c94a0a;
	--gold:  #e8a020;
	--cream: #f5ede0;
	--smoke: #2e2416;
	--ash:   #4a3c2a;

	--font-display: 'Bebas Neue', sans-serif;
	--font-body:    'DM Sans', sans-serif;

	--max-width: 1200px;
	--section-pad: 7rem 3rem;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
	background: var(--char);
	color: var(--cream);
	font-family: var(--font-body);
	overflow-x: hidden;
	line-height: 1.6;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 999;
	opacity: 0.3;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ember); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	letter-spacing: 0.04em;
	line-height: 1;
}

p { line-height: 1.75; }

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 2rem;
}

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: rgba(26,18,8,0.9);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(232,160,32,0.15);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1.2rem;
	padding-bottom: 1.2rem;
}

.site-logo {
	font-family: var(--font-display);
	font-size: 1.8rem;
	letter-spacing: 0.08em;
	color: var(--gold);
	text-decoration: none;
	text-shadow: 0 4px 12px rgba(232,160,32,0.4);
	transform: perspective(400px) rotateX(8deg);
	display: block;
}

.site-logo:hover { color: var(--gold); }

/* Primary nav */
.primary-navigation ul {
	list-style: none;
	display: flex;
	gap: 2rem;
}

.primary-navigation a {
	color: var(--cream);
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 500;
	position: relative;
	padding-bottom: 2px;
}

.primary-navigation a::after {
	content: '';
	position: absolute;
	bottom: -4px; left: 0;
	width: 0; height: 2px;
	background: var(--ember);
	transition: width 0.3s;
}

.primary-navigation a:hover { color: var(--gold); }
.primary-navigation a:hover::after { width: 100%; }

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(232,160,32,0.4);
	color: var(--gold);
	padding: 0.4rem 0.8rem;
	font-family: var(--font-display);
	font-size: 1rem;
	letter-spacing: 0.1em;
	cursor: pointer;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 50% 80%, rgba(201,74,10,0.2) 0%, transparent 70%),
		var(--char);
}

.hero__grid {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 55%;
	transform: perspective(800px) rotateX(70deg);
	transform-origin: bottom center;
	background-image:
		linear-gradient(rgba(201,74,10,0.22) 1px, transparent 1px),
		linear-gradient(90deg, rgba(201,74,10,0.22) 1px, transparent 1px);
	background-size: 80px 80px;
	animation: gridScroll 6s linear infinite;
	mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
	-webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

@keyframes gridScroll {
	from { background-position: 0 0; }
	to   { background-position: 0 80px; }
}

.hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 2rem;
}

.hero__eyebrow {
	font-size: 0.8rem;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--ember);
	margin-bottom: 1rem;
	animation: fadeUp 0.8s ease both;
}

.hero__title {
	font-family: var(--font-display);
	font-size: clamp(5rem, 14vw, 13rem);
	line-height: 0.9;
	letter-spacing: 0.03em;
	color: var(--cream);
	text-shadow:
		0 2px 0 var(--ash),
		0 5px 0 rgba(0,0,0,0.6),
		0 10px 25px rgba(0,0,0,0.8);
	animation: fadeUp 0.8s ease 0.1s both;
	transform: perspective(600px) rotateX(6deg);
	transform-origin: center bottom;
}

.hero__title span {
	display: block;
	color: var(--ember);
	text-shadow: 0 2px 0 #7a2a04, 0 5px 20px rgba(201,74,10,0.6);
}

.hero__sub {
	font-size: 1.1rem;
	font-weight: 300;
	color: rgba(245,237,224,0.65);
	margin: 2rem auto 0;
	max-width: 400px;
	letter-spacing: 0.04em;
	animation: fadeUp 0.8s ease 0.25s both;
}

.hero__cta {
	display: inline-block;
	margin-top: 2.5rem;
	padding: 1rem 2.8rem;
	background: var(--ember);
	color: var(--cream) !important;
	font-family: var(--font-display);
	font-size: 1.3rem;
	letter-spacing: 0.15em;
	transform: perspective(400px) rotateX(8deg);
	transform-origin: center bottom;
	transition: transform 0.2s, box-shadow 0.2s;
	animation: fadeUp 0.8s ease 0.35s both;
	box-shadow: 0 6px 0 #7a2a04, 0 12px 30px rgba(201,74,10,0.4);
}

.hero__cta:hover {
	transform: perspective(400px) rotateX(4deg) translateY(-4px);
	box-shadow: 0 10px 0 #7a2a04, 0 20px 40px rgba(201,74,10,0.5);
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   BADGE STRIP / MARQUEE
───────────────────────────────────────── */
.badge-strip {
	background: var(--gold);
	color: var(--char);
	padding: 0.6rem 0;
	overflow: hidden;
}

.badge-strip__track {
	display: flex;
	gap: 3rem;
	white-space: nowrap;
	animation: marquee 18s linear infinite;
	width: max-content;
}

.badge-strip__track span {
	font-family: var(--font-display);
	font-size: 1.1rem;
	letter-spacing: 0.15em;
}

@keyframes marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   SECTIONS – SHARED
───────────────────────────────────────── */
.section {
	padding: var(--section-pad);
}

.section--smoke {
	background: var(--smoke);
}

.section-label {
	font-size: 0.7rem;
	letter-spacing: 0.5em;
	text-transform: uppercase;
	color: var(--ember);
	margin-bottom: 0.6rem;
}

.section-title {
	font-size: clamp(3rem, 7vw, 6rem);
	text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.divider {
	width: 40px;
	height: 2px;
	background: var(--ember);
	margin: 1.5rem 0;
}

/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about-card {
	background: var(--smoke);
	border: 1px solid rgba(232,160,32,0.2);
	padding: 3rem;
	transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
	transition: transform 0.4s ease;
	position: relative;
}

.about-card::after {
	content: '';
	position: absolute;
	inset: 12px -12px -12px 12px;
	background: var(--ember);
	z-index: -1;
	opacity: 0.5;
	filter: blur(3px);
}

.about-stat {
	font-family: var(--font-display);
	font-size: 5rem;
	color: var(--gold);
	line-height: 1;
	display: block;
}

.about-stat-label {
	font-size: 0.85rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: rgba(245,237,224,0.5);
	margin-top: 0.25rem;
}

.about-text {
	font-size: 1.1rem;
	line-height: 1.75;
	color: rgba(245,237,224,0.75);
	margin-top: 1.5rem;
}

.about-text strong { color: var(--gold); font-weight: 500; }

/* ─────────────────────────────────────────
   MENU / BURGER CARDS
───────────────────────────────────────── */
.menu-section {
	position: relative;
	overflow: hidden;
}

.menu-section::before {
	content: 'MENY';
	position: absolute;
	top: -0.1em; left: -0.05em;
	font-family: var(--font-display);
	font-size: clamp(8rem, 20vw, 20rem);
	color: rgba(255,255,255,0.02);
	pointer-events: none;
	line-height: 1;
	white-space: nowrap;
}

.menu-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 3rem;
}

.menu-card {
	background: var(--char);
	border: 1px solid rgba(232,160,32,0.1);
	position: relative;
	cursor: pointer;
	overflow: hidden;
	transform-style: preserve-3d;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
	display: flex;
	flex-direction: column;
}

.menu-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--ember);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
	z-index: 2;
}

.menu-card:hover {
	transform: perspective(600px) rotateX(-4deg) rotateY(2deg) translateY(-8px);
	box-shadow:
		0 20px 40px rgba(0,0,0,0.5),
		0 0 0 1px rgba(201,74,10,0.3);
	border-color: rgba(201,74,10,0.3);
}

.menu-card:hover::before { transform: scaleX(1); }

/* Burger image area */
.menu-card__img-wrap {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	position: relative;
	background: #1e1610;
}

.menu-card__img-wrap img,
.menu-card__img-wrap svg {
	width: 100%;
	height: 100%;
	display: block;
	transition: transform 0.4s ease;
}

.menu-card:hover .menu-card__img-wrap img,
.menu-card:hover .menu-card__img-wrap svg {
	transform: scale(1.06) translateY(-4px);
}

.menu-card__img-wrap::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 50px;
	background: linear-gradient(to top, var(--char), transparent);
	pointer-events: none;
}

/* Card body */
.menu-card__body {
	padding: 1.25rem 1.5rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.menu-card__name {
	font-family: var(--font-display);
	font-size: 1.6rem;
	letter-spacing: 0.08em;
	color: var(--cream);
	margin-bottom: 0.4rem;
}

.menu-card__desc {
	font-size: 0.85rem;
	line-height: 1.6;
	color: rgba(245,237,224,0.5);
	flex: 1;
}

.menu-card__price {
	font-family: var(--font-display);
	font-size: 1.8rem;
	color: var(--gold);
	margin-top: 1rem;
	letter-spacing: 0.05em;
}

/* WooCommerce / custom add-to-cart */
.menu-card__add {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.5rem 1.2rem;
	background: transparent;
	border: 1px solid var(--ember);
	color: var(--ember);
	font-family: var(--font-display);
	font-size: 1rem;
	letter-spacing: 0.12em;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.menu-card__add:hover {
	background: var(--ember);
	color: var(--cream);
}

.menu-more {
	text-align: center;
	margin-top: 3rem;
}

.menu-more a {
	display: inline-block;
	padding: 1rem 3rem;
	border: 1px solid rgba(232,160,32,0.4);
	color: var(--gold);
	font-family: var(--font-display);
	font-size: 1.2rem;
	letter-spacing: 0.2em;
	transition: background 0.2s;
}

.menu-more a:hover {
	background: rgba(232,160,32,0.1);
	color: var(--gold);
}

/* ─────────────────────────────────────────
   MANIFESTO BAND
───────────────────────────────────────── */
.manifesto {
	background: var(--ember);
	padding: 6rem 3rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.manifesto::before {
	content: '"';
	position: absolute;
	top: -0.3em; left: 0.05em;
	font-family: var(--font-display);
	font-size: clamp(10rem, 28vw, 28rem);
	color: rgba(0,0,0,0.08);
	line-height: 1;
	pointer-events: none;
}

.manifesto__text {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw, 5.5rem);
	line-height: 1.1;
	letter-spacing: 0.04em;
	color: var(--cream);
	max-width: 900px;
	margin: 0 auto;
	text-shadow: 0 2px 0 rgba(0,0,0,0.3), 0 6px 20px rgba(0,0,0,0.2);
	transform: perspective(800px) rotateX(4deg);
	position: relative;
	z-index: 1;
}

/* ─────────────────────────────────────────
   LOCATIONS
───────────────────────────────────────── */
.locations-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-top: 3rem;
}

.location-card {
	background: var(--smoke);
	border: 1px solid rgba(232,160,32,0.12);
	padding: 2.5rem;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.location-card:hover {
	transform: perspective(800px) rotateX(-1deg) rotateY(3deg) translateY(-6px);
	box-shadow: 20px 30px 60px rgba(0,0,0,0.5);
}

.location-card__name {
	font-family: var(--font-display);
	font-size: 3rem;
	letter-spacing: 0.06em;
	color: var(--gold);
	margin-bottom: 0.5rem;
}

.location-card__addr {
	font-size: 0.9rem;
	color: rgba(245,237,224,0.5);
	margin-bottom: 1.5rem;
}

.hours-row {
	display: flex;
	justify-content: space-between;
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	font-size: 0.9rem;
}

.hours-row:last-of-type { border-bottom: none; }

.hours-row__day { color: rgba(245,237,224,0.5); }
.hours-row__time { color: var(--cream); font-weight: 500; }

.btn-outline {
	display: inline-block;
	margin-top: 2rem;
	padding: 0.75rem 2rem;
	border: 1px solid var(--ember);
	color: var(--ember);
	font-family: var(--font-display);
	font-size: 1.1rem;
	letter-spacing: 0.15em;
	transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
	background: var(--ember);
	color: var(--cream);
}

/* ─────────────────────────────────────────
   SINGULAR / POSTS
───────────────────────────────────────── */
.page-hero {
	padding: 10rem 3rem 4rem;
	text-align: center;
	border-bottom: 1px solid rgba(232,160,32,0.1);
}

.page-hero h1 {
	font-size: clamp(3rem, 8vw, 7rem);
	color: var(--cream);
}

.entry-content {
	max-width: 760px;
	margin: 4rem auto;
	padding: 0 2rem;
	font-size: 1.05rem;
	line-height: 1.8;
	color: rgba(245,237,224,0.8);
}

.entry-content h2 { font-size: 2.5rem; color: var(--gold); margin: 2rem 0 1rem; }
.entry-content h3 { font-size: 1.8rem; color: var(--cream); margin: 1.5rem 0 0.75rem; }
.entry-content p  { margin-bottom: 1.2rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1.2rem 1.5rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content strong { color: var(--gold); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
	background: #0e0a04;
	padding: 3rem;
	border-top: 1px solid rgba(232,160,32,0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-footer__logo {
	font-family: var(--font-display);
	font-size: 2rem;
	color: var(--gold);
	letter-spacing: 0.08em;
}

.site-footer__nav ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
}

.site-footer__nav a {
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(245,237,224,0.4);
	transition: color 0.2s;
}

.site-footer__nav a:hover { color: var(--gold); }

.site-footer__copy {
	font-size: 0.78rem;
	color: rgba(245,237,224,0.25);
}

/* ─────────────────────────────────────────
   GUTENBERG / BLOCK EDITOR
───────────────────────────────────────── */
.wp-block-group { max-width: var(--max-width); margin: 0 auto; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
	:root { --section-pad: 4rem 1.5rem; }

	.site-header .container { padding: 1rem 1.5rem; }

	.menu-toggle { display: block; }

	.primary-navigation {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: rgba(26,18,8,0.97);
		padding: 1.5rem;
		border-bottom: 1px solid rgba(232,160,32,0.15);
	}

	.primary-navigation.is-open { display: block; }

	.primary-navigation ul {
		flex-direction: column;
		gap: 1rem;
	}

	.about-grid { grid-template-columns: 1fr; }
	.menu-grid  { grid-template-columns: repeat(2, 1fr); }
	.locations-grid { grid-template-columns: 1fr; }

	.site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
	.menu-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   WOOCOMMERCE BASE OVERRIDES
───────────────────────────────────────── */
.woocommerce-page .woocommerce { max-width: var(--max-width); margin: 8rem auto 4rem; padding: 0 2rem; }
.woocommerce ul.products li.product { background: var(--smoke); border: 1px solid rgba(232,160,32,0.1); padding: 1rem; }
.woocommerce ul.products li.product .price { color: var(--gold); font-family: var(--font-display); font-size: 1.5rem; }
.woocommerce ul.products li.product .button { background: var(--ember); color: var(--cream); border: none; font-family: var(--font-display); letter-spacing: 0.1em; }
.woocommerce ul.products li.product .button:hover { background: #a03808; }
