/* ==========================================================================
   1. GLOBAL VARIABLES & SYSTEM SETTINGS
   ========================================================================== */
:root {
  --ink: #171412;
  --muted: #6f6255;
  --paper: #fff6cf;
  --surface: #fffdf3;
  --soft-yellow: #fff1a8;
  --soft-orange: #ffd5a3;
  --saffron: #d66d22;
  --marigold: #ffc85a;
  --river: #8bd4e6;
  --river-deep: #2f8192;
  --indigo: #385b7f;
  --rose: #b24857;
  --border: rgba(95, 70, 39, 0.18);
  --shadow: 0 18px 48px rgba(126, 82, 24, 0.14);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff3bd 0%, #fff8df 34%, #e9f9ff 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   2. SITE NAVIGATION & FIXED HEADER
   ========================================================================== */
.site-header {
  position: relative;
  min-height: 100svh;
  background: #573111;
}

.nav {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(22, 18, 15, 0.72);
  color: #fff;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand, .nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--soft-yellow), var(--soft-orange));
  color: #25170c;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

/* ==========================================================================
   3. HERO BANNER
   ========================================================================== */
/* .hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
} */
.site-header {
  position: relative;
  min-height: 600px; /* Change from 100svh to your desired fixed or responsive height */
  background: #573111;
}

.hero {
  position: relative;
  min-height: 600px; /* Match the header height */
  overflow: hidden;
  display: grid;
  align-items: end;
}
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(77, 39, 12, 0.82), rgba(108, 71, 25, 0.36) 52%, rgba(139, 212, 230, 0.18)),
    linear-gradient(0deg, rgba(64, 37, 13, 0.86), transparent 48%);
} */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(77, 39, 12, 0.2), rgba(77, 39, 12, 0.2) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 70px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd083;
}

/* ==========================================================================
   4. TYPOGRAPHY & HEADINGS
   ========================================================================== */
h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--ink);
}

.hero-content > p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--marigold);
  color: #241407;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

/* ==========================================================================
   5. UNIFIED SECTION LAYOUTS & CONTAINERS
   ========================================================================== */
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.standard-block {
  width: 100%;
  margin-bottom: 34px;
}

.section-eyebrow {
  color: var(--saffron);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 850px;
}

/* ==========================================================================
   6. UNIVERSAL RESPONSIVE GRID FOR ALL GRID ELEMENTS
   ========================================================================== */
.feature-grid,
.intro-grid,
.spiritual-grid,
.attraction-grid,
.food-grid,
.hidden-grid,
.reach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* ==========================================================================
   7. STANDARD DESIGN COHESION FOR CARDS
   ========================================================================== */
.feature-grid article,
.intro-grid article,
.spiritual-grid article,
.attraction-grid article,
.food-grid article,
.hidden-grid article,
.reach-grid article,
.place-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 15px rgba(126, 82, 24, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

/* Fixes internal nested block packaging layouts */
.feature-grid article > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-grid article:hover,
.intro-grid article:hover,
.spiritual-grid article:hover,
.attraction-grid article:hover,
.food-grid article:hover,
.hidden-grid article:hover,
.reach-grid article:hover,
.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Uniform Clean Image Cropping Structure inside grids */
.feature-grid img,
.intro-grid img,
.spiritual-grid img,
.attraction-grid img,
.food-grid img,
.hidden-grid img,
.reach-grid img,
.place-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 18px;
  order: -1; /* Forces image below title if structurally desired, or leave naturally ordered */
}

/* Descriptions structural flow styling inside grids */
.feature-grid p, .intro-grid p, .spiritual-grid p, .attraction-grid p, .food-grid p, .hidden-grid p, .reach-grid p, .place-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.feature-grid p:last-child, .intro-grid p:last-child, .spiritual-grid p:last-child, .attraction-grid p:last-child, .food-grid p:last-child, .hidden-grid p:last-child, .reach-grid p:last-child, .place-card p:last-child {
  margin-bottom: 0;
}

/* Categories span tags uniformity styling */
.place-card span,
.spiritual-grid span,
.attraction-grid span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--river-deep);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Colorful decorative accents top bars on intro modules */
.intro-grid article { border-top: 5px solid var(--river); }
.intro-grid article:nth-child(2) { border-top-color: var(--saffron); }
.intro-grid article:nth-child(3) { border-top-color: var(--rose); }

/* ==========================================================================
   8. SECTION SECTION SPECIFIC OVERRIDES
   ========================================================================== */
/* Background wrappers configurations */
.spiritual {
  width: 100%;
  padding: 88px max(16px, calc((100% - 1120px) / 2));
  background: linear-gradient(135deg, #fff0b9 0%, #ffd8a9 52%, #dff8ff 100%);
}

.spiritual-grid article {
  background: rgba(255, 255, 255, 0.8);
}

.attractions {
  width: 100%;
  padding: 88px max(16px, calc((100% - 1120px) / 2));
  background: linear-gradient(135deg, #dff8ff 0%, #fff1b8 100%);
  color: var(--ink);
}

.food {
  width: 100%;
  padding: 88px max(16px, calc((100% - 1120px) / 2));
  background: linear-gradient(135deg, #fff0b7 0%, #ffd9ad 100%);
}

/* Custom layout logic overrides for large visual grids cards */
.place-card.large {
  grid-column: span 1; /* Harmonized layout with all grid segments */
}

/* Crafts Columns logic Split Configuration */
.crafts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.craft-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.craft-list > div {
  padding: 20px;
  border-left: 5px solid var(--saffron);
  border-radius: var(--radius);
  background: #fff8da;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Unified Crafts Showcase Image Panel */
.image-panel {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.image-panel figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   9. INTERACTIVE ELEMENTS & DATA TABLES
   ========================================================================== */
.stay-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.stay-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
  gap: 14px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  align-items: center;
}

.stay-row:first-child {
  border-top: 0;
}

.stay-row.head {
  background: #bfeefe;
  color: #17313b;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Itinerary Tab Controller */
.itinerary {
  width: 100%;
  padding: 88px max(16px, calc((100% - 1120px) / 2));
  background: linear-gradient(135deg, #e4faff 0%, #fff2ba 100%);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  min-width: 92px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active, .tab:hover {
  background: var(--river);
  color: #14313a;
  border-color: transparent;
}

.tab-panel {
  display: none;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.tab-panel.active {
  display: block;
}

/* Practical Travel Guides */
.practical {
  padding-top: 24px;
}

.tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tips p {
  min-height: 100%;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ==========================================================================
   10. SITE FOOTER UTILITIES
   ========================================================================== */
.footer {
  padding: 48px 16px;
  background: #6d3f18;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.footer p {
  margin-bottom: 6px;
}

.credits {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ==========================================================================
   11. MEDIA RESPONSIVENESS CONTROLLERS
   ========================================================================== */
@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 8px;
    background: rgba(22, 18, 15, 0.94);
  }

  .nav-links.open {
    display: flex;
  }

  .crafts {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .image-panel img {
    height: 340px;
  }

  .stay-row {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 92svh;
  }

  .hero-content {
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid, .intro-grid, .spiritual-grid, .attraction-grid, .food-grid, .hidden-grid, .reach-grid {
    grid-template-columns: 1fr;
  }

  .stay-row, .stay-row.head {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}