/*
Theme Name: Al Hilal Holidays
Description: Al Hilal Holidays block theme, built from approved concept W02 (Wine & Signal).
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Update URI: false
Text Domain: alhilal-holidays
*/

/* Accent phrase: italic inside any heading switches to Anybody in wine. */
:where(h1, h2, h3) em {
	font-family: var(--wp--preset--font-family--accent);
	font-style: italic;
	font-weight: 500;
	color: var(--wp--preset--color--wine);
	letter-spacing: -0.01em;
}

/* Buttons: filled wine with a coral arrow chip; outline style is a plain card button. */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: transform .15s;
}
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link::after {
	content: "";
	width: 30px;
	height: 30px;
	border-radius: 6px;
	background: var(--wp--preset--color--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='%235A2242' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	padding: 11px 16px;
}
.wp-block-button.is-style-dark .wp-block-button__link {
	background: var(--wp--preset--color--ink);
	padding: 9px 14px;
}
.wp-block-button.is-style-dark .wp-block-button__link::after { display: none; }

/* Header: menu left, wordmark centred, WhatsApp right. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: color-mix(in srgb, var(--wp--preset--color--paper) 88%, transparent);
	backdrop-filter: blur(10px);
}
.site-header > .header-row {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 72px;
}
.site-header .header-row > .wp-block-buttons { justify-content: flex-end; }
body.admin-bar .site-header { top: 32px; }

/* Sections */
.sec { padding-block: var(--wp--preset--spacing--60) !important; }
.sec.is-soft { background: var(--wp--preset--color--paper-deep); }
.sec.is-mist { background: linear-gradient(180deg, #EFE8DC 0%, var(--wp--preset--color--paper) 70%); }
.head-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px;
	margin-bottom: 40px;
}
.head-row > p, .lede {
	color: var(--wp--preset--color--muted);
	max-width: 340px;
	font-size: 14px;
	margin: 0;
}
.count { font: 500 12px var(--wp--preset--font-family--body); vertical-align: top; color: var(--wp--preset--color--muted); letter-spacing: 0; }

/* Hero */
.hero {
	background: linear-gradient(180deg, #EFE8DC 0%, var(--wp--preset--color--paper) 70%);
	text-align: center;
	padding-top: 72px !important;
	overflow: hidden;
}
.hero > p { color: var(--wp--preset--color--muted); max-width: 430px; margin-inline: auto !important; }
.arch {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px !important;
	align-items: end;
	max-width: 1320px !important;
	margin: 64px auto 0 !important;
}
.arch .wp-block-image { margin: 0; }
.arch img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; display: block; }
.arch > :nth-child(1) img, .arch > :nth-child(5) img { aspect-ratio: 4 / 5; }
.arch > :nth-child(1), .arch > :nth-child(5) { transform: translateY(40px); }
.arch > :nth-child(2), .arch > :nth-child(4) { transform: translateY(16px); }
.strip {
	display: flex !important;
	justify-content: center;
	gap: 48px !important;
	flex-wrap: wrap;
	padding-top: 88px;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
}
.strip p { margin: 0; }
.strip strong { display: block; font: 500 28px var(--wp--preset--font-family--display); letter-spacing: -0.02em; color: var(--wp--preset--color--ink); }

/* Trip cards (query loop) */
.trips .wp-block-post-template { gap: 22px; }
.trip {
	background: var(--wp--preset--color--card);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 1px 0 var(--wp--preset--color--line), 0 12px 30px -18px rgba(0, 0, 0, .18);
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 0 !important;
}
.trip .wp-block-post-featured-image { margin: 8px; }
.trip .wp-block-post-featured-image img { border-radius: 12px; }
.trip .tag {
	position: absolute;
	left: 20px;
	top: 20px;
	margin: 0;
	background: var(--wp--preset--color--card);
	font-size: 12px;
	font-weight: 500;
	padding: 6px 10px;
	border-radius: 6px;
}
.trip-body { padding: 14px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 0 !important; }
.trip-body h3 { margin: 0; font-size: 24px; }
.trip-body .where { color: var(--wp--preset--color--muted); font-size: 13px; margin: 4px 0 14px; }
.trip-body .wp-block-post-excerpt { font-size: 14px; margin: 0 0 18px; flex: 1; }
.trip-body .wp-block-post-excerpt__excerpt { margin: 0; }
.trip-meta {
	display: flex !important;
	justify-content: space-between;
	align-items: baseline;
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 14px;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}
.trip-meta p { margin: 0; }
.trip-meta .price { font: 600 20px var(--wp--preset--font-family--display); color: var(--wp--preset--color--ink); letter-spacing: -0.02em; }

/* Services */
.svc { gap: 56px !important; align-items: center !important; }
.svc img { border-radius: 18px; aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.svc-list { margin-top: 36px; }
.svc-item {
	display: grid !important;
	grid-template-columns: 48px 1fr;
	padding: 22px 0;
	border-top: 1px solid var(--wp--preset--color--line);
	margin: 0 !important;
}
.svc-item > p:first-child { color: var(--wp--preset--color--muted); font-size: 13px; margin: 0; }
.svc-item h3 { font-size: 22px; margin: 0 0 6px; }
.svc-item p { color: var(--wp--preset--color--muted); font-size: 14px; margin: 0; }

/* Moments */
.moments { gap: 22px !important; }
.moment {
	background: var(--wp--preset--color--card);
	border-radius: 18px;
	padding: 8px 8px 22px;
	box-shadow: 0 1px 0 var(--wp--preset--color--line);
}
.moment img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.moment > :not(.wp-block-image) { margin-inline: 14px !important; }
.moment h3 { font-size: 26px; }
.moment p { color: var(--wp--preset--color--muted); font-size: 14px; }

/* How it works */
.steps { gap: 18px !important; }
.step {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 22px 24px 26px !important;
	min-height: 230px;
	display: flex !important;
	flex-direction: column;
	justify-content: space-between;
}
.step > p:first-child { font-size: 12px; color: var(--wp--preset--color--muted); }
.step h3 { margin: 0 0 8px; }
.step p { color: var(--wp--preset--color--muted); font-size: 14px; margin: 0; }

/* FAQ */
.faq { gap: 56px !important; }
.faq-side { display: flex !important; flex-direction: column; }
.faq-side h2 { font-size: clamp(40px, 5vw, 68px); }
.faq-side > p { margin-top: auto !important; max-width: 300px; }
.wp-block-details {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 0 20px;
	margin: 0 0 8px !important;
}
.wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	padding: 18px 0;
	font-weight: 500;
	font-size: 14px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details p { color: var(--wp--preset--color--muted); font-size: 14px; padding-bottom: 18px; margin: 0; }

/* Final CTA */
.final-card { border-radius: 28px; overflow: hidden; }
.final-card h2 em, .final-card h2 { color: #fff; }
.final-card p { opacity: .85; max-width: 380px; }

/* Trip page */
.trip-hero img { border-radius: 24px; aspect-ratio: 21 / 9; object-fit: cover; width: 100%; }
.trip-facts {
	display: flex !important;
	flex-wrap: wrap;
	gap: 12px 36px !important;
	padding: 20px 0;
	border-block: 1px solid var(--wp--preset--color--line);
	font-size: 14px;
}
.trip-facts p { margin: 0; }
.trip-facts .label { display: block; font-size: 12px; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: .06em; }
.trip-facts .price { font: 600 24px var(--wp--preset--font-family--display); letter-spacing: -0.02em; }
.entry ul { padding-left: 1.1em; }
.entry li { margin-bottom: 6px; }
.enquire-card {
	background: var(--wp--preset--color--wine);
	color: var(--wp--preset--color--paper);
	border-radius: 18px;
	padding: 28px !important;
	position: sticky;
	top: 110px;
}
.enquire-card h3 { color: var(--wp--preset--color--paper); }
.enquire-card .wp-block-button__link { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--wine); }

/* Footer */
.site-footer {
	background: var(--wp--preset--color--wine);
	color: var(--wp--preset--color--paper);
	padding-block: 72px 40px !important;
	margin-top: 0 !important;
}
.site-footer .wp-block-site-title { font-size: 34px; }
.site-footer h4 { font: 500 12px var(--wp--preset--font-family--body); opacity: .6; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.site-footer li { margin-bottom: 8px; }
.fine {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 18%, transparent);
	margin-top: 56px !important;
	padding-top: 22px;
	font-size: 12px;
	opacity: .6;
}

@media (max-width: 860px) {
	.site-header .wp-block-navigation__responsive-container-open { margin-right: auto; }
	.site-header .wa-label { display: none; }
	.arch {
		grid-template-columns: repeat(5, 62%);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-top: 40px !important;
		gap: 12px !important;
	}
	.arch > * { transform: none !important; scroll-snap-align: center; }
	.arch img { aspect-ratio: 4 / 5 !important; }
	.strip { gap: 28px !important; padding-top: 56px; }
	.head-row { flex-direction: column; align-items: flex-start; gap: 14px; }
	.step { min-height: 0; gap: 28px; }
	.trip-hero img { aspect-ratio: 4 / 3; }
	.enquire-card { position: static; }
}

/* Page and trip body content */
.site-header .header-row > * { margin-block: 0 !important; }
.entry h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 40px; }
.entry img { border-radius: 18px; }
.trip-facts .wp-block-group > * { margin: 0 !important; }
.trip-facts > .wp-block-group { display: flex; flex-direction: column; justify-content: flex-end; }

/* Destination cards (portrait photo, country tag, known-for line) */
.dests .wp-block-post-template { gap: 22px; }
.dest { position: relative; gap: 0 !important; }
.dest .wp-block-post-featured-image { margin: 0 0 14px; }
.dest .wp-block-post-featured-image img { border-radius: 18px; transition: transform .4s; }
.dest .wp-block-post-featured-image { overflow: hidden; border-radius: 18px; }
.dest:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.dest .tag {
	position: absolute; left: 12px; top: 12px; margin: 0;
	background: var(--wp--preset--color--card);
	font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 6px;
}
.dest h3 { margin: 0; font-size: 22px; }
.dest .known { color: var(--wp--preset--color--muted); font-size: 14px; margin: 4px 0 0; }
.dests.is-four .wp-block-post-template { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dests.is-four .dest .wp-block-post-featured-image img { aspect-ratio: 3 / 4 !important; }
@media (max-width: 860px) {
	.dests.is-four .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dests .wp-block-post-template { gap: 18px 12px; }
	.dest h3 { font-size: 18px; }
}
.more-link { margin-top: 32px !important; }
.trip-hero img { aspect-ratio: 2 / 1; object-position: center 30%; }

/* Uganda spotlight: a wine band that sets the featured country apart */
.spotlight { background: var(--wp--preset--color--wine); color: var(--wp--preset--color--paper); }
.spotlight h2 { color: var(--wp--preset--color--paper); }
.spotlight h2 em { color: var(--wp--preset--color--coral); }
.spotlight .head-row > p, .spotlight .count { color: color-mix(in srgb, var(--wp--preset--color--paper) 72%, transparent); }
.spotlight .head-row > p { max-width: 420px; }
.spot-label {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.spotlight .dest h3, .spotlight .dest h3 a { color: var(--wp--preset--color--paper); }
.spotlight .dest .known { color: color-mix(in srgb, var(--wp--preset--color--paper) 70%, transparent); }
.spotlight .tag { color: var(--wp--preset--color--ink); }
