/* Global Variables & Design Tokens */
:root {
  --primary-color: #0b4c2c; /* Deep Forest Green */
  --primary-light: #167a49;
  --secondary-color: #e05c14; /* Accent Orange */
  --secondary-hover: #c94f0e;
  --neutral-dark: #2c3e35;
  --neutral-light: #faf8f5; /* Off-white/Cream background */
  --white: #ffffff;
  --gray-medium: #889990;
  --gray-light: #e5eae7;
  
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--neutral-light);
  color: var(--neutral-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-icon {
  background-color: var(--primary-color);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(11, 76, 44, 0.3);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--neutral-dark);
  font-weight: 500;
  font-size: 16px;
  transition: color var(--transition-fast);
}

nav a:hover {
  color: var(--primary-color);
}

.btn-header {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-header:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

/* Language Toggle Button styling */
.btn-lang-toggle {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-lang-toggle:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-lang-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Language Switch Visibility Rules */
[lang="ta"] {
  display: none !important;
}

[lang="en"] {
  display: block; /* Default block layout for English blocks */
}

/* Inline text tags defaults */
span[lang="en"], a[lang="en"], strong[lang="en"], em[lang="en"] {
  display: inline !important;
}

/* active Tamil state */
body.lang-ta [lang="en"] {
  display: none !important;
}

body.lang-ta [lang="ta"] {
  display: block; /* Tamil blocks shown */
}

body.lang-ta span[lang="ta"], body.lang-ta a[lang="ta"], body.lang-ta strong[lang="ta"], body.lang-ta em[lang="ta"] {
  display: inline !important;
}

/* Hero Section / Banner Display */

.hero-section {
  padding: 40px 0;
}

.banner-container {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-light);
  transition: transform var(--transition-normal);
}

.banner-container:hover {
  transform: translateY(-4px);
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

/* App Download Badges Section */
.download-section {
  padding: 60px 0;
  background-color: var(--white);
  text-align: center;
  border-radius: var(--border-radius-lg);
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
}

.download-section h2 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 800;
}

.download-section p {
  color: var(--gray-medium);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.badge-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.store-badge:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.store-badge svg {
  height: 52px;
  display: block;
}

/* Features Grid */
.features-section {
  padding: 40px 0 80px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: rgba(11, 76, 44, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-card p {
  color: var(--gray-medium);
  font-size: 15px;
}

/* Document Reading Pages (Terms/Privacy) */
.doc-section {
  padding: 60px 0 100px 0;
}

.doc-card {
  background-color: var(--white);
  padding: 60px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
  max-width: 900px;
  margin: 0 auto;
}

.doc-header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--gray-light);
  padding-bottom: 24px;
}

.doc-header h1 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 800;
}

.doc-meta {
  color: var(--gray-medium);
  font-size: 14px;
}

.doc-content h2 {
  font-size: 22px;
  color: var(--primary-color);
  margin: 32px 0 16px 0;
  font-weight: 700;
}

.doc-content p {
  color: var(--neutral-dark);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

.doc-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.doc-content li {
  margin-bottom: 8px;
  font-size: 16px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}

.btn-back:hover {
  color: var(--secondary-color);
}

/* Footer Style */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 30px 0;
  border-top: 5px solid var(--secondary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-brand h3 span {
  color: var(--secondary-color);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  max-width: 250px;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* Responsiveness Breakpoints */
@media (max-width: 992px) {
  .download-section h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 70px;
  }
  
  nav {
    display: none; /* In a real project we'd use a mobile menu, but for clean links we'll display them nicely in footer */
  }
  
  .hero-section {
    padding: 20px 0;
  }
  
  .doc-card {
    padding: 30px;
  }
  
  .doc-header h1 {
    font-size: 28px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 20px;
  }
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .download-section {
    padding: 40px 16px;
  }
  .badge-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .store-badge svg {
    height: 48px;
  }
}
