/* ==========================================================================
   Katulistiwa Studio – Base Design System & Layout (Editorial Refinement)
   Palet: Biru Laut #0E5A7A, Hijau Hutan #1F6B4F, Pasir #F4EFE6,
          Teks #1B2A33, Aksen #E8883A
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-display-var-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Palet Warna */
	--kt-ocean: #0e5a7a;
	--kt-ocean-dark: #08394f;
	--kt-ocean-soft: #e9f2f6;
	--kt-forest: #1f6b4f;
	--kt-forest-dark: #144936;
	--kt-forest-soft: #e9f3ee;
	--kt-sand: #f4efe6;
	--kt-sand-dark: #e5dccf;
	--kt-surface: #ffffff;
	--kt-text: #1b2a33;
	--kt-text-muted: #51626c;
	--kt-accent: #e8883a;
	--kt-accent-dark: #cc6e21;
	--kt-border: #dfe5e8;

	/* Tipografi */
	--kt-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--kt-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Spacing & Radius */
	--kt-container: 1220px;
	--kt-gutter: clamp(1.125rem, 4vw, 2rem);
	--kt-space-section: clamp(3.75rem, 7vw, 6.25rem);
	--kt-radius-sm: 0.5rem;
	--kt-radius-md: 1rem;
	--kt-radius-lg: 1.5rem;
	--kt-radius-pill: 999px;

	/* Bayangan & Transisi */
	--kt-shadow-sm: 0 2px 10px rgba(27, 42, 51, 0.05);
	--kt-shadow-md: 0 16px 36px -10px rgba(27, 42, 51, 0.12);
	--kt-shadow-lg: 0 24px 52px -12px rgba(8, 57, 79, 0.25);
	--kt-ease: 0.26s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--kt-font-body);
	font-size: 1rem;
	line-height: 1.72;
	color: var(--kt-text);
	background-color: var(--kt-sand);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--kt-ocean);
	text-decoration: none;
	transition: color var(--kt-ease), background-color var(--kt-ease), border-color var(--kt-ease);
}

a:hover {
	color: var(--kt-ocean-dark);
}

:focus-visible {
	outline: 3px solid var(--kt-accent);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--kt-font-heading);
	color: var(--kt-text);
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin: 0 0 0.75rem;
	font-weight: 700;
}

p {
	margin: 0 0 1rem;
}

ul, ol {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

/* Accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--kt-surface);
	border-radius: var(--kt-radius-sm);
	box-shadow: var(--kt-shadow-md);
	clip: auto !important;
	clip-path: none;
	color: var(--kt-ocean);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1.25rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/* Containers & Sections */
.kt-container {
	width: 100%;
	max-width: var(--kt-container);
	margin-inline: auto;
	padding-inline: var(--kt-gutter);
}

.kt-container--narrow {
	max-width: 820px;
}

.site-main {
	flex: 1 0 auto;
}

.kt-section {
	padding-block: var(--kt-space-section);
}

.kt-section--surface {
	background-color: var(--kt-surface);
}

.kt-section--sand {
	background-color: var(--kt-sand);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem;
	margin-bottom: clamp(2rem, 4.5vw, 3.25rem);
}

.section-head__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kt-forest);
	margin-bottom: 0.5rem;
}

.section-head__eyebrow::before {
	content: "";
	display: inline-block;
	width: 1.5rem;
	height: 2px;
	background-color: var(--kt-accent);
	border-radius: 2px;
}

.section-head__title {
	font-size: clamp(1.85rem, 3.6vw, 2.65rem);
	margin-bottom: 0;
}

.section-head__desc {
	color: var(--kt-text-muted);
	font-size: 1.03rem;
	max-width: 42rem;
	margin: 0.6rem 0 0;
}

/* Grid */
.kt-grid {
	display: grid;
	gap: 1.75rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.kt-grid--2,
	.kt-grid--3,
	.kt-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.kt-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.kt-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Buttons */
.kt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.6rem;
	min-height: 46px;
	font-family: var(--kt-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	border-radius: var(--kt-radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform var(--kt-ease), background-color var(--kt-ease), border-color var(--kt-ease), box-shadow var(--kt-ease), color var(--kt-ease);
}

.kt-btn--sm {
	padding: 0.55rem 1.15rem;
	min-height: 38px;
	font-size: 0.875rem;
}

.kt-btn--primary {
	background-color: var(--kt-ocean);
	color: #ffffff;
}

.kt-btn--primary:hover {
	background-color: var(--kt-ocean-dark);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: var(--kt-shadow-sm);
}

.kt-btn--accent {
	background-color: var(--kt-accent);
	color: #1b2a33;
}

.kt-btn--accent:hover {
	background-color: var(--kt-accent-dark);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: var(--kt-shadow-sm);
}

.kt-btn--outline {
	background-color: transparent;
	border-color: var(--kt-ocean);
	color: var(--kt-ocean);
}

.kt-btn--outline:hover {
	background-color: var(--kt-ocean);
	color: #ffffff;
}

.kt-btn--ghost-light {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.38);
	color: #ffffff;
	backdrop-filter: blur(6px);
}

.kt-btn--ghost-light:hover {
	background-color: #ffffff;
	border-color: #ffffff;
	color: var(--kt-ocean-dark);
}

.kt-icon {
	width: 1.2rem;
	height: 1.2rem;
	flex-shrink: 0;
}

/* Header & Navigation */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background-color: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--kt-border);
	transition: background-color var(--kt-ease), box-shadow var(--kt-ease), border-color var(--kt-ease);
}

.site-header.is-scrolled {
	box-shadow: var(--kt-shadow-sm);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.75rem;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--kt-ocean-dark);
}

.site-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.65rem;
	background: linear-gradient(135deg, var(--kt-ocean), var(--kt-forest));
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(14, 90, 122, 0.25);
}

.site-logo__copy {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.site-logo__text {
	font-family: var(--kt-font-heading);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.site-logo__sub {
	font-family: var(--kt-font-body);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--kt-forest);
	margin-top: 0.15rem;
}

.site-logo--light,
.site-logo--light .site-logo__text {
	color: #ffffff;
}

.custom-logo-link img {
	max-height: 2.75rem;
	width: auto;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--kt-border);
	border-radius: var(--kt-radius-sm);
	color: var(--kt-text);
	cursor: pointer;
}

.nav-toggle__close {
	display: none;
}

.site-nav.is-open .nav-toggle__open {
	display: none;
}

.site-nav.is-open .nav-toggle__close {
	display: inline-flex;
}

.site-nav__panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: var(--kt-surface);
	border-bottom: 1px solid var(--kt-border);
	box-shadow: var(--kt-shadow-md);
	padding: 1rem var(--kt-gutter) 1.5rem;
}

.site-nav.is-open .site-nav__panel {
	display: block;
}

.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.nav-list a {
	display: block;
	padding: 0.65rem 0.75rem;
	font-weight: 500;
	color: var(--kt-text);
	border-radius: var(--kt-radius-sm);
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
	color: var(--kt-ocean);
	background-color: var(--kt-ocean-soft);
}

.site-nav__cta {
	margin-top: 0.85rem;
}

@media (min-width: 960px) {
	.nav-toggle {
		display: none;
	}

	.site-nav__panel {
		display: flex;
		align-items: center;
		gap: 1rem;
		position: static;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0;
	}

	.nav-list {
		flex-direction: row;
		align-items: center;
		gap: 0.25rem;
	}

	.nav-list a {
		padding: 0.5rem 0.85rem;
		font-size: 0.9375rem;
	}

	.site-nav__cta {
		margin-top: 0;
		margin-left: 0.35rem;
	}
}

/* Breadcrumb */
.breadcrumb {
	background-color: var(--kt-surface);
	border-bottom: 1px solid var(--kt-border);
	padding-block: 0.75rem;
	font-size: 0.875rem;
}

.breadcrumb__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	color: var(--kt-text-muted);
}

.breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.breadcrumb__sep {
	color: #94a3b8;
}

/* Page Hero (Sub-pages) */
.page-hero {
	background: linear-gradient(135deg, var(--kt-ocean-dark) 0%, var(--kt-ocean) 55%, var(--kt-forest) 100%);
	color: #ffffff;
	padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.page-hero--compact {
	padding-block: clamp(2rem, 4.5vw, 3.25rem);
}

.page-hero__title {
	color: #ffffff;
	font-size: clamp(1.85rem, 4vw, 2.85rem);
	margin-bottom: 0.5rem;
}

.page-hero__desc {
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.0625rem;
	max-width: 42rem;
	margin: 0;
}

.page-hero__desc p:last-child {
	margin-bottom: 0;
}

/* Destination Card (Editorial Polish) */
.dest-card {
	background-color: var(--kt-surface);
	border: 1px solid var(--kt-border);
	border-radius: var(--kt-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--kt-shadow-sm);
	transition: transform var(--kt-ease), box-shadow var(--kt-ease), border-color var(--kt-ease);
}

.dest-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--kt-shadow-md);
	border-color: rgba(14, 90, 122, 0.28);
}

.dest-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: var(--kt-ocean-soft);
}

.dest-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.dest-card:hover .dest-card__img {
	transform: scale(1.05);
}

.dest-card__badge {
	position: absolute;
	left: 0.9rem;
	top: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.32rem 0.8rem;
	border-radius: var(--kt-radius-pill);
	background-color: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
	color: var(--kt-ocean-dark);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dest-card__badge-icon {
	width: 0.9rem;
	height: 0.9rem;
	color: var(--kt-forest);
}

.dest-card__body {
	padding: 1.35rem 1.45rem 1.4rem;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.dest-card__location {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--kt-forest);
	margin-bottom: 0.45rem;
}

.dest-card__location .kt-icon {
	width: 0.95rem;
	height: 0.95rem;
}

.dest-card__title {
	font-size: 1.32rem;
	line-height: 1.28;
	margin-bottom: 0.55rem;
}

.dest-card__title a {
	color: var(--kt-text);
}

.dest-card__title a:hover {
	color: var(--kt-ocean);
}

.dest-card__excerpt {
	font-size: 0.9375rem;
	color: var(--kt-text-muted);
	margin-bottom: 1.2rem;
	flex: 1 1 auto;
}

.dest-card__footer {
	padding-top: 0.95rem;
	border-top: 1px solid var(--kt-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.dest-card__meta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	color: var(--kt-text-muted);
}

.dest-card__meta .kt-icon {
	width: 0.9rem;
	height: 0.9rem;
	color: var(--kt-ocean);
}

.dest-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--kt-ocean);
	white-space: nowrap;
}

.dest-card__link:hover .kt-icon {
	transform: translateX(3px);
}

.dest-card__link .kt-icon {
	width: 1rem;
	height: 1rem;
	transition: transform var(--kt-ease);
}

/* Search Form */
.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	width: 100%;
}

.search-form__input {
	flex: 1 1 220px;
	min-height: 46px;
	padding: 0.65rem 1.1rem;
	border: 1px solid var(--kt-border);
	border-radius: var(--kt-radius-pill);
	font-family: var(--kt-font-body);
	font-size: 0.95rem;
	color: var(--kt-text);
	background-color: var(--kt-surface);
}

/* Empty State */
.empty-state {
	background-color: var(--kt-surface);
	border: 1px solid var(--kt-border);
	border-radius: var(--kt-radius-lg);
	padding: clamp(2rem, 5vw, 3.5rem);
	text-align: center;
	max-width: 36rem;
	margin-inline: auto;
}

.empty-state__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background-color: var(--kt-ocean-soft);
	color: var(--kt-ocean);
	margin-bottom: 1rem;
}

.empty-state__icon .kt-icon {
	width: 1.75rem;
	height: 1.75rem;
}

.empty-state__text {
	color: var(--kt-text-muted);
	margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
	margin-top: 2.75rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 0.85rem;
	border-radius: var(--kt-radius-sm);
	background-color: var(--kt-surface);
	border: 1px solid var(--kt-border);
	color: var(--kt-text);
	font-weight: 600;
	font-size: 0.9rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background-color: var(--kt-ocean);
	border-color: var(--kt-ocean);
	color: #ffffff;
}

/* Footer */
.site-footer {
	background-color: #0e1e27;
	color: #d6e1e7;
	padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
}

.site-footer__grid {
	display: grid;
	gap: 2.25rem;
	grid-template-columns: 1fr;
	padding-bottom: 2.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.site-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
	}
}

.site-footer__about {
	margin-top: 1rem;
	color: #b4c5ce;
	font-size: 0.9375rem;
	max-width: 24rem;
}

.site-footer__heading {
	font-family: var(--kt-font-body);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #ffffff;
	margin-bottom: 1rem;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.footer-links a {
	color: #c5d4dc;
	font-size: 0.9375rem;
}

.footer-links a:hover {
	color: var(--kt-accent);
}

.social-links {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.social-links a:hover {
	background-color: var(--kt-accent);
	color: #1b2a33;
}

.site-footer__bottom {
	padding-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.875rem;
	color: #9cb0ba;
}

.site-footer__copyright {
	margin: 0;
}

.site-footer__copyright a {
	color: #ffffff;
}

.back-to-top {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: #ffffff;
	font-weight: 500;
}

/* Floating WhatsApp */
.wa-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 850;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.15rem;
	border-radius: var(--kt-radius-pill);
	background-color: #15803d;
	color: #ffffff;
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: var(--kt-shadow-lg);
}

.wa-float:hover {
	background-color: #166534;
	color: #ffffff;
	transform: translateY(-2px);
}

@media (max-width: 479px) {
	.wa-float {
		padding: 0.85rem;
	}
	.wa-float__label {
		display: none;
	}
}

/* Prose / Article Content */
.prose > :last-child {
	margin-bottom: 0;
}

.prose h2,
.prose h3 {
	margin-top: 1.75rem;
}

.article-featured {
	margin: 0 0 2rem;
	border-radius: var(--kt-radius-md);
	overflow: hidden;
	box-shadow: var(--kt-shadow-sm);
}

.article-featured__img {
	width: 100%;
	height: auto;
}

/* Scroll Reveal Animation */
.js .kt-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .kt-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.js .kt-reveal {
		opacity: 1;
		transform: none;
	}
}
