/* Replaced Tailwind import with CDN-compatible styles and custom CSS */
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Jacaranda Clubhouse Color Palette - Inspired by Casa Portufornia design */
  --primary: #166534; /* Deep forest green for trust and growth */
  --primary-foreground: #ffffff;
  --secondary: #f3e8ff; /* Light lavender for calm */
  --secondary-foreground: #166534;
  --accent: #059669; /* Emerald green for hope */
  --accent-foreground: #ffffff;
  --background: #fdf2f8; /* Soft pink background like Casa Portufornia */
  --foreground: #1f2937;
  --muted: #f9fafb;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --input: #ffffff;
  --ring: #166534;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;

  /* Spacing */
  --radius: 0.5rem;
}

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

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.font-medium {
  font-weight: 500;
}

.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
.text-4xl {
  font-size: 2.25rem;
}
.text-5xl {
  font-size: 3rem;
}
.text-6xl {
  font-size: 3.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-16 {
  margin-bottom: 4rem;
}

.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-8 {
  margin-top: 2rem;
}

.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pt-20 {
  padding-top: 5rem;
}
.pb-16 {
  padding-bottom: 4rem;
}

/* Layout */
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.block {
  display: block;
}

.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}
.space-x-3 > * + * {
  margin-left: 0.75rem;
}
.space-x-4 > * + * {
  margin-left: 1rem;
}
.space-x-8 > * + * {
  margin-left: 2rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}
.space-y-2 > * + * {
  margin-top: 0.5rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.gap-4 {
  gap: 1rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-12 {
  gap: 3rem;
}

/* Grid */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Colors */
.text-primary {
  color: var(--primary);
}
.text-primary-foreground {
  color: var(--primary-foreground);
}
.text-secondary-foreground {
  color: var(--secondary-foreground);
}
.text-accent {
  color: var(--accent);
}
.text-muted-foreground {
  color: var(--muted-foreground);
}
.text-foreground {
  color: var(--foreground);
}

.bg-primary {
  background-color: var(--primary);
}
.bg-secondary {
  background-color: var(--secondary);
}
.bg-accent {
  background-color: var(--accent);
}
.bg-background {
  background-color: var(--background);
}
.bg-muted {
  background-color: var(--muted);
}

/* Borders */
.border {
  border: 1px solid var(--border);
}
.border-b {
  border-bottom: 1px solid var(--border);
}
.border-t {
  border-top: 1px solid var(--border);
}
.border-2 {
  border: 2px solid;
}

.rounded {
  border-radius: var(--radius);
}
.rounded-lg {
  border-radius: calc(var(--radius) + 0.25rem);
}
.rounded-full {
  border-radius: 9999px;
}

/* Sizing */
.w-full {
  width: 100%;
}
.w-6 {
  width: 1.5rem;
}
.w-8 {
  width: 2rem;
}
.w-16 {
  width: 4rem;
}
.h-6 {
  height: 1.5rem;
}
.h-8 {
  height: 2rem;
}
.h-16 {
  height: 4rem;
}
.h-48 {
  height: 12rem;
}
.h-auto {
  height: auto;
}

.max-w-md {
  max-width: 28rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Position */
.fixed {
  position: fixed;
}
.relative {
  position: relative;
}
.top-0 {
  top: 0;
}
.z-50 {
  z-index: 50;
}

/* Effects */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.transition-colors {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.transition-all {
  transition: all 0.15s ease-in-out;
}

/* Hover states */
.hover\:text-foreground:hover {
  color: var(--foreground);
}
.hover\:text-secondary-foreground:hover {
  color: var(--secondary-foreground);
}
.hover\:bg-secondary-foreground:hover {
  background-color: var(--secondary-foreground);
}
.hover\:text-secondary:hover {
  color: var(--secondary);
}

/* Focus states */
.focus\:ring-2:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}
.focus\:border-transparent:focus {
  border-color: transparent;
}

/* Custom Components */
.hero-gradient {
  background: linear-gradient(135deg, var(--background) 0%, #fce7f3 100%);
}

.impact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--muted);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.donation-button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-foreground);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 9999px;
  font-weight: 600;
}

.donation-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(22, 101, 52, 0.3);
}

/* Navigation */
nav {
  background: rgba(253, 242, 248, 0.95);
  backdrop-filter: blur(8px);
}

/* Form styles */
input,
select,
textarea {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  width: 100%;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Expandable sections inspired by Casa Portufornia */
.expandable-section {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.expandable-section:hover {
  background-color: rgba(22, 101, 52, 0.02);
}

.expandable-section h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.expandable-section .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-top: 0;
}

.expandable-section.active .content {
  max-height: 200px;
  padding-top: 1rem;
}

.expandable-section .plus {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  color: var(--accent);
}

.expandable-section.active .plus {
  transform: rotate(45deg);
}

/* Responsive */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  .md\:hidden {
    display: none;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:text-4xl {
    font-size: 2.25rem;
  }
  .md\:text-6xl {
    font-size: 3.75rem;
  }
  .md\:text-2xl {
    font-size: 1.5rem;
  }
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .lg\:pb-24 {
    padding-bottom: 6rem;
  }
}

@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Object fit */
.object-cover {
  object-fit: cover;
}

/* Flex direction */
.flex-col {
  flex-direction: column;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Col span */
.col-span-1 {
  grid-column: span 1 / span 1;
}
