/* ============================================================
   PICO BIRDS V2 — STYLE SHEET
   ============================================================ */

/* ---- FONTS ------------------------------------------------- */
@font-face {
  font-family: 'Chewie';
  src: url('assets/fonts/chewie-regular.woff2') format('woff2'),
       url('assets/fonts/chewie-regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- DESIGN TOKENS ---------------------------------------- */
:root {
  --cream:      #EDE9DF;
  --charcoal:   #1E1E1A;
  --green:      #4AC87A;
  --dark-bg:    #1E1F1A;
  --card-bg:    #272822;
  --yellow:     #F5C11A;
  --coral:      #E85948;
  --orange:     #E87C37;
  --label-gray: #888880;

  --pad-x:      125px;
  --pad-x-sm:   24px;
  --section-y:  104px;
  --radius-card: 14px;
}

/* ---- TYPOGRAPHY ------------------------------------------- */
h1, h2, h3, blockquote { font-family: 'Chewie', Georgia, serif; font-weight: 400; line-height: 1.2; text-wrap: balance; }

.label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-gray);
  margin-bottom: 8px;
}
.label--bright { color: var(--green); }
.label--orange { color: var(--orange); }

/* ---- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 22px; font-size: 13px; }
.btn--green { background: var(--green); color: #fff; }
.btn--coral { background: var(--coral); color: #fff; }

/* ---- EMAIL FORM ------------------------------------------- */
.email-form__row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.email-form__input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: none;
  border-radius: 100px;
  background: #E5E1D8;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--charcoal);
  outline: none;
  transition: background 0.2s;
}
.email-form__input::placeholder { color: #9A9890; }
.email-form__input:focus { background: #DAD7CE; }
.email-form__input--wide { width: 100%; min-width: unset; flex: none; }
.email-form--centered { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.email-form__msg {
  font-size: 14px;
  min-height: 20px;
  margin-top: 8px;
  color: var(--charcoal);
}
.email-form__msg.success { color: var(--green); }
.email-form__msg.error { color: var(--coral); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(30,30,26,0.08);
}
.nav__lang-bar {
  display: none; /* hidden on desktop, visible on mobile */
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30,30,26,0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: 100px;
}
.nav__logo img { height: 60px; width: auto; }
.nav__right {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 17px;
  font-weight: 400;
  color: var(--charcoal);
  transition: opacity 0.2s;
}
.nav__link:hover { opacity: 0.6; }
.nav__lang {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--charcoal);
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 0;
}
.lang-btn.is-active { opacity: 1; font-weight: 600; }
.lang-btn:hover { opacity: 0.8; }
.lang-sep { color: var(--charcoal); opacity: 0.3; font-size: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--section-y) var(--pad-x) calc(var(--section-y) * 0.5);
  gap: 40px;
}
.hero__content { max-width: 540px; }
.hero .label { margin-bottom: 24px; }
.hero__headline {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 28px;
}
.hero__body {
  font-size: 16px;
  color: var(--charcoal);
  opacity: 0.75;
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}
#bird-animation { width: 100%; max-width: 480px; }
.hero__bird-fallback {
  max-width: 480px;
  width: 100%;
}

/* ============================================================
   THE IDEA
   ============================================================ */
.idea {
  padding: calc(var(--section-y) * 0.5) var(--pad-x) var(--section-y);
  background: var(--cream);
}
.idea__header {
  display: flex;
  flex-direction: column;
  margin-bottom: 56px;
}
.idea__headline {
  font-size: clamp(36px, 4vw, 52px);
  color: var(--charcoal);
  margin-bottom: 12px;
}
.idea__subhead {
  font-size: 16px;
  color: var(--charcoal);
  opacity: 0.7;
}
.idea__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 28px 28px 36px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(30,30,26,0.07), 0 1px 3px rgba(30,30,26,0.04);
}
.pillar__circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 40px;
}
.pillar__num {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--charcoal);
  opacity: 0.5;
  margin-bottom: 4px;
}
.pillar__title {
  font-family: 'Chewie', Georgia, serif;
  font-size: clamp(36px, 3.5vw, 56px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.pillar__body {
  font-size: 15px;
  color: var(--charcoal);
  opacity: 0.72;
  line-height: 1.65;
}

/* ============================================================
   TICKER / MARQUEE
   ============================================================ */
.ticker {
  background: var(--green);
  overflow: hidden;
  padding: 20px 0;
}
.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.ticker__item {
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  padding-right: 0;
  flex-shrink: 0;
}
.ticker__star { margin: 0 16px; opacity: 0.5; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   COLLECTIONS
   ============================================================ */
.collections {
  padding: var(--section-y) var(--pad-x);
  background: var(--cream);
}
.collections__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}
.collections__headline {
  font-size: clamp(36px, 4vw, 52px);
  color: var(--charcoal);
  margin-bottom: 20px;
  margin-top: 16px;
}
.collections__body {
  font-size: 16px;
  color: var(--charcoal);
  opacity: 0.72;
  max-width: 540px;
  line-height: 1.7;
}
.collections__illustration img { max-width: 150px; height: auto; display: block; }

/* ============================================================
   BIRDS OF VENEZUELA
   ============================================================ */
.birds {
  background: var(--dark-bg);
  padding: var(--section-y) 0;
}
.birds__inner {
  padding: 0 var(--pad-x);
}
.birds__intro {
  padding-bottom: 72px;
}
.birds .label--bright { margin-bottom: 20px; }
.birds__headline {
  font-size: clamp(40px, 5vw, 72px);
  color: #F5F2E8;
  margin-bottom: 24px;
}
.birds__body {
  font-size: 16px;
  color: rgba(245,242,232,0.65);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.birds__tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--green);
  font-weight: 400;
}

/* SET */
.set { margin-bottom: 64px; }
.set__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}
.set__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  white-space: nowrap;
}
.set__line {
  flex: 1;
  border: none;
  border-top: 1px solid rgba(245,242,232,0.15);
}
.set__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* BIRD CARD */
.bird-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: visible; /* allows map popup to show above card */
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22), 0 1px 4px rgba(0,0,0,0.12);
}
.bird-card__photo {
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0; /* clips photo to top corners */
}
.bird-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.bird-card:hover .bird-card__photo img { transform: scale(1.04); }
.bird-card__info {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bird-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bird-card__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #F5F2E8;
  margin-bottom: 6px;
}
.bird-card__species {
  font-size: 14px;
  color: rgba(245,242,232,0.5);
  font-style: italic;
}
.sound-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245,242,232,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,242,232,0.7);
  transition: background 0.2s, color 0.2s;
}
.sound-btn:hover, .sound-btn.is-playing {
  background: var(--green);
  color: #fff;
}
.bird-card__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245,242,232,0.45);
  letter-spacing: 0.03em;
}
.bird-card__location svg { flex-shrink: 0; opacity: 0.6; color: var(--green); }
.bird-card__location[data-region] { position: relative; cursor: default; }

/* ---- Venezuela map popup (CSS-hover, no JS needed) --------- */
.ven-map-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 168px;
  background: #F0EDE5;
  border: 1px solid rgba(30,30,26,0.12);
  border-radius: 12px;
  padding: 6px 6px 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.32);
  overflow: hidden;
}
.bird-card__location:hover .ven-map-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ven-map-popup img { display: block; width: 100%; height: auto; border-radius: 8px; }
.vt-label {
  display: block;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(30,30,26,0.55);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ============================================================
   WHY
   ============================================================ */
.why {
  padding: var(--section-y) var(--pad-x);
  background: var(--cream);
}
.why__inner { max-width: 1190px; }
.why__header { margin-bottom: 72px; }
.why__headline {
  font-size: clamp(40px, 5vw, 68px);
  color: var(--charcoal);
  margin-bottom: 20px;
  margin-top: 8px;
}
.why__subhead {
  font-size: 16px;
  color: var(--charcoal);
  opacity: 0.7;
  max-width: 560px;
  line-height: 1.7;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  row-gap: 48px;
}
.reason { padding-top: 20px; }
.reason__line {
  border: none;
  border-top: 1px solid rgba(30,30,26,0.15);
  margin-bottom: 24px;
}
.reason__num {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.reason__title {
  font-family: 'Chewie', Georgia, serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.25;
}
.reason__body {
  font-size: 15px;
  color: var(--charcoal);
  opacity: 0.65;
  line-height: 1.65;
}

/* ============================================================
   FOUNDER
   ============================================================ */
.founder {
  background: var(--yellow);
  padding: var(--section-y) var(--pad-x);
}
.founder__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.founder__quote {
  font-family: 'Chewie', Georgia, serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 36px;
  quotes: none;
}
.founder__cite {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-style: normal;
  color: var(--charcoal);
  opacity: 0.7;
}

/* ============================================================
   INSTAGRAM
   ============================================================ */
.instagram {
  padding: var(--section-y) var(--pad-x);
  background: var(--cream);
}
.instagram__inner { text-align: center; }
.instagram .label { margin-bottom: 12px; }
.instagram__handle {
  font-family: 'Chewie', Georgia, serif;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 400;
  color: var(--charcoal);
  display: block;
  transition: opacity 0.2s;
}
.instagram__handle:hover { opacity: 0.6; }

/* ============================================================
   EMAIL CAPTURE
   ============================================================ */
.email-capture {
  background: var(--green);
  padding: var(--section-y) var(--pad-x);
}
.email-capture__inner {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.email-capture__headline {
  font-family: 'Chewie', Georgia, serif;
  font-size: clamp(32px, 4vw, 60px);
  color: #fff;
  margin-bottom: 16px;
  font-weight: 400;
}
.email-capture__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
}
.email-capture .email-form__input {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  max-width: 480px;
  text-align: center;
}
.email-capture .email-form__input::placeholder { color: rgba(255,255,255,0.6); }
.email-capture .email-form__input:focus { background: rgba(255,255,255,0.32); }
.email-capture .email-form__msg { color: rgba(255,255,255,0.85); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--cream);
  border-top: 1px solid rgba(30,30,26,0.1);
  padding: 40px var(--pad-x);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__logo { height: 32px; width: auto; }
.footer__copy {
  font-size: 14px;
  color: var(--charcoal);
  opacity: 0.5;
}
.footer__social {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer__social a {
  color: var(--charcoal);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer__social a:hover { opacity: 1; }

/* ============================================================
   MOBILE — 768px and below
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --pad-x: var(--pad-x-sm);
    --section-y: 64px;
  }

  /* NAV mobile layout — 3 rows: lang bar / links+cta / logo */
  .nav__lang-bar { display: flex; }
  .nav__inner {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 14px var(--pad-x-sm) 16px;
    gap: 14px;
  }
  .nav__logo { order: 2; }
  .nav__logo img { height: 56px; }
  .nav__right { order: 1; width: 100%; justify-content: center; gap: 0; }
  .nav__lang { display: none; }
  .nav__links { justify-content: center; gap: 20px; flex-wrap: nowrap; }
  .nav__link { font-size: 14px; }

  /* HERO mobile: single column, illustration above content */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: unset;
    padding: 40px var(--pad-x-sm);
    gap: 32px;
  }
  .hero__illustration {
    order: -1;
  }
  #bird-animation { max-width: 220px; margin: 0 auto; }
  .hero__content { max-width: 100%; }
  .hero__body { max-width: 100%; }
  .email-form__row { flex-direction: column; align-items: stretch; }
  .email-form__input { min-width: unset; }

  /* IDEA mobile: single column */
  .idea__grid { grid-template-columns: 1fr; gap: 16px; }
  .pillar__circle { width: 64px; height: 64px; }
  .pillar { padding: 24px; }

  /* COLLECTIONS mobile */
  .collections__inner {
    grid-template-columns: 1fr;
    padding: 32px var(--pad-x-sm);
    gap: 24px;
  }
  .collections__illustration { display: none; }

  /* BIRDS mobile */
  .birds__inner { padding: 0 var(--pad-x-sm); }
  .set__grid { grid-template-columns: 1fr; gap: 20px; }
  .bird-card__photo { height: 340px; }

  /* WHY mobile */
  .why__grid { grid-template-columns: 1fr; row-gap: 32px; }

  /* FOUNDER mobile */
  .founder { padding: var(--section-y) var(--pad-x-sm); }

  /* INSTAGRAM mobile */
  .instagram { padding: var(--section-y) var(--pad-x-sm); }
  .instagram__handle { font-size: clamp(28px, 8vw, 40px); }

  /* EMAIL CAPTURE mobile */
  .email-capture { padding: var(--section-y) var(--pad-x-sm); }
  .email-capture .email-form--centered { gap: 12px; }

  /* FOOTER mobile */
  .footer { padding: 32px var(--pad-x-sm); }
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* ============================================================
   MEDIUM — 769px to 1024px
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --pad-x: 48px;
  }
  .hero { padding: 60px var(--pad-x); }
  .hero__headline { font-size: 52px; }
  .idea__grid { gap: 16px; }
  .pillar__title { font-size: 40px; }
  .set__grid { gap: 16px; }
  .bird-card__photo { height: 320px; }
  .why__grid { gap: 0 24px; }
  .nav__inner { padding: 0 48px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .btn, .nav__link, .lang-btn, .sound-btn { transition: none; }
  .bird-card:hover .bird-card__photo img { transform: none; }
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
