/* Millones De Amigos - Simple Static Styles
   Palette: neutral browns, oranges, and yellows
   -------------------------------------------------- */

/* Color System */
:root {
  --brown: #5a3d2b;
  --brown-700: #4a3224;
  --orange: #d97706;
  --orange-700: #b45309;
  --yellow: #f59e0b;

  --bg: #fdf7ec;   /* light warm neutral */
  --alt: #fff4df;  /* soft warm tint for alternating sections */
  --text: #2b2118;
  --muted: #7c6a5a;
  --white: #ffffff;
}

/* Base / Reset (lean) */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; color: var(--brown); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: inherit; }

/* Utilities */
.container { width: min(1000px, 92%); margin-inline: auto; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
a:focus-visible, button:focus-visible {
  outline: 2px dashed var(--yellow);
  outline-offset: 2px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(90, 61, 43, 0.92);
  color: var(--white);
  z-index: 1000;
  backdrop-filter: saturate(120%) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.logo { height: 44px; width: auto; }
.brand-name { font-size: 1.1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  border-radius: 4px;
}
.nav a:hover, .nav a:focus {
  background: rgba(255,255,255,0.12);
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(90, 61, 43, 0.98);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-top: 1px solid rgba(255,255,255,0.12); }
  .nav a { display: block; padding: 0.9rem 1rem; }
}

/* Hero */
.hero { position: relative; }
.hero-media {
  min-height: 52vh;
  background:
    linear-gradient(180deg, rgba(43,33,24,0.75), rgba(90,61,43,0.65)),
    url("photos/photos-03.jpeg") center/cover no-repeat;
}
.hero-content {
  position: relative;
  margin-top: -25vh;
  padding-bottom: 2rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero h1 {
  font-size: clamp(1.6rem, 1.2rem + 2.2vw, 2.6rem);
  color: var(--white);
  font-weight: 700;
}
.hero p { 
  font-size: 1.05rem; 
  max-width: 40ch; 
  color: var(--white);
}
.hero-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .08s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover, .btn-primary:focus { background: var(--orange-700); }
.btn-outline { border: 2px solid var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover, .btn-outline:focus { background: var(--brown); color: var(--white); }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--alt); }

/* Partners Section */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.partner-card {
  background: var(--white);
  border: 2px solid rgba(90, 61, 43, 0.12);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(90, 61, 43, 0.15);
  border-color: var(--orange);
}

.partner-logo {
  width: 100%;
  max-width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
}

/* Text-based partner logo styling */
.partner-card-text {
  padding: 3rem 2rem;
}

.partner-logo-text {
  text-align: center;
}

.logo-line-1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.2rem 0;
}

.logo-line-2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

.logo-divider {
  width: 6rem;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  margin: 1rem auto;
}

.logo-tagline {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #5a6c7d;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin: 0;
}

@media (max-width: 720px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .logo-line-1 {
    font-size: 1.5rem;
  }
  
  .logo-line-2 {
    font-size: 1.8rem;
  }
  
  .logo-tagline {
    font-size: 0.85rem;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  background: #fff;
  border: 1px solid rgba(90,61,43,0.08);
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery img:hover { transform: scale(1.03); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-content { margin-top: -18vh; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-media { min-height: 46vh; }
  .hero-content { margin-top: -14vh; }
}

/* Donation Section */
.section-intro {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.donation-card {
  background: var(--white);
  border: 2px solid rgba(90, 61, 43, 0.12);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(90, 61, 43, 0.15);
}

.donation-card-featured {
  border-color: var(--orange);
  border-width: 3px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--orange);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.donation-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--brown);
}

.donation-card > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.donation-details {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.donation-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.donation-details li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text);
}

.donation-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.donation-note {
  background: rgba(217, 119, 6, 0.08);
  border-left: 3px solid var(--orange);
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.donation-note strong {
  color: var(--brown);
}

.stripe-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

/* Stripe buttons are rendered as web components, so we can't style them directly,
   but we ensure proper spacing and alignment */
stripe-buy-button {
  width: 100%;
  max-width: 280px;
}

.manage-donation {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(90, 61, 43, 0.04);
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.manage-donation-text {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.manage-donation-text strong {
  color: var(--brown);
}

.manage-donation .btn {
  margin-bottom: 0.8rem;
}

.manage-donation-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  .donation-options {
    grid-template-columns: 1fr;
  }
  
  .donation-card {
    padding: 1.5rem;
  }
  
  .manage-donation {
    padding: 2rem 1.5rem;
  }
}

/* Footer */
.site-footer { background: var(--brown); color: #fff; }

.tax-disclaimer {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

.tax-disclaimer h3 {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.tax-disclaimer p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.tax-disclaimer strong {
  color: #fff;
  font-weight: 600;
}

.tax-disclaimer a {
  color: var(--yellow);
  text-decoration: underline;
}

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

.tax-disclaimer em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85em;
}

.footer-inner {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .tax-disclaimer {
    font-size: 0.75rem;
    padding: 1.5rem 0 1rem;
  }
  
  .tax-disclaimer h3 {
    font-size: 0.9rem;
  }
}
