/*
Theme Name: The Safe Shelter India - Fundraiser Landing Page
Theme URI: https://thesafeshelter.in
Author: Custom Themes
Description: High-converting, pixel-perfect custom WordPress landing page theme for non-profits, fundraisers, and rescue shelters. Customized for The Safe Shelter India (thesafeshelter.in).
Version: 1.1.0
Text Domain: the-safe-shelter-india
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'DM Sans', Georgia, serif;
  
  --color-primary: #000000;
  --color-primary-hover: #1f2937;
  --color-accent-amber: #f59e0b;
  --color-accent-teal: #88e2d0;
  --color-accent-teal-badge: #d7f6ef;
  --color-accent-teal-dark: #0f766e;
  
  --color-bg-white: #ffffff;
  --color-bg-radial: radial-gradient(circle at 10% 20%, rgba(220, 252, 231, 0.45) 0%, rgba(254, 243, 199, 0.25) 45%, rgba(255, 255, 255, 0) 75%);
  --color-bg-banner: linear-gradient(180deg, #ffffff 0%, #fbf4ea 20%, #d8f7e7 80%, #baf0d4 100%);
  
  --color-text-main: #09090b;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-border: #e5e7eb;
  
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-sticky: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header Component */
.site-header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.header-nav a:hover {
  color: #000000;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #09090b;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .brand-logo {
    font-size: 1.5rem;
  }
}

.brand-logo .accent {
  color: var(--color-accent-amber);
}

.btn-pill-primary {
  background-color: #000000;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
}

.btn-pill-primary:hover {
  background-color: #1f2937;
  transform: translateY(-1px);
}

.btn-pill-outline {
  background-color: transparent;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  border: 1px solid #1f2937;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-pill-outline:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Layout Grid Container */
.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .hero-main-col {
    grid-column: span 7 / span 7;
  }
  .hero-sidebar-col {
    grid-column: span 5 / span 5;
    position: sticky;
    top: 100px;
  }
}

/* Campaign Title & Badge */
.campaign-title-main {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  color: #09090b;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .campaign-title-main {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .campaign-title-main {
    font-size: 2.15rem;
  }
}

.days-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--color-accent-teal-badge);
  color: var(--color-accent-teal-dark);
  margin-bottom: 1rem;
}

/* Hero Image Card & Gallery Slider */
.main-media-card {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #f3f4f6;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.main-media-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

@media (min-width: 640px) {
  .main-media-card img {
    height: 420px;
  }
}

.watermark-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.nav-arrow-btn:hover {
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.nav-arrow-btn.prev { left: 0.75rem; }
.nav-arrow-btn.next { right: 0.75rem; }

/* Thumbnail Strip Row */
.thumbnail-strip-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.thumb-btn {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.75;
  background-color: #e5e7eb;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.active,
.thumb-btn:hover {
  border-color: var(--color-accent-amber);
  opacity: 1;
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Sticky Donation Card */
.donation-card-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sticky);
}

.amount-raised-text {
  font-size: 1.85rem;
  font-weight: 800;
  color: #09090b;
  line-height: 1;
}

@media (min-width: 640px) {
  .amount-raised-text {
    font-size: 2.15rem;
  }
}

.tax-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background-color: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background-color: #8de4d3;
  border-radius: 9999px;
}

.amount-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.amount-btn {
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  color: #09090b;
  cursor: pointer;
  transition: all 0.15 ease;
  text-align: center;
}

.amount-btn.active,
.amount-btn:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.custom-input-box {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #ffffff;
}

.custom-input-box span {
  padding-left: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.custom-input-box input {
  width: 100%;
  border: none;
  padding: 0.65rem 0.85rem 0.65rem 0.35rem;
  font-size: 0.875rem;
  color: #09090b;
  outline: none;
}

.btn-donate-submit {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-donate-submit:hover {
  background-color: #1f2937;
}

/* Social Share Row */
.social-share-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-circle-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.social-circle-btn.fb { background-color: #1877F2; }
.social-circle-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-circle-btn.tw { background-color: #000000; }

.social-circle-btn:hover {
  opacity: 0.85;
}

/* About Section */
.about-section-bg {
  background: var(--color-bg-radial);
  padding: 3.5rem 0;
  border-top: 1px solid #f9fafb;
}

.about-content-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Wall of Love Section */
.wall-of-love-wrap {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

/* FAQ Accordion Section */
.faq-section-wrap {
  padding: 5rem 1.5rem;
  max-width: 768px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

/* Live Marquee Ticker */
.ticker-strip-bar {
  width: 100%;
  background-color: #fdfaf5;
  border-top: 1px solid #faeed8;
  border-bottom: 1px solid #faeed8;
  padding: 0.65rem 0;
  overflow: hidden;
  font-size: 0.8rem;
  color: #374151;
}

.animate-marquee {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  gap: 2rem;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Pastel Gradient Banner */
.banner-gradient-box {
  background: var(--color-bg-banner);
  border-radius: 1.5rem;
  padding: 4rem 1.5rem;
  text-align: center;
  max-width: 1280px;
  margin: 2.5rem auto;
}

/* Footer Component */
.site-footer {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 3rem 1.5rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}
