/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg:        #fdfaf5;
  --color-text:      #3d2b1f;
  --color-text-light:#6b5a4a;
  --color-primary:   #e07a5f;
  --color-primary-d: #c95f44;
  --color-accent:    #81b29a;
  --color-gray:      #8a817c;
  --color-light:     #f4f1de;
  --radius:          16px;
  --shadow:          0 8px 32px rgba(61,43,31,0.08);
  --transition:      0.28s ease;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section.section {
  padding: 80px 0;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 2.2rem;
  text-align: center;
  color: var(--color-primary);
}

/* ─── HERO ──────────────────────────────────────────────── */

.hero {
  height: 100vh;
  min-height: 720px;
  position: relative;
  background: url('https://images.unsplash.com/photo-1601758172964-56e3e6c3a2d0?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(253,250,245,0.15) 0%, rgba(253,250,245,0.92) 65%, var(--color-bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  margin-bottom: 1.4rem;
  color: var(--color-text);
  text-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.hero-subtitle {
  font-size: 1.38rem;
  margin-bottom: 2.8rem;
  color: var(--color-text-light);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-d);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: white;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── ABOUT ─────────────────────────────────────────────── */

.about-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.22rem;
  color: var(--color-text-light);
}

.about-text p {
  margin-bottom: 1.4em;
}

.about-text .strong {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.32rem;
}

/* ─── ANIMALS GRID ──────────────────────────────────────── */

.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin: 60px 0;
}

.animal-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.animal-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(61,43,31,0.14);
}

.animal-photo {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.animal-content {
  padding: 24px;
  text-align: center;
}

.animal-content h3 {
  font-size: 2.1rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.age {
  color: var(--color-gray);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.desc {
  margin-bottom: 1.6rem;
  color: var(--color-text-light);
}

.btn-small {
  padding: 12px 28px;
  font-size: 1rem;
}

/* ─── HELP ──────────────────────────────────────────────── */

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.help-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.help-card:hover {
  transform: translateY(-8px);
}

.help-card .icon {
  font-size: 3.8rem;
  margin-bottom: 1.4rem;
}

.help-card h3 {
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

.help-card p.small {
  font-size: 0.98rem;
  margin: 1.4rem 0;
  color: var(--color-gray);
}

/* ─── SUCCESS STORIES ───────────────────────────────────── */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 48px;
  margin-top: 60px;
}

.story-photos {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.story-photos img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.story blockquote {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 1.18rem;
  line-height: 1.7;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

/* ─── FOOTER ────────────────────────────────────────────── */

footer {
  background: #3d2b1f;
  color: #f4f1de;
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.social-icons a {
  color: white;
  margin: 0 12px;
  font-size: 1.4rem;
  text-decoration: none;
}

.heart {
  text-align: center;
  font-size: 1.18rem;
  opacity: 0.9;
  margin-top: 40px;
  font-style: italic;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 { font-size: clamp(2.8rem, 9vw, 4.4rem); }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-cta { flex-direction: column; gap: 16px; }
  
  .section { padding: 60px 0; }
  h2 { font-size: 2.6rem; }
  
  .footer-content { grid-template-columns: 1fr; text-align: center; }
}

/* Drobne poprawki dostępności */
a:focus { outline: 3px solid var(--color-accent); outline-offset: 3px; }
img { display: block; }