/*
Theme Name:  Belles Alpes
Theme URI:   https://www.bellesalpes.com/
Description: Belles Alpes child theme for Kadence — brand palette, self-hosted fonts, logo.
Author:      NerdyFrog
Template:    kadence
Version:     0.1.0
Requires PHP: 8.3
Text Domain: bellesalpes
License:     Proprietary
*/

/*
 * Brand (branding/README.md): background #fcfcfc, text #3f3f41, golds #998e4a / #b0a24d / #c6b64f.
 * The golds are below 4.5:1 on white, so links and buttons use a darker gold (#7a713b, 4.9:1);
 * the brand golds stay for decoration, large headings and accents.
 * The Kadence palette (--global-palette1…15) is defined in functions.php; below are brand-only extras.
 */
:root {
	--ba-gold-dark: #998e4a;
	--ba-gold: #b0a24d;
	--ba-gold-light: #c6b64f;

	--global-body-font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--global-heading-font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* Chinese / Japanese pages (later languages): system CJK fonts first, no extra download */
:lang(zh), :lang(ja) {
	--global-body-font-family: "Lato", "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Noto Sans CJK JP", "Microsoft YaHei", "Yu Gothic", sans-serif;
	--global-heading-font-family: "Playfair Display", "Songti SC", "Hiragino Mincho ProN", "Noto Serif CJK SC", "Noto Serif CJK JP", serif;
}

body {
	font-family: var(--global-body-font-family);
	background-color: var(--global-palette9);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
	font-family: var(--global-heading-font-family);
	font-weight: 700;
}

/* Logo: the trimmed brand logo is 632×318; keep it readable but compact in the header */
.site-branding .custom-logo {
	max-height: 72px;
	width: auto;
}

/* Thin light-gold line under the header, echoing the mountain outline of the logo */
#masthead {
	border-bottom: 1px solid var(--ba-gold-light);
}

/* Header account link and cart (functions.php): the cart only shows once something is in it */
.site-header-item:has(.header-cart-empty-check.header-cart-is-empty-true) {
	display: none;
}
.ba-account-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	color: var(--global-palette4);
	text-decoration: none;
}
.ba-account-link:hover {
	color: var(--global-palette1);
}
.mobile-html .ba-account-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.mobile-html .ba-account-link svg {
	width: 24px;
	height: 24px;
}

.wp-block-quote {
	border-left-color: var(--ba-gold-light);
}

/* Visible keyboard focus in brand color */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--global-palette1);
	outline-offset: 2px;
}

/* Homepage hero: Mont-Blanc panorama (assets/img/hero-mont-blanc.svg, made by branding/hero/make-hero.py).
   The panorama sits at the bottom, scaled to the width (never narrower than 1100 px, cropped at the centre on
   phones); the sky colour continues above it, and the bottom padding keeps the text in the sky. */
.ba-hero {
	background: #fdfcf8 url(assets/img/hero-mont-blanc.svg) no-repeat 64% bottom / max(100%, 1100px) auto; /* 64 %: the Mont Blanc dome on phones */
	padding-bottom: calc(max(100vw, 1100px) * 0.17);
	margin-bottom: 2rem;
}

.ba-hero h1 {
	margin-top: 0;
}

/* Homepage hero for Shen Yun (assets/img/hero-shen-yun.jpg, made by branding/hero/make-hero-shen-yun.py):
   white logo and text on the poster's orange, the dancer on the right. Flyer style. */
.entry-content .wp-block-group.ba-hero-shenyun { /* beats the theme's padding reset on full-width groups */
	--ba-shenyun: #c75521;
	--ba-shenyun-text-bg: #b04a1c; /* white text 5.4:1 (the poster orange is 4.4:1) */
	/* left side shaded with a deeper orange so the text stays readable, also over the clouds */
	background:
		linear-gradient(90deg, var(--ba-shenyun-text-bg) 0, rgba(176, 74, 28, .9) 38%, rgba(176, 74, 28, 0) 60%),
		var(--ba-shenyun) url(assets/img/hero-shen-yun.jpg) no-repeat right center / auto 100%; /* full height: the dancer and the Shen Yun seal are never cropped */
	color: #fff;
	padding: clamp(2.5rem, 6vw, 5rem) 1.5rem clamp(3rem, 7vw, 6rem) max(1.5rem, calc(50vw - 590px));
	margin-bottom: 2rem;
}

.ba-hero-shenyun > * {
	max-width: min(34rem, 50vw);
}

.ba-hero-shenyun::before { /* Belles Alpes logo, decorative (the header logo is the link) */
	content: "";
	display: block;
	width: clamp(170px, 18vw, 240px);
	aspect-ratio: 616 / 302;
	margin-bottom: 1.25rem;
	background: url(assets/img/logo-white.png) no-repeat left center / contain;
}

.ba-hero-shenyun .ba-hero-kicker {
	margin: 0 0 .25rem;
	font-family: var(--global-heading-font-family);
	font-style: italic;
	font-size: 1.35rem;
}

.ba-hero-shenyun h1 {
	margin: 0 0 1rem;
	color: #fff;
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(80, 30, 5, .35);
}

.ba-hero-shenyun p {
	color: #fff;
}

.entry-content .ba-hero-shenyun .wp-block-button .wp-block-button__link {
	background: #fff;
	color: var(--ba-shenyun-text-bg);
	border: 2px solid #fff;
}

.entry-content .ba-hero-shenyun .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

.entry-content .ba-hero-shenyun .wp-block-button .wp-block-button__link:hover,
.entry-content .ba-hero-shenyun .wp-block-button .wp-block-button__link:focus-visible {
	background: #fdf1e8;
	color: #8a3510;
	outline-color: #fff;
}

/* Front page: the hero starts right under the header */
.home .content-area {
	margin-top: 0;
}

.home .entry-content-wrap {
	padding-top: 0;
}

/* Phones: text on the orange at the top, dancer below it */
@media (max-width: 767px) {
	.entry-content .wp-block-group.ba-hero-shenyun {
		background:
			linear-gradient(180deg, var(--ba-shenyun-text-bg) 0, var(--ba-shenyun-text-bg) calc(100% - 420px), rgba(176, 74, 28, 0) calc(100% - 300px)),
			var(--ba-shenyun) url(assets/img/hero-shen-yun.jpg) no-repeat right bottom / auto 420px;
		padding-bottom: 360px;
	}
	.ba-hero-shenyun > * {
		max-width: none;
	}
}

/* ---------------------------------------------------------------------------------------------------------
   Homepage sections. Icons: assets/icons/*.svg (brand gold line icons), set with the class ba-icon-<name>.
   --------------------------------------------------------------------------------------------------------- */
.ba-icon-shield { --ba-icon: url(assets/icons/shield.svg); }
.ba-icon-badge { --ba-icon: url(assets/icons/badge.svg); }
.ba-icon-umbrella { --ba-icon: url(assets/icons/umbrella.svg); }
.ba-icon-lock { --ba-icon: url(assets/icons/lock.svg); }
.ba-icon-pin { --ba-icon: url(assets/icons/pin.svg); }
.ba-icon-coach { --ba-icon: url(assets/icons/coach.svg); }
.ba-icon-suitcase { --ba-icon: url(assets/icons/suitcase.svg); }
.ba-icon-ticket { --ba-icon: url(assets/icons/ticket.svg); }
.ba-icon-bell { --ba-icon: url(assets/icons/bell.svg); }
.ba-icon-phone { --ba-icon: url(assets/icons/phone.svg); }
.ba-icon-mail { --ba-icon: url(assets/icons/mail.svg); }
.ba-icon-calendar { --ba-icon: url(assets/icons/calendar.svg); }

/* Trust strip under the hero */
.entry-content .ba-trust-band {
	margin-top: -2rem; /* sits right under the hero */
	margin-bottom: 3rem;
	padding: 1.5rem 1.5rem;
	background: #f6f2e3;
	border-bottom: 1px solid var(--ba-gold-light);
}

.ba-trust {
	gap: 1.5rem !important;
	margin: 0;
}

.ba-trust-item {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.ba-trust-item::before {
	content: "";
	flex: 0 0 40px;
	height: 40px;
	background: var(--ba-icon) no-repeat center / contain;
}

.ba-trust-item p {
	margin: 0;
	font-size: .95rem;
	line-height: 1.35;
}

/* "Why travel with us" */
.ba-features {
	gap: 2rem !important;
}

.ba-feature {
	padding: 1.75rem 1.5rem;
	background: #fff;
	border: 1px solid #ece6cf;
	border-radius: 10px;
}

.ba-feature::before,
.ba-trip-notify::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 1rem;
	background: var(--ba-icon) no-repeat center / contain;
}

.ba-feature h3 {
	margin-top: 0;
}

.ba-feature p:last-child {
	margin-bottom: 0;
}

/* Coming-up trip cards */
.ba-trips {
	gap: 1.25rem !important;
}

.ba-trip-card {
	display: flex;
	flex-direction: column;
	padding: 1.25rem 1.25rem 1rem;
	background: #fff;
	border: 1px solid #ece6cf;
	border-top: 4px solid var(--ba-gold-light);
	border-radius: 10px;
}

.ba-trip-card h3 {
	margin: .25rem 0;
	font-size: 1.2rem;
}

.ba-trip-card p {
	margin: 0;
}

.ba-trip-date {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .5rem;
	font-weight: 700;
	color: var(--global-palette1);
}

.ba-soon {
	padding: .1rem .55rem;
	border-radius: 99px;
	background: #f6f2e3;
	color: var(--global-palette3);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ba-trip-where {
	color: var(--global-palette5);
	font-size: .95rem;
}

.entry-content .ba-trip-card .ba-trip-notify {
	display: flex;
	align-items: center;
	gap: .4rem;
	margin-top: auto;
	padding-top: .9rem;
	font-weight: 700;
}

.ba-trip-notify::before {
	width: 20px;
	height: 20px;
	margin: 0;
}

/* "Any questions?" band */
.entry-content .ba-contact-band {
	margin-top: 3rem;
	margin-bottom: -2rem; /* meets the footer */
	padding: 3rem 1.5rem;
	background: #f6f2e3;
	border-top: 1px solid var(--ba-gold-light);
	text-align: center;
}

.ba-contact-band h2 {
	margin-top: 0;
}

.ba-contact-band .wp-block-buttons {
	justify-content: center;
}

.ba-contact-band .wp-block-button:not(.is-style-outline) .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	margin-right: .5em;
	vertical-align: -.15em;
	background: #fff;
	-webkit-mask: url(assets/icons/phone.svg) no-repeat center / contain;
	mask: url(assets/icons/phone.svg) no-repeat center / contain;
}

.ba-contact-band .wp-block-button__link {
	font-size: 1.1rem;
	padding: .8em 1.4em;
}

/* Phones: trust strip as a compact 2 × 2 grid */
@media (max-width: 781px) {
	.entry-content .ba-trust {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 1rem !important;
	}
	.ba-trust-item {
		flex-direction: column;
		align-items: flex-start;
		gap: .4rem;
	}
	.ba-trust-item::before {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
	}
	.ba-trust-item p {
		font-size: .85rem;
	}
}

/* Card rows: fixed steps so no card is left alone on a row and none gets squeezed.
   Trips: 4 per row → 2 × 2 (below 1100 px) → 1 (below 560 px). Features: 3 per row → 1 (below 782 px). */
.entry-content .ba-trips,
.entry-content .ba-features {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entry-content .ba-features {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-content .ba-trips > .wp-block-column,
.entry-content .ba-features > .wp-block-column {
	flex-basis: auto !important;
	width: auto;
	margin: 0;
}

@media (max-width: 1099px) {
	.entry-content .ba-trips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.entry-content .ba-features {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 559px) {
	.entry-content .ba-trips {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* "Soon" badge: one line, in the card's top-right corner; the date keeps the full width */
.ba-trip-card {
	position: relative;
}

.ba-trip-date {
	padding-right: 4.5rem;
}

.ba-soon {
	position: absolute;
	top: .9rem;
	right: .9rem;
	white-space: nowrap;
}

/* Group quote block (homepage): icon on the left, text and button on the right */
.ba-icon-group { --ba-icon: url(assets/icons/group.svg); }

.entry-content .ba-group-quote {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	column-gap: 1.5rem;
	align-items: start;
	margin-top: 3rem;
	padding: 2rem;
	background: #fff;
	border: 1px solid #ece6cf;
	border-left: 4px solid var(--ba-gold-light);
	border-radius: 0;
}

.ba-group-quote::before {
	content: "";
	grid-row: 1 / span 3;
	width: 72px;
	height: 72px;
	background: var(--ba-icon) no-repeat center / contain;
}

.entry-content .ba-group-quote > * {
	grid-column: 2;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.ba-group-quote h2 {
	margin-top: 0;
}

@media (max-width: 559px) {
	.entry-content .ba-group-quote {
		grid-template-columns: minmax(0, 1fr);
		padding: 1.5rem;
	}
	.ba-group-quote::before {
		grid-row: auto;
		width: 52px;
		height: 52px;
		margin-bottom: .75rem;
	}
	.entry-content .ba-group-quote > * {
		grid-column: 1;
	}
}

/* Footer trust logos (APST, Powered by Stripe), above the credit line */
.ba-footer-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.25rem 2rem;
	margin-bottom: 1rem;
}

.ba-footer-logos img {
	display: block;
	height: 30px;
	width: auto;
}

.ba-footer-logos a:focus-visible {
	outline-offset: 4px;
}

/* Accepted payment marks (footer): one row, all 32 px high; Visa and Mastercard (no card shape of their own) get a white card
   with a hairline border, the shape of the CB, Apple Pay and Google Pay marks */
.ba-payment-marks .ba-pay-cb img {
	border-radius: 4px;
}
.ba-payment-marks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.ba-payment-marks li {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	margin: 0;
}

.ba-payment-marks img {
	display: block;
	height: 32px;
	width: auto;
}

.ba-payment-marks .ba-pay-visa,
.ba-payment-marks .ba-pay-mastercard {
	width: 48px;
	padding: 5px 6px;
	background: #fff;
	border: 1px solid #d6d6d6;
	border-radius: 5px;
	box-sizing: border-box;
}

.ba-payment-marks .ba-pay-visa img,
.ba-payment-marks .ba-pay-mastercard img {
	height: 100%;
	max-width: 100%;
	object-fit: contain;
}

/* Partner badge ("Partenaire de Shen Yun … 2e année consécutive"): pill, gold on light pages, white in the hero */
.ba-partner-badge {
	display: inline-block;
	margin: 0 0 1rem;
	padding: .3rem .9rem;
	border: 1px solid var(--ba-gold-light);
	border-radius: 99px;
	background: #fff; /* palette1 gold on white: 4.9:1 */
	color: var(--global-palette1);
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.4;
}

.ba-partner-badge sup {
	font-size: .7em;
}

.ba-hero-shenyun .ba-partner-badge {
	background: rgba(80, 25, 5, .35); /* darker than the hero orange: white text above 4.5:1 */
	border-color: rgba(255, 255, 255, .7);
	color: #fff;
}

/* --- Multi-day trip page (booking request) --- */
.ba-trip-facts {
	background: var(--ba-cream, #f5f3ec);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
}
.ba-trip-facts ul {
	margin: 0;
	padding-left: 1.1rem;
}
.ba-trip-price {
	font-size: 1.25rem;
	margin: .75rem 0 0;
}
.ba-trip-gallery img {
	border-radius: 6px;
	height: 160px;
	object-fit: cover;
	width: 100%;
}
.ba-day h3 {
	margin-bottom: .25rem;
}

/* Booking request form */
.ba-request {
	background: #fff;
	border: 1px solid var(--global-palette7, #e9e6d8);
	border-radius: 8px;
	padding: 1.5rem;
}
.ba-request p {
	margin: 0 0 1rem;
}
.ba-request label {
	display: block;
	font-weight: 700;
	margin-bottom: .25rem;
}
.ba-request input[type="text"],
.ba-request input[type="email"],
.ba-request input[type="tel"],
.ba-request input[type="number"],
.ba-request textarea {
	width: 100%;
}
.ba-request small {
	color: var(--global-palette5, #5c5c5f);
	display: block;
	font-weight: 400;
	margin-top: .25rem;
}
.ba-request-row {
	display: grid;
	gap: 0 1.25rem;
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
	.ba-request-row {
		grid-template-columns: 1fr;
	}
}
.ba-request-check label {
	font-weight: 400;
}
.ba-request-check input {
	margin-right: .4rem;
}
.ba-request-estimate {
	background: var(--global-palette8, #f5f3ec);
	border-radius: 6px;
	padding: .75rem 1rem;
}
.ba-request-hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}
.ba-request-errors {
	border-left: 4px solid var(--global-palette13, #b82105);
	color: var(--global-palette13, #b82105);
	margin-bottom: 1rem;
	padding: .25rem 1rem;
}
.ba-request-sent {
	border-left: 4px solid var(--global-palette11, #13612e);
}
.ba-trip-kicker {
	color: var(--global-palette1, #7a713b);
	font-weight: 700;
	letter-spacing: .04em;
	margin-bottom: .25rem;
	text-transform: uppercase;
}
.ba-trip-hero img {
	border-radius: 8px;
	max-height: 420px;
	object-fit: cover;
	width: 100%;
}
