/* ==========================================
   Sujangarh.in — Comprehensive Travel Guide
   Main Stylesheet
   ========================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Palette: Warm Rajasthani */
  --color-sand:        #f5f0e8;
  --color-sand-light:  #faf7f1;
  --color-saffron:     #e8a838;
  --color-saffron-dark:#c98a20;
  --color-turquoise:   #2a9d8f;
  --color-turquoise-dark: #1f7a6e;
  --color-terracotta:  #c76a4a;
  --color-gold:        #d4a84b;
  --color-deep-red:    #8b2c2a;
  --color-charcoal:    #2d2a24;
  --color-text:        #3d3832;
  --color-text-light:  #7a7268;
  --color-white:       #ffffff;
  --color-border:      #e5ddd0;
  --color-bg:          #faf7f1;

  /* Typography */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  /* Spacing */
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45,42,36,0.08);
  --shadow-md: 0 4px 12px rgba(45,42,36,0.1);
  --shadow-lg: 0 8px 30px rgba(45,42,36,0.12);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-turquoise);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-turquoise-dark); }

ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; margin-bottom: var(--space-md); }
h2 { font-size: 2rem; margin-bottom: var(--space-sm); }
h3 { font-size: 1.4rem; margin-bottom: var(--space-sm); }
h4 { font-size: 1.15rem; margin-bottom: var(--space-xs); }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-saffron);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--color-saffron);
  color: var(--color-white);
  border-color: var(--color-saffron);
}
.btn-primary:hover {
  background: var(--color-saffron-dark);
  border-color: var(--color-saffron-dark);
  color: var(--color-white);
}
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
}
.btn-outline-dark {
  background: transparent;
  color: var(--color-turquoise);
  border-color: var(--color-turquoise);
}
.btn-outline-dark:hover {
  background: var(--color-turquoise);
  color: var(--color-white);
}
.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo:hover { color: var(--color-saffron); }
.logo span {
  color: var(--color-saffron);
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-list > a,
.nav-list > .dropdown > a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-list a:hover,
.nav-list a.active {
  background: var(--color-sand);
  color: var(--color-saffron-dark);
}

/* CTA button in nav */
.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.2rem !important;
  background: var(--color-saffron);
  color: var(--color-white) !important;
  border-radius: 50px !important;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover {
  background: var(--color-saffron-dark) !important;
  color: var(--color-white) !important;
  transform: translateY(-1px);
}

/* Dropdown caret */
.dropdown-toggle::after {
  content: ' ▾';
  font-size: 0.7rem;
  color: var(--color-text-light);
}

/* --- Dropdown --- */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  padding: 0.5rem 0;
  z-index: 10;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-size: 0.85rem;
}
.dropdown-menu a:hover {
  background: var(--color-sand);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,42,36,0.75) 0%, rgba(45,42,36,0.45) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-lg);
}
.hero h1 {
  font-size: 3.2rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}
.hero .btn + .btn {
  margin-left: var(--space-sm);
}

.hero-badge {
  display: inline-block;
  background: var(--color-saffron);
  color: var(--color-white);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

/* Small hero for inner pages */
.hero-sm {
  min-height: 40vh;
}
.hero-sm h1 {
  font-size: 2.4rem;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: var(--space-xl) 0;
}
.section-alt {
  background: var(--color-white);
}

/* ==========================================
   FEATURE CARDS GRID
   ========================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.feature-card-body {
  padding: var(--space-md);
}
.feature-card h3 {
  margin-bottom: var(--space-xs);
}
.feature-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: var(--space-sm);
}
.feature-card .card-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: var(--space-sm);
}
.feature-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================
   QUICK FACTS BOX
   ========================================== */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-top: -3rem;
  position: relative;
  z-index: 3;
}
.quick-fact-item {
  text-align: center;
  padding: var(--space-sm);
}
.quick-fact-item .icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}
.quick-fact-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}
.quick-fact-item p {
  font-weight: 600;
  color: var(--color-charcoal);
  font-size: 1rem;
}

/* ==========================================
   ITINERARY / INFO CARDS
   ========================================== */
.info-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}
.info-card h3 {
  margin-bottom: var(--space-sm);
}
.info-card ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.info-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-turquoise);
  font-weight: bold;
}

/* ==========================================
   TWO COLUMN LAYOUT
   ========================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.two-col.reverse {
  direction: rtl;
}
.two-col.reverse > * {
  direction: ltr;
}
.two-col img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* ==========================================
   PAGE HEADER / BREADCRUMBS
   ========================================== */
.page-header {
  background: var(--color-sand);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}
.breadcrumb a {
  color: var(--color-text-light);
}
.breadcrumb a:hover {
  color: var(--color-turquoise);
}
.breadcrumb span.sep {
  margin: 0 0.5rem;
}

/* ==========================================
   TABLE STYLES
   ========================================== */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-md) 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table th {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
table tr:nth-child(even) {
  background: var(--color-sand-light);
}
table tr:hover {
  background: var(--color-sand);
}

/* ==========================================
   GALLERY GRID
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-white);
  font-size: 0.85rem;
}

/* ==========================================
   FAQ
   ========================================== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-charcoal);
  cursor: pointer;
  text-align: left;
  padding: 0;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-saffron);
  transition: transform var(--transition);
}
.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
  color: var(--color-text-light);
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: var(--space-sm);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.8);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-brand h3 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}
.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}
.footer-col h4 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}
.footer-col a {
  display: block;
  padding: 0.3rem 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.footer-col a:hover {
  color: var(--color-saffron);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.85rem;
}
.footer-bottom a {
  color: var(--color-saffron);
}
.footer-bottom a:hover {
  text-decoration: underline;
}
.footer-cookie-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-xs);
}

/* Encrypted email button */
.email-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.email-btn:hover {
  background: var(--color-saffron);
  color: var(--color-white);
  border-color: var(--color-saffron);
}

/* ==========================================
   TIPS BOX / CALLOUT
   ========================================== */
.callout {
  background: var(--color-sand);
  border-left: 4px solid var(--color-saffron);
  padding: var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-md) 0;
}
.callout h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xs);
}

/* ==========================================
   TAG / CHIPS
   ========================================== */
.tag {
  display: inline-block;
  background: var(--color-sand);
  color: var(--color-text);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}
.tag-gold { background: var(--color-saffron); color: var(--color-white); }
.tag-green { background: var(--color-turquoise); color: var(--color-white); }

/* ==========================================
   MAP CONTAINER
   ========================================== */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  display: block;
}

/* ==========================================
   NEWSLETTER / SUBSCRIBE
   ========================================== */
.subscribe-box {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #4a453c 100%);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
}
.subscribe-box h2 { color: var(--color-white); }
.subscribe-box p { opacity: 0.85; }
.subscribe-form {
  display: flex;
  max-width: 500px;
  margin: var(--space-md) auto 0;
  gap: var(--space-sm);
}
.subscribe-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.subscribe-form button {
  padding: 0.7rem 1.5rem;
  background: var(--color-saffron);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.subscribe-form button:hover {
  background: var(--color-saffron-dark);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
  .two-col { gap: var(--space-lg); }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .container { padding: 0 var(--space-sm); }
  .section { padding: var(--space-lg) 0; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero { min-height: 70vh; }
  .hero-sm { min-height: 35vh; }
  .hero-sm h1 { font-size: 1.6rem; }
  .hero .btn + .btn { margin-left: 0; margin-top: var(--space-sm); }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-sm);
    gap: 0;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-list.open { display: flex; }
  .nav-list > a,
  .nav-list > .dropdown > a {
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }
  .nav-list > a:last-child,
  .nav-list > .dropdown:last-child {
    border-bottom: none;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }
  .dropdown > a::after {
    content: ' ▾';
    font-size: 0.7rem;
  }

  /* Mobile CTA */
  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
    border-radius: 50px !important;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .two-col.reverse {
    direction: ltr;
  }
  .two-col img { height: 250px; }

  .quick-facts {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -2rem;
    padding: var(--space-md);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item img { height: 160px; }

  .table-wrap { font-size: 0.82rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.6rem; }
}

/* ==========================================
   ACCESSIBILITY & MISC
   ========================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-turquoise);
  outline-offset: 2px;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-saffron);
  color: var(--color-white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: var(--color-saffron-dark);
  transform: translateY(-2px);
}
