/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

:root {
	--safari-ink: #17130d;
	--safari-earth: #3a2318;
	--safari-clay: #7b6448;
	--safari-gold: #f3c84b;
	--safari-green: #2d6f5f;
	--safari-mint: #48bca2;
	--safari-cream: #fffaf0;
	--safari-line: rgba(58, 35, 24, 0.09);
	--safari-shadow: 0 14px 34px rgba(23, 19, 13, 0.1);
	--safari-hero-start: rgb(139, 115, 85);
	--safari-hero-end: rgb(107, 85, 65);
	--theme-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--theme-headings-color: var(--safari-earth);
	--theme-text-color: #51483f;
	--theme-link-initial-color: var(--safari-green);
	--theme-link-hover-color: var(--safari-earth);
	--theme-button-background-initial-color: var(--safari-gold);
	--theme-button-background-hover-color: var(--safari-earth);
	--theme-button-text-initial-color: var(--safari-ink);
	--theme-button-text-hover-color: #fff;
	--theme-button-border-radius: 6px;
	--theme-normal-container-max-width: 1180px;
	--theme-content-vertical-spacing: 72px;
}

body {
	background: #fffdf7;
	color: var(--theme-text-color);
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.stk-block-heading__text {
	letter-spacing: 0;
}

h1,
.stk-block-hero h1,
.wp-block-cover h1 {
	font-size: clamp(42px, 6vw, 84px);
	line-height: 1.02;
}

h2,
.stk-block-heading h2,
.wp-block-heading {
	font-size: clamp(30px, 3.2vw, 48px);
	line-height: 1.12;
}

p,
li,
.stk-block-text__text {
	font-size: clamp(16px, 1.15vw, 18px);
	line-height: 1.75;
}

.ct-header [data-row*="middle"] {
	backdrop-filter: blur(14px);
}

/* Transparent hero overlay state — consistent across all pages */
[data-transparent] [data-row*="middle"] {
	background: rgba(10, 5, 0, 0.32) !important;
	box-shadow: none !important;
}

[data-transparent] [data-id="menu"] > ul > li > a {
	--theme-link-initial-color: rgba(255, 255, 255, 0.9);
	--theme-link-hover-color: var(--safari-gold);
	--theme-link-active-color: #fff;
}

[data-transparent] [data-id="button"] {
	--theme-button-background-initial-color: transparent;
	--theme-button-background-hover-color: rgba(255, 255, 255, 0.15);
	--theme-button-text-initial-color: #fff;
	--theme-button-text-hover-color: #fff;
	--theme-button-border: 2px solid rgba(255, 255, 255, 0.55);
}

/* Sticky scroll state — solid cream bar with brand colours */
[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-row*="middle"] {
	background: rgba(255, 250, 240, 0.96) !important;
	box-shadow: 0 10px 28px rgba(58, 35, 24, 0.12) !important;
}

[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-id="menu"] > ul > li > a {
	--theme-link-initial-color: var(--safari-earth);
	--theme-link-hover-color: var(--safari-green);
	--theme-link-active-color: var(--safari-earth);
}

[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-id="button"] {
	--theme-button-background-initial-color: transparent;
	--theme-button-background-hover-color: var(--safari-green);
	--theme-button-text-initial-color: var(--safari-earth);
	--theme-button-text-hover-color: #fff;
	--theme-button-border: 2px solid var(--safari-gold);
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
	position: relative;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a::after {
	background: var(--safari-gold);
	border-radius: 999px;
	bottom: 25px;
	content: "";
	height: 2px;
	left: 0;
	opacity: 0;
	position: absolute;
	right: 0;
	transform: translateY(6px);
	transition: opacity 180ms ease, transform 180ms ease;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:hover::after {
	opacity: 1;
	transform: translateY(0);
}

/* Active underline only on real pages — suppressed on home because all anchor
   links share the same base URL and WordPress marks them all as current */
body:not(.home) [data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current-menu-item > a::after {
	opacity: 1;
	transform: translateY(0);
}

.wp-block-cover,
.wp-block-stackable-hero.page-header,
.stk-block-hero.stk-block-background {
	isolation: isolate;
	min-height: clamp(430px, 72vh, 760px);
	overflow: hidden;
}

body:not(.home) .wp-block-stackable-hero.page-header {
	background-color: #526c5d !important;
	background-image:
		linear-gradient(90deg, rgba(45, 111, 95, 0.82), rgba(123, 100, 72, 0.54)),
		linear-gradient(135deg, #2d6f5f 0%, #7b6448 58%, #3a2318 100%) !important;
	min-height: clamp(260px, 34vh, 360px);
}

body:not(.home) .wp-block-stackable-hero.page-header .stk-block-hero__content {
	padding-block: clamp(54px, 7vw, 92px);
}

.wp-block-cover::after,
.wp-block-stackable-hero.page-header::after,
.stk-block-hero.stk-block-background::after {
	background:
		linear-gradient(90deg, rgba(10, 5, 0, 0.72) 0%, rgba(10, 5, 0, 0.42) 42%, rgba(10, 5, 0, 0.14) 100%),
		linear-gradient(180deg, rgba(10, 5, 0, 0.24) 0%, rgba(10, 5, 0, 0.64) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

body:not(.home) .wp-block-stackable-hero.page-header::after {
	background:
		linear-gradient(90deg, rgba(18, 40, 34, 0.44) 0%, rgba(58, 35, 24, 0.22) 100%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 5, 0, 0.2) 100%);
}

.wp-block-cover__inner-container,
.stk-block-hero__content {
	position: relative;
	z-index: 2;
}

.wp-block-cover__inner-container,
.stk-block-hero__content .stk-block-content {
	max-width: 820px;
}

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover p,
.stk-block-hero h1,
.stk-block-hero h2,
.stk-block-hero p {
	color: #fff;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.wp-block-cover img,
.wp-block-cover video,
.stk-block-hero img,
.stk-block-hero video {
	filter: saturate(1.08) contrast(1.06);
}

/* Logo visibility over dark hero overlay — subtle brightness only, no glow */
[data-transparent-row="yes"] .site-logo-container img {
	filter: brightness(1.3);
}

/* Tighten Stackable spacer heights — double class beats Stackable's inline !important */
.wp-block-stackable-spacer.stk-block-spacer {
	height: clamp(14px, 2vw, 24px) !important;
}

.stk-button,
.wp-block-button__link,
.ct-button,
button,
input[type="submit"] {
	border-radius: 6px !important;
	box-shadow: 0 12px 26px rgba(58, 35, 24, 0.16);
	font-weight: 800;
	letter-spacing: 0;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.stk-button:hover,
.wp-block-button__link:hover,
.ct-button:hover,
button:hover,
input[type="submit"]:hover {
	box-shadow: 0 18px 34px rgba(58, 35, 24, 0.22);
	transform: translateY(-2px);
}

.entry-content > .wp-block-group,
.entry-content > .wp-block-stackable-columns,
.destination-detail,
.activity-section,
.intro-grid {
	padding-block: clamp(28px, 3.8vw, 52px);
}

body:not(.home) .entry-content > .wp-block-group:first-child,
body:not(.home) .entry-content > .activity-section:first-child,
body:not(.home) .entry-content > .destination-detail:first-child {
	padding-top: clamp(34px, 4.5vw, 58px);
}

/* Who We Are: break out of the 2-col grid so heading sits above content */
.intro-grid {
	display: block !important;
}

.intro-grid > .wp-block-stackable-heading {
	text-align: center;
	margin-bottom: clamp(20px, 2.5vw, 32px);
}

.destination-intro,
.entry-content > p.has-text-align-center {
	color: #67594c;
	font-size: clamp(18px, 1.45vw, 22px);
	line-height: 1.7;
	margin-inline: auto;
	max-width: 820px;
}

.destination-detail,
.activity-section {
	border-bottom: 1px solid rgba(58, 35, 24, 0.06);
}

.destination-detail.alternate,
.activity-section.alternate,
.entry-content > .wp-block-group.alternate {
	background: rgba(246, 250, 240, 0.72);
	box-shadow: 50vw 0 0 rgba(246, 250, 240, 0.72), -50vw 0 0 rgba(246, 250, 240, 0.72);
}

.destination-content,
.activity-section > .wp-block-group__inner-container {
	max-width: 1080px;
}

/* ── Dark statement section (Community Impact) ── */
.section-dark {
	background: var(--safari-earth) !important;
	box-shadow: 50vw 0 0 var(--safari-earth), -50vw 0 0 var(--safari-earth);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark .stk-block-heading__text {
	color: #fff !important;
}

.section-dark p,
.section-dark .stk-block-text__text,
.section-dark .section-subtitle {
	color: rgba(255, 255, 255, 0.82) !important;
}

.section-dark .commitment-card > .stk-container {
	background: rgba(255, 255, 255, 0.07) !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	box-shadow: none !important;
}

.section-dark .commitment-card > .stk-container:hover {
	background: rgba(255, 255, 255, 0.13) !important;
	transform: translateY(-2px);
}

.section-dark .activity-card li::before,
.section-dark .destination-list li::before {
	background: var(--safari-gold);
}

.destination-images,
.activity-showcase {
	gap: clamp(16px, 2vw, 28px) !important;
	margin-block: 28px 38px;
}

.destination-images .wp-block-image,
.activity-showcase .wp-block-image,
.entry-content .wp-block-image {
	margin: 0;
	overflow: hidden;
}

.destination-images img,
.activity-showcase img,
.entry-content .wp-block-image img {
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	box-shadow: var(--safari-shadow);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.activities-grid {
	gap: clamp(18px, 2.4vw, 30px) !important;
	margin-top: 28px;
}

.activities-grid:has(.commitment-card) {
	gap: clamp(18px, 2vw, 24px) !important;
}

.activities-grid:has(.commitment-card) .stk-container-padding {
	padding: clamp(24px, 2.6vw, 36px) !important;
}

.activity-card,
.commitment-card,
.stk-block-card.activity-card,
.stk-block-card.commitment-card {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	height: 100%;
	padding: 0 !important;
}

.activity-card > .stk-container,
.commitment-card > .stk-container,
.activity-card .stk-container,
.commitment-card .stk-container {
	background: rgba(255, 255, 255, 0.55);
	border: 0;
	border-radius: 6px;
	box-shadow: 0 10px 26px rgba(23, 19, 13, 0.055);
	height: 100%;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.activity-card .stk-block-card__content,
.commitment-card .stk-block-card__content,
.activity-card .stk-container-padding,
.commitment-card .stk-container-padding {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.activity-card > .stk-container:hover,
.commitment-card > .stk-container:hover {
	box-shadow: 0 16px 34px rgba(23, 19, 13, 0.09);
	transform: translateY(-2px);
}

.activity-card .stk-block-heading__text,
.commitment-card .stk-block-heading__text {
	color: var(--safari-earth);
	font-size: clamp(21px, 1.8vw, 28px);
	line-height: 1.2;
}

.activity-card .stk-container-padding,
.commitment-card .stk-container-padding {
	padding: clamp(26px, 3.4vw, 44px) !important;
}

.activity-card .stk-block-text__text,
.commitment-card .stk-block-text__text {
	color: #62564b;
}

.activity-card h3,
.commitment-card h3,
.activity-card p,
.commitment-card p,
.activity-card li,
.commitment-card li {
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}

.commitment-card .stk-block-heading__text {
	font-size: clamp(24px, 1.9vw, 34px);
}

.activity-card ul,
.destination-list ul {
	margin-top: 16px;
	padding-left: 0;
}

.activity-card li,
.destination-list li {
	list-style: none;
	margin-bottom: 8px;
	padding-left: 24px;
	position: relative;
}

.activity-card li::before,
.destination-list li::before {
	background: var(--safari-mint);
	border-radius: 999px;
	content: "";
	height: 6px;
	left: 7px;
	position: absolute;
	top: 0.75em;
	width: 6px;
}

.wpforms-container,
.contact-form {
	background: #fff;
	border: 1px solid var(--safari-line);
	border-radius: 8px;
	box-shadow: var(--safari-shadow);
	padding: clamp(22px, 3vw, 38px);
}

.wpforms-field input,
.wpforms-field textarea,
input,
textarea,
select {
	border-radius: 6px !important;
}

.ct-footer {
	background: var(--safari-earth) !important;
	color: rgba(255, 255, 255, 0.76);
}

.ct-footer a,
.ct-footer .ct-menu-link {
	color: rgba(255, 255, 255, 0.78);
}

.ct-footer a:hover,
.ct-footer .ct-menu-link:hover {
	color: var(--safari-gold);
}

.ct-footer .widget-title,
.ct-footer .wp-block-heading {
	color: #fff;
	font-size: 18px !important;
}

.ct-footer [data-row*="top"] {
	background: rgba(243, 200, 75, 0.06) !important;
}

.ct-footer [data-row*="top"] .ct-menu-link,
.ct-footer [data-row*="top"] a {
	color: rgba(255, 255, 255, 0.85) !important;
}

.ct-footer [data-row*="top"] .ct-menu-link:hover,
.ct-footer [data-row*="top"] a:hover {
	color: var(--safari-gold) !important;
}

.ct-footer [data-row*="middle"] {
	background: transparent !important;
}

.ct-footer #block-17,
.ct-footer #block-20,
.ct-footer #block-21 {
	display: none;
}

.ct-footer [data-row*="bottom"] {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 999.98px) {
	:root {
		--theme-content-vertical-spacing: 54px;
	}

	.wp-block-cover,
	.wp-block-stackable-hero.page-header,
	.stk-block-hero.stk-block-background {
		min-height: 520px;
	}

	.wp-block-cover__inner-container,
	.stk-block-hero__content {
		text-align: left;
	}
}

@media (max-width: 767px) {
	body {
		overflow-x: hidden;
	}

	.wp-block-cover,
	.wp-block-stackable-hero.page-header,
	.stk-block-hero.stk-block-background {
		min-height: 460px;
	}

	.entry-content > .wp-block-group,
	.entry-content > .wp-block-stackable-columns,
	.destination-detail,
	.activity-section,
	.intro-grid {
		padding-block: 28px;
	}

	.activities-grid,
	.activity-showcase,
	.destination-images {
		grid-template-columns: 1fr !important;
	}

	.activity-card .stk-container-padding,
	.commitment-card .stk-container-padding {
		padding: 24px !important;
	}

	.ct-footer [data-row*="middle"] > div,
	.ct-footer [data-row*="top"] > div {
		text-align: left;
	}
}
