/* ============================================
   PLUMES & BECS — Site ornithologique fun
   ============================================ */

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

:root {
  --forest: #1a472a;
  --forest-light: #2d5016;
  --sky: #87ceeb;
  --sky-dark: #4a90d9;
  --sunrise: #f39c12;
  --sunset: #e74c3c;
  --cream: #fdf6e3;
  --bark: #5d4037;
  --leaf: #27ae60;
  --leaf-light: #2ecc71;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--gray-800);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0 2rem;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span { font-size: 2rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--gray-600);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--leaf);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--forest);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--forest);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky) 0%, #b8e6ff 30%, var(--cream) 70%, #ffeaa7 100%);
  padding: 6rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(39,174,96,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(243,156,18,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--forest);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 .emoji-float {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--leaf);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(39,174,96,0.4);
}

.btn-primary:hover {
  background: var(--forest-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(39,174,96,0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--forest);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* --- Sections --- */
section {
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--forest);
  margin-bottom: 0.5rem;
}

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

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

/* --- Bird Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.bird-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

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

.bird-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.bird-card:hover img {
  transform: scale(1.05);
}

.bird-card .card-img {
  overflow: hidden;
  position: relative;
}

.bird-card .card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--sunrise);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.bird-card .card-body {
  padding: 1.5rem;
}

.bird-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 0.3rem;
}

.bird-card .latin-name {
  font-style: italic;
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.bird-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.bird-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bird-card .tag {
  background: var(--gray-100);
  color: var(--forest-light);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--forest);
  color: var(--white);
  padding: 3rem 2rem;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: var(--sunrise);
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}

/* --- Video Section --- */
.video-section {
  background: var(--gray-100);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.video-card .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-card .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card .video-info {
  padding: 1.2rem 1.5rem;
}

.video-card h3 {
  font-size: 1.1rem;
  color: var(--forest);
  margin-bottom: 0.3rem;
}

.video-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay p {
  color: var(--white);
  font-weight: 600;
}

/* --- Tips Section --- */
.tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--leaf);
}

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

.tip-card .tip-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tip-card h3 {
  font-family: 'Fredoka One', cursive;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.tip-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* --- Contact Form --- */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(39,174,96,0.1);
}

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

/* --- About Section --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text h3 {
  font-family: 'Fredoka One', cursive;
  color: var(--forest);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* --- Fun Facts Banner --- */
.fun-facts {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.fun-facts h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.facts-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.fact-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.fact-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.fact-card .fact-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.fact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.fact-card p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* --- Footer --- */
.footer {
  background: var(--gray-800);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--sunrise);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 0.5rem;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* --- Cookie Banner (intentionally non-compliant for testing) --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-800);
  color: var(--white);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: var(--transition);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.9rem;
  flex: 1;
}

.cookie-banner .cookie-btns {
  display: flex;
  gap: 0.8rem;
}

.cookie-banner .btn-accept {
  background: var(--leaf);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.cookie-banner .btn-reject {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-5deg); }
  75% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 1rem;
  }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.bg-light { background: var(--gray-100); }
.bg-white { background: var(--white); }
