/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Description: Child theme of Hello Elementor. Provides the shared site header and footer (Ryokan design) for pages that opt in with the ryokan_chrome custom field. Other pages keep the parent header and footer.
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ------------------------------------------------------------------
   Shared tokens (prefixed to avoid clashes with Elementor variables)
------------------------------------------------------------------ */
.rk-header,
.rk-footer {
	--rk-ci: #ccdb93;
	--rk-dark: #292c1d;
	--rk-white: #ffffff;
	font-family: 'Kanit', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 24px;
	color: var(--rk-white);
}

.rk-header *,
.rk-footer * {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.rk-header {
	position: relative;
	z-index: 50;
	width: 100%;
	padding: 12px 24px;
	background: var(--rk-dark);
}

.rk-header--overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
}

.rk-header .rk-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1140px;
	margin: 0 auto;
}

.rk-header .rk-logo {
	display: block;
	flex: none;
	width: 72px;
	height: 72px;
	background: var(--rk-white);
}

.rk-header .rk-logo img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.rk-header .rk-header__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.rk-header .rk-nav__list {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rk-header .rk-nav__list li {
	margin: 0;
	padding: 0;
}

.rk-header .rk-nav__list a {
	display: block;
	padding: 8px;
	color: var(--rk-white);
	text-decoration: none;
	white-space: nowrap;
}

.rk-header .rk-nav__list a:hover,
.rk-header .rk-nav__list .current-menu-item > a {
	color: var(--rk-ci);
}

.rk-header .rk-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.rk-header .rk-lang {
	padding: 8px;
	color: var(--rk-white);
}

.rk-header .rk-book {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 8px;
	background: var(--rk-white);
	color: var(--rk-ci);
	text-decoration: none;
	white-space: nowrap;
}

.rk-header .rk-book:hover {
	background: var(--rk-ci);
	color: var(--rk-dark);
}

.rk-header .rk-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 8px;
	background: transparent;
	color: var(--rk-white);
	cursor: pointer;
}

.rk-header .rk-toggle:hover,
.rk-header .rk-toggle:focus-visible {
	background: rgba(255, 255, 255, 0.15);
	color: var(--rk-white);
}

.rk-header .rk-toggle__bar,
.rk-header .rk-toggle__bar::before,
.rk-header .rk-toggle__bar::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	content: '';
}

.rk-header .rk-toggle__bar {
	position: relative;
}

.rk-header .rk-toggle__bar::before {
	position: absolute;
	top: -6px;
}

.rk-header .rk-toggle__bar::after {
	position: absolute;
	top: 6px;
}

@media (max-width: 767px) {
	.rk-header .rk-toggle {
		display: inline-flex;
	}

	.rk-header .rk-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 8px 24px 16px;
		background: var(--rk-dark);
	}

	.rk-header.is-open .rk-nav {
		display: block;
	}

	.rk-header .rk-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.rk-footer {
	width: 100%;
	background: var(--rk-dark);
}

.rk-footer .rk-footer__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 24px;
}

.rk-footer .rk-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 273px;
	max-width: 100%;
}

.rk-footer .rk-footer__logo {
	display: block;
	width: 100px;
	height: 100px;
	background: var(--rk-white);
}

.rk-footer .rk-footer__logo img {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: contain;
}

.rk-footer .rk-footer__text {
	margin: 0;
	color: var(--rk-white);
}

.rk-footer .rk-footer__nav-list {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(4, auto);
	gap: 16px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rk-footer .rk-footer__nav-list li {
	margin: 0;
	padding: 0;
}

.rk-footer .rk-footer__nav-list a {
	display: block;
	color: var(--rk-white);
	text-decoration: none;
}

.rk-footer .rk-footer__nav-list a:hover {
	color: var(--rk-ci);
}

.rk-footer .rk-footer__bottom {
	max-width: 1140px;
	margin: 0 auto;
	padding: 16px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	text-align: center;
}

.rk-footer .rk-footer__copyright {
	margin: 0;
	color: var(--rk-white);
}

@media (max-width: 767px) {
	.rk-footer .rk-footer__inner {
		flex-direction: column;
		padding: 40px 16px;
	}

	.rk-footer .rk-footer__bottom {
		padding: 16px;
	}
}

/* ------------------------------------------------------------------
   Topic archive and single posts
------------------------------------------------------------------ */
.rk-archive,
.rk-single {
	background: #fffcfa;
	font-family: 'Kanit', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 24px;
	color: #171717;
}

.rk-archive *,
.rk-single * {
	box-sizing: border-box;
}

.rk-band {
	background: #f0e7e0;
}

.rk-band__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 80px 24px;
}

.rk-band__title {
	margin: 0;
	font-weight: 700;
	font-size: 48px;
	line-height: 56px;
	color: #171717;
}

.rk-band__sub {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.rk-band__sub .rk-bar {
	flex: none;
	width: 24px;
	height: 2px;
	background: #889262;
}

.rk-band__sub p {
	margin: 0;
	font-size: 24px;
	line-height: 32px;
	color: #a3a3a3;
}

.rk-archive .rk-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 24px 0;
}

.rk-archive .rk-chip,
.rk-single .rk-chip {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #889262;
	border-radius: 999px;
	color: #171717;
	text-decoration: none;
}

.rk-archive .rk-chip:hover,
.rk-single .rk-chip:hover {
	background: #e5edc9;
	color: #171717;
}

.rk-archive .rk-chip.is-active {
	background: #889262;
	color: #ffffff;
}

.rk-news__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px 80px;
}

.rk-archive .rk-news-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 40px 0;
	color: #171717;
	text-decoration: none;
	box-shadow: 0 1px 0 0 rgba(23, 23, 23, 0.1);
}

.rk-archive .rk-news-row:hover .rk-news-title {
	color: #889262;
}

.rk-news-row__text {
	flex: 1 1 0;
	min-width: 0;
}

.rk-news-date {
	margin: 0 0 8px;
	color: #a3a3a3;
}

.rk-news-title {
	margin: 0;
	font-weight: 700;
	font-size: 24px;
	line-height: 32px;
	color: inherit;
}

.rk-arrow {
	flex: none;
	width: 40px;
	height: 40px;
}

.rk-arrow svg {
	display: block;
}

.rk-news .navigation.pagination {
	margin-top: 48px;
}

.rk-news .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.rk-news .page-numbers {
	padding: 8px 14px;
	border: 1px solid #889262;
	border-radius: 8px;
	color: #171717;
	text-decoration: none;
}

.rk-news .page-numbers:hover {
	background: #e5edc9;
}

.rk-news .page-numbers.current {
	background: #889262;
	color: #ffffff;
}

.rk-single__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

.rk-single__head {
	padding-top: 80px;
}

.rk-single__head .rk-single__inner {
	padding-bottom: 40px;
	box-shadow: 0 1px 0 0 rgba(23, 23, 23, 0.1);
}

.rk-single__title {
	margin: 0;
	font-weight: 700;
	font-size: 32px;
	line-height: 40px;
	color: #171717;
}

.rk-single__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.rk-single__media {
	padding: 40px 0;
}

.rk-single__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1140 / 537;
	object-fit: cover;
}

.rk-content {
	padding-bottom: 40px;
}

.rk-content h2 {
	margin: 40px 0 16px;
	font-weight: 700;
	font-size: 28px;
	line-height: 36px;
	color: #171717;
}

.rk-content h3 {
	margin: 28px 0 12px;
	font-weight: 700;
	font-size: 22px;
	line-height: 30px;
	color: #171717;
}

.rk-content p {
	margin: 0 0 16px;
}

.rk-content ul {
	margin: 0 0 16px;
	padding-left: 24px;
}

.rk-content table {
	width: 100%;
	margin: 16px 0 24px;
	border-collapse: collapse;
}

.rk-content th,
.rk-content td {
	padding: 12px 16px;
	text-align: left;
	border: 0;
	border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

.rk-content th {
	background: #f0e7e0;
}

.rk-single__back {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px 80px;
}

.rk-single__back a {
	color: #889262;
	text-decoration: none;
}

@media (max-width: 767px) {
	.rk-band__inner {
		padding: 48px 16px;
	}

	.rk-band__title {
		font-size: 32px;
		line-height: 40px;
	}

	.rk-band__sub p {
		font-size: 18px;
		line-height: 28px;
	}

	.rk-archive .rk-chips,
	.rk-news__inner,
	.rk-single__inner,
	.rk-single__back {
		padding-left: 16px;
		padding-right: 16px;
	}

	.rk-archive .rk-news-row {
		padding: 24px 0;
	}

	.rk-news-title {
		font-size: 20px;
		line-height: 28px;
	}

	.rk-single__head {
		padding-top: 48px;
	}

	.rk-single__title {
		font-size: 24px;
		line-height: 32px;
	}

	.rk-content h2 {
		font-size: 22px;
		line-height: 30px;
	}

	.rk-content table {
		display: block;
		overflow-x: auto;
	}
}

/* Topic list rows: keep text dark, not the theme link colour */
.rk-news-row,
.rk-news-row:hover,
.rk-news-row:focus {
	color: #171717;
	text-decoration: none;
}

.rk-news-row:hover .rk-news-title {
	color: #889262;
}

/* Price and add to cart inside an Elementor product layout */
.rk-buy .add_to_cart_inline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
}

.rk-buy .woocommerce-Price-amount {
	font-family: 'Kanit', sans-serif;
	font-size: 32px;
	line-height: 40px;
	font-weight: 700;
	color: #889262;
}

.rk-buy a.button {
	display: inline-block;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	background: #889262;
	color: #ffffff;
	font-family: 'Kanit', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 24px;
	text-decoration: none;
}

.rk-buy a.button:hover {
	background: #292c1d;
	color: #ccdb93;
}

/* Product cards (shortcode [ryokan_products]) */
.rk-cat__grid.rk-products__grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 32px 20px;
}

.rk-card__price,
.rk-card__price .woocommerce-Price-amount {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	color: #889262;
}

@media (max-width: 1199px) {
	.rk-cat__grid.rk-products__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rk-cat__grid.rk-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}
}

/* Product attributes (shortcode [ryokan_attributes]) */
.rk-attrs-widget {
	width: 100%;
}

.rk-attrs {
	display: flex;
	flex-direction: column;
	width: 100%;
	font-family: 'Kanit', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 28px;
	color: #171717;
}

.rk-attrs__row {
	display: flex;
	gap: 16px;
	padding: 12px 16px;
	box-shadow: 0 1px 0 0 #d4d4d4;
}

.rk-attrs__label {
	flex: 0 0 40%;
	font-weight: 700;
	color: #292c1d;
}

.rk-attrs__value {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 767px) {
	.rk-attrs__row {
		flex-direction: column;
		gap: 0;
	}
}

/* Topic list embedded in an Elementor page */
.rk-news--embed .rk-news__inner {
	padding-left: 0;
	padding-right: 0;
}

/* Elementor text editor blocks inside a Topic post */
.rk-single .rk-content {
	width: 100%;
}

/* ------------------------------------------------------------------
   Posts by category (shortcode [ryokan_topic_posts])
------------------------------------------------------------------ */
.rk-topics {
	display: flex;
	flex-direction: column;
	gap: 64px;
	width: 100%;
	max-width: 1188px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	font-family: 'Kanit', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 24px;
	color: #171717;
}

.rk-topics * {
	box-sizing: border-box;
}

.rk-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.rk-cat__title {
	margin: 0;
	font-size: 28px;
	line-height: 36px;
	font-weight: 700;
	color: #292c1d;
}

.rk-cat__all {
	color: #889262;
	text-decoration: none;
	white-space: nowrap;
}

.rk-cat__all:hover {
	text-decoration: underline;
}

.rk-cat__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
}

.rk-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: #171717;
	text-decoration: none;
}

.rk-card__img {
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #f0e7e0;
}

.rk-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rk-card__date {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: #a3a3a3;
}

.rk-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 18px;
	line-height: 26px;
	font-weight: 700;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.rk-card:hover .rk-card__title {
	color: #889262;
}

.rk-cat__pager {
	margin-top: 32px;
}

.rk-cat__pager ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rk-cat__pager li {
	margin: 0;
	padding: 0;
}

.rk-cat__pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #889262;
	border-radius: 8px;
	color: #889262;
	text-decoration: none;
}

.rk-cat__pager a.page-numbers:hover {
	background: #e5edc9;
}

.rk-cat__pager .page-numbers.current {
	background: #889262;
	color: #ffffff;
}

.rk-cat__pager .page-numbers.dots {
	border-color: transparent;
}

@media (max-width: 1023px) {
	.rk-cat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rk-topics {
		gap: 48px;
		padding: 0 16px;
	}

	.rk-cat__title {
		font-size: 22px;
		line-height: 30px;
	}

	.rk-cat__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
