/*
Theme Name: Udaipur Guide
Theme URI: https://udaipurguide.com
Author: Udaipur Guide
Description: Custom theme for Udaipur Guide, a private tour operator in Udaipur, Rajasthan. Rebuilt from the original React/TanStack design into plain PHP + CSS for shared hosting (BigRock).
Version: 1.0.0
Requires PHP: 7.4
Text Domain: udaipur-guide
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --radius: 0.75rem;

  --background: oklch(0.985 0.012 82);
  --foreground: oklch(0.22 0.03 40);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.03 40);

  --primary: oklch(0.52 0.18 32);
  --primary-foreground: oklch(0.985 0.012 82);

  --secondary: oklch(0.35 0.05 250);
  --secondary-foreground: oklch(0.985 0.012 82);

  --muted: oklch(0.94 0.015 75);
  --muted-foreground: oklch(0.45 0.03 50);

  --accent: oklch(0.92 0.04 70);
  --accent-foreground: oklch(0.28 0.05 40);

  --gold: oklch(0.78 0.15 78);
  --gold-foreground: oklch(0.22 0.03 40);

  --destructive: oklch(0.55 0.22 27);
  --destructive-foreground: oklch(0.985 0.012 82);

  --border: oklch(0.88 0.02 70);
  --input: oklch(0.9 0.02 70);
  --ring: oklch(0.52 0.18 32);

  --gradient-hero: linear-gradient(180deg,
      color-mix(in oklab, var(--secondary) 55%, transparent) 0%,
      color-mix(in oklab, var(--secondary) 20%, transparent) 40%,
      color-mix(in oklab, black 70%, transparent) 100%);
  --gradient-warm: linear-gradient(135deg, var(--primary), var(--gold));

  --shadow-elegant: 0 20px 60px -20px color-mix(in oklab, var(--primary) 35%, transparent);
  --shadow-soft: 0 8px 30px -12px color-mix(in oklab, var(--foreground) 15%, transparent);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 0.875rem; }

.container {
  max-width: 80rem; /* 7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.container-md { max-width: 56rem; }
.container-lg { max-width: 72rem; }
.container-sm { max-width: 48rem; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold); }

.section { padding-top: 6rem; padding-bottom: 6rem; }
.section-tight { padding-top: 3rem; padding-bottom: 3rem; }
.bg-muted { background: color-mix(in oklab, var(--muted) 50%, transparent); }
.bg-muted-solid { background: var(--muted); }
.border-top { border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.border-bottom { border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-lg { padding: 1rem 2rem; }
.btn-outline-light {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.2); }
.btn-outline {
  border-color: var(--input);
  color: var(--foreground);
  background: transparent;
}
.btn-outline:hover { background: var(--muted); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}
.link-arrow svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}
.site-header-inner {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: var(--gradient-warm);
  color: var(--primary-foreground);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.brand-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.brand-sub { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted-foreground); }

.primary-nav { display: none; align-items: center; gap: 2rem; }
.primary-nav-list { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.primary-nav-list li { list-style: none; }
.primary-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
  transition: color 0.2s ease;
}
.primary-nav a:hover, .primary-nav a.current { color: var(--primary); }
.nav-cta { margin-left: 0.5rem; }

.menu-toggle {
  background: none; border: none; padding: 0.5rem; display: inline-flex;
}
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav a { font-size: 1rem; font-weight: 500; }

@media (min-width: 1024px) {
  .primary-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-content { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6rem; }
.hero-copy { max-width: 42rem; color: #fff; }
.hero-copy h1 { margin-top: 1rem; font-size: 2.75rem; line-height: 1.05; }
.hero-copy h1 em { font-style: italic; color: var(--gold); }
.hero-copy p { margin-top: 1.5rem; font-size: 1.125rem; color: rgba(255,255,255,0.85); max-width: 36rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-meta { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); flex-wrap: wrap; }
.hero-stars { display: flex; align-items: center; gap: 0.15rem; }
.hero-stars svg { width: 1rem; height: 1rem; fill: var(--gold); color: var(--gold); }
.hero-divider { display: none; height: 1rem; width: 1px; background: rgba(255,255,255,0.3); }
@media (min-width: 640px) { .hero-divider { display: block; } }
@media (min-width: 768px) { .hero-copy h1 { font-size: 4.5rem; } }

/* ==========================================================================
   Grids / cards
   ========================================================================== */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.4s ease;
}
.card:hover { box-shadow: var(--shadow-elegant); }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 1rem; left: 1rem;
  border-radius: 9999px; background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(6px); padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500; color: var(--primary);
}
.card-body { padding: 1.5rem; }
.card-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--muted-foreground); }
.card-meta svg { width: 0.875rem; height: 0.875rem; vertical-align: -2px; margin-right: 0.15rem; }
.card-title { margin-top: 0.75rem; font-size: 1.5rem; }
.card-summary { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.feature-box { padding: 2rem; border-radius: 1rem; border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: var(--card); }
.feature-icon {
  width: 3rem; height: 3rem; border-radius: 9999px;
  display: grid; place-items: center;
  background: var(--gradient-warm); color: var(--primary-foreground);
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; }

/* ==========================================================================
   Tours list (list page)
   ========================================================================== */
.tour-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  transition: box-shadow 0.3s ease;
}
.tour-row:hover { box-shadow: var(--shadow-elegant); }
.tour-row-media { aspect-ratio: 4/3; overflow: hidden; }
.tour-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.tour-row:hover .tour-row-media img { transform: scale(1.05); }
.tour-row-body { padding: 1.5rem; }
@media (min-width: 640px) {
  .tour-row { grid-template-columns: repeat(5, 1fr); }
  .tour-row-media { grid-column: span 2 / span 2; aspect-ratio: 1/1; }
  .tour-row-body { grid-column: span 3 / span 3; padding: 2rem; }
  .tour-row.reverse .tour-row-media { order: 2; }
}
.tour-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary); font-weight: 600; }
.tour-row-title { margin-top: 0.5rem; font-size: 1.75rem; line-height: 1.2; }
.tour-row-summary { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.tour-row-footer { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; }
.tour-row-footer .duration { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted-foreground); }
.tour-row-footer .duration svg { width: 1rem; height: 1rem; }
.tour-price { font-family: var(--font-display); font-size: 1.25rem; }
.tour-price strong, .tour-price .amount { color: var(--primary); }
.tour-row-cta { margin-top: 1.5rem; }

/* ==========================================================================
   Packages
   ========================================================================== */
.package-block { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: flex-start; }
.package-media { aspect-ratio: 4/5; overflow: hidden; border-radius: 1rem; box-shadow: var(--shadow-elegant); }
.package-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .package-block { grid-template-columns: repeat(5, 1fr); }
  .package-media-col { grid-column: span 2 / span 2; }
  .package-body-col { grid-column: span 3 / span 3; }
  .package-block.reverse .package-media-col { order: 2; }
}
.package-price { margin-top: 0.75rem; font-size: 1.25rem; font-family: var(--font-display); color: var(--primary); }
.highlight-list { margin-top: 1.5rem; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .highlight-list { grid-template-columns: repeat(2, 1fr); } }
.highlight-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.highlight-list svg { width: 1rem; height: 1rem; color: var(--primary); margin-top: 0.15rem; flex-shrink: 0; }

.itinerary-wrap { margin-top: 2rem; border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); padding-top: 1.5rem; }
.itinerary-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); margin-bottom: 1rem; }
.itinerary-item { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; margin-bottom: 1rem; }
.itinerary-day { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); font-weight: 600; padding-top: 0.15rem; }
.itinerary-title { font-family: var(--font-display); font-size: 1.125rem; }
.itinerary-body { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* ==========================================================================
   Testimonials / dark section
   ========================================================================== */
.section-dark { background: var(--secondary); color: var(--secondary-foreground); }
.quote-grid { margin-top: 3.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
.quote { border-left: 2px solid var(--gold); padding-left: 1.5rem; }
.quote p { font-size: 1.125rem; line-height: 1.6; color: color-mix(in oklab, var(--secondary-foreground) 90%, transparent); }
.quote footer { margin-top: 1rem; font-size: 0.875rem; color: var(--gold); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-num { font-size: 3.75rem; font-family: var(--font-display); color: var(--primary); }
.stat-label { margin-top: 0.5rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; gap: 0.75rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; overflow: hidden; border-radius: 0.75rem; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.span-2 { grid-column: span 1; }
.gallery-item.span-big { grid-row: span 2; }
@media (min-width: 768px) {
  .gallery-item.span-2 { grid-column: span 2; }
  .gallery-item.span-big { grid-column: span 2; grid-row: span 2; }
}
.gallery-caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 0.75rem;
  font-size: 0.75rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0; transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: 0.875rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary);
}
.contact-icon svg { width: 1rem; height: 1rem; }
.contact-item .label { font-weight: 500; }
.contact-item .value { color: var(--muted-foreground); }

.contact-form {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.field { display: block; font-size: 0.875rem; }
.field span { color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.field input, .field textarea, .field select {
  margin-top: 0.4rem; width: 100%; border-radius: 0.5rem;
  border: 1px solid var(--input); background: var(--background);
  padding: 0.75rem 1rem; font-size: 0.875rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 40%, transparent);
}
.form-success { padding: 4rem 0; text-align: center; }
.form-success .icon { width: 3.5rem; height: 3.5rem; margin: 0 auto; border-radius: 9999px; background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); display: grid; place-items: center; }
.form-success h3 { margin-top: 1rem; font-size: 1.5rem; }
.form-success p { margin-top: 0.5rem; color: var(--muted-foreground); }
.form-error { border: 1px solid var(--destructive); background: color-mix(in oklab, var(--destructive) 8%, transparent); color: var(--destructive); padding: 1rem; border-radius: 0.5rem; font-size: 0.875rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 8rem; background: var(--secondary); color: var(--secondary-foreground); }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-about { grid-column: span 1; }
@media (min-width: 768px) { .footer-about { grid-column: span 2 / span 2; } }
.footer-brand { font-family: var(--font-display); font-size: 1.875rem; margin-bottom: 0.75rem; }
.footer-about p { color: color-mix(in oklab, var(--secondary-foreground) 70%, transparent); max-width: 28rem; line-height: 1.6; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a { width: 2.5rem; height: 2.5rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; }
.footer-social a:hover { background: rgba(255,255,255,0.1); }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-heading { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-links a:hover { color: var(--gold); }
.footer-reach { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: color-mix(in oklab, var(--secondary-foreground) 80%, transparent); }
.footer-reach li { display: flex; align-items: center; gap: 0.5rem; }
.footer-reach svg { width: 1rem; height: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner {
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  font-size: 0.75rem; color: color-mix(in oklab, var(--secondary-foreground) 60%, transparent);
  display: flex; flex-direction: column; gap: 0.5rem; justify-content: space-between;
}
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; } }

/* ==========================================================================
   404 / misc
   ========================================================================== */
.not-found { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.not-found .code { font-size: 4.5rem; color: var(--primary); }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.muted { color: var(--muted-foreground); }
.wp-block-image, figure { margin: 0; }
