/*
Theme Name: Trijal Child
Theme URI: https://trijalrestaurant.com/
Description: Child theme for Trijal. Put custom CSS below and custom PHP in functions.php — parent theme updates will not overwrite them. To change a template, copy it from the parent (e.g. front-page.php or page-templates/template-menu.php) into this folder and edit the copy.
Author: Trijal Restaurant
Template: trijal
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trijal-child
*/

/* Add your custom CSS below this line. (This file is only loaded once it contains CSS.) */

/* ---------- Home menu: "View Full Menu" centred, with a gentle animation ---------- */
.menu-section .menu-section__btn {
	position: relative;
	display: flex;
	width: fit-content;
	gap: 1rem;
	margin-left: auto;
	margin-right: auto;
	margin-top: clamp(2.4rem, 2.6vw, 3.6rem);
	overflow: hidden;
	isolation: isolate;
	animation: trj-menu-btn-glow 2.8s ease-in-out infinite;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Shine sweeping across the button every few seconds */
.menu-section .menu-section__btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 45%;
	height: 100%;
	z-index: -1;
	background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
	transform: skewX(-20deg);
	animation: trj-menu-btn-shine 3.6s ease-in-out infinite;
	pointer-events: none;
}

/* Arrow that slides in on hover */
.menu-section .menu-section__btn::after {
	content: "\2192";
	display: inline-block;
	max-width: 0;
	opacity: 0;
	transform: translateX(-0.6rem);
	transition: max-width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.menu-section .menu-section__btn:hover,
.menu-section .menu-section__btn:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 1.2rem 2.4rem -1.2rem color-mix(in srgb, var(--primary) 70%, transparent);
}

.menu-section .menu-section__btn:hover::after,
.menu-section .menu-section__btn:focus-visible::after {
	max-width: 2rem;
	opacity: 1;
	transform: translateX(0);
}

.menu-section .menu-section__note {
	text-align: center;
}

@keyframes trj-menu-btn-glow {
	0%,
	100% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 35%, transparent);
	}
	50% {
		box-shadow: 0 0 0 1rem color-mix(in srgb, var(--primary) 0%, transparent);
	}
}

@keyframes trj-menu-btn-shine {
	0%,
	55% {
		left: -60%;
	}
	100% {
		left: 130%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.menu-section .menu-section__btn,
	.menu-section .menu-section__btn::before {
		animation: none;
	}
}

/* ---------- Home menu intro: centred to line up with the button ---------- */
.menu-section .menu-section__eyebrow,
.menu-section .menu-section__title,
.menu-section .menu-section__text {
	text-align: center;
}

.menu-section .menu-section__text {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Home reviews: rating card links to Google Reviews ---------- */
.moments-section .moments-section__rating--link {
	color: var(--white);
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moments-section .moments-section__rating--link:hover,
.moments-section .moments-section__rating--link:focus-visible {
	color: var(--white);
	transform: translateY(-3px);
	box-shadow: 0 18px 32px -18px rgba(0, 0, 0, 0.55);
}

.moments-section .moments-section__google {
	display: inline-block;
	white-space: nowrap;
	margin-top: 1.2rem;
	padding-bottom: 0.2rem;
	border-bottom: 1px solid currentColor;
	color: var(--secondary);
	font-size: 1.25rem;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.moments-section .moments-section__google span {
	display: inline-block;
	transition: transform 0.3s ease;
}

.moments-section .moments-section__rating--link:hover .moments-section__google span {
	transform: translateX(4px);
}

/* ---------- Home gallery: Instagram feed instead of the photo grid ---------- */
.gallery-section .gallery-section__insta {
	min-width: 0;
	text-align: left;
}

.gallery-section .gallery-section__insta-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6rem 1.6rem;
	margin-bottom: clamp(1.4rem, 1.4vw, 2rem);
	padding-bottom: clamp(1rem, 1vw, 1.4rem);
	border-bottom: 0.1rem solid color-mix(in srgb, var(--primary) 15%, transparent);
}

.gallery-section .gallery-section__insta-title {
	margin: 0;
	color: #A64E31;
	font-size: clamp(1.4rem, 1vw, 1.7rem);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gallery-section .gallery-section__insta-handle {
	color: var(--primary);
	font-family: var(--sub-semibold);
	font-size: clamp(1.6rem, 1.2vw, 2rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: color 0.2s ease;
}

.gallery-section .gallery-section__insta-handle:hover,
.gallery-section .gallery-section__insta-handle:focus-visible {
	color: #A64E31;
}

@media (max-width: 991.98px) {
	.gallery-section .gallery-section__insta-head {
		flex-direction: column;
		align-items: center;
	}
}

/* Home gallery: hand-picked Instagram posts ("Selected posts" mode) */
.gallery-section .insta-picks {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-section .insta-picks__item {
	margin: 0;
}

.gallery-section .insta-picks__link {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background-color: color-mix(in srgb, var(--primary) 8%, transparent);
}

.gallery-section .insta-picks__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery-section .insta-picks__link:hover .insta-picks__img,
.gallery-section .insta-picks__link:focus-visible .insta-picks__img {
	transform: scale(1.05);
}

.gallery-section .insta-picks__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 14px 0 14px 23px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-40%, -50%);
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.gallery-section .insta-picks__more {
	margin: clamp(1.4rem, 1.4vw, 2rem) 0 0;
	text-align: center;
}

.gallery-section .insta-picks__follow {
	display: inline-block;
	padding: 0.9rem 2.2rem;
	border-radius: 999px;
	background-color: var(--primary);
	color: #fff;
	font-size: 1.5rem;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.gallery-section .insta-picks__follow:hover,
.gallery-section .insta-picks__follow:focus-visible {
	color: #fff;
	opacity: 0.85;
}

@media (max-width: 767.98px) {
	.gallery-section .insta-picks {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Reels from URLs: as many columns as reels (3-5), swipeable row on phones */
.gallery-section .insta-picks {
	grid-template-columns: repeat(var(--insta-cols, 4), 1fr);
}

.gallery-section .insta-picks__link {
	aspect-ratio: 9 / 16;
	border-radius: clamp(0.8rem, 0.8vw, 1.2rem);
}

.gallery-section .insta-picks__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
	opacity: 0.85;
}

@media (max-width: 767.98px) {
	.gallery-section .insta-picks {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
		padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
	}

	.gallery-section .insta-picks::-webkit-scrollbar {
		display: none;
	}

	.gallery-section .insta-picks__item {
		flex: 0 0 42%;
		scroll-snap-align: start;
	}
}
