/* 
  style.css
  Shared stylesheet for all pages 
  Includes dharmik theme, subtle animations, and a warm color palette
*/

/* Google Font (Mukta, or choose another appropriate font for devnagari/dharmik look) */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;600&display=swap');

/* Reset / Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  font-family: 'Mukta', sans-serif;
  background: #fdfaf7; /* Slightly warm, off-white background */
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Header / Navigation Bar */
.main-header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #b23b2e; /* A warm, earthy tone for the logo text */
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: #333;
  padding: 0.25rem 0.5rem;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

.nav-links a:hover {
  background: #b23b2e;
  color: #fff;
}

.nav-links .active {
  background: #b23b2e;
  color: #fff;
}

/* Hero Section */
.hero {
  background: url('images/my_hero_image.jpg') 
              center/cover no-repeat;
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* Dark overlay for readability */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
  color: #fff;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.highlight-link {
  color: #ffd369;
  text-decoration: underline;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  background: #ffd369;
  color: #333;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 1rem;
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Insights Section */
.insights {
  max-width: 1200px;
  margin: 3rem auto;
  text-align: center;
  padding: 1rem;
}
.insights h2 {
  font-size: 2rem;
  color: #b23b2e;
  margin-bottom: 2rem;
}
.insight-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.insight-cards .card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 320px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.insight-cards .card img {
  width: 100%;
  object-fit: cover;
}
.insight-cards .card h3 {
  font-size: 1.4rem;
  margin: 1rem;
  color: #b23b2e;
}
.insight-cards .card p {
  margin: 0 1rem 1rem 1rem;
  color: #555;
}
.insight-cards .card:hover {
  transform: translateY(-3px);
}

/* App Promo Section */
.app-promo {
  max-width: 1200px;
  margin: 3rem auto;
  background: #fff;
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.app-promo h2 {
  font-size: 2rem;
  color: #b23b2e;
  margin-bottom: 1rem;
}
.app-promo p {
  color: #555;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.app-promo ul {
  list-style: inside;
  text-align: left;
  max-width: 700px;
  margin: 0.5rem auto 1.5rem;
  color: #555;
}
.app-promo ul li {
  margin-bottom: 0.5rem;
}

/* Policy / Contact Pages */
.policy-page {
  max-width: 800px;
  margin: 5rem auto;
  padding: 1rem;
}
.policy-page h1 {
  font-size: 2rem;
  color: #b23b2e;
  margin-bottom: 1.5rem;
}
.policy-page h2 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 0.5rem;
}
.policy-page p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #555;
}

/* Footer */
.main-footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}
.footer-content p {
  margin-bottom: 0.5rem;
  color: #666;
}
.footer-content a {
  color: #b23b2e;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.footer-content a:hover {
  color: #8e2c22;
}

/* Animations (Fade-in, Slide-up) */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* Classes for triggering animations */
.fade-in {
  animation: fadeIn 1.2s ease forwards;
  opacity: 0; /* Will become 1 after animation */
}

.slide-up {
  animation: slideUp 1.2s ease forwards;
  opacity: 0;
  transform: translateY(50px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .insight-cards {
    flex-direction: column;
    align-items: center;
  }
  .nav-links {
    gap: 0.75rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .app-promo h2 {
    font-size: 1.6rem;
  }
}
