@import url("https://fonts.googleapis.com/css2?family=Cherry+Bomb+One&family=Fascinate&family=Gravitas+One&family=Jua&family=Oi&display=swap");

:root {
	--cream: #f8efdf;
	--paper: #fff8eb;
	--ink: #2b170f;
	--orange: #d64b29;
	--yellow: #f0b52b;
	--green: #173a34;
	--muted: #705b50;
	--line: rgba(43, 23, 15, 0.15);
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: Inter, Arial, sans-serif;
}
a {
	text-decoration: none;
	color: inherit;
}
/* Prevent iPhone/Safari from zooming into form fields */
@media (max-width: 768px) {
	input,
	textarea,
	select {
		font-size: 16px;
	}
}
.wrap {
	width: min(1420px, 92vw);
	margin: auto;
}
.display {
	font-family: Anton, Impact, sans-serif;
	text-transform: uppercase;
	letter-spacing: -0.025em;
}
.retro {
	font-family: "Bree Serif", Georgia, serif;
}

/* ---------- preloader ---------- */
/* #preloader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: var(--cream);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
	transition:
		opacity 0.5s ease,
		visibility 0.5s ease;
}
#preloader.done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
#preloader img {
	width: 104px;
	animation: loaderBob 1.1s ease-in-out infinite;
}
@keyframes loaderBob {
	0%,
	100% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-8px) scale(1.04);
	}
}
#preloader .lw {
	font-family: "Bree Serif", Georgia, serif;
	font-size: 19px;
	color: var(--ink);
}
#preloader .ld {
	display: flex;
	gap: 6px;
}
#preloader .ld span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--orange);
	animation: ldPulse 1s ease-in-out infinite;
}
#preloader .ld span:nth-child(2) {
	animation-delay: 0.15s;
}
#preloader .ld span:nth-child(3) {
	animation-delay: 0.3s;
}
@keyframes ldPulse {
	0%,
	100% {
		opacity: 0.25;
		transform: scale(0.8);
	}
	50% {
		opacity: 1;
		transform: scale(1.15);
	}
} */

.status {
	position: relative;
	width: 240px;
	min-height: 30px;
	margin: 0 auto;
	padding-top: 4px;
	text-align: center;
}

.status span {
	position: absolute;
	left: 0;
	right: 0;
	opacity: 0;
	font-family: "Bree Serif", Georgia, serif;
	font-size: 19px;
	color: var(--ink);
}

.status .p1 {
	animation: fadeInOut 0.85s ease forwards;
	animation-delay: 0.1s;
}

.status .p2 {
	animation: fadeInOut 0.85s ease forwards;
	animation-delay: 1.05s;
}

.status .p3 {
	animation: fadeInHold 1s ease forwards;
	animation-delay: 2s;
	color: var(--orange);
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 21px;
}

@keyframes fadeInOut {
	0% {
		opacity: 0;
		transform: translateY(4px);
	}

	18% {
		opacity: 1;
		transform: translateY(0);
	}

	82% {
		opacity: 1;
		transform: translateY(0);
	}

	100% {
		opacity: 0;
		transform: translateY(-4px);
	}
}

@keyframes fadeInHold {
	0% {
		opacity: 0;
		transform: translateY(6px) scale(0.94);
	}

	45% {
		opacity: 1;
		transform: translateY(0) scale(1.05);
	}

	70% {
		transform: scale(0.99);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.loader-wrap {
	position: fixed;
	inset: 0;
	background: var(--cream);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	transition:
		opacity 0.5s ease,
		visibility 0.5s ease;
	visibility: visible;
}

.loader-wrap.fade-out {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.loaf-stage {
	position: relative;
	width: 480px;
	height: 300px;
	filter: drop-shadow(0 10px 12px rgba(43, 23, 15, 0.25));
}

.strip {
	position: absolute;
	top: 0;
	height: 300px;
	background-image: url("images/breadLogo.png");
	background-repeat: no-repeat;
	background-size: 480px 300px;
	opacity: 0;
	transform: translateY(14px);
	animation: stripIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes stripIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- header ---------- */
header {
	height: 100px;
	display: flex;
	align-items: center;
	background: rgba(248, 239, 223, 0.97);
	backdrop-filter: blur(4px);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 20;
}
nav {
	display: flex;
	align-items: center;
	gap: 28px;
	position: relative;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
}
.brand img {
	position: absolute;
	bottom: -60px;
	width: 250px;
	height: auto;
	display: block;
	filter: drop-shadow(0 3px 3px rgba(43, 23, 15, 0.22));
}

.navlinks {
	display: flex;
	gap: 38px;
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	font-size: 16px;
}
.navlinks a {
	position: relative;
	padding-bottom: 3px;
}
.navlinks a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--orange);
	transition: width 0.22s ease;
}
.navlinks a:hover::after {
	width: 100%;
}
.navlinks a:hover {
	color: var(--orange);
}
.order-btn,
.button {
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	border: 2px solid var(--ink);
	background: var(--yellow);
	color: var(--ink);
	padding: 16px 28px;
	font-size: 17px;
	cursor: pointer;
	transition: 0.18s;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
}
.order-btn:hover,
.button:hover {
	transform: translate(-2px, -2px);
	box-shadow: 5px 5px 0 var(--ink);
}
.mobile-toggle {
	display: none;
	border: 0;
	background: none;
	font-size: 28px;
	color: var(--ink);
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
}
.mobile-toggle:focus,
.button:focus,
.order-btn:focus {
	outline: none;
}

/* ---------- hero ---------- */
.hero {
	display: grid;
	grid-template-columns: 0.93fr 1.07fr;
	min-height: 590px;
}
.hero-copy {
	padding: 68px 4vw 55px max(4vw, calc((100vw - 1420px) / 2));
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.hero h1 {
	font-size: clamp(68px, 6.8vw, 108px);
	line-height: 0.92;
	margin: 0 0 28px;
	letter-spacing: -0.015em;
}
.hero h1 .orange {
	color: var(--orange);
}
.hero p {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	max-width: 570px;
	margin: 12px 0 20px;
}
.actions {
	display: flex;
	gap: 22px;
	margin-top: 30px;
}
.button.secondary {
	background: transparent;
	color: var(--orange);
	border-color: var(--orange);
	box-shadow: none;
}
.hero-art {
	position: relative;
	min-height: 590px;
	display: grid;
	place-items: center;
	overflow: hidden;
}
.big-loaf {
	width: min(800px, 90%);
	rotate: -20deg;
	height: auto;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 24px 20px rgba(43, 23, 15, 0.17));
	animation: loafFloat 5s ease-in-out infinite;
}

.badge-container {
	position: absolute;
	right: 6%;
	top: 25%;
	z-index: 3;
	display: grid;
	place-items: center;
	text-align: center;
	font-family: Anton, Arial, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.08em;
	line-height: 1.25;
	transform: rotate(8deg);
	padding: 18px;
	color: var(--cream);
}
.badge-text {
	position: relative;
	top: 40px;
	z-index: 4;
}
.badge {
	position: absolute;
	right: 6%;
	top: 25%;
	background: var(--orange);
	width: 155px;
	height: 155px;
	padding: 18px;
}
.badge:nth-child(2) {
	rotate: -30deg;
}
.badge:nth-child(3) {
	rotate: -60deg;
}
.badge:nth-child(4) {
	rotate: -90deg;
}

@keyframes loafFloat {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

/* ---------- marquee ---------- */
.marquee {
	background: var(--ink);
	color: var(--cream);
	overflow: hidden;
	white-space: nowrap;
	padding: 13px 0;
	border-bottom: 2px solid var(--yellow);
}
.marquee-track {
	display: inline-flex;
	width: max-content;
	animation: scrollLeft 26s linear infinite;
}
.marquee-track span {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 0 20px;
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 14px;
}
.marquee-track .dot {
	color: var(--yellow);
}
@keyframes scrollLeft {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* ---------- feature bar ---------- */
.featurebar {
	background: var(--yellow);
	border-block: 2px solid rgba(43, 23, 15, 0.3);
}
.features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.feature {
	display: flex;
	gap: 20px;
	align-items: center;
	padding: 25px 30px;
	border-right: 1px solid rgba(43, 23, 15, 0.32);
}
.feature:last-child {
	border: 0;
}
.feature svg {
	width: 58px;
	height: 58px;
	flex: 0 0 auto;
	transition: transform 0.25s ease;
}
.feature:hover svg {
	transform: scale(1.12) rotate(-6deg);
}
.feature b {
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	font-size: 25px;
	line-height: 0.9;
}
.feature small {
	display: block;
	font-size: 13px;
	margin-top: 8px;
	line-height: 1.35;
}

/* ---------- section rhythm ---------- */
.section-block {
	padding: 76px 0;
}
.section-block + .section-block {
	border-top: 2px dashed var(--line);
}
.bg-paper {
	background: var(--paper);
}
.bg-cream {
	background: var(--cream);
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	color: var(--orange);
	font-size: 14px;
	letter-spacing: 0.08em;
	margin-bottom: 14px;
}
.section-title {
	font-size: 47px;
	line-height: 0.9;
	margin: 0 0 18px;
}
.favorites-top {
	display: flex;
	justify-content: space-between;
	align-items: end;
	margin-bottom: 30px;
}
.viewall {
	color: var(--orange);
	font-weight: 800;
	font-size: 14px;
}

/* ---------- pastry of the week ---------- */
.potw {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 50px;
	align-items: center;
	background: var(--cream);
	border: 2px solid var(--ink);
	border-radius: 16px;
	padding: 44px;
	position: relative;
}
.potw-art {
	position: relative;
	display: grid;
	place-items: center;
}
.potw-art:before {
	content: "";
	position: absolute;
	width: 78%;
	padding-bottom: 78%;
	background: var(--yellow);
	border-radius: 50%;
	opacity: 0.55;
	z-index: 0;
}
.potw-art svg {
	width: min(260px, 78%);
	position: relative;
	z-index: 1;
	animation: spinSlow 34s linear infinite;
}
@keyframes spinSlow {
	to {
		transform: rotate(360deg);
	}
}
.potw-badge {
	position: absolute;
	top: -16px;
	right: 6%;
	z-index: 2;
	background: var(--orange);
	color: var(--cream);
	border: 3px solid var(--cream);
	border-radius: 50%;
	width: 112px;
	height: 112px;
	display: grid;
	place-items: center;
	text-align: center;
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	font-size: 13px;
	line-height: 1.15;
	transform: rotate(-8deg);
	animation: badgeWiggle 5s ease-in-out infinite;
}
.potw h2 {
	font-size: 44px;
	margin: 0 0 12px;
}
.potw p.desc {
	font-size: 15px;
	line-height: 1.65;
	color: var(--muted);
	max-width: 520px;
	margin: 0 0 22px;
}
.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 26px;
}
.chip {
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: 30px;
	padding: 7px 16px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.potw-bottom {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.potw-price {
	font-family: Anton, sans-serif;
	font-size: 26px;
	color: var(--orange);
}

/* ---------- favorites cards ---------- */
.cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.card {
	background: rgba(255, 248, 235, 0.75);
	border: 2px solid #ddc9aa;
	border-radius: 9px;
	padding: 15px;
	min-height: 255px;
	display: flex;
	flex-direction: column;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}
.card:hover {
	transform: translateY(-7px);
	box-shadow: 0 16px 24px rgba(43, 23, 15, 0.16);
	border-color: var(--orange);
}
.food-icon {
	height: 120px;
	display: grid;
	place-items: center;
}
.food-icon svg {
	width: 105px;
	height: 105px;
	transition: transform 0.25s ease;
}
.card:hover .food-icon svg {
	transform: scale(1.08) rotate(-3deg);
}
.card h3 {
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	font-size: 21px;
	line-height: 0.96;
	margin: 8px 0;
}
.card p.desc {
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
	margin: 8px 0 16px;
}
.card-bottom {
	margin-top: auto;
	display: flex;
	gap: 12px;
	align-items: center;
}
.chef-fav {
	background: var(--orange);
	color: var(--paper);
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 8px;
	letter-spacing: 0.04em;
}
.card .button {
	padding: 10px 16px;
	font-size: 14px;
}
.price {
	margin-top: auto;
	color: var(--orange);
	font-weight: 800;
}

/* Baker's favorite floating tag (similar to review page) */
.card.baker-fav {
	position: relative;
	overflow: visible;
}
.card.baker-fav::before {
	content: "BAKER'S FAVORITE";
	position: absolute;
	left: 16px;
	top: -12px;
	background: var(--orange);
	color: var(--paper);
	border: 2px solid var(--ink);
	border-radius: 2px;
	padding: 6px 12px;
	font-family: Anton, sans-serif;
	letter-spacing: 0.06em;
	font-size: 14px;
	transform: rotate(-2deg);
	transition: border-color 0.18s ease;
}

/* ---------- story ---------- */
.story {
	background: var(--green);
	color: var(--cream);
	border-radius: 14px;
	padding: 44px;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	min-height: 320px;
	overflow: hidden;
	max-width: 1120px;
	margin: 0 auto;
}
.story h2 {
	font-size: 48px;
	margin: 0 0 18px;
}
.story p {
	font-size: 14.5px;
	line-height: 1.6;
	color: #f1e7d7;
	margin: 0 0 12px;
}

/* Fallback logo SVG (shown when the raster/data image fails to load) */
.logo-fallback {
	display: none;
	width: 76px;
	height: auto;
	flex: 0 0 auto;
}
.story-art {
	position: relative;
	display: grid;
	place-items: center;
}
.story-art:before {
	content: "";
	position: absolute;
	width: 155px;
	height: 155px;
	border-radius: 50%;
	background: var(--yellow);
	right: -15px;
	bottom: -15px;
}
.story-art svg {
	position: relative;
	width: 220px;
	height: 220px;
	z-index: 2;
	color: var(--cream);
	animation: whisk 3.6s ease-in-out infinite;
}
@keyframes whisk {
	0%,
	100% {
		transform: rotate(0);
	}
	50% {
		transform: rotate(-6deg);
	}
}

/* ---------- footer ---------- */
footer {
	background: var(--ink);
	color: var(--cream);
	padding: 30px 0 32px;
	border-top: 1px solid rgba(43, 23, 15, 0.09);
}
.footer-grid {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 0px 12px;
}
.footer-grid h3 {
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 25px;
	margin: 0;
}
.footer-grid a {
	display: block;
	color: var(--cream);
	font-size: 14px;
	margin: 10px 0 0;
	opacity: 0.78;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}
.footer-grid a:hover {
	opacity: 1;
	transform: translateX(2px);
}
.footer-section {
	display: flex;
	flex-direction: row;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}
.social {
	display: flex;
	gap: 12px;
	align-items: center;
}
.social a {
	display: flex;
}
.social-link {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--cream);
	box-shadow: 0 8px 16px rgba(43, 23, 15, 0.12);
	transition:
		transform 0.2s ease,
		background 0.2s ease;
}
.social-link svg {
	width: 30px;
	height: 30px;
}
.social-link:hover {
	transform: translateY(-3px);
	background: var(--yellow);
	color: var(--ink);
}
.social-facebook:hover {
	background: #4267b2;
	color: #fff;
}
.social-instagram:hover {
	background: #e1306c;
	color: #fff;
}
.social-twitter:hover {
	background: #1da1f2;
	color: #fff;
}

@media (max-width: 620px) {
	.footer-section {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}
	.social {
		display: none;
	}
}

.line {
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.thick {
	stroke-width: 4;
}

/* ---------- scroll reveal ---------- */
.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 0.7s ease,
		transform 0.7s ease;
}
.reveal.show {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 1050px) {
	.navlinks {
		gap: 20px;
	}
	.hero {
		grid-template-columns: 1fr 1fr;
	}
	.hero h1 {
		font-size: 70px;
	}
	.features {
		grid-template-columns: repeat(2, 1fr);
	}
	.feature:nth-child(2) {
		border-right: 0;
	}
	.feature:nth-child(-n + 2) {
		border-bottom: 1px solid rgba(43, 23, 15, 0.3);
	}
	.cards {
		grid-template-columns: repeat(4, 1fr);
	}
	.potw {
		grid-template-columns: 1fr;
		text-align: left;
	}
}
@media (max-width: 760px) {
	header {
		height: 82px;
	}
	.brand {
		position: relative;
	}
	.brand img {
		position: relative;
		bottom: auto;
		top: auto;
		width: 92px;
		height: auto;
		margin-left: 8px;
	}
	.wordmark {
		font-size: 22px;
	}
	.navlinks {
		display: none;
	}
	.navlinks.open {
		display: flex;
		position: absolute;
		top: 82px;
		left: 0;
		right: 0;
		background: var(--cream);
		padding: 24px 5vw;
		flex-direction: column;
		border-bottom: 2px solid var(--ink);
		gap: 16px;
	}
	.navlinks.open a {
		color: var(--ink);
	}
	.order-btn {
		display: none;
	}
	.mobile-toggle {
		display: block;
		color: var(--ink);
		background: transparent;
		border: 0;
		appearance: none;
		-webkit-appearance: none;
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
		user-select: none;
	}
	.hero {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.hero-copy {
		padding: 52px 5vw 35px;
	}
	.hero h1 {
		font-size: clamp(55px, 17vw, 82px);
	}
	.hero p {
		font-size: 16px;
	}
	.actions {
		flex-direction: column;
		align-items: stretch;
	}
	.button {
		text-align: center;
	}
	.hero-art {
		min-height: 390px;
	}
	.big-loaf {
		width: 92%;
	}
	.badge {
		width: 110px;
		height: 110px;
		font-size: 13px;
		right: 4%;
		top: 12%;
	}
	.features {
		grid-template-columns: 1fr;
	}
	.feature {
		border-right: 0 !important;
		border-bottom: 1px solid rgba(43, 23, 15, 0.3) !important;
		padding: 20px 5vw;
	}
	.feature:last-child {
		border-bottom: 0 !important;
	}
	.section-block {
		padding: 52px 0;
	}
	.section-title {
		font-size: 42px;
	}
	.cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.card {
		min-height: 235px;
	}
	.food-icon {
		height: 105px;
	}
	.food-icon svg {
		width: 90px;
	}
	.story {
		grid-template-columns: 1fr;
		padding: 28px 24px;
	}
	.story h2 {
		font-size: 44px;
	}
	.story-art {
		min-height: 200px;
	}
	.potw {
		padding: 26px;
	}
	.potw h2 {
		font-size: 34px;
	}
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
	.footer-grid > div:first-child {
		grid-column: 1/-1;
	}
}
@media (max-width: 430px) {
	.cards {
		grid-template-columns: 1fr 1fr;
	}
	.card h3 {
		font-size: 18px;
	}
	.food-icon svg {
		width: 78px;
	}
	.footer-grid {
		grid-template-columns: 1fr;
	}
	.footer-grid > div:first-child {
		grid-column: auto;
	}
}
