/*
Theme Name: NepalTrip Theme
Theme URI: https://nepaltrip.example.com
Author: NepalTrip
Description: A premium, modern travel theme designed for the NepalTrip travel engine — clean, image-forward, GetYourGuide-inspired. Warm Himalayan sunset palette, sticky footer, fully responsive. Works with or without the NepalTrip plugin.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
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: nepaltrip-theme
Tags: travel, adventure, block-styles, featured-images, sticky-post, translation-ready, custom-colors, custom-logo, custom-menu
*/

/* ===================== Design Tokens ===================== */
:root {
	--nt-primary: #dc6b2f;
	--nt-primary-hover: #c2410c;
	--nt-primary-light: #fef3ed;
	--nt-primary-border: #f5d0b0;
	--nt-bg: #f8f7f4;
	--nt-surface: #ffffff;
	--nt-text: #1a1a1a;
	--nt-text-2: #4a4a4a;
	--nt-muted: #767676;
	--nt-faint: #b0b0b0;
	--nt-border: #e8e6e1;
	--nt-border-2: #f0eee9;
	--nt-success: #0a8754;
	--nt-danger: #c83737;
	--nt-r-sm: 8px;
	--nt-r-md: 12px;
	--nt-r-lg: 16px;
	--nt-r-xl: 20px;
	--nt-r-full: 999px;
	--nt-sh-sm: 0 1px 2px rgba(0,0,0,0.05);
	--nt-sh-md: 0 4px 12px rgba(0,0,0,0.08);
	--nt-sh-lg: 0 12px 32px rgba(0,0,0,0.12);
	--nt-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
	font-family: var(--nt-font);
	background: var(--nt-bg);
	color: var(--nt-text);
	margin: 0;
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--nt-primary); text-decoration: none; }
a:hover { color: var(--nt-primary-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 0.75em; font-weight: 800; color: var(--nt-text); }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

/* ===================== Layout ===================== */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
.nt-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.nt-text-center { text-align: center; }

/* ===================== Header ===================== */
.site-header {
	background: rgba(255,255,255,0.98);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--nt-border);
	position: sticky; top: 0; z-index: 100;
	box-shadow: var(--nt-sh-sm);
}
.site-header-inner {
	max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
	display: flex; align-items: center; justify-content: space-between;
	height: 64px; gap: 1rem;
}
.site-branding { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.site-branding .logo {
	width: 36px; height: 36px;
	background: var(--nt-primary); color: #fff;
	border-radius: var(--nt-r-sm);
	display: grid; place-items: center;
	font-weight: 800; font-size: 1.1rem;
}
.site-title { margin: 0; font-size: 1.125rem; font-weight: 800; line-height: 1.2; }
.site-title a { color: var(--nt-text); text-decoration: none; }
.site-tagline { margin: 0; font-size: 0.625rem; color: var(--nt-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.main-navigation a {
	color: var(--nt-text-2); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
	padding: 0.5rem 0.875rem; border-radius: var(--nt-r-sm); transition: color 0.15s, background 0.15s;
}
.main-navigation a:hover { color: var(--nt-primary); background: var(--nt-primary-light); text-decoration: none; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; padding: 0.25rem; color: var(--nt-text); }

@media (max-width: 768px) {
	.menu-toggle { display: block; }
	.main-navigation ul { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--nt-surface); padding: 1rem 1.5rem; box-shadow: var(--nt-sh-md); border-bottom: 1px solid var(--nt-border); }
	.main-navigation ul.open { display: flex; }
}

/* ===================== Hero ===================== */
.nt-hero-section {
	position: relative; min-height: 70vh; display: flex; align-items: center;
	background: linear-gradient(135deg, #9a3412 0%, #c2410c 50%, #f59e0b 100%);
	background-size: cover; background-position: center;
	color: #fff; overflow: hidden;
}
.nt-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%); }
.nt-hero-content { position: relative; z-index: 2; max-width: 700px; padding: 4rem 1.5rem; }
.nt-hero-content h1 { color: #fff; font-size: 3rem; margin: 0 0 1rem; line-height: 1.1; font-weight: 800; }
.nt-hero-content p { font-size: 1.125rem; opacity: 0.95; margin: 0 0 1.75rem; line-height: 1.6; max-width: 580px; }
.nt-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 768px) { .nt-hero-content h1 { font-size: 2rem; } .nt-hero-section { min-height: 50vh; } .nt-hero-content p { font-size: 1rem; } }

/* ===================== Buttons (shared) ===================== */
.nt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	background: var(--nt-primary); color: #fff; padding: 0.75rem 1.5rem;
	border-radius: var(--nt-r-full); border: none; font-family: inherit;
	font-weight: 600; font-size: 0.9375rem; cursor: pointer; text-decoration: none;
	transition: background 0.15s, box-shadow 0.15s, transform 0.1s; white-space: nowrap;
}
.nt-btn:hover { background: var(--nt-primary-hover); color: #fff; text-decoration: none; box-shadow: 0 4px 12px rgba(220,107,47,0.3); }
.nt-btn-lg { padding: 0.9375rem 2rem; font-size: 1rem; }
.nt-btn-outline { background: transparent; color: var(--nt-primary); border: 1.5px solid var(--nt-primary-border); }
.nt-btn-outline:hover { background: var(--nt-primary-light); color: var(--nt-primary-hover); box-shadow: none; }
.nt-btn-ghost { background: transparent; color: var(--nt-text); }
.nt-btn-ghost:hover { background: rgba(255,255,255,0.15); color: #fff; box-shadow: none; }
.nt-btn-dark { background: var(--nt-text); color: #fff; }
.nt-btn-dark:hover { background: #000; color: #fff; }

/* ===================== Sections ===================== */
.nt-stats-section { background: var(--nt-surface); border-bottom: 1px solid var(--nt-border); padding: 3rem 0; }
.nt-featured-section { padding: 4rem 0; }
.nt-features-section { background: var(--nt-surface); border-top: 1px solid var(--nt-border); border-bottom: 1px solid var(--nt-border); padding: 4rem 0; }
.nt-cta-section { background: linear-gradient(135deg, #9a3412, #c2410c); color: #fff; text-align: center; padding: 4rem 0; }
.nt-cta-section h2 { color: #fff; }
.nt-cta-section p { font-size: 1.125rem; opacity: 0.95; margin: 0 auto 1.75rem; max-width: 560px; }

.nt-section-head { text-align: center; margin-bottom: 2.5rem; }
.nt-section-head h2 { font-size: 2rem; font-weight: 800; margin: 0 0 0.5rem; }
.nt-section-head p { color: var(--nt-muted); max-width: 600px; margin: 0 auto; font-size: 1.0625rem; }

/* ===================== Stats ===================== */
.nt-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.nt-stat-value { font-size: 2.5rem; font-weight: 800; color: var(--nt-primary); line-height: 1; }
.nt-stat-label { font-size: 0.875rem; color: var(--nt-muted); margin-top: 0.375rem; font-weight: 600; }
@media (max-width: 600px) { .nt-stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================== Features ===================== */
.nt-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.nt-feature { background: var(--nt-bg); border: 1px solid var(--nt-border); border-radius: var(--nt-r-lg); padding: 1.5rem; transition: box-shadow 0.2s, transform 0.2s; }
.nt-feature:hover { box-shadow: var(--nt-sh-md); transform: translateY(-2px); }
.nt-feature-icon { width: 48px; height: 48px; background: var(--nt-primary-light); color: var(--nt-primary); border-radius: var(--nt-r-md); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.nt-feature h3 { font-size: 1.0625rem; margin: 0 0 0.5rem; }
.nt-feature p { font-size: 0.875rem; color: var(--nt-muted); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .nt-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .nt-features-grid { grid-template-columns: 1fr; } }

/* ===================== Footer ===================== */
.site-footer { background: #1a1a1a; color: #d4d4d4; padding: 3rem 0 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 1rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #d4d4d4; text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.site-footer a:hover { color: var(--nt-primary); text-decoration: none; }
.site-footer p { font-size: 0.875rem; color: #a0a0a0; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #333; padding-top: 1.5rem; text-align: center; font-size: 0.8125rem; color: #808080; }

/* ===================== Page / Post ===================== */
.page-header-section { background: linear-gradient(135deg, #fef3c7, #fed7aa); padding: 3rem 0; text-align: center; }
.page-header-section h1 { margin: 0; font-size: 2rem; }
.page-content { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.entry-content { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 4rem; line-height: 1.7; color: var(--nt-text-2); }
.entry-content h2 { color: var(--nt-text); margin-top: 2rem; }

/* Breadcrumb */
.nt-breadcrumb { padding: 1rem 0; font-size: 0.8125rem; }
.nt-breadcrumb a { color: var(--nt-muted); text-decoration: none; }
.nt-breadcrumb a:hover { color: var(--nt-primary); }
.nt-breadcrumb span { margin: 0 0.5rem; color: var(--nt-faint); }

/* Pagination */
.nepaltrip-pagination { margin-top: 2.5rem; text-align: center; }
.nepaltrip-pagination .page-numbers { display: inline-block; padding: 0.5rem 0.875rem; margin: 0 0.125rem; border: 1px solid var(--nt-border); border-radius: var(--nt-r-sm); text-decoration: none; color: var(--nt-text); font-size: 0.875rem; font-weight: 600; transition: all 0.15s; }
.nepaltrip-pagination .page-numbers:hover { border-color: var(--nt-primary); color: var(--nt-primary); }
.nepaltrip-pagination .page-numbers.current { background: var(--nt-primary); color: #fff; border-color: var(--nt-primary); }

/* WordPress core */
.alignwide { max-width: 1100px; }
.alignfull { max-width: 100%; }
.wp-block-button__link { background: var(--nt-primary); border-radius: var(--nt-r-full); font-weight: 600; }
