/* ===== VARIABLES ===== */
:root {
  --primary: #6A1B9A;
  --primary-light: #9C4DCC;
  --primary-dark: #4A148C;
  --primary-bg: #F3E5F5;
  --accent: #E65100;
  --accent-light: #FF8A3D;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --text: #333333;
  --text-light: #757575;
  --border: #E0E0E0;
  --success: #2E7D32;
  --white: #FFFFFF;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --container: 1200px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  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(--primary-light);
}

ul, ol {
  list-style: none;
}

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

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

.section--purple {
  background: var(--primary-bg);
}

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

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

.grid {
  display: grid;
  gap: 30px;
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 15px;
  color: var(--primary-dark);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  line-height: 1;
}

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

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

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

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

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

.btn--accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
}

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

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

.btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.top-bar__badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.top-bar__social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-bar__social a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity var(--transition);
}

.top-bar__social a:hover {
  opacity: 1;
}

.top-bar__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
}

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

.navbar__logo img {
  height: 160px;
  width: auto;
}

.navbar {
  height: auto;
  min-height: var(--nav-height);
  padding: 8px 0;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.navbar__links a:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.navbar__links a.active {
  color: var(--primary);
}

.navbar__links a.nav-volunteer {
  color: var(--primary);
  font-weight: 800;
}

.navbar__links .btn--primary {
  color: var(--white);
  margin-left: 8px;
}

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

.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 20, 140, 0.85), rgba(106, 27, 154, 0.75));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
}

.hero__content h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

.hero__content h1 strong {
  font-weight: 700;
  font-style: normal;
  display: block;
  font-size: 3.2rem;
  margin-bottom: 10px;
}

.hero__content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: all var(--transition);
}

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

.card__icon {
  width: 64px;
  height: 64px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.card p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.card a.card__link {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card a.card__link:hover {
  gap: 10px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

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

.product-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-alt);
}

.product-card__body {
  padding: 20px;
}

.product-card__category {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.product-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* ===== MEMORIAL SECTION ===== */
.memorial {
  background: linear-gradient(135deg, var(--primary-bg), #E8D5F5);
}

.memorial__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: center;
}

.memorial__photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.memorial__photo img {
  width: 100%;
  height: auto;
}

.memorial__text h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.memorial__text p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.memorial__text blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(255,255,255,0.5);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

/* ===== VOLUNTEER BANNER ===== */
.volunteer-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.volunteer-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 2.2rem;
}

.volunteer-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.volunteer-roles {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.volunteer-roles span {
  background: rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== DONATE PREVIEW ===== */
.donate-preview {
  text-align: center;
}

.donate-amounts {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0 20px;
}

.donate-amounts a {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.donate-amounts a:hover {
  background: var(--primary);
  color: var(--white);
}

.tax-note {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ===== SOCIAL SECTION ===== */
.social-section {
  text-align: center;
}

.social-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  transition: all var(--transition);
}

.social-link:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--primary);
}

.social-link svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.checkbox-group label:hover {
  border-color: var(--primary);
}

.checkbox-group input:checked + span {
  color: var(--primary);
  font-weight: 600;
}

.checkbox-group input {
  width: auto;
  accent-color: var(--primary);
}

/* ===== DONATION PAGE ===== */
.donate-widget {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 40px;
}

.donate-toggle {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--primary);
  margin-bottom: 30px;
}

.donate-toggle button {
  flex: 1;
  padding: 14px;
  border: none;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
}

.donate-toggle button.active {
  background: var(--primary);
  color: var(--white);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.amount-btn {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.custom-amount {
  margin-bottom: 30px;
}

.custom-amount input {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.custom-amount input:focus {
  outline: none;
  border-color: var(--primary);
}

.zeffy-embed {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
}

.zeffy-embed iframe {
  width: 100%;
  min-height: 500px;
  border: none;
}

.tax-info-box {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 30px;
}

.tax-info-box h4 {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.tax-info-box p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== PAGE HERO (interior pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CONTENT BLOCKS ===== */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.content-block h3 {
  color: var(--primary-dark);
  margin: 30px 0 12px;
}

.content-block p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-block ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-block ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ===== ADOPT CARDS ===== */
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

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

.cat-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-alt);
}

.cat-card__body {
  padding: 20px;
}

.cat-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.cat-card__meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.cat-card__desc {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cat-card__status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-card__status--available {
  background: #E8F5E9;
  color: var(--success);
}

.cat-card__status--pending {
  background: #FFF3E0;
  color: var(--accent);
}

/* ===== CONTACT INFO ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
}

.contact-info__text h4 {
  margin-bottom: 4px;
}

.contact-info__text p {
  color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
  background: #1A1A2E;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand img {
  height: 50px;
  margin-bottom: 16px;
}

.footer__brand p {
  font-style: italic;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__brand .footer__address {
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer__links a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.footer__social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer__social-links a:hover {
  background: var(--primary);
}

.footer__social-links svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer__nonprofit p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== THANK YOU ===== */
.thank-you {
  text-align: center;
  padding: 100px 20px;
}

.thank-you h1 {
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.thank-you p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* ===== LOADING / EMPTY STATES ===== */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.loading__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 50px 0; }

  .navbar__logo img {
    height: 80px;
  }

  .navbar__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 30px 20px;
    gap: 4px;
    overflow-y: auto;
    z-index: 999;
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.1rem;
  }

  .navbar__links .btn--primary {
    text-align: center;
    margin-left: 0;
    margin-top: 16px;
  }

  .navbar__hamburger {
    display: block;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hero { min-height: 450px; }
  .hero__content h1 { font-size: 1.8rem; }
  .hero__content h1 strong { font-size: 2rem; }

  .memorial__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

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

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero__content h1 { font-size: 1.5rem; }
  .hero__content h1 strong { font-size: 1.7rem; }
  .hero__buttons { flex-direction: column; }
  .donate-widget { padding: 24px; }
}
