/* --- Global Styles & Typography --- */
:root {
  --primary: #f59e0b; /* Spiritual Gold/Orange */
  --primary-hover: #d97706;
  --secondary: #1e3a8a; /* Deep Trust Blue */
  --secondary-hover: #1e40af;
  --accent: #ea580c; /* Deep Saffron */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1280px;
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.btn-primary:hover {
  background-color: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(234, 88, 12, 0.05);
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--secondary);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Header / Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--nav-height);
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(15, 23, 42, 0.95)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff" stroke-opacity="0.03" stroke-width="2"/></svg>') repeat;
  background-size: cover;
  color: var(--bg-white);
  padding: 8rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 40%),
              radial-gradient(circle at bottom left, rgba(234, 88, 12, 0.15), transparent 40%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tagline {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  display: inline-block;
  background-color: rgba(245, 158, 11, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-content p {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.feature-card {
  background-color: var(--bg-white);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 35px -5px rgba(0, 0, 0, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.feature-card p {
  color: var(--text-muted);
  flex-grow: 1;
}

/* --- Grid Lists & Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background-color: var(--bg-white);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 158, 11, 0.2);
}

.card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(234, 88, 12, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  position: relative;
}

.card-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--border-color);
}

.card-img-placeholder span {
  font-size: 4rem;
  opacity: 0.8;
}

.card-body {
  padding: 2rem;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* --- About / Info Section --- */
.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-content h2 {
  font-size: 2.25rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.info-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.legal-box {
  background-color: var(--bg-white);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 1rem 1rem 0;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.legal-item span {
  font-weight: 700;
  color: var(--secondary);
}

.image-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 2rem;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.image-placeholder-inner {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.image-placeholder-inner span {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.image-placeholder-inner h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* --- Legal / Policy Pages Specific Styles --- */
.legal-page-header {
  background: linear-gradient(135deg, var(--secondary), #0f172a);
  color: var(--bg-white);
  padding: 4rem 0;
  text-align: center;
}

.legal-page-header h1 {
  color: var(--bg-white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal-content-container {
  max-width: 800px;
  margin: 3rem auto;
  background-color: var(--bg-white);
  border-radius: 1.25rem;
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.975rem;
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.legal-content th, .legal-content td {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

.legal-content th {
  background-color: rgba(30, 58, 138, 0.05);
  font-weight: 700;
  color: var(--secondary);
}

/* --- Donation Page Form & Layout --- */
.donation-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.donation-form-card {
  background-color: var(--bg-white);
  border-radius: 1.25rem;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.preset-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.preset-btn {
  background-color: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.preset-btn:hover, .preset-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(234, 88, 12, 0.05);
}

.bank-details-card {
  background-color: var(--secondary);
  color: var(--bg-white);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.bank-details-card h3 {
  color: var(--bg-white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 0.75rem;
}

.bank-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.bank-info-label {
  opacity: 0.8;
}

.bank-info-value {
  font-weight: 700;
}

.qr-code-placeholder {
  width: 160px;
  height: 160px;
  background-color: var(--bg-white);
  margin: 2rem auto 0;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.qr-code-placeholder::before {
  content: 'Scan to Donate';
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 600;
  color: var(--bg-white);
}

/* --- Contact Us Specific Styles --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(234, 88, 12, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--secondary);
}

.contact-info-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background-color: #cbd5e1;
  border-radius: 1.25rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Footer --- */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 5rem 0 2rem;
  border-top: 5px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 1.5px;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-inline {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-inline a:hover {
  color: var(--bg-white);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.75rem;
  }
  .info-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .donation-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  section {
    padding: 3.5rem 0;
  }
  .hamburger {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-link {
    font-size: 1.1rem;
    width: 100%;
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .preset-amounts {
    grid-template-columns: 1fr 1fr;
  }
}
