/* main.css — Miryalaguda Community Portal v1.0.0 */

/* =========================================
   FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Telugu:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,600&display=swap');

/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  /* Brand Colors */
  --gold-50:  #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-800: #92400e;

  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;

  --earth-50:  #faf8f5;
  --earth-100: #f3ede4;
  --earth-200: #e5d8c8;
  --earth-700: #7c5c3a;
  --earth-800: #5c4028;
  --earth-900: #3d2b1c;

  /* Light Mode */
  --bg-primary:    #faf8f5;
  --bg-secondary:  #f3ede4;
  --bg-card:       #ffffff;
  --bg-nav:        rgba(250, 248, 245, 0.95);
  --bg-hero:       #3d2b1c;

  --text-primary:  #1c1208;
  --text-secondary:#5c4028;
  --text-muted:    #8b6c4f;
  --text-on-dark:  #faf8f5;

  --border:        #e5d8c8;
  --border-accent: var(--gold-500);

  --accent-primary:  var(--gold-500);
  --accent-secondary: var(--green-600);
  --accent-hover:    var(--gold-600);

  --shadow-sm:   0 1px 3px rgba(60, 40, 20, 0.08);
  --shadow-md:   0 4px 16px rgba(60, 40, 20, 0.12);
  --shadow-lg:   0 12px 40px rgba(60, 40, 20, 0.16);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --nav-height:  64px;
  --max-width:   1200px;

  --font-sans:   'Inter', 'Noto Sans Telugu', sans-serif;
  --font-serif:  'Playfair Display', serif;
  --font-telugu: 'Noto Sans Telugu', sans-serif;
}

[data-theme="dark"] {
  --bg-primary:    #1c1208;
  --bg-secondary:  #2a1d0e;
  --bg-card:       #2f2010;
  --bg-nav:        rgba(28, 18, 8, 0.95);
  --bg-hero:       #0f0a04;

  --text-primary:  #f3ede4;
  --text-secondary:#d4b896;
  --text-muted:    #a07d5c;
  --text-on-dark:  #f3ede4;

  --border:        #3d2b1c;
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 12px 40px rgba(0, 0, 0, 0.5);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}

.nav-brand-en {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-brand-te {
  font-family: var(--font-telugu);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav-link.active {
  color: var(--accent-primary);
  background: rgba(245, 158, 11, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-theme {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.btn-theme:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.hamburger:hover { color: var(--text-primary); background: var(--bg-secondary); }

.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav open state */
.nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .hamburger span:nth-child(2) { opacity: 0; }
.nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}

.nav.open + .mobile-menu { display: flex; }

.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--accent-primary);
  background: rgba(245, 158, 11, 0.08);
}

/* =========================================
   PAGE WRAPPER
   ========================================= */
.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: clamp(480px, 80vh, 800px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3d2b1c 0%, #5c4028 30%, #2d4a1e 70%, #1a3012 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(61, 43, 28, 0.6) 0%, transparent 50%);
}

/* Decorative grain */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.1s forwards;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #faf8f5;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.2s forwards;
}

.hero-title-te {
  font-family: var(--font-telugu);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--gold-400);
  display: block;
  margin-top: 0.25rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.3s forwards;
}

.hero-desc {
  max-width: 560px;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: rgba(243, 237, 228, 0.85);
  line-height: 1.7;
  margin: 1.5rem 0 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.5s forwards;
}

.hero-stats {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.6s forwards;
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 3rem;
  backdrop-filter: blur(8px);
}

.hero-stat {
  padding: 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(243, 237, 228, 0.6);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
  min-height: 48px;
  white-space: nowrap;
}

.btn:focus { outline: none; }

.btn-primary {
  background: var(--accent-primary);
  color: #1c1208;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  border: 1.5px solid var(--border-accent);
  color: var(--gold-600);
}

.btn-secondary:hover {
  background: rgba(245, 158, 11, 0.08);
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
  padding: clamp(3rem, 6vw, 6rem) 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt { background: var(--bg-secondary); }

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header.centered { text-align: center; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
}

.section-eyebrow-line {
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--accent-secondary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title-te {
  font-family: var(--font-telugu);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--accent-primary);
  display: block;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* =========================================
   CARDS
   ========================================= */
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
}

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tag-gold   { background: rgba(245,158,11,0.12); color: var(--gold-700); }
.tag-green  { background: rgba(22,163,74,0.12);  color: var(--green-700); }
.tag-earth  { background: rgba(92,64,40,0.12);   color: var(--earth-700); }

[data-theme="dark"] .tag-gold  { background: rgba(245,158,11,0.15); color: var(--gold-400); }
[data-theme="dark"] .tag-green { background: rgba(22,163,74,0.15);  color: var(--green-400); }
[data-theme="dark"] .tag-earth { background: rgba(212,184,150,0.15); color: #d4b896; }

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: gap 0.2s;
}

.card-link:hover { gap: 0.625rem; }

/* =========================================
   IMAGE PLACEHOLDERS (gradient backgrounds)
   ========================================= */
.ph-dam { background: url(../images/nagarjuna-sagar-dam.jpg) center/cover no-repeat; }
.ph-temple { background: url(../images/temple.jpg) center/cover no-repeat; }
.ph-pylon { background: url(../images/city.jpg) center/cover no-repeat; }
.ph-canal { background: url(../images/canal.jpg) center/cover no-repeat; }
.ph-market { background: url(../images/market.jpg) center/cover no-repeat; }
.ph-fort { background: url(../images/temple.jpg) center/cover no-repeat; }
.ph-rice { background: url(../images/rice-fields.jpg) center/cover no-repeat; }
.ph-city { background: url(../images/city.jpg) center/cover no-repeat; }
.ph-culture { background: url(../images/bathukamma.jpg) center/cover no-repeat; }
.ph-food { background: url(../images/biryani.jpg) center/cover no-repeat; }
.ph-festival { background: url(../images/bathukamma.jpg) center/cover no-repeat; }
.ph-hero { background: url(../images/city.jpg) center/cover no-repeat; }

/* =========================================
   FEATURE SECTIONS
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s;
}

.feature-item:hover { box-shadow: var(--shadow-md); }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .feature-icon { background: rgba(245,158,11,0.15); color: var(--gold-400); }

.feature-text {}
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================
   CTA BAND
   ========================================= */
.cta-band {
  background: linear-gradient(135deg, #3d2b1c 0%, #5c4028 40%, #2d4a1e 100%);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,0.2) 0%, transparent 60%);
}

.cta-band-inner { position: relative; max-width: 640px; margin: 0 auto; }
.cta-band-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #faf8f5;
  margin-bottom: 1rem;
}

.cta-band-desc {
  color: rgba(243,237,228,0.8);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-band-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, #3d2b1c 0%, #5c4028 40%, #2d4a1e 100%);
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(245,158,11,0.1) 0%, transparent 50%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #faf8f5;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.page-hero-title-te {
  font-family: var(--font-telugu);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--gold-400);
  display: block;
}

.page-hero-desc {
  max-width: 560px;
  font-size: 1.0625rem;
  color: rgba(243,237,228,0.85);
  line-height: 1.7;
  margin-top: 1.25rem;
}

/* =========================================
   ATTRACTION DETAIL CARD
   ========================================= */
.attraction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 280px;
  transition: box-shadow 0.25s;
}

.attraction-card:hover { box-shadow: var(--shadow-lg); }

.attraction-card.reversed { direction: rtl; }
.attraction-card.reversed > * { direction: ltr; }

.attraction-image {
  aspect-ratio: auto;
  min-height: 240px;
  position: relative;
}

.attraction-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.attraction-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.attraction-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.attraction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.attraction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.375rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 4px;
}

/* =========================================
   DIRECTORY
   ========================================= */
.dir-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.dir-cat-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all 0.2s;
  min-height: 40px;
}

.dir-cat-btn:hover,
.dir-cat-btn.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(245,158,11,0.06);
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dir-listing {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.dir-listing:hover { box-shadow: var(--shadow-md); }

.dir-listing-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dir-listing-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.dir-listing-cat {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.dir-add-cta {
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  grid-column: 1 / -1;
  transition: border-color 0.2s;
}

.dir-add-cta:hover { border-color: var(--accent-primary); }

.dir-add-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* =========================================
   INFO CARDS
   ========================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.info-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.info-card-icon {
  width: 36px; height: 36px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.info-list { display: flex; flex-direction: column; gap: 0.75rem; }

.info-list-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.info-list-item-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================
   FESTIVAL CARDS
   ========================================= */
.festival-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.festival-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.festival-card-bg {
  position: absolute;
  inset: 0;
}

.festival-card-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  width: 100%;
}

.festival-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #faf8f5;
  margin-bottom: 0.375rem;
}

.festival-name-te {
  font-family: var(--font-telugu);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-400);
  display: block;
  margin-bottom: 0.25rem;
}

.festival-desc {
  font-size: 0.875rem;
  color: rgba(243,237,228,0.85);
  line-height: 1.5;
}

/* =========================================
   TIMELINE
   ========================================= */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.3125rem;
  top: 0.25rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid var(--bg-primary);
}

.timeline-year {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================
   CONTACT FORM
   ========================================= */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--earth-900);
  color: rgba(243,237,228,0.7);
  padding: 4rem 1.5rem 2rem;
}

[data-theme="dark"] .footer {
  background: #0f0a04;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #faf8f5;
  margin-bottom: 0.25rem;
}

.footer-brand-te {
  font-family: var(--font-telugu);
  font-size: 1rem;
  color: var(--gold-400);
  margin-bottom: 1rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #faf8f5;
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link {
  font-size: 0.875rem;
  color: rgba(243,237,228,0.6);
  transition: color 0.2s;
  padding: 0.25rem 0;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.footer-link:hover { color: var(--gold-400); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(243,237,228,0.4);
}

.footer-copy span {
  color: var(--gold-400);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .attraction-card { grid-template-columns: 1fr; }
  .attraction-card.reversed { direction: ltr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .hero-stat:nth-child(even) { border-right: none; }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }

  .card-grid-2,
  .card-grid-3,
  .card-grid-4  { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .festival-grid { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* =========================================
   UTILITIES
   ========================================= */
.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;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


/* =========================================
   RESPONSIVE — Feature grid (about page layout)
   ========================================= */
@media (max-width: 768px) {
  /* Two-column hero layout on why-visit section */
  .section-inner > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* mobile two-col override */
