/*
Theme Name: Jodhpur Walks
Theme URI: https://jodhpurwalks.com/
Author: Acrostic Technologies
Author URI: https://acrostictechnologies.com/
Description: A bespoke heritage-tour theme for Jodhpur Walks. Manage cities, tours, galleries, attractions and enquiries from the WordPress admin. Built with PHP, HTML, CSS and vanilla JS/jQuery — no page builder, no JS framework.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jodhpur-walks
*/

/*
 * The complete visual design lives in assets/css/app.css — the original
 * compiled stylesheet from the live site (jodhpurwalks.com), shipped verbatim
 * so the UI matches it exactly. Do not restyle here; edit nothing in app.css.
 *
 * This file exists only to carry the WordPress theme header above, plus the
 * few rules WordPress itself needs (admin bar, core block alignment classes).
 */

/* Keep the fixed nav clear of the WP admin bar. */
body.admin-bar nav[aria-label="Primary"] { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar nav[aria-label="Primary"] { top: 46px; }
}

/* WordPress core alignment / caption classes for editor content. */
.alignleft  { float: left;  margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide, .alignfull { max-width: 100%; height: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--fs-small); color: #d8c9b0; }
/*
 * "Cities" dropdown.
 *
 * Only rendered once a second city is published. Picks up .nav-link from
 * app.css for the trigger, so it matches the other nav items exactly; only the
 * panel and the chevron are defined here.
 */
.jw-has-sub { position: relative; }

.jw-sub-toggle {
	gap: 0.4rem;
	background: none;
	border: 0;
	cursor: pointer;
}
.jw-sub-toggle svg { transition: transform 0.25s; }
.jw-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.jw-submenu {
	position: absolute;
	top: 100%;
	left: -0.75rem;
	z-index: 60;
	min-width: 12.5rem;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	background: rgba(6, 4, 16, 0.98);
	border: 1px solid rgba(242, 168, 39, 0.25);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.jw-submenu__link {
	display: flex;
	align-items: center;
	min-height: var(--tap);
	padding: 0 1.1rem;
	color: #d4bc85;
	font-family: var(--font-display);
	font-size: var(--fs-base);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 500;
	transition: color 0.2s, background 0.2s;
}
.jw-submenu__link:hover,
.jw-submenu__link:focus-visible {
	color: var(--gold-light);
	background: rgba(242, 168, 39, 0.1);
}
.jw-submenu__link[aria-current="page"] { color: var(--gold); }

/* Inside the mobile panel the submenu expands in place rather than floating. */
.jw-submenu--stacked {
	position: static;
	min-width: 0;
	margin: 0.15rem 0 0.35rem 0.75rem;
	padding: 0;
	background: none;
	border: 0;
	border-left: 1px solid rgba(242, 168, 39, 0.25);
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.jw-submenu--stacked .jw-submenu__link { padding: 0 0.9rem; }

/*
 * Social profile links (footer "Follow Us").
 *
 * Matches the .contact-row / ghost-btn treatment already in app.css — gold hairline
 * on velvet, warming on hover — at a 44px tap target.
 */
.jw-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--tap);
	height: var(--tap);
	color: var(--gold);
	background: rgba(242, 168, 39, 0.04);
	border: 1px solid rgba(242, 168, 39, 0.3);
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.jw-social:hover,
.jw-social:focus-visible {
	color: var(--gold-light);
	background: rgba(242, 168, 39, 0.12);
	border-color: rgba(242, 168, 39, 0.65);
	transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
	.jw-social { transition: none; }
	.jw-social:hover, .jw-social:focus-visible { transform: none; }
}

/*
 * Editor content (pages, posts, the City "Information" box). app.css resets
 * headings and lists for the landing page's utility-class markup, so free-form
 * content needs its own rhythm restored.
 */
.jw-prose > * + * { margin-top: 1.25rem; }
.jw-prose h1, .jw-prose h2, .jw-prose h3, .jw-prose h4 {
	font-family: var(--font-display);
	color: var(--cream);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	margin-top: 2.5rem;
}
.jw-prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.jw-prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.jw-prose h3 { font-size: 1.25rem; }
.jw-prose h4 { font-size: 1.0625rem; }
.jw-prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.jw-prose a:hover { color: var(--gold-light); }
.jw-prose strong { color: var(--cream); font-weight: 600; }
.jw-prose ul, .jw-prose ol { padding-left: 1.4rem; }
.jw-prose ul { list-style: disc; }
.jw-prose ol { list-style: decimal; }
.jw-prose li { margin-top: 0.5rem; }
.jw-prose li::marker { color: var(--gold); }
.jw-prose blockquote {
	border-left: 1px solid rgba(242, 168, 39, 0.4);
	padding-left: 1.25rem;
	font-family: var(--font-serif);
	font-style: italic;
	color: var(--cream);
}
.jw-prose img { margin-inline: auto; }
.jw-prose hr { border-top: 1px solid rgba(242, 168, 39, 0.2); margin-block: 2.5rem; }
.jw-prose code {
	background: rgba(242, 168, 39, 0.08);
	border: 1px solid rgba(242, 168, 39, 0.2);
	padding: 0.1em 0.4em;
	font-size: 0.9em;
}
.jw-prose table { width: 100%; }
.jw-prose th, .jw-prose td {
	border: 1px solid rgba(242, 168, 39, 0.2);
	padding: 0.6rem 0.8rem;
	text-align: left;
}
.jw-prose th { font-family: var(--font-display); color: var(--cream); }

/* Core pagination inside the archive template. */
.jw-prose .page-numbers,
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--tap);
	min-height: var(--tap);
	padding: 0 0.5rem;
	color: #d8c9b0;
	letter-spacing: 0.1em;
}
.pagination .page-numbers:hover { color: var(--gold-light); }
.pagination .page-numbers.current { color: var(--gold); border-bottom: 2px solid var(--gold); }

.screen-reader-text {
	clip-path: inset(50%);
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	white-space: nowrap;
	border: 0;
}
