/*
 * Kamran Tour — homepage section styles.
 *
 * Loaded only on the front page (see inc/enqueue.php). Design tokens
 * live at the top as CSS custom properties so colors/type can be
 * refined later without hunting through every rule.
 *
 * Palette: deep forest green + muted antique gold + warm cream,
 * paired with a topographic contour-line motif that echoes the
 * mountain landscape around Kelardasht. This is a working
 * foundation, not a final brand system.
 */

:root {
	--kt-forest:        #123A2E;
	--kt-forest-light:  #1F5C48;
	--kt-forest-pale:   #E7EFEA;
	--kt-gold:          #C6A15B;
	--kt-gold-dark:     #A8813F;
	--kt-cream:         #FAF7F1;
	--kt-mist:          #F1EFE9;
	--kt-ink:           #1C2321;
	--kt-ink-soft:      #4B534F;
	--kt-line:          #E4DFD2;

	--kt-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--kt-font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--kt-radius: 14px;
	--kt-shadow: 0 12px 32px -16px rgba(18, 58, 46, 0.28);
	--kt-shadow-soft: 0 4px 16px -8px rgba(18, 58, 46, 0.18);

	--kt-section-space: clamp(56px, 8vw, 112px);
}

/* ---------------------------------------------------------------- */
/* Base typography for the homepage                                  */
/* ---------------------------------------------------------------- */

body.home {
	font-family: var(--kt-font-body);
	color: var(--kt-ink);
	background: var(--kt-cream);
	overflow-x: hidden;
}

.home h1,
.home h2,
.home h3 {
	font-family: var(--kt-font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--kt-forest);
	margin: 0 0 0.5em;
}

.home .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--kt-gold-dark);
	margin-bottom: 14px;
}

.home .eyebrow::before {
	content: '';
	width: 22px;
	height: 1px;
	background: var(--kt-gold-dark);
}

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

.home .section-head {
	max-width: 640px;
	margin-bottom: 44px;
}

.home .section-head p {
	color: var(--kt-ink-soft);
	font-size: 17px;
	line-height: 1.7;
}

.home .section-head--center {
	max-width: 620px;
	margin-inline: auto;
	text-align: center;
}

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */

.kt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-family: var(--kt-font-body);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.01em;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.kt-btn:hover,
.kt-btn:focus-visible {
	transform: translateY(-2px);
}

.kt-btn--primary {
	background: var(--kt-gold);
	color: var(--kt-forest);
}

.kt-btn--primary:hover,
.kt-btn--primary:focus-visible {
	background: var(--kt-gold-dark);
	box-shadow: var(--kt-shadow-soft);
}

.kt-btn--ghost {
	background: transparent;
	color: var(--kt-cream);
	border-color: rgba(250, 247, 241, 0.5);
}

.kt-btn--ghost:hover,
.kt-btn--ghost:focus-visible {
	background: rgba(250, 247, 241, 0.12);
	border-color: var(--kt-cream);
}

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

.kt-btn--outline:hover,
.kt-btn--outline:focus-visible {
	background: var(--kt-forest);
	color: var(--kt-cream);
}

/* Visible keyboard focus everywhere on the homepage */
.home a:focus-visible,
.home button:focus-visible {
	outline: 2px solid var(--kt-gold-dark);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- */
/* Contour-line signature motif (used as a quiet background layer)   */
/* ---------------------------------------------------------------- */

.kt-contours {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
	z-index: 0;
}

/* ================================================================ */
/* HERO                                                               */
/* ================================================================ */

.kt-hero {
	position: relative;
	min-height: min(92vh, 820px);
	display: flex;
	align-items: flex-end;
	color: var(--kt-cream);
	padding-block: 0 var(--kt-section-space);
	overflow: hidden;
}

.kt-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.kt-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kt-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 38, 32, 0.35) 0%, rgba(11, 38, 32, 0.55) 55%, rgba(11, 38, 32, 0.88) 100%);
	z-index: 1;
}

.kt-hero__content {
	position: relative;
	z-index: 2;
	max-width: 720px;
	padding-top: 220px;
}

.kt-hero__content .eyebrow {
	color: var(--kt-gold);
}

.kt-hero__content .eyebrow::before {
	background: var(--kt-gold);
}

.kt-hero h1 {
	color: var(--kt-cream);
	font-size: clamp(36px, 5.6vw, 64px);
	margin-bottom: 20px;
}

.kt-hero p {
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.7;
	color: rgba(250, 247, 241, 0.88);
	max-width: 52ch;
	margin-bottom: 32px;
}

.kt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* ================================================================ */
/* INTRO                                                              */
/* ================================================================ */

.kt-intro .container {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.kt-intro__media {
	position: relative;
	border-radius: var(--kt-radius);
	overflow: hidden;
	box-shadow: var(--kt-shadow);
}

.kt-intro__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 5 / 6;
}

.kt-intro__body .section-head {
	margin-bottom: 24px;
}

.kt-intro__body p {
	color: var(--kt-ink-soft);
	line-height: 1.75;
	margin-bottom: 16px;
	max-width: 54ch;
}

/* ================================================================ */
/* FEATURED TOURS                                                    */
/* ================================================================ */

.kt-tours {
	background: var(--kt-mist);
	position: relative;
}

.kt-tours__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
}

.kt-tour-card {
	background: var(--kt-cream);
	border-radius: var(--kt-radius);
	overflow: hidden;
	box-shadow: var(--kt-shadow-soft);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

.kt-tour-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--kt-shadow);
}

.kt-tour-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.kt-tour-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.kt-tour-card:hover .kt-tour-card__media img {
	transform: scale(1.06);
}

.kt-tour-card__duration {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(18, 58, 46, 0.85);
	color: var(--kt-cream);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 6px 12px;
	border-radius: 999px;
}

.kt-tour-card__body {
	padding: 22px 22px 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.kt-tour-card__body h3 {
	font-size: 20px;
	margin-bottom: 8px;
}

.kt-tour-card__body p {
	color: var(--kt-ink-soft);
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 18px;
	flex: 1;
}

.kt-tour-card__link {
	font-weight: 700;
	font-size: 14px;
	color: var(--kt-forest);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.kt-tour-card__link svg {
	transition: transform 0.2s ease;
}

.kt-tour-card:hover .kt-tour-card__link svg {
	transform: translateX(4px);
}

/* ================================================================ */
/* WHY KAMRAN TOUR                                                   */
/* ================================================================ */

.kt-why__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 36px;
}

.kt-why-item__icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--kt-forest-pale);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	color: var(--kt-forest);
}

.kt-why-item h3 {
	font-size: 19px;
	margin-bottom: 8px;
}

.kt-why-item p {
	color: var(--kt-ink-soft);
	font-size: 15px;
	line-height: 1.65;
}

/* ================================================================ */
/* GALLERY                                                            */
/* ================================================================ */

.kt-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 130px;
	gap: 14px;
}

.kt-gallery__grid a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 10px;
}

.kt-gallery__grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, filter 0.4s ease;
}

.kt-gallery__grid a:hover img {
	transform: scale(1.08);
}

.kt-gallery__grid li:nth-child(1),
.kt-gallery__item--wide {
	grid-column: span 2;
	grid-row: span 2;
}

/* ================================================================ */
/* CTA                                                                */
/* ================================================================ */

.kt-cta {
	position: relative;
	background: var(--kt-forest);
	color: var(--kt-cream);
	overflow: hidden;
}

.kt-cta .container {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 640px;
}

.kt-cta h2 {
	color: var(--kt-cream);
	font-size: clamp(28px, 4vw, 40px);
}

.kt-cta p {
	color: rgba(250, 247, 241, 0.82);
	font-size: 17px;
	line-height: 1.7;
	margin-bottom: 30px;
}

/* ---------------------------------------------------------------- */
/* Responsive adjustments                                            */
/* ---------------------------------------------------------------- */

@media (max-width: 900px) {
	.kt-intro .container {
		grid-template-columns: 1fr;
	}

	.kt-intro__media img {
		aspect-ratio: 16 / 10;
	}

	.kt-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.kt-hero {
		min-height: 640px;
	}

	.kt-hero__content {
		padding-top: 140px;
	}

	.kt-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.kt-gallery__grid {
		grid-auto-rows: 110px;
	}
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	.kt-btn,
	.kt-tour-card,
	.kt-tour-card__media img,
	.kt-gallery__grid img {
		transition: none !important;
	}
}
