/*
Theme Name: Jesu Ashram
Theme URI: https://jesusashram.in
Author: Jesu Ashram
Author URI: https://jesusashram.in
Description: A compassionate, modern, fully responsive WordPress theme for Jesu Ashram – a charitable healthcare centre in Siliguri serving the destitute, marginalized and poor since 1971. Features clean typography, accessible design, and easy customization.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jesu-ashram
Tags: charity, nonprofit, healthcare, one-column, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, theme-options, translation-ready, accessibility-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --color-primary: #c45c26;
  --color-primary-dark: #a34a1e;
  --color-primary-light: #e07a3d;
  --color-secondary: #1a4a3a;
  --color-secondary-dark: #0f2e24;
  --color-secondary-light: #2a6b52;
  --color-accent: #d97706;
  --color-bg: #faf7f2;
  --color-bg-alt: #f5f0e8;
  --color-white: #ffffff;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-text-light: #7a7a7a;
  --color-border: #e8e0d5;
  --color-success: #2a6b52;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--color-text-muted);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

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

.section {
  padding: 4.5rem 0;
}

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

.section--dark {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

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

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
}

.btn--white:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.btn--sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.site-logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.site-logo__tagline {
  font-size: 0.7rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

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

.main-nav a {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 6px;
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background-color: rgba(196, 92, 38, 0.08);
}

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

.header-contact {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(42, 107, 82, 0.1);
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-item__label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  max-width: 110px;
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.hero-badge-card {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--color-white);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-badge-card svg,
.hero-badge-card .icon {
  width: 28px;
  height: 28px;
  background: rgba(42, 107, 82, 0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Vision & Mission
   ========================================================================== */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: -1rem;
  position: relative;
  z-index: 2;
}

.vm-card {
  padding: 1.75rem 1.85rem;
  border-radius: var(--radius);
  color: var(--color-white);
}

.vm-card--vision {
  background-color: var(--color-secondary);
}

.vm-card--mission {
  background-color: var(--color-primary);
}

.vm-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vm-card__title .icon {
  font-size: 1.1rem;
}

.vm-card p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Our Story
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.story-image-wrap {
  position: relative;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  filter: grayscale(20%);
}

.story-quote {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: var(--color-white);
  padding: 1rem 1.15rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.45;
}

.story-content h2 {
  margin-bottom: 1.25rem;
}

.story-content p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.timeline {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary);
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.timeline-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.timeline-item span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   Our Work (Programs)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

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

.program-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.program-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(196, 92, 38, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.15rem;
}

.program-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.program-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Impact Section
   ========================================================================== */
.impact {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 4.5rem 0;
}

.impact .section-header {
  text-align: left;
  max-width: none;
  margin-bottom: 2.5rem;
}

.impact .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.impact h2 {
  color: var(--color-white);
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.impact-stat__number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary-light);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.impact-stat__label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ==========================================================================
   Get Involved
   ========================================================================== */
.involved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.involved-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.85rem 1.65rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.involved-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(196, 92, 38, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
}

.involved-card h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.involved-list {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.involved-list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.involved-list li::before {
  content: "✓";
  color: var(--color-secondary);
  font-weight: 700;
  flex-shrink: 0;
}

.involved-list--heart li::before {
  content: "♥";
  color: var(--color-primary);
}

.involved-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.contact-info-list {
  margin-bottom: 1.5rem;
}

.contact-info-list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info-list a {
  color: var(--color-primary);
  font-weight: 500;
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.testimonial {
  text-align: center;
  padding: 4rem 0;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 1.75rem;
  line-height: 1.5;
  color: var(--color-text);
  position: relative;
}

.testimonial-quote::before {
  content: "“";
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.25;
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.testimonial-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-border);
  object-fit: cover;
}

.testimonial-author__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-author__role {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #1a1a1a;
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 0;
}

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

.footer-brand .site-logo {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-brand .site-logo__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 280px;
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--color-primary);
  color: white;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-contact li {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1.5rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Content area for pages/posts */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

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

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-image-wrap {
    order: -1;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  .header-contact {
    display: none;
  }

  .vision-mission {
    grid-template-columns: 1fr;
  }

  .programs-grid,
  .involved-grid {
    grid-template-columns: 1fr;
  }

  .impact-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }

  .stat-item__number {
    font-size: 1.5rem;
  }
}
