/*
Theme Name: Kasi Curry
Theme URI: https://kasicurry.co.za
Author: Kasi Curry
Description: One-page restaurant theme for Kasi Curry: banner with live open/closed badge, tabbed food menu, story blocks, map, trading hours and WhatsApp ordering. Menu prices, story blocks, hours and contact details are all editable from the dashboard.
Version: 1.0.2
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kasi-curry
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
	--kc-bg: hsl(350 33% 97%);
	--kc-fg: #000;
	--kc-red: hsl(345 82% 31%);
	--kc-orange: hsl(20 78% 52%);
	--kc-green: hsl(134 47% 35%);
	--kc-muted: hsl(345 15% 90%);
	--kc-muted-fg: hsl(0 0% 35%);
	--kc-border: hsl(345 15% 85%);
	--kc-white: #fff;
	--kc-whatsapp: #25d366;
	--kc-gradient: linear-gradient(135deg, var(--kc-red), var(--kc-orange));
	--kc-shadow-spicy: 0 8px 32px -8px hsl(345 82% 31% / 0.3);
	--kc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--kc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--kc-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	--kc-font-display: "Montserrat", system-ui, sans-serif;
	--kc-font-body: "Inter", system-ui, sans-serif;
	--kc-radius: 0.75rem;
	--kc-bottom-nav: 3.5rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Column layout keeps the footer at the bottom on short pages. */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	padding-bottom: calc(var(--kc-bottom-nav) + env(safe-area-inset-bottom, 0px));
	background: var(--kc-bg);
	color: var(--kc-fg);
	font-family: var(--kc-font-body);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
	body {
		padding-bottom: 0;
	}
}

main {
	flex: 1 0 auto;
}

h1,
h2,
h3,
p,
ul {
	margin: 0;
}

h1,
h2,
h3 {
	font-family: var(--kc-font-display);
}

ul {
	padding: 0;
	list-style: none;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--kc-orange);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	background: var(--kc-white);
	color: var(--kc-fg);
	font-weight: 600;
}

.skip-link:focus {
	top: 1rem;
}

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* scroll targets land a little below the top edge */
#menu,
#location {
	scroll-margin-top: 1rem;
}

.text-spicy {
	background-image: var(--kc-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.text-orange {
	color: var(--kc-orange);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 2rem;
	border-radius: 0.5rem;
	font-family: var(--kc-font-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.25rem;
	text-align: center;
	text-transform: uppercase;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn--spicy {
	background-image: var(--kc-gradient);
	box-shadow: var(--kc-shadow-spicy);
	color: var(--kc-white);
}

.btn--spicy:hover {
	transform: scale(1.05);
}

.btn--ghost {
	border: 1px solid rgb(255 255 255 / 0.2);
	color: var(--kc-white);
}

.btn--ghost:hover {
	background-color: rgb(255 255 255 / 0.1);
}

.btn--block {
	margin-top: 1rem;
	padding: 1rem 2rem;
	border-radius: var(--kc-radius);
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 90vh;
	min-height: 90svh;
	overflow: hidden;
	background: var(--kc-fg);
}

.hero__bg {
	position: absolute;
	inset: 0;
}

.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__shade {
	position: absolute;
	inset: 0;
	/* A light, even shade keeps the photo bright while the white text stays readable. */
	background:
		radial-gradient(ellipse at center, rgb(0 0 0 / 0.3), transparent 70%),
		linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.2) 35%, rgb(0 0 0 / 0.2) 75%, rgb(0 0 0 / 0.35));
}

.hero__title,
.hero__tagline,
.hero__address {
	text-shadow: 0 1px 3px rgb(0 0 0 / 0.8), 0 2px 16px rgb(0 0 0 / 0.7);
}

.hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 90vh;
	min-height: 90svh;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4rem 1rem 5rem;
	text-align: center;
}

.hero__logo {
	width: 10rem;
	height: 10rem;
	padding: 0.75rem;
	margin-bottom: 1.5rem;
	border-radius: 50%;
	background: #980922; /* the logo's own red, so the margin blends in */
	filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

.hero__title {
	color: var(--kc-white);
	font-size: 2.25rem;
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 2.5rem;
	text-transform: uppercase;
}

.hero__tagline {
	margin-top: 0.5rem;
	color: var(--kc-orange);
	font-family: var(--kc-font-display);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.75rem;
	text-transform: uppercase;
}

.hero__address {
	max-width: 28rem;
	margin-top: 1rem;
	color: rgb(255 255 255 / 0.9);
	font-size: 0.875rem;
}

.hero .open-badge {
	padding: 0.375rem 0.875rem;
	border-radius: 9999px;
	background: rgb(0 0 0 / 0.45);
}

.hero .btn--ghost {
	border-color: rgb(255 255 255 / 0.7);
	background-color: rgb(0 0 0 / 0.3);
}

.hero .btn--ghost:hover {
	background-color: rgb(0 0 0 / 0.45);
}

.hero__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 2rem;
}

.hero__scroll {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	z-index: 1;
	width: 1.25rem;
	height: 2rem;
	margin-left: -0.625rem;
	padding: 0.25rem;
	border: 2px solid rgb(255 255 255 / 0.3);
	border-radius: 9999px;
	animation: kc-bounce 1s infinite;
}

.hero__scroll span {
	display: block;
	width: 0.25rem;
	height: 0.5rem;
	margin: 0 auto;
	border-radius: 9999px;
	background: rgb(255 255 255 / 0.5);
}

@keyframes kc-bounce {
	0%,
	100% {
		transform: translateY(-25%);
		animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
	}

	50% {
		transform: none;
		animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
	}
}

@media (min-width: 640px) {
	.hero__actions {
		flex-direction: row;
	}
}

@media (min-width: 768px) {
	.hero__logo {
		width: 12rem;
		height: 12rem;
		padding: 0.9rem;
	}

	.hero__title {
		font-size: 3.75rem;
		line-height: 1;
	}

	.hero__tagline {
		font-size: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.hero__title {
		font-size: 4.5rem;
	}
}

/* ---------- Open / closed badge ---------- */
.open-badge {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
	color: var(--kc-white);
}

.open-badge__dot {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 9999px;
	background: var(--kc-red);
}

.open-badge.is-open .open-badge__dot {
	background: var(--kc-green);
	animation: kc-pulse-glow 2s ease-in-out infinite;
}

.open-badge__label {
	font-family: var(--kc-font-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.open-badge__time {
	color: rgb(255 255 255 / 0.6);
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

@keyframes kc-pulse-glow {
	0%,
	100% {
		box-shadow: 0 0 8px 2px rgb(47 131 67 / 0.4);
	}

	50% {
		box-shadow: 0 0 16px 4px rgb(47 131 67 / 0.7);
	}
}

/* ---------- Sections ---------- */
.section {
	padding: 4rem 0;
}

.section--light {
	background: var(--kc-bg);
}

.section--dark {
	background: var(--kc-fg);
	color: var(--kc-white);
}

.section__head {
	text-align: center;
}

.section__title {
	font-size: 1.875rem;
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 2.25rem;
	text-transform: uppercase;
}

.section__sub {
	margin-top: 0.5rem;
	color: var(--kc-muted-fg);
}

.section--dark .section__sub {
	color: rgb(255 255 255 / 0.6);
}

@media (min-width: 768px) {
	.section {
		padding: 6rem 0;
	}

	.section__title {
		font-size: 3rem;
		line-height: 1;
	}
}

/* ---------- Menu ---------- */
/* The row bleeds into the container padding and has room below so the active tab's glow is not clipped. */
.menu__tabs {
	display: flex;
	gap: 0.5rem;
	margin: 2rem -1rem -1.5rem;
	padding: 0.25rem 1rem 2rem;
	overflow-x: auto;
	scroll-padding-inline: 1rem;
	scrollbar-width: none;
}

.menu__tabs::after {
	content: "";
	flex: 0 0 0.5rem;
}

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

.menu__tab {
	flex-shrink: 0;
	padding: 0.625rem 1.25rem;
	border: 0;
	border-radius: 9999px;
	background: var(--kc-muted);
	color: var(--kc-muted-fg);
	font-family: var(--kc-font-display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1rem;
	text-transform: uppercase;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.menu__tab:hover {
	background: hsl(345 15% 90% / 0.8);
}

.menu__tab[aria-selected="true"] {
	background: var(--kc-gradient);
	box-shadow: var(--kc-shadow-spicy);
	color: var(--kc-white);
}

/* Without JavaScript the tabs cannot switch, so every category is shown. */
html:not(.js) .menu__tabs {
	display: none;
}

.js .menu__panel:not(.is-active) {
	display: none;
}

.menu__panel {
	margin-top: 2rem;
}

.menu__cat {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.75rem;
}

.menu__cat-sub {
	color: var(--kc-muted-fg);
	font-size: 0.875rem;
}

.menu__grid {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

@media (min-width: 640px) {
	.menu__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.menu__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.dish {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-width: 0;
	padding: 1rem;
	border: 1px solid var(--kc-border);
	border-radius: var(--kc-radius);
	background: var(--kc-bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dish:hover {
	border-color: hsl(20 78% 52% / 0.3);
	box-shadow: var(--kc-shadow-md);
}

.dish__info {
	flex: 1;
	min-width: 0;
}

.dish__name {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--kc-font-display);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25rem;
}

.dish__flame {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	color: var(--kc-orange);
}

.dish__desc {
	margin-top: 0.125rem;
	color: var(--kc-muted-fg);
	font-size: 0.75rem;
	line-height: 1rem;
}

.dish__price {
	flex-shrink: 0;
	margin-left: 1rem;
	color: var(--kc-red);
	font-family: var(--kc-font-display);
	font-size: 1.125rem;
	font-weight: 900;
	line-height: 1.75rem;
}

.menu__note {
	margin-top: 1.5rem;
	color: var(--kc-muted-fg);
	font-size: 0.75rem;
	text-align: center;
}

/* ---------- Story ---------- */
.story__list {
	display: grid;
	gap: 4rem;
	margin-top: 3rem;
}

.story__item {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.story__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 1rem;
	box-shadow: var(--kc-shadow-2xl);
	object-fit: cover;
}

.story__item--text .story__body {
	max-width: 42rem;
	margin: 0 auto;
	text-align: center;
}

.story__eyebrow {
	color: var(--kc-orange);
	font-family: var(--kc-font-display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.story__title {
	margin-top: 0.25rem;
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 2rem;
}

.story__body p:not(.story__eyebrow) {
	margin-top: 0.75rem;
	color: rgb(255 255 255 / 0.7);
	line-height: 1.625;
}

@media (min-width: 768px) {
	.story__item {
		flex-direction: row;
		align-items: center;
	}

	.story__item:nth-child(even) {
		flex-direction: row-reverse;
	}

	.story__media,
	.story__item:not(.story__item--text) .story__body {
		width: 50%;
	}

	.story__title {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}
}

/* ---------- Find us ---------- */
.location__shop {
	width: 100%;
	max-width: 48rem;
	margin: 2.5rem auto 0;
	border: 1px solid var(--kc-border);
	border-radius: 1rem;
	box-shadow: var(--kc-shadow-lg);
}

.location__grid {
	display: grid;
	gap: 2rem;
	margin-top: 2.5rem;
}

.location__map {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--kc-border);
	border-radius: 1rem;
	box-shadow: var(--kc-shadow-lg);
	background: var(--kc-muted);
}

.location__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.location__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.5rem;
}

.info-row {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.info-row__icon {
	display: flex;
	width: 3rem;
	height: 3rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: var(--kc-radius);
	background: var(--kc-gradient);
	color: var(--kc-white);
}

.info-row__icon .icon {
	width: 1.25rem;
	height: 1.25rem;
}

.info-row__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5rem;
}

.info-row__text {
	color: var(--kc-muted-fg);
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.info-row__hours {
	display: grid;
	gap: 0.25rem;
	margin-top: 0.25rem;
}

.info-row__link {
	display: inline-block;
	margin-top: 0.25rem;
	color: var(--kc-orange);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
}

.info-row__link--plain {
	margin-top: 0;
}

.info-row__link:hover {
	text-decoration: underline;
}

.info-row__note {
	margin-top: 0.25rem;
	color: var(--kc-muted-fg);
	font-size: 0.75rem;
	line-height: 1rem;
}

@media (min-width: 768px) {
	.location__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.location__map {
		aspect-ratio: 1 / 1;
	}
}

/* ---------- Footer ---------- */
.footer {
	padding: 3rem 0;
	background: var(--kc-fg);
	color: var(--kc-white);
}

.footer__inner {
	text-align: center;
}

.footer__logo {
	width: 4rem;
	height: 4rem;
	padding: 0.3rem;
	margin: 0 auto;
	border-radius: 50%;
	background: #980922;
}

.footer__tagline {
	margin-top: 0.75rem;
	color: var(--kc-orange);
	font-family: var(--kc-font-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.footer__address {
	margin-top: 1rem;
	color: rgb(255 255 255 / 0.4);
	font-size: 0.75rem;
}

.footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin-top: 1rem;
}

.footer__links a {
	color: rgb(255 255 255 / 0.5);
	font-size: 0.75rem;
	transition: color 0.15s ease;
}

.footer__links a:hover {
	color: var(--kc-orange);
}

.footer__copy {
	margin-top: 2rem;
	color: rgb(255 255 255 / 0.3);
	font-size: 0.75rem;
}

/* ---------- Floating WhatsApp + mobile bottom bar ---------- */
.wa-float {
	position: fixed;
	right: 1rem;
	bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
	z-index: 50;
	display: flex;
	width: 3.5rem;
	height: 3.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: var(--kc-whatsapp);
	box-shadow: var(--kc-shadow-lg);
	color: var(--kc-white);
	transition: transform 0.15s ease;
}

.wa-float:hover {
	transform: scale(1.1);
}

.wa-float__icon {
	width: 1.75rem;
	height: 1.75rem;
}

.bottom-nav {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 0.5rem 0 max(0.5rem, env(safe-area-inset-bottom));
	border-top: 1px solid var(--kc-border);
	background: hsl(350 33% 97% / 0.95);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.bottom-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.125rem;
	padding: 0.25rem 1rem;
	color: var(--kc-muted-fg);
}

.bottom-nav a.bottom-nav__order {
	color: var(--kc-orange);
}

.bottom-nav .icon {
	width: 1.25rem;
	height: 1.25rem;
}

.bottom-nav span {
	font-family: var(--kc-font-display);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.wa-float {
		right: 1.5rem;
		bottom: 1.5rem;
	}

	.bottom-nav {
		display: none;
	}
}

/* ---------- Inner pages ---------- */
.topbar {
	background: var(--kc-fg);
	color: var(--kc-white);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
}

.topbar__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--kc-font-display);
	font-weight: 900;
	text-transform: uppercase;
}

.topbar__brand img {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.2rem;
	border-radius: 50%;
	background: #980922;
}

.topbar__nav {
	display: flex;
	gap: 1.5rem;
	font-family: var(--kc-font-display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.topbar__nav a:hover {
	color: var(--kc-orange);
}

.page__inner {
	padding-top: 3rem;
	padding-bottom: 4rem;
}

.prose {
	max-width: 48rem;
	margin: 0 auto;
	line-height: 1.7;
}

.prose + .prose {
	margin-top: 3rem;
}

.page__title {
	margin-bottom: 1.5rem;
	font-size: 2rem;
	font-weight: 900;
	line-height: 1.2;
}

.prose p,
.prose ul,
.prose ol {
	margin-bottom: 1rem;
}

.prose ul {
	padding-left: 1.25rem;
	list-style: disc;
}

.prose a:not(.btn) {
	color: var(--kc-red);
	text-decoration: underline;
}
