/* Homepage — hero and latest guides */

.home-hero {
  position: relative;
  background: #faf7f0;
  overflow: hidden;
  padding: 0.5rem 0 0;
}

.home-hero > .max-w-container-max {
  padding-top: 0;
  width: 100%;
  overflow-x: clip;
}

.home-hero__paws {
  position: absolute;
  left: 0;
  bottom: 2rem;
  width: 200px;
  height: 120px;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='%231a5c42'%3E%3Cpath d='M8.5 14.5c-1.5 0-2.5-1.2-2.5-2.8 0-2 1.5-4 3.5-4.5.3 1.8 1.8 3.2 3.5 3.5-.5 2-2.5 3.8-4.5 3.8zm7 0c-2 0-4-1.8-4.5-3.8 1.7-.3 3.2-1.7 3.5-3.5 2 .5 3.5 2.5 3.5 4.5 0 1.6-1 2.8-2.5 2.8zM12 6c-.8 0-1.5-.7-1.5-1.5S11.2 3 12 3s1.5.7 1.5 1.5S12.8 6 12 6zm-4 1c-.8 0-1.5-.7-1.5-1.5S7.2 4 8 4s1.5.7 1.5 1.5S8.8 7 8 7zm8 0c-.8 0-1.5-.7-1.5-1.5S15.2 4 16 4s1.5.7 1.5 1.5S16.8 7 16 7z'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}

.home-hero__curve {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  background: linear-gradient(135deg, #f5f0e6 0%, #ebe4d4 100%);
  border-radius: 0 0 0 45%;
  z-index: 0;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.home-hero__grid > * {
  min-width: 0;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 1.25rem;
}

.home-hero__eyebrow {
  color: #1a5c42;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.home-hero__title {
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
  color: #1a3328;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  max-width: 11ch;
}

.home-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #5c6b62;
  margin-bottom: 1.5rem;
  max-width: 26rem;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.home-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #1a5c42;
  font-size: 1rem;
  transition: gap 0.2s;
}
.home-hero__link:hover {
  gap: 0.6rem;
}

.home-hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  line-height: 0;
  overflow: hidden;
}

.home-hero__dog {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
  filter: drop-shadow(0 16px 40px rgba(26, 92, 66, 0.12));
}

@media (min-width: 768px) {
  .home-hero {
    padding: 0;
  }

  .home-hero__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 0.5rem 1rem;
    align-items: start;
  }

  .home-hero__content {
    padding: 5rem 0 1.75rem;
  }

  .home-hero__visual {
    justify-content: flex-end;
    align-self: start;
  }

  .home-hero__dog {
    max-height: 420px;
    object-position: top right;
  }

  .home-hero__curve {
    width: 52%;
    border-radius: 0 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .home-hero__dog {
    max-height: 460px;
  }

  .home-hero__title {
    max-width: 12ch;
  }
}

/* Latest articles — directly under hero */

.home-latest {
  position: relative;
  padding: 2.75rem 0 3.25rem;
  background: #fff;
  overflow: hidden;
}

.home-latest__paws {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.home-latest__paws--left {
  left: 0;
  width: calc(50% - 37.5rem - 1.5rem);
}

.home-latest__paws--right {
  right: 0;
  width: calc(50% - 37.5rem - 1.5rem);
}

.home-latest__paw {
  position: absolute;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='%23d4c4a8'%3E%3Cpath d='M8.5 14.5c-1.5 0-2.5-1.2-2.5-2.8 0-2 1.5-4 3.5-4.5.3 1.8 1.8 3.2 3.5 3.5-.5 2-2.5 3.8-4.5 3.8zm7 0c-2 0-4-1.8-4.5-3.8 1.7-.3 3.2-1.7 3.5-3.5 2 .5 3.5 2.5 3.5 4.5 0 1.6-1 2.8-2.5 2.8zM12 6c-.8 0-1.5-.7-1.5-1.5S11.2 3 12 3s1.5.7 1.5 1.5S12.8 6 12 6zm-4 1c-.8 0-1.5-.7-1.5-1.5S7.2 4 8 4s1.5.7 1.5 1.5S8.8 7 8 7zm8 0c-.8 0-1.5-.7-1.5-1.5S15.2 4 16 4s1.5.7 1.5 1.5S16.8 7 16 7z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
}

/* Left margin — paws sit beside the content column */
.home-latest__paw--1 { width: 180px; height: 180px; top: 8%; right: 0; transform: rotate(-18deg); }
.home-latest__paw--2 { width: 130px; height: 130px; top: 46%; right: 22%; transform: rotate(12deg); }
.home-latest__paw--3 { width: 150px; height: 150px; top: 72%; right: 0; transform: rotate(-8deg); }

/* Right margin */
.home-latest__paw--4 { width: 170px; height: 170px; top: 14%; left: 0; transform: rotate(22deg) scaleX(-1); }
.home-latest__paw--5 { width: 120px; height: 120px; top: 50%; left: 26%; transform: rotate(-14deg) scaleX(-1); }
.home-latest__paw--6 { width: 145px; height: 145px; top: 76%; left: 0; transform: rotate(6deg) scaleX(-1); }

@media (max-width: 1320px) {
  .home-latest__paws {
    display: none;
  }
}

.home-latest__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.home-latest__lead {
  text-align: left;
  margin: 0;
}

.home-latest__all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #1a5c42;
  font-size: 1rem;
  transition: gap 0.2s;
  flex-shrink: 0;
}

.home-latest__all-link:hover {
  gap: 0.6rem;
}

.home-latest__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.home-latest__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.125rem;
  overflow: hidden;
  border: 1px solid rgba(26, 92, 66, 0.1);
  box-shadow: 0 4px 20px rgba(26, 92, 66, 0.06);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.home-latest__card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a5c42 0%, #2d7a5a 100%);
  opacity: 0;
  transition: opacity 0.25s;
}

.home-latest__card:hover {
  border-color: rgba(26, 92, 66, 0.18);
  box-shadow: 0 14px 40px rgba(26, 92, 66, 0.12);
  transform: translateY(-3px);
}

.home-latest__card:hover::before {
  opacity: 1;
}

.home-latest__image-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8f5ee;
  border-bottom: 3px solid #f0c14a;
}

.home-latest__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-latest__card:hover .home-latest__image {
  transform: scale(1.04);
}

.home-latest__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.25rem 1.375rem;
}

.home-latest__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.home-latest__category {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  color: #1a5c42;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #e8f5ee;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
}

.home-latest__read-time {
  font-size: 0.8125rem;
  color: #5c6b62;
  white-space: nowrap;
}

.home-latest__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.625rem;
}

.home-latest__title a {
  color: #1a3328;
  transition: color 0.15s;
}

.home-latest__card:hover .home-latest__title a {
  color: #1a5c42;
}

.home-latest__excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4a5750;
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-latest__read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a5c42;
  margin-top: auto;
  transition: gap 0.2s;
}

.home-latest__read-link:hover {
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .home-latest__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .home-latest__title {
    font-size: 1.1875rem;
  }
}

@media (min-width: 768px) {
  .home-latest__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .home-latest {
    padding: 3.25rem 0 3.75rem;
  }

  .home-latest__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }

  .home-latest__body {
    padding: 1.625rem 1.375rem 1.5rem;
  }

  .home-latest__meta {
    margin-bottom: 1.125rem;
  }
}
