/* ===== CSS Variables ===== */
:root {
  /* Sage color palette */
  --sage-50: #f6f7f6;
  --sage-100: #e3e6e3;
  --sage-200: #c7cdc6;
  --sage-300: #a3aca2;
  --sage-400: #7f8a7d;
  --sage-500: #636e62;
  --sage-600: #4e574d;
  --sage-700: #404740;
  --sage-800: #363b35;
  --sage-900: #2f332e;

  /* Forest color palette */
  --forest-600: #4a5d4a;
  --forest-700: #3d4d3d;
  --forest-800: #2d3a2d;

  /* Gray palette */
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;

  /* White with opacity */
  --white-90: rgba(255, 255, 255, 0.9);
  --white-95: rgba(255, 255, 255, 0.95);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--gray-700);
  background-color: #fff;
  line-height: 1.5;
}

.font-serif {
  font-family: "Libre Baskerville", Georgia, serif;
}

.font-sans {
  font-family: "Open Sans", system-ui, sans-serif;
}

/* ===== Layout Utilities ===== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1 1 0%;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.self-end {
  align-self: flex-end;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

/* ===== Spacing ===== */
.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-5 > * + * {
  margin-top: 1.25rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Padding */
.p-2 {
  padding: 0.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pt-14 {
  padding-top: 3.5rem;
}

.pb-0\.5 {
  padding-bottom: 0.125rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

/* Margin */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-auto {
  margin-top: auto;
}

.ml-4 {
  margin-left: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Sizing ===== */
.w-2 {
  width: 0.5rem;
}

.w-3 {
  width: 0.75rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-full {
  width: 100%;
}

.h-2 {
  height: 0.5rem;
}

.h-3 {
  height: 0.75rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-full {
  height: 100%;
}

.h-screen {
  height: 100vh;
}

.min-h-screen {
  min-height: 100vh;
}

.min-h-fit {
  min-height: fit-content;
}

.min-w-\[600px\] {
  min-width: 600px;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

/* ===== Positioning ===== */
.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.bottom-6 {
  bottom: 1.5rem;
}

.right-6 {
  right: 1.5rem;
}

.top-1\/2 {
  top: 50%;
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

.translate-x-full {
  transform: translateX(100%);
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* ===== Typography ===== */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.font-medium {
  font-weight: 500;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-center {
  text-align: center;
}

.underline {
  text-decoration: underline;
}

.not-italic {
  font-style: normal;
}

/* ===== Colors ===== */
.text-white {
  color: #fff;
}

.text-gray-400 {
  color: var(--gray-400);
}

.text-gray-500 {
  color: var(--gray-500);
}

.text-gray-600 {
  color: var(--gray-600);
}

.text-gray-700 {
  color: var(--gray-700);
}

.text-sage-500 {
  color: var(--sage-500);
}

.text-sage-600 {
  color: var(--sage-600);
}

.text-sage-700 {
  color: var(--sage-700);
}

.bg-white {
  background-color: #fff;
}

.bg-gray-200 {
  background-color: var(--gray-200);
}

.bg-gray-400 {
  background-color: var(--gray-400);
}

.bg-sage-50 {
  background-color: var(--sage-50);
}

.bg-sage-400 {
  background-color: var(--sage-400);
}

.bg-sage-600 {
  background-color: var(--sage-600);
}

.bg-forest-700 {
  background-color: var(--forest-700);
}

.bg-white\/90 {
  background-color: var(--white-90);
}

.bg-white\/95 {
  background-color: var(--white-95);
}

/* ===== Borders ===== */
.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.border-b-2 {
  border-bottom-width: 2px;
  border-bottom-style: solid;
}

.border-r {
  border-right-width: 1px;
  border-right-style: solid;
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.border-sage-200 {
  border-color: var(--sage-200);
}

.border-sage-500 {
  border-color: var(--sage-500);
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* ===== Effects ===== */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.invisible {
  visibility: hidden;
}

.visible {
  visibility: visible;
}

/* ===== Transitions ===== */
.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* ===== Overflow ===== */
.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* ===== Flexbox utilities ===== */
.flex-shrink-0 {
  flex-shrink: 0;
}

.gap-8 {
  gap: 2rem;
}

/* ===== Hover States ===== */
.hover\:text-sage-700:hover {
  color: var(--sage-700);
}

.hover\:text-sage-800:hover {
  color: var(--sage-800);
}

.hover\:bg-sage-100:hover {
  background-color: var(--sage-100);
}

.hover\:bg-sage-700:hover {
  background-color: var(--sage-700);
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:no-underline:hover {
  text-decoration: none;
}

/* ===== Hero & Footer Background ===== */
.hero-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../image/hobble-creek-bg.jpg");
  background-size: cover;
  background-position: center;
}

.footer-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../image/hobble-creek-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* ===== Schedule Image ===== */
.schedule-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Video Player ===== */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #000;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Desktop Sidebar ===== */
.sidebar {
  width: 300px;
}

/* Sidebar Navigation */
.sidebar-nav a {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  color: var(--sage-600);
  border-radius: 0.25rem;
  transition: background-color 150ms ease;
  font-size: 0.875rem;
}

.sidebar-nav a:hover {
  background-color: var(--sage-100);
}

.sidebar-nav > * + * {
  margin-top: 0.25rem;
}

/* Language Navigation */
.lang-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sage-200);
}

.lang-nav a {
  font-size: 0.875rem;
  color: var(--sage-500);
  transition: color 150ms ease;
}

.lang-nav a:hover {
  color: var(--sage-700);
}

.lang-nav a.active {
  color: var(--sage-700);
  font-weight: 500;
  border-bottom: 1px solid var(--sage-500);
  padding-bottom: 0.125rem;
}

/* ===== Responsive - Large screens (1024px+) ===== */
@media (min-width: 1024px) {
  .lg\:hidden {
    display: none;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:ml-52 {
    margin-left: 13rem;
  }

  .lg\:pt-0 {
    padding-top: 0;
  }

  .lg\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .lg\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .lg\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .lg\:p-8 {
    padding: 2rem;
  }

  .lg\:p-12 {
    padding: 3rem;
  }

  .lg\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .lg\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .lg\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .lg\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .lg\:gap-12 {
    gap: 3rem;
  }
}

/* ===== Responsive - Medium screens (768px+) ===== */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Links ===== */
a {
  color: inherit;
  text-decoration: none;
}

a.text-sage-600 {
  color: var(--sage-600);
}

/* ===== Buttons ===== */
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== SVG Icons ===== */
svg {
  display: block;
}

/* ===== Address Reset ===== */
address {
  font-style: normal;
}

/* ===== List Reset ===== */
ol,
ul {
  list-style: none;
}
