/* ===========================
   BASE
=========================== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: #fafafa;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  color: #222;
}

/* ===========================
   HERO
=========================== */

.wb-hero {
  min-height: 65vh;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("hero image_DSC_0673.jpg")
    center 60% / cover no-repeat;
  display: flex;
  align-items: center;
}

.wb-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


.wb-hero-inner {
  max-width: 1200px;
  padding: 80px 24px;
  margin: 0 auto;
  color: #fff;
}

.wb-hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.wb-hero p {
  font-size: 1.1rem;
  margin-bottom: 36px;
}

/* Buttons */
.wb-btn {
  display: inline-block;
  margin-right: 16px;
  padding: 12px 22px;
  background: #fff;
  color: #000;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.wb-btn.secondary {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

/* ===========================
   SECTIONS
=========================== */

.wb-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.wb-section + .wb-section {
  padding-top: 0;
}

.wb-section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

/* ===========================
   INTRO
=========================== */

.wb-intro {
  max-width: 760px;
  line-height: 1.7;
  padding-bottom: 24px;
}

.wb-intro p:first-child {
  font-size: 1.05rem;
  color: #222;
}

.wb-intro p + p {
  color: #555;
}

.wb-intro + .wb-section {
  padding-top: 32px;
}

/* ===========================
   LINKS
=========================== */

.browse-all {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.browse-all:hover {
  text-decoration: underline;
}

/* ===========================
   FOOTER
=========================== */

.wb-footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 0.9rem;
  color: #666;
}

/* ===========================
   CAROUSELS
=========================== */

.wb-carousel {
  display: grid;
  grid-auto-flow: column;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.wb-carousel::-webkit-scrollbar {
  display: none;
}

.wb-carousel > * {
  scroll-snap-align: start;
}

.wb-carousel--featured,
.wb-carousel--families {
  grid-auto-columns: calc((100% - 48px) / 3);
}

/* Tablet */
@media (max-width: 1024px) {
  .wb-carousel--featured,
  .wb-carousel--families {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .wb-carousel--featured,
  .wb-carousel--families {
    grid-auto-columns: 85%;
  }
}

.wb-carousel-wrap {
  position: relative;
  margin-bottom: 32px;
}

.wb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wb-arrow.left { left: -20px; }
.wb-arrow.right { right: -20px; }

.wb-arrow:hover {
  background: #f9fafb;
}

/* ===========================
   FEATURED DESTINATIONS
=========================== */

.wb-featured-item {
  display: block;
  text-decoration: none;
  color: #222;
}

.wb-featured-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
}

.wb-featured-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  text-align: center;
  color: #444;
}

/* ===========================
   BIRD FAMILIES
=========================== */

.wb-family-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s ease,
              transform 0.25s ease,
              box-shadow 0.25s ease;
}

.wb-family-card:hover {
  border-color: #ccc;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.wb-family-thumb {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
}

.wb-family-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wb-family-content h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.wb-family-content p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #555;
}

.wb-family-content span {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2563eb;
}

/* ===========================
   EDITORIAL PANEL (FIXED)
=========================== */

:root {
  --editorial-image-height: 260px;
}

.wb-editorial {
  padding: 40px 0;
}

.wb-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
}

.wb-editorial-card {
  background: #fff;
  border-radius: 10px;
  padding: 26px 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Editorial text */
.wb-editorial-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.wb-editorial-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.wb-scientific {
  display: block;
  font-size: 0.95rem;
  font-style: italic;
  color: #555;
}

.wb-editorial-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  margin-bottom: 14px;
}

.wb-editorial-link {
  font-weight: 600;
  color: #2563eb;
}

/* Shared editorial image height */
.wb-editorial-image {
  height: var(--editorial-image-height);
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
}

/* Newly released – landscape */
.wb-editorial-collection .wb-editorial-image {
  width: 100%;
}

/* Featured – portrait */
.wb-editorial-featured {
  display: flex;
  gap: 18px;
  background: #fafafa;
  border-left: 4px solid #e5e7eb;
  padding-left: 24px;
}

.wb-editorial-featured .wb-editorial-image {
  width: 180px;
  min-width: 180px;
  background-position: center top;
}

.wb-editorial-content {
  flex: 1;
}

/* =========================
   SOCIAL ICONS – TOP RIGHT
========================= */

.wb-social-top {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  gap: 14px;
  z-index: 50;
}

.wb-social-top a {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.wb-social-top svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
}

.wb-social-top a:hover {
  opacity: 1;
}

/* Default: muted neutral */
.wb-social-top svg {
  fill: rgba(255, 255, 255, 0.75);
  transition: fill 0.2s ease, opacity 0.2s ease;
}

/* Facebook */
.wb-social-top a[href*="facebook"]:hover svg {
  fill: #1877f2;
}

/* Instagram */
.wb-social-top a[href*="instagram"]:hover svg {
  fill: #e1306c;
}

/* X (Twitter) */
.wb-social-top a[href*="x.com"]:hover svg,
.wb-social-top a[href*="twitter"]:hover svg {
  fill: #000000;
}

/* YouTube */
.wb-social-top a[href*="youtube"]:hover svg {
  fill: #ff0000;
}

/* Pinterest */
.wb-social-top a[href*="pinterest"]:hover svg {
  fill: #e60023;
}


/* ===========================
   MOBILE OPTIMIZATION
=========================== */

@media (max-width: 640px) {

  .wb-hero {
    min-height: auto;
  }

  .wb-hero-inner {
    padding: 48px 20px;
  }

  .wb-hero h1 {
    font-size: 1.9rem;
  }

  .wb-hero p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .wb-btn {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    text-align: center;
  }

  .wb-section {
    padding: 36px 20px;
  }

  .wb-section h2 {
    font-size: 1.4rem;
  }

  .wb-editorial-grid {
    grid-template-columns: 1fr;
  }

  .wb-editorial-featured {
    flex-direction: column;
    border-left: none;
    padding-left: 0;
    background: #fff;
  }

  /* Only featured image forced on mobile */
  .wb-editorial-featured .wb-editorial-image {
    width: 100%;
    min-width: 100%;
    height: 220px;
    margin-bottom: 12px;
	background-position: center center;
  }

  .wb-arrow {
    display: none;
  }
}
