/* TURPIN CEMETERY INC — Global Styles */
:root {
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --primary-dark: #1b4332;
  --accent-gold: #f4a261;
  --accent-coral: #e76f51;
  --accent-purple: #7b2cbf;
  --accent-sky: #48cae4;
  --accent-lavender: #b8a9c9;
  --bg: #faf9f7;
  --bg-alt: #f0ebe3;
  --text: #1a1a2e;
  --text-muted: #5c5c6d;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(45, 106, 79, 0.12);
  --shadow-lg: 0 12px 40px rgba(45, 106, 79, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
  --font-sans: 'Nunito', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
  --bg: #0f1419;
  --bg-alt: #1a2332;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --white: #1e2a3a;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-coral); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header .eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-coral));
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.1);
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}
[data-theme="dark"] .navbar { background: rgba(15, 20, 25, 0.95); border-color: rgba(255,255,255,0.08); }
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
}
[data-theme="dark"] .logo { color: var(--primary-light); }
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent-gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.nav-links { display: none; list-style: none; gap: 0.25rem; align-items: center; }
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.nav-links a:hover, .nav-links a.active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
}
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: var(--font-sans);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: linear-gradient(135deg, var(--accent-coral), var(--accent-gold)); color: white; }
.btn-secondary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.theme-toggle, .lang-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  background: var(--bg);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 24px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.mobile-menu a:hover { background: var(--bg-alt); }

@media (min-width: 992px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .nav-donate-desktop { display: inline-flex !important; }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.85), rgba(123,44,191,0.6)),
    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920') center/cover;
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 1;
  color: white;
  max-width: 800px;
  padding: 4rem 1.25rem;
  margin: 0 auto;
  text-align: center;
}
.hero h1 { text-shadow: 0 2px 20px rgba(0,0,0,0.3); margin-bottom: 1.25rem; }
.hero p { font-size: 1.2rem; opacity: 0.95; margin-bottom: 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent-gold);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-6px); }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }

@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-img { height: 220px; object-fit: cover; width: 100%; }
.card-body { padding: 1.75rem; }
.card-body h3 { color: var(--primary-dark); margin-bottom: 0.75rem; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 992px) { .split-section { grid-template-columns: 1fr 1fr; } }
.split-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent-purple);
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent-lavender);
  position: absolute;
  top: -10px; left: 15px;
  line-height: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.testimonial-author img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-purple), var(--primary));
  color: white;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(244,162,97,0.2);
  border-radius: 50%;
  top: -100px; right: -50px;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  opacity: 0.7;
}
.partner-logo {
  background: var(--bg-alt);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.campaign-tracker {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.progress-bar {
  height: 24px;
  background: var(--bg-alt);
  border-radius: 50px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.progress-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-gold), var(--accent-coral));
  border-radius: 50px;
  animation: progressPulse 2s ease infinite;
}
@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}
.donation-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.amount-btn {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--primary-light);
  border-radius: 50px;
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}
.amount-btn:hover, .amount-btn.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-gold), var(--primary), var(--accent-purple));
  border-radius: 4px;
}
.timeline-item { position: relative; margin-bottom: 2.5rem; padding-left: 1.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: 0.4rem;
  width: 16px; height: 16px;
  background: var(--accent-coral);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}
.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-purple);
  font-size: 1.1rem;
}

.blog-card .tag {
  display: inline-block;
  background: var(--accent-sky);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-family: var(--font-sans);
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { color: var(--primary); }

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 3rem) 1.25rem 4rem;
}
.policy-content h1 { margin-bottom: 0.5rem; }
.policy-content .last-updated { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }
.policy-content h2 { margin: 2.5rem 0 1rem; color: var(--primary-dark); font-size: 1.5rem; }
.policy-content h3 { margin: 1.5rem 0 0.75rem; color: var(--primary); font-size: 1.15rem; }
.policy-content p, .policy-content li { color: var(--text-muted); }

.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: white;
  text-align: center;
}
.page-hero p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

.footer {
  background: linear-gradient(180deg, var(--primary-dark), #0a1f15);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 2rem;
}
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--accent-gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { color: white; margin-bottom: 1.25rem; font-family: var(--font-sans); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.social-icons { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.social-icons a:hover { background: var(--accent-gold); color: var(--primary-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-gold));
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  height: 350px;
  border: 3px solid var(--accent-gold);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.team-card { text-align: center; }
.team-card img {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--accent-gold);
}
.team-role { color: var(--accent-coral); font-weight: 700; font-size: 0.9rem; }

.chart-bar-container { margin: 1.5rem 0; }
.chart-bar-label { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.chart-bar { height: 12px; background: var(--bg-alt); border-radius: 6px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 6px; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent-gold);
}
.value-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }

.impact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.impact-table th, .impact-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--bg-alt);
}
.impact-table th {
  background: var(--primary);
  color: white;
  font-weight: 700;
}
.impact-table tr:last-child td { border-bottom: none; }

.secure-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-alt);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge-501 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

.donation-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-alt);
  padding: 0.35rem;
  border-radius: 50px;
  width: fit-content;
}
.donation-toggle button {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text-muted);
  transition: var(--transition);
}
.donation-toggle button.active {
  background: var(--primary);
  color: white;
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .featured-post { grid-template-columns: 1.2fr 1fr; }
}
.featured-post img { height: 100%; min-height: 280px; object-fit: cover; }
.featured-post .content { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }

.contact-info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.contact-info-card h3 { margin-bottom: 1rem; color: var(--primary); }
.contact-info-card p { margin-bottom: 0.5rem; color: var(--text-muted); }
