/* ============================================
   Garden Hill Tours - Base CSS
   Reset, CSS Custom Properties, Grid, Utilities
   Mobile-first responsive design
   ============================================ */

/* --- Self-hosted Devanagari Font (Hindi/Marathi) --- */
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/noto-sans-devanagari-regular.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  width: 100%;
  background: var(--bg-primary);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* --- CSS Custom Properties (Theme Tokens) --- */
:root {
  /* Default theme (overridden by theme CSS files) */
  --color-primary: #2D6A4F;
  --color-secondary: #40916C;
  --color-accent: #B7E4C7;
  --color-cta: #D4A017;
  --color-cta-hover: #B8900F;
  --color-whatsapp: #25D366;
  --color-call: #0066CC;
  --color-danger: #E53935;

  /* Text */
  --text-primary: #1B1B1B;
  --text-secondary: #555555;
  --text-light: #FFFFFF;
  --text-muted: #888888;

  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-accent: #FAFFF5;
  --bg-dark: #1A1A2E;

  /* Borders */
  --border-color: #E0E0E0;
  --border-light: #F0F0F0;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 50%;

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

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1rem;

  /* Nav */
  --nav-height: 60px;

  /* Mobile CTA bar */
  --mobile-cta-height: 56px;

  /* Font */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Devanagari font for Hindi/Marathi */
[lang="hi"] body, [lang="mr"] body {
  font-family: 'Noto Sans Devanagari', 'Inter', -apple-system, sans-serif;
}

[lang="hi"] h1, [lang="hi"] h2, [lang="hi"] h3,
[lang="mr"] h1, [lang="mr"] h2, [lang="mr"] h3 {
  font-family: 'Noto Sans Devanagari', var(--font-heading);
}

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

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  font-size: 0.95rem;
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

/* --- Flexbox Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* --- Spacing Utilities --- */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* --- Text Utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-bold { font-weight: 700; }
.text-medium { font-weight: 500; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }

/* --- Display Utilities --- */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }

/* --- Image Utilities --- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-lazy {
  filter: blur(10px);
  transition: filter var(--transition-slow);
}

.img-lazy.loaded {
  filter: blur(0);
}

/* --- Visibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.desktop-only { display: none; }
.mobile-only { display: block; }

/* --- Scroll Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Body padding for fixed nav + mobile CTA --- */
body {
  padding-top: var(--nav-height);
  padding-bottom: var(--mobile-cta-height);
}

/* ============================================
   Responsive Breakpoints (Mobile-First)
   ============================================ */

/* Tablet (768px+) */
@media (min-width: 768px) {
  :root {
    --container-padding: 1.5rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .section {
    padding: var(--space-4xl) 0;
  }

  body {
    padding-bottom: 0;
  }

  .mobile-only { display: none; }
  .desktop-only { display: block; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  :root {
    --container-padding: 2rem;
  }

  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }

  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
  h1 { font-size: 3rem; }
}
