/*
Theme Name:   Kadence Child
Description:  Child theme for Kadence - Travel Blog
Template:     kadence
Version:      1.0.0
*/

/* =============================================
   GLOBAL VARIABLES
   ============================================= */
:root {
	--color-bg:           #faf8f5;
	--color-text:         #1a1a1a;
	--color-accent:       #c8a882;
	--color-accent-dark:  #8b6043;
	--color-muted:        #6b6b6b;
}

body {
	background-color: var(--color-bg);
	color: var(--color-text);
}

/* =============================================
   HERO BLOB MASK
   Assign CSS class "hero-blob" to an Elementor
   Image widget inside the hero section.
   ============================================= */
.hero-blob img,
.hero-blob .elementor-widget-container {
	clip-path: ellipse(54% 58% at 58% 48%);
	border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
	overflow: hidden;
	transition: clip-path 0.4s ease;
}

.hero-blob:hover img {
	clip-path: ellipse(56% 60% at 58% 48%);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
	min-height: 90vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.hero-intro {
	font-family: 'Merriweather', Georgia, serif;
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.8;
	color: var(--color-text);
	max-width: 480px;
}

.hero-cta {
	display: inline-block;
	background-color: var(--color-accent);
	color: #fff;
	padding: 14px 32px;
	border-radius: 2px;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.hero-cta:hover {
	background-color: var(--color-accent-dark);
	color: #fff;
}

/* =============================================
   ARTICLE CARDS
   Assign CSS class "article-card" to Elementor
   image box or posts widget items.
   ============================================= */
.article-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	overflow: hidden;
	background: var(--color-bg);
	border: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.article-card .article-category {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent-dark);
	font-weight: 600;
	margin-bottom: 8px;
}

.article-card .article-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.4rem;
	line-height: 1.3;
	color: var(--color-text);
}

.article-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.article-card:hover img {
	transform: scale(1.04);
}

/* =============================================
   DESTINATION SCROLLER
   Assign CSS class "destination-scroller" to
   the Elementor section wrapping the Posts widget.
   ============================================= */
.destination-scroller .elementor-posts-container,
.destination-scroller ul {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	gap: 20px;
	padding: 16px 0 24px;
	scrollbar-width: none; /* Firefox */
}

.destination-scroller .elementor-posts-container::-webkit-scrollbar,
.destination-scroller ul::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.destination-scroller .elementor-post,
.destination-scroller li {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: 140px;
	text-align: center;
}

.destination-scroller .elementor-post img,
.destination-scroller li img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 0 auto 10px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.destination-scroller .elementor-post:hover img,
.destination-scroller li:hover img {
	transform: scale(1.06);
	box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.destination-scroller .elementor-post-title,
.destination-scroller li span {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-text);
	letter-spacing: 0.03em;
}

.wheretonext-heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 2rem;
	line-height: 1.1;
	color: var(--color-text);
}

/* =============================================
   NEWSLETTER BANNER
   Assign CSS class "newsletter-banner" to the
   Elementor section containing the signup form.
   ============================================= */
.newsletter-banner {
	background-color: var(--color-accent);
	padding: 60px 40px;
	text-align: center;
}

.newsletter-banner h2,
.newsletter-banner .elementor-heading-title {
	color: #fff;
	font-family: 'Playfair Display', Georgia, serif;
}

.newsletter-banner p,
.newsletter-banner .elementor-text-editor {
	color: rgba(255,255,255,0.9);
}

.newsletter-banner input[type="email"] {
	border: 2px solid #fff;
	border-radius: 2px;
	padding: 12px 20px;
	font-size: 1rem;
	background: rgba(255,255,255,0.15);
	color: #fff;
	width: 280px;
	max-width: 100%;
}

.newsletter-banner input[type="email"]::placeholder {
	color: rgba(255,255,255,0.7);
}

.newsletter-banner input[type="submit"],
.newsletter-banner button[type="submit"] {
	background: var(--color-accent-dark);
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 2px;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.newsletter-banner input[type="submit"]:hover,
.newsletter-banner button[type="submit"]:hover {
	background: #6d4a30;
}

/* =============================================
   DESTINATION HUB PAGES
   ============================================= */
.destination-quick-facts {
	background: #f0ebe4;
	border-left: 3px solid var(--color-accent);
	padding: 24px 28px;
	border-radius: 2px;
	margin-bottom: 32px;
}

.destination-quick-facts h4 {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent-dark);
	margin-bottom: 12px;
}

.destination-quick-facts ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.destination-quick-facts ul li {
	padding: 6px 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	font-size: 0.9rem;
	color: var(--color-text);
}

.destination-quick-facts ul li:last-child {
	border-bottom: none;
}

/* =============================================
   SINGLE POST TYPOGRAPHY
   ============================================= */
.entry-content p {
	font-family: 'Merriweather', Georgia, serif;
	font-size: 1rem;
	line-height: 1.9;
	color: #2d2d2d;
	margin-bottom: 1.6rem;
}

.entry-content h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.8rem;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	color: var(--color-text);
}

.entry-content h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.35rem;
	margin-top: 2rem;
	margin-bottom: 0.8rem;
	color: var(--color-text);
}

.entry-content a {
	color: var(--color-accent-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--color-accent);
}

/* Tip/info box — add class "tip-box" to a WP block */
.tip-box {
	background: #f0ebe4;
	border-left: 3px solid var(--color-accent);
	padding: 20px 24px;
	margin: 32px 0;
	border-radius: 2px;
	font-size: 0.95rem;
	line-height: 1.7;
}

/* =============================================
   ARCHIVE / BLOG GRID
   ============================================= */
.blog-grid-section .elementor-posts-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

@media (max-width: 767px) {
	.blog-grid-section .elementor-posts-container {
		grid-template-columns: 1fr;
	}

	.article-card {
		grid-template-columns: 1fr;
	}

	.hero-intro {
		font-size: 1rem;
	}

	.destination-scroller .elementor-post {
		width: 110px;
	}

	.destination-scroller .elementor-post img {
		width: 90px;
		height: 90px;
	}
}

/* =============================================
   STICKY HEADER ON SCROLL
   Kadence handles this natively — enable via
   Appearance → Customize → Header → Sticky Header
   ============================================= */
