/* ==========================================================================
   D’oba — one-page launch site: hero → our story → the kiosk → visit (map + socials)
   ========================================================================== */

.op-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

/* Hero ------------------------------------------------------------------- */
.op-hero {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(1.5rem, 1rem + 2vw, 3rem));
	background: radial-gradient(120% 90% at 78% 40%, color-mix(in srgb, var(--c-pink-soft) 55%, var(--c-pink)) 0%, var(--c-pink) 55%, color-mix(in srgb, var(--c-pink) 82%, var(--c-brown)) 100%);
	color: var(--c-ink);
}

.admin-bar .op-hero {
	padding-top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px) + 2rem);
}

.op-hero__inner {
	display: grid;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	align-items: end;
}

.op-hero__copy {
	/* Centred beside Teta, so there is no empty band above the headline. */
	align-self: center;
	padding-bottom: clamp(0rem, -1rem + 2vw, 1.5rem);
}

.op-hero__where {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 1.25rem;
	padding: 0.45rem 1rem 0.45rem 0.75rem;
	border-radius: var(--r-blob);
	background: var(--c-brown);
	color: var(--c-cream);
	font-family: var(--f-display);
	font-weight: 650;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.op-hero__title {
	font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem);
	line-height: 0.92;
}

.op-hero__line {
	display: block;
}

.op-hero__line--italic {
	font-style: italic;
	font-weight: 700;
	color: var(--c-brown);
}

.op-hero__text {
	max-width: 30rem;
	margin-top: 1.4rem;
	font-size: var(--fs-lg);
	line-height: 1.5;
}

.op-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: 2rem;
}

.op-hero__figure {
	position: relative;
	justify-self: center;
	width: min(100%, 560px);
	padding-top: 2rem;
}

.op-hero__arch {
	position: absolute;
	inset: 0 8%;
	border-radius: 999px 999px 0 0;
	background: color-mix(in srgb, var(--c-cream) 70%, var(--c-pink-soft));
	box-shadow: inset 0 0 0 10px var(--c-pink-soft);
}

.op-hero__img {
	position: relative;
	width: 100%;
}

.js .op-hero__img {
	animation: op-rise 1s var(--ease-out) both;
}

@keyframes op-rise {
	from {
		opacity: 0;
		transform: translateY(32px);
	}
}

@media (min-width: 900px) {
	.op-hero__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	}

	.op-hero__figure {
		justify-self: end;
	}
}

/* Our story -------------------------------------------------------------- */
.op-story {
	padding-top: calc(var(--section-y) + var(--band-h) / 2);
	background: var(--c-paper);
}

.op-story__grid {
	display: grid;
	gap: clamp(2.5rem, 2rem + 3vw, 5rem);
	align-items: center;
}

.op-story__title {
	font-size: var(--fs-h2);
}

.op-story__text {
	max-width: 32rem;
	margin-top: 1.25rem;
	font-size: var(--fs-lg);
	line-height: 1.55;
}

.op-story__title + .op-story__text {
	margin-top: 1.5rem;
}

.op-story__photo {
	justify-self: center;
	width: min(100%, 520px);
	padding: 12px;
	border-radius: var(--r-card);
	background: var(--c-pink);
}

.op-story__img {
	width: 100%;
	border-radius: 20px 26px 22px 24px / 24px 20px 26px 22px;
}

@media (min-width: 900px) {
	.op-story__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* The kiosk --------------------------------------------------------------- */
.op-kiosk {
	padding-block: 0;
	background: var(--c-brown);
	color: var(--c-cream);
}

.op-kiosk > .container {
	padding-block: calc(var(--section-y) * 0.8);
}

.op-kiosk :focus-visible {
	--c-focus: var(--c-cream);
}

.op-kiosk__header {
	max-width: 44rem;
	margin-inline: auto;
	text-align: center;
}

.op-kiosk__title {
	font-size: var(--fs-h2);
}

.op-kiosk__title em {
	color: var(--c-pink-soft);
}

.op-kiosk__text {
	max-width: 34rem;
	margin: 1.25rem auto 0;
	font-size: var(--fs-lg);
	line-height: 1.55;
}

.op-kiosk__frame {
	margin-top: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
	padding: clamp(8px, 0.4rem + 0.5vw, 14px);
	border-radius: 160px 160px 34px 30px / 120px 120px 34px 30px;
	background: var(--c-coral);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.op-kiosk__img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 150px 150px 24px 22px / 110px 110px 24px 22px;
}

@media (max-width: 639px) {
	.op-kiosk__frame {
		border-radius: 90px 90px 24px 22px / 70px 70px 24px 22px;
	}

	.op-kiosk__img {
		border-radius: 82px 82px 18px 16px / 62px 62px 18px 16px;
	}
}

/* Visit us: map + socials -------------------------------------------------- */
.op-visit {
	/* Extra room at the bottom for the Teta who peeks over the footer edge. */
	padding-top: calc(var(--section-y) + var(--band-h) / 2);
	padding-bottom: calc(var(--section-y) + clamp(50px, 1rem + 6vw, 130px));
	background: var(--c-paper);
}

.op-visit__grid {
	display: grid;
	gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
	align-items: center;
}

.op-visit__title {
	font-size: var(--fs-h2);
}

.op-visit__text {
	max-width: 30rem;
	margin-top: 1.25rem;
	font-size: var(--fs-lg);
	line-height: 1.5;
}

.op-visit__address {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.75rem;
	font-size: var(--fs-lg);
	line-height: 1.5;
}

.op-visit__address .op-icon {
	margin-top: 0.15em;
	color: var(--c-pink-deep);
}

.op-visit__hours {
	margin-top: 0.75rem;
	padding-left: calc(1.25em + 0.75rem);
	color: color-mix(in srgb, var(--c-ink) 85%, transparent);
}

.op-visit__hours a {
	color: var(--c-pink-deep);
	font-weight: 600;
}

.op-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.op-socials__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 48px;
	padding: 0.6rem 1.15rem 0.6rem 0.95rem;
	border-radius: var(--r-blob);
	background: var(--c-ink);
	color: var(--c-cream);
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.35s var(--ease-bounce);
}

.op-socials__link:hover {
	background: var(--c-brown);
	transform: translateY(-2px);
}

.op-socials__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.op-socials__handle {
	font-family: var(--f-display);
	font-weight: 650;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}

.op-map {
	overflow: hidden;
	padding: 10px;
	border-radius: var(--r-card);
	background: var(--c-pink);
	box-shadow: var(--shadow-soft);
}

.op-map__frame {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 0;
	border-radius: 20px 26px 22px 24px / 24px 20px 26px 22px;
	background: var(--c-cream);
}

@media (min-width: 900px) {
	.op-visit__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.op-map__frame {
		aspect-ratio: auto;
		height: clamp(380px, 32vw, 480px);
	}
}

/* Products on Home ------------------------------------------------------- */
.op-range {
	padding-top: calc(var(--section-y) * 0.8 + var(--band-h) / 2);
	background: var(--c-paper);
}

.op-range .section-title {
	margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 3rem);
	text-align: center;
}

.range__grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(78vw, 330px);
	gap: 1.25rem;
	margin-inline: calc(var(--gutter) * -1);
	padding: 0.75rem var(--gutter) 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}

.range__grid::-webkit-scrollbar {
	display: none;
}

.range__grid > * {
	scroll-snap-align: start;
}

.op-range__more {
	margin-top: 1.5rem;
	text-align: center;
}

@media (min-width: 640px) {
	.range__grid {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(1.25rem, 2.6vw, 3rem);
		margin-inline: 0;
		padding: 0.75rem 0 0;
		overflow: visible;
	}

	.range__grid--2 {
		grid-template-columns: repeat(2, minmax(0, 380px));
		justify-content: center;
	}

	.range__grid--1 {
		grid-template-columns: minmax(0, 380px);
		justify-content: center;
	}
}

/* Our story without a photo: one centred column */
.op-story--text .op-story__grid {
	grid-template-columns: minmax(0, 1fr);
	max-width: calc(760px + var(--gutter) * 2);
	text-align: center;
}

.op-story--text .op-story__text {
	margin-inline: auto;
}

/* Hero headline block (brand layout): “REAL FOOD.” regular, “REAL COMFORT.” bold italic,
   both ink, a small uppercase line underneath, one centred button. */
.op-hero__copy {
	text-align: center;
}

.op-hero__title {
	display: inline-block;
	color: var(--c-ink);
}

.op-hero__line {
	font-weight: 400;
}

.op-hero__line--italic {
	font-weight: 700;
	color: var(--c-ink);
}

.op-hero__text {
	max-width: none;
	margin: 0.35rem 0 0;
	font-family: var(--f-display);
	font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.35rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.op-hero__actions {
	justify-content: center;
	margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

/* Hero background details: soft dots, light glows, sparkles, a squiggle and dates. */
.op-hero {
	overflow: hidden;
	isolation: isolate;
}

.op-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle, rgba(255, 250, 245, 0.28) 1.6px, transparent 2px) 0 0 / 30px 30px,
		radial-gradient(40% 45% at 12% 18%, rgba(255, 250, 245, 0.22), transparent 70%),
		radial-gradient(35% 40% at 88% 85%, rgba(103, 44, 38, 0.18), transparent 70%);
	-webkit-mask: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
	mask: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

.op-hero__decor {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.op-hero__inner {
	position: relative;
	z-index: 1;
}

.op-hero__star {
	position: absolute;
	display: block;
	color: var(--c-white);
	opacity: 0.8;
	animation: op-twinkle 4s ease-in-out infinite alternate;
}

.op-hero__star svg {
	width: 100%;
	height: 100%;
}

.op-hero__star--a { top: 22%; left: 6%; width: 22px; height: 22px; }
.op-hero__star--b { top: 14%; left: 40%; width: 14px; height: 14px; color: var(--c-brown); opacity: 0.55; animation-delay: 1s; }
.op-hero__star--c { top: 70%; left: 44%; width: 18px; height: 18px; animation-delay: 2s; }
.op-hero__star--d { top: 12%; right: 6%; width: 26px; height: 26px; animation-delay: 0.5s; }
.op-hero__star--e { bottom: 18%; left: 3%; width: 16px; height: 16px; color: var(--c-brown); opacity: 0.5; animation-delay: 1.5s; }

.op-hero__squiggle {
	position: absolute;
	top: 30%;
	right: 38%;
	width: 110px;
	color: var(--c-pink-soft);
	opacity: 0.9;
	transform: rotate(-8deg);
}

.op-hero__dates {
	position: absolute;
	bottom: 14%;
	left: 34%;
	width: clamp(70px, 6vw, 110px);
	transform: rotate(-14deg);
	filter: drop-shadow(0 10px 12px rgba(42, 22, 16, 0.25));
}

@keyframes op-twinkle {
	to {
		transform: scale(0.75) rotate(20deg);
		opacity: 0.35;
	}
}

@media (max-width: 899px) {
	.op-hero__star--b,
	.op-hero__star--c,
	.op-hero__squiggle {
		display: none;
	}

	.op-hero__star--a { top: 13%; left: 5%; }
	.op-hero__star--d { top: 11%; right: 5%; }
	.op-hero__dates { bottom: 6%; left: 2%; width: 74px; }
}

@media (prefers-reduced-motion: reduce) {
	.op-hero__star {
		animation: none;
	}
}

/* Headline: bigger and centred in its half, lined up with Teta. */
.op-hero__title {
	font-size: clamp(2.7rem, 1.6rem + 4.2vw, 5.4rem);
}

@media (min-width: 900px) {
	.op-hero__inner {
		align-items: center;
	}

	.op-hero__copy {
		padding-bottom: 3rem;
	}
}

/* Keep each headline line on one line; tidy the decorations. */
.op-hero__line {
	white-space: nowrap;
}

.op-hero__title {
	font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem);
}

.op-hero__squiggle {
	top: 17%;
	left: 33%;
	right: auto;
}

@media (max-width: 899px) {
	.op-hero__dates {
		top: 30%;
		bottom: auto;
		left: 3%;
		width: 54px;
	}
}

/* The pattern band under the hero overlaps the next section by half — don't clip it.
   Only the decorations are clipped to the hero. */
.op-hero {
	overflow: visible;
}

.op-hero__decor {
	overflow: hidden;
}

.op-hero .band--drift .band__pattern {
	animation-duration: 30s;
}

/* No separate stacking context on the hero, so its pattern band (z-index 3) can sit on top of
   the next section like every other band. */
.op-hero {
	isolation: auto;
}

.op-hero::before {
	z-index: 0;
}
