/* Chunchitos — site-wide additions (nav, footer links, WhatsApp button, new page layouts).
   Loaded after style.css; reuses the theme's own CSS variables (colors/fonts) so new
   pages match the original Publii-built design instead of introducing a second style. */

/* ---------- Tropical Costa Rican palette (overrides the base theme's tokens) ---------- */
:root {
	--jungle-green: #1B5E20;
	--jungle-green-deep: #123b15;
	--toucan-gold: #FFB300;
	--sunset-coral: #FF5722;
	--caribbean-turquoise: #00ACC1;
	--warm-sand: #FAF8F3;
	--warm-sand-dim: #F1ECDD;

	--heading-font: "Baloo 2", "Yanone Kaffeesatz", sans-serif;
	--color: var(--jungle-green);
	--headings-color: var(--jungle-green);
	--link-color-hover: var(--jungle-green);
	--nav-link-color-hover: var(--jungle-green);
	--page-bg: var(--warm-sand);
	--lighter: var(--warm-sand-dim);
}
@media (prefers-color-scheme: dark) {
	:root {
		/* Chunchitos keeps its warm, light "Pura Vida" look even when a visitor's
		   system is set to dark mode. The base theme's own dark-mode rules (above,
		   in style.css) swap headings/body text to near-white, assuming a dark
		   page background — but our --page-bg stays the light warm-sand color,
		   so without this reset that near-white text goes almost invisible
		   against it (the washed-out "grey" text people are seeing). Re-assert
		   the light-mode tokens here so the site renders the same regardless of
		   the visitor's system theme. */
		--white: #fff;
		--black: #17181e;
		--helper: #fff;
		--dark: #17181e;
		--gray: #57585a;
		--light: #cacbcf;
		--lighter: var(--warm-sand-dim);
		--page-bg: var(--warm-sand);
		--color: var(--jungle-green);
		--text-color: #17181e;
		--headings-color: var(--jungle-green);
		--link-color: #17181e;
		--link-color-hover: var(--jungle-green);
		--nav-link-color: #17181e;
		--nav-link-color-hover: var(--jungle-green);
		--logo-color: #17181e;
	}
}

.btn--order {
	background: var(--sunset-coral) !important;
}

/* ---------- Video hero (homepage) ---------- */
.video-hero {
	position: relative;
	min-height: 64vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	color: #fff;
	margin-bottom: 0;
}
.video-hero video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.video-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(27,94,32,.55) 0%, rgba(27,94,32,.72) 55%, rgba(16,56,19,.9) 100%);
}
.video-hero__pattern {
	position: absolute;
	top: -40px;
	right: -40px;
	width: 200px;
	height: 200px;
	opacity: .3;
	pointer-events: none;
}
.video-hero__content {
	position: relative;
	z-index: 2;
	max-width: 40rem;
	padding: 3rem var(--page-margin);
}
.video-hero__kicker {
	font-family: var(--menu-font);
	font-size: .8rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--toucan-gold);
	font-weight: var(--font-weight-bold);
	margin: 0 0 .8rem;
}
.video-hero h1 {
	color: #fff;
	font-family: var(--heading-font);
	font-size: clamp(2.6rem, 2rem + 4vw, 4.2rem);
	margin: 0 0 1rem;
}
.video-hero p {
	color: #fff;
	opacity: .94;
	margin: 0 0 1.6rem;
	max-width: 30rem;
}
.video-hero .btn--order {
	background: var(--toucan-gold) !important;
	color: #412402 !important;
}
.video-hero .btn--ghost {
	background: transparent !important;
	border: 1.5px solid #fff;
	color: #fff !important;
	margin-left: .6rem;
}
.wave-divider {
	display: block;
	width: 100%;
	height: 2.6rem;
	margin: -2px 0 0;
}
@media (prefers-reduced-motion: reduce) {
	.video-hero video { display: none; }
}

/* ---------- Pastel charm cards (shop page) + hover tilt ---------- */
.charm-card {
	transition: transform .25s ease, box-shadow .25s ease;
}
.charm-card:hover {
	transform: scale(1.04) rotate(-1deg);
	box-shadow: 0 10px 22px rgba(0,0,0,.14);
}
.charm-card.charm-card--sky { background: #E3F1FB; }
.charm-card.charm-card--mango { background: #FFF4DB; }
.charm-card.charm-card--mint { background: #E3F4EC; }
.charm-card.charm-card--coral { background: #FDE8E2; }
.charm-card.charm-card--lilac { background: #F0E9F8; }
.charm-card.charm-card--flag { background: #E6ECF9; }

/* ---------- Jungle-green retail-locations band (Find Us page) ---------- */
.locations-band {
	background: var(--jungle-green);
	color: #fff;
	margin: 2.5rem 0 0;
	padding: 2.5rem var(--page-margin) 3rem;
}
.locations-band h2 {
	color: #fff;
	text-align: center;
	margin: 0 0 .4rem;
}
.locations-band > .wrapper > p {
	text-align: center;
	color: #d7ead7;
	max-width: 36rem;
	margin: 0 auto;
}
.locations-band .card-grid { margin: 1.8rem 0 0; }
.locations-band .stockist-card {
	background: rgba(255,255,255,.1);
	border: none;
}
.locations-band .stockist-card__body h3 {
	color: #fff;
	display: flex;
	align-items: center;
	gap: .4rem;
}
.locations-band .stockist-card__body p {
	color: #d7ead7;
	opacity: 1;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
	align-items: center;
	justify-content: center;
	padding: .6rem 1rem;
	font-family: var(--menu-font);
	font-size: .95rem;
	border-bottom: 1px solid rgba(23,24,30,.08);
	background: var(--page-bg);
	position: relative;
}
.site-nav a {
	color: var(--nav-link-color);
	text-decoration: none;
	padding: .3rem 0;
	border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--color);
	border-bottom-color: var(--color);
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: .4rem;
	margin-left: auto;
	font-size: .85rem;
	color: var(--gray);
	white-space: nowrap;
}
.lang-switch a {
	color: var(--gray);
	text-decoration: none;
	padding: .15rem 0;
	border-bottom: 2px solid transparent;
}
.lang-switch a:hover {
	color: var(--color);
}
.lang-switch a[aria-current="true"] {
	color: var(--nav-link-color);
	font-weight: 600;
	border-bottom: none;
}
.lang-switch .lang-switch__sep {
	color: var(--light);
}
@media (max-width: 37.4375em) {
	.lang-switch {
		margin-left: 0;
		width: 100%;
		justify-content: center;
		padding-top: .4rem;
		border-top: 1px solid rgba(23,24,30,.08);
	}
}

.page-hero {
	text-align: center;
	padding: 2.5rem 1rem 1.5rem;
}
.page-hero h1 {
	font-family: var(--heading-font);
	font-size: clamp(2rem, 2rem + 2vw, 3rem);
	color: var(--headings-color);
	margin: 0 0 .5rem;
}
.page-hero p {
	max-width: 42rem;
	margin: 0 auto;
	color: var(--text-color);
	opacity: .85;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}
.charm-card, .journal-card, .stockist-card {
	border: 1px solid rgba(23,24,30,.1);
	border-radius: .6rem;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.charm-card img, .journal-card img {
	width: 100%;
	object-fit: cover;
	display: block;
}
/* Charm product photos are shot portrait (3:4, charm centered top-to-bottom
   with room above the head and below the base) — a 4:3 landscape crop
   chopped off the tops of charms like Tuanis the sloth. 3:4 matches the
   source photos and shows each charm in full. */
.charm-card img {
	aspect-ratio: 3 / 4;
}
/* Journal/lifestyle photos are a mix of landscape and portrait shots, so
   keep the original wider 4:3 crop for those. */
.journal-card img {
	aspect-ratio: 4 / 3;
}
.charm-card__body, .journal-card__body, .stockist-card__body {
	padding: 1rem 1.2rem 1.3rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.charm-card__body h3, .journal-card__body h3, .stockist-card__body h3 {
	font-family: var(--heading-font);
	margin: 0 0 .4rem;
}
.charm-card__body p, .journal-card__body p, .stockist-card__body p {
	font-size: .92rem;
	opacity: .85;
	margin: 0 0 1rem;
	flex: 1;
}

.btn--order {
	display: inline-block;
	align-self: flex-start;
	background: var(--color);
	color: #fff !important;
	padding: .5rem 1rem;
	border-radius: 2rem;
	font-size: .88rem;
	text-decoration: none;
	font-weight: var(--font-weight-bold);
}
.btn--order:hover { opacity: .88; }

.faq-list { max-width: 44rem; margin: 2rem auto; }
.faq-list details {
	border-bottom: 1px solid rgba(23,24,30,.1);
	padding: .9rem 0;
}
.faq-list summary {
	font-family: var(--heading-font);
	font-size: 1.15rem;
	cursor: pointer;
	color: var(--headings-color);
}
.faq-list details p { margin: .6rem 0 0; opacity: .88; }

.section-divider {
	max-width: 44rem;
	margin: 2.5rem auto;
	padding: 0 1rem;
}
.section-divider h2 {
	font-family: var(--heading-font);
	text-align: center;
}

.cta-banner {
	text-align: center;
	background: rgba(215,58,66,.06);
	padding: 2rem 1rem;
	margin: 2.5rem 0 0;
}
.cta-banner h2 { font-family: var(--heading-font); margin: 0 0 .6rem; }

.site-footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.2rem;
	justify-content: center;
	font-size: .85rem;
	margin-bottom: .8rem;
}
.site-footer-nav a { color: inherit; opacity: .8; text-decoration: none; }
.site-footer-nav a:hover { opacity: 1; text-decoration: underline; }

/* Floating WhatsApp button — a generic chat-bubble glyph in WhatsApp's brand green,
   not a reproduction of the WhatsApp logo mark itself. */
.whatsapp-float {
	position: fixed;
	right: 1.1rem;
	bottom: 1.1rem;
	z-index: 999;
	display: flex;
	align-items: center;
	gap: .5rem;
	background: #25D366;
	color: #fff !important;
	padding: .7rem 1rem;
	border-radius: 2rem;
	text-decoration: none;
	font-family: var(--menu-font);
	font-weight: var(--font-weight-bold);
	font-size: .92rem;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.whatsapp-float svg { width: 22px; height: 22px; flex-shrink: 0; }
.whatsapp-float__label { white-space: nowrap; }
@media (max-width: 480px) {
	.whatsapp-float__label { display: none; }
	.whatsapp-float { padding: .7rem; }
}

/* Footer: the Facebook icon above links to our Page — this calls out the
   separate Facebook Group so people don't miss it or mix the two up. */
.footer__fb-group {
	margin-top: .5rem;
	font-size: .8rem;
	color: var(--gray);
}
.footer__fb-group a {
	color: var(--color);
	font-weight: var(--font-weight-bold);
	text-decoration: underline;
}

/* Site-wide event banner — sits between header and nav. Time-boxed announcements
   (markets, festivals) get an id + an inline same-page script that removes the
   banner once the event's end date has passed, so it never needs to be manually
   cleaned up across every page later. */
.event-bar {
	background: var(--toucan-gold);
	color: var(--jungle-green-deep);
	text-align: center;
	font-size: .92rem;
	padding: .55rem 1rem;
}
.event-bar .wrapper { max-width: 60rem; margin: 0 auto; }
.event-bar p { margin: 0; }
.event-bar a { color: var(--jungle-green-deep); text-decoration: underline; font-weight: var(--font-weight-bold); }
.event-bar a:hover { color: var(--sunset-coral); }

/* Highlighted upcoming-event card, used on Find Us for in-person event details. */
.event-detail {
	max-width: 44rem;
	margin: 2.5rem auto;
	padding: 1.4rem 1.6rem;
	background: rgba(255,179,0,.14);
	border: 2px solid var(--toucan-gold);
	border-radius: .6rem;
}
.event-detail h2 { font-family: var(--heading-font); margin-top: 0; }
.event-detail ul { margin: .6rem 0; padding-left: 1.2rem; }
.event-detail li { margin: .2rem 0; }
