/*
Theme Name: Live in Uttarakhand
Theme URI: https://www.liveuttarakhands.com/
Author: Live in Uttarakhand
Description: A fast, SEO-friendly travel and pilgrimage theme for Uttarakhand: Char Dham, sacred circuits, hill stations, lakes, treks and adventure.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: liveuttarakhand
Tags: travel, blog, custom-menu, custom-logo, featured-images, one-column
*/

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/young-serif-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/mukta-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/mukta-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/mukta-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/mukta-devanagari-500-normal.woff2) format("woff2"); unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/mukta-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/mukta-devanagari-700-normal.woff2) format("woff2"); unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF; }

/* ---------- Tokens ---------- */
:root {
	--ink: #1d2a44;          /* pre-dawn ridge */
	--ink-2: #2b3b5c;
	--snow: #f7f8fa;
	--paper: #ffffff;
	--saffron: #e3922a;      /* temple flags, marigold */
	--saffron-soft: #f6c27a;
	--deodar: #2f5d50;       /* cedar forest */
	--lake: #2c5a73;
	--glacier: #9cc3d5;
	--mist: #e7edf2;
	--line: #d6dee6;
	--text: #1f2733;
	--muted: #5a6575;

	--font-display: "Young Serif", Georgia, "Times New Roman", serif;
	--font-body: "Mukta", "Segoe UI", system-ui, sans-serif;

	--step--1: 0.9rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.6rem;
	--step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
	--step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--snow);
	color: var(--text);
	font: 400 var(--step-0)/1.65 var(--font-body);
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--deodar); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.005em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--saffron); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.is-over-hero { position: fixed; left: 0; right: 0; background: transparent; }
.site-header.is-over-hero.is-scrolled { background: rgba(29, 42, 68, .96); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 40px; fill: #fff; }
.brand-mark .snow { fill: var(--saffron); }
.brand-text { font-family: var(--font-display); font-size: 1.3rem; line-height: 1; }
.brand-logo { max-height: 48px; width: auto; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list a { display: block; padding: 8px 12px; color: rgba(255,255,255,.88); text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.nav-list a:hover, .nav-list .current-menu-item > a { color: #fff; background: rgba(255,255,255,.1); }
.nav-list .sub-menu { display: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer; }
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
	.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bars::before { top: -7px; }
	.nav-toggle-bars::after { top: 7px; }
	.nav-open .nav-toggle-bars { background: transparent; }
	.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
	.site-nav { position: fixed; inset: 72px 0 auto 0; background: var(--ink); padding: 8px var(--gutter) 24px; display: none; }
	.nav-open .site-nav { display: block; }
	.nav-open .site-header.is-over-hero { background: var(--ink); }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
	.nav-list .sub-menu { display: block; list-style: none; padding-left: 16px; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: max(640px, 100svh);
	display: flex;
	align-items: flex-start;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(180deg, #17223a 0%, #2c3b62 34%, #6a5f86 56%, #c98670 72%, #f1b766 86%, #f6cf8a 100%);
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.hero-sun {
	position: absolute; left: 78%; top: 60%; width: clamp(120px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, #fff3d6 0%, #ffd889 45%, rgba(246, 177, 90, 0) 70%);
	transform: translate(-50%, -50%);
}
.hero-deva {
	position: absolute; right: -0.04em; bottom: 24%;
	font: 700 clamp(6rem, 21vw, 19rem)/1 var(--font-body);
	color: rgba(255, 246, 228, .16);
	white-space: nowrap; letter-spacing: -0.01em;
}
.hero-ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; }
.hero-ridges .r1 { fill: #5b6890; }
.hero-ridges .snowcap { fill: #f4f1ec; }
.hero-ridges .r2 { fill: #3b4a72; }
.hero-ridges .r3 { fill: #2a385a; }
.hero-ridges .r4 { fill: var(--ink); }

.hero-content { position: relative; z-index: 2; padding-top: clamp(120px, 18vh, 190px); padding-bottom: 48px; }
.hero-title { color: #fff; font-size: var(--step-4); max-width: 13ch; margin-bottom: .35em; text-wrap: balance; }
.hero-lede { font-size: var(--step-1); max-width: 40ch; color: rgba(255,255,255,.9); line-height: 1.5; }

.hero-search { display: flex; max-width: 520px; margin-top: 28px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(14, 22, 40, .25); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 18px; font: inherit; color: var(--text); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--saffron); outline-offset: 2px; }
.hero-search button, .button {
	border: 0; border-radius: 999px; background: var(--saffron); color: var(--ink);
	font: 700 1rem/1 var(--font-body); padding: 14px 24px; cursor: pointer; text-decoration: none; display: inline-block;
}
.hero-search button:hover, .button:hover { background: #f0a344; color: var(--ink); }

.hero-popular { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; font-size: var(--step--1); }
.hero-popular span { color: rgba(255,255,255,.75); }
.hero-popular a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.hero-popular a:hover { text-decoration-color: var(--saffron); }

/* ---------- Char Dham line: draws west to east when scrolled into view ---------- */
.dham.is-armed .profile-area { opacity: 0; }
.dham.is-armed .profile-dot { transform: translate(-50%, 50%) scale(0); }
.dham.is-armed .dham-item { opacity: 0; transform: translateY(14px); }
.dham.is-armed .dham-list { border-top-color: transparent; }
.dham.is-play .profile-area { opacity: 1; transition: opacity 1.2s ease 1.2s; }
.dham.is-play .profile-line { transition: stroke-dashoffset 2.6s cubic-bezier(.45, 0, .25, 1); stroke-dashoffset: 0 !important; }
.dham.is-play .profile-dot { transform: translate(-50%, 50%) scale(1); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s); }
.dham.is-play .dham-item { opacity: 1; transform: none; transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.dham.is-play .dham-list { border-top-color: var(--ink); transition: border-color .6s ease .2s; }

/* ---------- Facts ---------- */
.facts { background: var(--ink); color: #fff; padding: 8px 0 36px; }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.facts-list div { border-left: 2px solid var(--saffron); padding-left: 16px; }
.facts-list dt { font-size: var(--step--1); color: rgba(255,255,255,.7); }
.facts-list dd { margin: 0; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; }
@media (max-width: 720px) { .facts-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; margin: 0; }
.section-head-split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head-split > div:first-child { max-width: 56ch; }

/* ---------- Char Dham ---------- */
.dham { background: var(--paper); }
.dham-profile { position: relative; margin: 0 -20px; height: clamp(90px, 11vw, 140px); }
.profile-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.profile-area { fill: var(--mist); }
.profile-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.profile-dot {
	position: absolute; width: 14px; height: 14px; border-radius: 50%;
	background: var(--saffron); border: 3px solid var(--paper);
	left: calc(25% * var(--i) + 34px);
	bottom: calc(var(--h) * 70% + 12%);
	transform: translate(-50%, 50%);
}
.dham-list { list-style: none; counter-reset: dham; margin: 0 -20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.dham-item { counter-increment: dham; padding: 24px 20px 8px; position: relative; }
.dham-item + .dham-item { border-left: 1px solid var(--line); }
.dham-item::before { content: counter(dham); position: absolute; top: -15px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .9rem/28px var(--font-body); text-align: center; }
.dham-alt { display: block; margin-top: 10px; font-size: var(--step--1); color: var(--muted); }
.dham-item h3 { font-size: var(--step-2); margin: 4px 0 2px; }
.dham-item h3 a { color: var(--ink); text-decoration: none; }
.dham-item h3 a:hover { color: var(--deodar); text-decoration: underline; }
.dham-meta { color: var(--deodar); font-weight: 500; margin-bottom: .5em; }
.dham-item p:last-child { color: var(--muted); }
@media (max-width: 900px) {
	.dham-profile { display: none; }
	.dham-list { grid-template-columns: 1fr 1fr; border-top: 0; margin: 0; column-gap: 24px; }
	.dham-item, .dham-item + .dham-item { border-left: 0; padding: 28px 0 8px; border-top: 2px solid var(--ink); }
	.dham-item::before { left: 0; }
}
@media (max-width: 520px) { .dham-list { grid-template-columns: 1fr; } }

/* ---------- Regions ---------- */
.regions { display: grid; grid-template-columns: 1fr 1fr; }
.region { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 380px; padding: clamp(28px, 5vw, 64px); color: #fff; text-decoration: none; }
.region-garhwal { background: var(--deodar); }
.region-kumaon { background: var(--lake); }
.region-deva { position: absolute; top: -0.12em; right: -0.06em; font: 700 clamp(5rem, 13vw, 11rem)/1 var(--font-body); color: rgba(255,255,255,.09); transition: transform .5s ease; }
.region:hover .region-deva { transform: translateY(8px); }
.region-body { position: relative; max-width: 46ch; display: block; }
.region-name { display: block; font: 400 var(--step-3)/1.1 var(--font-display); margin-bottom: 10px; }
.region-text { display: block; color: rgba(255,255,255,.88); margin-bottom: 18px; }
.region-cta { display: inline-block; font-weight: 700; border-bottom: 2px solid var(--saffron); padding-bottom: 2px; }
.region:hover, .region:focus-visible { color: #fff; }
@media (max-width: 720px) { .regions { grid-template-columns: 1fr; } .region { min-height: 300px; } }

/* ---------- Tabs & cards ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--mist); padding: 5px; border-radius: 999px; }
.tabs [role="tab"] { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: 500 1rem/1 var(--font-body); color: var(--ink); cursor: pointer; }
.tabs [role="tab"] .count { color: var(--muted); font-weight: 400; margin-left: 2px; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs [role="tab"][aria-selected="true"] .count { color: var(--saffron-soft); }
html:not(.js) .tabs { display: none; }
html:not(.js) .tab-panel + .tab-panel { margin-top: 48px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cards.is-collapsed .card:nth-child(n + 13) { display: none; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .2s; }
.card a:hover { border-color: var(--ink); }
.card a:hover .card-title { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; }
.card-media { display: block; background: var(--mist); aspect-ratio: 16 / 7; position: relative; overflow: hidden; }
.card.has-img .card-media { aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .ridge { position: absolute; bottom: 0; width: 100%; height: 75%; }
.card:nth-child(3n + 1) .ridge { fill: var(--deodar); }
.card:nth-child(3n + 2) .ridge { fill: var(--lake); }
.card:nth-child(3n) .ridge { fill: var(--ink-2); }
.card-body { display: block; padding: 16px 18px 20px; }
.card-title { display: block; font: 400 var(--step-1)/1.2 var(--font-display); color: var(--ink); }
.card-where { display: block; font-size: var(--step--1); color: var(--deodar); font-weight: 500; margin: 2px 0 8px; }
.card-text { display: block; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.show-more { margin: 32px auto 0; display: block; background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 12px 24px; font: 500 1rem/1 var(--font-body); cursor: pointer; }
.show-more:hover { background: var(--ink); color: #fff; }

/* ---------- Sacred circuits ---------- */
.sacred { background: var(--ink); color: rgba(255,255,255,.88); }
.sacred h2, .sacred h3 { color: #fff; }
.sacred .section-head p { color: rgba(255,255,255,.72); }
.circuits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.circuit h3 { font-size: var(--step-2); margin-bottom: 6px; }
.circuit > p { color: rgba(255,255,255,.7); min-height: 3.3em; }
.circuit-path { list-style: none; margin: 20px 0 0; padding: 0; position: relative; }
.circuit-path::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: rgba(246, 194, 122, .35); }
.circuit-path li { position: relative; padding-left: 30px; }
.circuit-path li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 2px solid var(--saffron); }
.circuit-path a { display: block; padding: 9px 0; color: #fff; text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.circuit-path a:hover { color: var(--saffron-soft); }
.circuit-path li:hover::before { background: var(--saffron); }
.temples { margin-top: clamp(48px, 7vw, 80px); padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12); }
.temples h3 { font-size: var(--step-1); margin-bottom: 18px; }
.temple-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.temple-list a { display: inline-block; padding: 9px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; text-decoration: none; }
.temple-list a span { color: rgba(255,255,255,.55); font-size: var(--step--1); margin-left: 4px; }
.temple-list a:hover { border-color: var(--saffron); background: rgba(227, 146, 42, .12); }
@media (max-width: 900px) { .circuits { grid-template-columns: 1fr; } .circuit > p { min-height: 0; } }

/* ---------- Adventure ---------- */
.adventure { background: var(--paper); }
.adv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 48px); }
.adv-list a { display: block; padding: 22px 0 26px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.adv-name { display: block; font: 400 var(--step-2)/1.15 var(--font-display); color: var(--ink); margin-bottom: 6px; }
.adv-text { display: block; color: var(--muted); }
.adv-list a:hover { border-top-color: var(--saffron); box-shadow: inset 0 3px 0 var(--saffron); }
.adv-list a:hover .adv-name { color: var(--deodar); }
@media (max-width: 900px) { .adv-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .adv-list { grid-template-columns: 1fr; } }

/* ---------- Seasons ---------- */
.seasons { padding-bottom: clamp(48px, 7vw, 96px); }
.season-band { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); overflow: hidden; }
.season { padding: 28px 24px 24px; }
.season h3 { font-size: var(--step-1); margin-bottom: 8px; }
.season p:last-child { margin: 0; color: #3c4655; }
.season-months { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.s-spring { background: #fbe8cc; }
.s-monsoon { background: #d8e7df; }
.s-autumn { background: #f5d9c6; }
.s-winter { background: #dceaf2; }
@media (max-width: 900px) { .season-band { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .season-band { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-text { max-width: 66ch; }
.text-link { font-weight: 700; }
.about-quote { margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--saffron); }
.about-quote p { font: 400 var(--step-2)/1.35 var(--font-display); color: var(--ink); margin-bottom: 16px; }
.about-quote footer { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: var(--step-1); color: var(--ink); line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--deodar); border-bottom: 2px solid var(--deodar); transform: rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { color: var(--muted); max-width: 65ch; padding-bottom: 8px; }
@media (max-width: 800px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { background: var(--saffron); padding: clamp(48px, 7vw, 88px) 0; }
.cta-inner { text-align: center; max-width: 720px; }
.cta h2 { color: var(--ink); }
.cta p { font-size: var(--step-1); color: #3a2a12; }
.cta .button { background: var(--ink); color: #fff; padding: 16px 28px; margin-top: 8px; }
.cta .button:hover { background: #0f1a30; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,.75); padding: 32px 0 0; margin-top: 60px; }
.footer-ridge { position: absolute; left: 0; bottom: 100%; width: 100%; height: 60px; fill: var(--ink); }
.cta + .site-footer, .home + .site-footer { margin-top: 0; }
.cta ~ .site-footer .footer-ridge, .home + .site-footer .footer-ridge { display: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 32px; padding-bottom: 40px; }
.footer-brand { font: 400 1.5rem/1.2 var(--font-display); color: #fff; }
.footer-head { color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a, .footer-about a { color: rgba(255,255,255,.75); text-decoration: none; line-height: 2; }
.footer-col a:hover, .footer-about a:hover { color: var(--saffron-soft); text-decoration: underline; }
.footer-about a { color: var(--saffron-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 28px; font-size: var(--step--1); color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages (basic until page templates are built) ---------- */
.content-area { padding: 64px 0 96px; }
.page-head h1 { font-size: var(--step-3); }
.entry-content { font-size: 1.1rem; }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }
.entry-hero { margin: 0 0 32px; }
.entry-hero img { width: 100%; border-radius: var(--radius); }
.entry-summary { padding: 20px 0; border-bottom: 1px solid var(--line); }
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.search-form .search-submit { border: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0s !important; }
}

@media (max-width: 600px) {
	.hero { min-height: 760px; }
	.hero-ridges { height: 30%; }
	.hero-sun { left: 72%; }
	.hero-deva { bottom: 18%; }
	.facts-list dd { font-size: var(--step-1); }
}

/* =========================================================
   Inner pages: place template
   ========================================================= */
.nav-list a.nav-cta { background: var(--saffron); color: var(--ink); font-weight: 700; margin-left: 6px; }
.nav-list a.nav-cta:hover { background: #f0a344; color: var(--ink); }

.place-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 64px 0 56px; }
.place-hero.has-img { min-height: clamp(380px, 56vh, 560px); display: flex; align-items: flex-end; padding: 120px 0 48px; }
.place-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 34, 58, .55) 0%, rgba(23, 34, 58, .05) 35%, rgba(23, 34, 58, .82) 100%); }
.place-hero-ridges { position: absolute; left: 0; bottom: 0; width: 100%; height: 55%; }
.place-hero-ridges .r1 { fill: #2b3b5c; }
.place-hero-ridges .r2 { fill: #24324f; }
.place-hero-inner { position: relative; z-index: 2; }
.breadcrumb ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--step--1); color: rgba(255,255,255,.75); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: rgba(255,255,255,.4); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-decoration-color: var(--saffron); }
.place-title { color: #fff; font-size: var(--step-4); margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
.place-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.place-chips li { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: var(--step--1); font-weight: 500; backdrop-filter: blur(4px); }
.place-chips li:first-child { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }

.place-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); align-items: start; }
.place-content { max-width: 70ch; font-size: 1.125rem; line-height: 1.75; }
.place-content > p:first-child { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
.place-content h2 { font-size: var(--step-2); margin: 1.8em 0 .5em; scroll-margin-top: 96px; }
.place-content h3 { font-size: var(--step-1); margin: 1.5em 0 .4em; }
.place-content a { font-weight: 500; }
.place-content figure { margin: 1.6em 0; }
.place-content figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--mist); }
.place-content ul, .place-content ol { padding-left: 1.3em; }
.place-content li { margin-bottom: .35em; }
.place-content blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 3px solid var(--saffron); font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
.place-content b, .place-content strong { color: var(--ink); }

.place-aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.aside-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.aside-title { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0 0 12px; }
.glance { margin: 0; }
.glance div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.glance div:first-child { border-top: 0; padding-top: 0; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 500; text-align: right; color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--text); text-decoration: none; line-height: 1.35; }
.toc a::before { content: counter(toc); color: var(--saffron); font-weight: 700; min-width: 1.2em; }
.toc a:hover { color: var(--deodar); }
.aside-cta { background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.85); }
.aside-cta .aside-title { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }
.aside-cta p { font-size: .98rem; }
.aside-cta .button { width: 100%; text-align: center; }
@media (max-width: 960px) {
	.place-layout { grid-template-columns: 1fr; }
	.place-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	.toc { display: none; }
}

.place-gallery { padding-bottom: clamp(48px, 7vw, 96px); }
.place-gallery h2, .place-related h2 { font-size: var(--step-2); margin-bottom: 24px; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.place-related { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0; }
.place-related + .site-footer, .place + .site-footer { margin-top: 0; }
.place + .site-footer .footer-ridge, .contact-page + .site-footer .footer-ridge { display: none; }
.contact-page + .site-footer { margin-top: 0; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-hero { padding: 72px 0 96px; }
.contact-lede { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; color: rgba(255,255,255,.88); margin: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); align-items: start; }
.contact-form-col h2 { font-size: var(--step-2); }
.contact-aside { display: grid; gap: 20px; position: sticky; top: 96px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list span { font-size: var(--step--1); color: var(--muted); }
.contact-list a { font-weight: 500; word-break: break-word; }
.contact-list address { font-style: normal; }
.next-steps { margin: 0; padding-left: 1.2em; color: var(--text); }
.next-steps li { margin-bottom: 8px; }
.next-steps li::marker { color: var(--saffron); font-weight: 700; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } .contact-aside { position: static; } }

.enquiry-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
	width: 100%; font: inherit; color: var(--text); background: var(--snow);
	border: 1.5px solid var(--line); border-radius: var(--radius); padding: 11px 14px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(227, 146, 42, .35); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field.has-error label, .field.has-error legend { color: #b3261e; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-narrow { max-width: calc(50% - 9px); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } .field-narrow { max-width: none; } }
.interests { display: flex; flex-wrap: wrap; gap: 8px; }
.interests legend { width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--snow); font-size: .98rem; transition: background-color .15s, border-color .15s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 8px 0 0; }
.form-privacy { color: var(--muted); font-size: var(--step--1); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; border-left: 4px solid; }
.form-notice p { margin: 0; }
.form-notice-title { font-weight: 700; margin-bottom: 2px !important; }
.form-notice.is-success { background: #e3f0e8; border-color: var(--deodar); color: #1d4034; }
.form-notice.is-error { background: #fbe9e7; border-color: #b3261e; color: #6e1a14; }

/* =========================================================
   Motion
   Everything that hides content first is gated on html.motion,
   which main.js adds only when JS runs and reduced motion is off.
   ========================================================= */
.hero-birds { position: absolute; left: -140px; top: 22%; width: 120px; fill: none; stroke: rgba(255, 246, 228, .55); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.mist { opacity: .35; }
[data-depth] { will-change: translate; }

@media (prefers-reduced-motion: no-preference) {
	/* Hero: one load sequence – mountains rise back to front, then the sun lifts. */
	.hero-ridges .r, .hero-ridges .snowcap { animation: luRise 1.5s cubic-bezier(.2, .75, .2, 1) both; }
	.hero-ridges .r1, .hero-ridges .snowcap { animation-delay: .05s; }
	.hero-ridges .r2 { animation-delay: .18s; }
	.hero-ridges .r3 { animation-delay: .31s; }
	.hero-ridges .r4 { animation-delay: .44s; }
	.hero-sun { animation: luSun 2.6s cubic-bezier(.2, .7, .2, 1) .3s both; }
	.hero-deva { animation: luFade 2.4s ease .5s both; }
	.hero-content > * { animation: luUp .9s cubic-bezier(.2, .7, .2, 1) both; }
	.hero-content > :nth-child(1) { animation-delay: .15s; }
	.hero-content > :nth-child(2) { animation-delay: .3s; }
	.hero-content > :nth-child(3) { animation-delay: .45s; }
	.hero-content > :nth-child(4) { animation-delay: .6s; }

	/* Ambient: mist drifting along the valleys, and a few birds now and then. */
	.mist-a { animation: luMist 38s ease-in-out infinite alternate; }
	.mist-b { animation: luMist 52s ease-in-out -20s infinite alternate-reverse; }
	.hero-birds { animation: luBirds 26s linear 4s infinite; }
	.hero-birds path { animation: luFlap .9s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
	.hero-birds path:nth-child(2) { animation-delay: -.3s; }
	.hero-birds path:nth-child(3) { animation-delay: -.6s; }

	/* Scroll reveals */
	.motion .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
	.motion .rv.rv-fade { transform: none; }
	.motion .rv.rv-left { transform: translateX(-30px); }
	.motion .rv.rv-scale { transform: scale(.96); }
	.motion .rv.is-in { opacity: 1; transform: none; }

	/* Staggered groups: children come in one after another */
	.motion .rv-group > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
	.motion .rv-group.is-in > * { opacity: 1; transform: none; }

	/* Tab switch: cards of the new tab rise in */
	.tab-panel.is-entering .card { animation: luUp .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }

	/* Cards: lift, and the little mountain grows or the photo zooms */
	.card a { transition: border-color .25s, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
	.card a:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(29, 42, 68, .45); }
	.card-media .ridge { transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
	.card a:hover .ridge { transform: scaleY(1.18); }
	.card-media img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
	.card a:hover .card-media img { transform: scale(1.06); }

	/* Regions: panels zoom slightly on hover */
	.region { transition: background-color .4s; }
	.region-garhwal:hover { background-color: #346858; }
	.region-kumaon:hover { background-color: #31667f; }
	.region-cta { background: linear-gradient(var(--saffron), var(--saffron)) 0 100% / 100% 2px no-repeat; border-bottom: 0; padding-bottom: 4px; transition: background-size .4s; }
	.region:hover .region-cta { background-size: 100% 100%; color: var(--ink); padding: 2px 6px 4px; margin-left: -6px; border-radius: 3px; }

	/* Sacred circuits: the path draws down and each shrine lights up like a diya */
	.motion .circuit-path::before { transform: scaleY(0); transform-origin: top; transition: transform 1.4s cubic-bezier(.45, 0, .25, 1) .1s; }
	.motion .circuit-path li { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(.2s + var(--i, 0) * .26s); }
	.motion .circuit.is-in .circuit-path::before { transform: none; }
	.motion .circuit.is-in .circuit-path li { opacity: 1; transform: none; }
	.motion .circuit.is-in .circuit-path li::before { animation: luDiya 1.1s ease both; animation-delay: calc(.25s + var(--i, 0) * .26s); }

	/* Seasons: the year sweeps in from left to right */
	.motion .season-band.rv { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.65, 0, .25, 1); }
	.motion .season-band.rv.is-in { clip-path: inset(0 0 0 0); }

	/* Adventure: saffron line runs across the top on hover */
	.adv-list a { position: relative; }
	.adv-list a::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--saffron); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
	.adv-list a:hover::before { transform: scaleX(1); }
	.adv-list a:hover { box-shadow: none; }

	/* Buttons */
	.button, .hero-search button { transition: background-color .2s, transform .2s; }
	.button:hover, .hero-search button:hover { transform: translateY(-1px); }
	.button:active, .hero-search button:active { transform: translateY(1px); }

	/* Inner page hero photo: slow settle */
	.place-hero-img { animation: luSettle 9s cubic-bezier(.2, .7, .2, 1) both; }
	.place-hero-inner > * { animation: luUp .8s cubic-bezier(.2, .7, .2, 1) both; }
	.place-hero-inner > :nth-child(2) { animation-delay: .1s; }
	.place-hero-inner > :nth-child(3) { animation-delay: .2s; }
	.place-hero-ridges .r1 { animation: luRise 1.4s cubic-bezier(.2, .75, .2, 1) both; }
	.place-hero-ridges .r2 { animation: luRise 1.4s cubic-bezier(.2, .75, .2, 1) .15s both; }

	/* Header hides while scrolling down, returns when scrolling up */
	.site-header { transition: background-color .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
	.site-header.is-hidden { transform: translateY(-100%); }
}

/* FAQ: smooth open/close where the browser supports it */
:root { interpolate-size: allow-keywords; }
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .faq-list details::details-content { transition: none; } }

/* Reading progress (inner pages) */
.read-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--saffron); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Table of contents: current section */
.toc a.is-current { color: var(--ink); font-weight: 700; }
.toc a.is-current::before { color: var(--deodar); }

/* Back to top */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
	border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center;
	box-shadow: 0 8px 24px -10px rgba(14, 22, 40, .6);
	opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s, background-color .2s;
}
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--deodar); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes luRise { from { transform: translateY(70px); } to { transform: none; } }
@keyframes luSun { from { transform: translate(-50%, 20%) scale(.85); opacity: .15; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes luFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes luUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes luMist { from { transform: translateX(-90px); } to { transform: translateX(110px); } }
@keyframes luBirds {
	0% { transform: translate(0, 0); opacity: 0; }
	4% { opacity: 1; }
	36% { transform: translate(calc(100vw + 280px), -60px); opacity: 1; }
	37%, 100% { transform: translate(calc(100vw + 280px), -60px); opacity: 0; }
}
@keyframes luFlap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes luDiya {
	0% { background: var(--ink); box-shadow: 0 0 0 0 rgba(246, 177, 90, 0); }
	35% { background: var(--saffron); box-shadow: 0 0 0 7px rgba(246, 177, 90, .25), 0 0 18px 4px rgba(246, 177, 90, .55); }
	100% { background: var(--ink); box-shadow: 0 0 0 0 rgba(246, 177, 90, 0); }
}
@keyframes luSettle { from { transform: scale(1.08); } to { transform: scale(1); } }
