:root {
  --home-bg: #f3ebe0;
  --home-bg-2: #efe4d6;
  --home-ink: #3b2a1c;
  --home-muted: #6d5a48;
  --home-card: #fffdf9;
  --home-soft: #f4ebe1;
  --home-pill: #efe4d6;
  --home-brown: #c49a6c;
  --home-brown-deep: #b8895a;
  --home-font-display: "Cormorant Garamond", "Times New Roman", serif;
  --home-font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

body.home-page {
  font-family: var(--home-font-body);
  color: var(--home-ink);
  background:
    radial-gradient(120% 70% at 50% -8%, #fff8ef 0%, transparent 52%),
    linear-gradient(180deg, var(--home-bg) 0%, var(--home-bg-2) 100%);
  min-height: 100dvh;
}

body.home-page .site-header {
  display: none !important;
}

body.home-page .social-float-group {
  display: none !important;
}

.home-shell {
  width: 100%;
  margin: 0 auto;
  padding: calc(0.35rem + env(safe-area-inset-top)) 0 0;
  overflow-x: clip;
}

.home-top {
  width: min(1100px, calc(100% - 1.5rem));
  margin: 0 auto 0.45rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.home-brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  cursor: pointer;
  justify-self: start;
}

.home-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
  justify-self: end;
}

.home-brand-name {
  color: var(--home-ink);
  font-family: var(--home-font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
  line-height: 1;
  text-align: center;
  width: 100%;
}

.home-socials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}

.home-social {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  box-shadow: 0 1px 4px rgba(59, 42, 28, 0.12);
  flex: 0 0 auto;
}

.home-social img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-tagline {
  margin: 0;
  text-align: center;
  color: var(--home-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.home-banner {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--home-bg);
  box-shadow: none;
}

.home-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(243, 235, 224, 0.28) 40%,
    rgba(243, 235, 224, 0.72) 72%,
    var(--home-bg) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.home-banner img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.home-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: min(980px, calc(100% - 1.5rem));
  margin: -1.45rem auto 0;
  padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));
  position: relative;
  z-index: 4;
}

.home-animal {
  background: linear-gradient(180deg, #edd4c3 0%, #e4c9b6 55%, #d9bda9 100%);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(59, 42, 28, 0.07);
  padding: 0.55rem 0.75rem 0.7rem;
  overflow: hidden;
}

.home-why-block {
  position: relative;
  margin: 0;
  width: 100%;
  background: transparent;
  overflow: hidden;
  border-radius: 0;
  padding: 0;
}

.home-why-top {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.55rem;
  align-items: stretch;
  height: 132px;
  min-height: 132px;
  margin-bottom: 0.4rem;
}

.home-why-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background: transparent;
  /* Soft shallow edges only — keep most of the photo intact */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,0,0,0.5) 6%,
    #000 14%,
    #000 86%,
    rgba(0,0,0,0.55) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,0,0,0.5) 6%,
    #000 14%,
    #000 86%,
    rgba(0,0,0,0.55) 94%,
    transparent 100%
  );
}

.home-why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% 8%;
  display: block;
}

.home-why-photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10%;
  z-index: 1;
  pointer-events: none;
  /* Very shallow top blend — don't cut into the face */
  background: linear-gradient(
    180deg,
    #e4c9b6 0%,
    rgba(228, 201, 182, 0.35) 50%,
    transparent 100%
  );
}

.home-why-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Soft left edge into the peach fill */
    linear-gradient(90deg, #e4c9b6 0%, rgba(228, 201, 182, 0.55) 8%, transparent 18%),
    /* Soft fade into the text side — keep girl + dog clear */
    linear-gradient(270deg, rgba(228, 201, 182, 0.55) 0%, rgba(228, 201, 182, 0.15) 10%, transparent 22%);
}

.home-why-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.2rem 0.15rem 0.2rem 0;
  text-align: left;
}

.home-why-copy h2 {
  margin: 0 0 0.3rem;
  font-family: var(--home-font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.2rem, 4.6vw, 1.5rem);
  color: #2a1c12;
  line-height: 1.05;
}

.home-why-copy p {
  margin: 0;
  color: #4a3728;
  font-size: 0.82rem;
  line-height: 1.35;
}

.home-why-content {
  position: relative;
  z-index: 2;
}

.home-why-block .home-topics {
  margin: 0;
}

.home-why-block .home-topic-panel {
  background: rgba(255, 250, 244, 0.78);
}

.home-why-block .home-topic-btn {
  background: rgba(255, 250, 244, 0.88);
}

.home-why-block .home-topic-btn.is-on {
  background: var(--home-brown-deep);
}

/* Gato: soft fill matches the photo beige so edges fade cleanly */
.home-animal[data-animal="gato"] {
  background: linear-gradient(180deg, #e9d0bc 0%, #e1c5af 55%, #d6b8a0 100%);
}

.home-animal[data-animal="gato"] .home-why-photo::before {
  background: linear-gradient(
    180deg,
    #e1c5af 0%,
    rgba(225, 197, 175, 0.35) 50%,
    transparent 100%
  );
}

.home-animal[data-animal="gato"] .home-why-photo::after {
  background:
    linear-gradient(90deg, #e1c5af 0%, rgba(225, 197, 175, 0.55) 8%, transparent 18%),
    linear-gradient(270deg, rgba(225, 197, 175, 0.55) 0%, rgba(225, 197, 175, 0.15) 10%, transparent 22%);
}

.home-animal[data-animal="gato"] .home-why-block .home-topic-panel {
  background: rgba(255, 250, 244, 0.72);
}

.home-animal[data-animal="gato"] .home-why-block .home-topic-btn {
  background: rgba(255, 250, 244, 0.86);
  color: var(--home-brown-deep);
}

.home-animal[data-animal="gato"] .home-why-block .home-topic-btn.is-on {
  background: var(--home-brown-deep);
  color: #fff;
}

.home-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.home-topic-btn {
  min-height: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--home-pill);
  color: var(--home-brown-deep);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.32rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-topic-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.home-topic-btn.is-on {
  background: var(--home-brown-deep);
  color: #fff;
}

.home-topic-panel {
  position: relative;
  margin-top: 0.6rem;
  background: var(--home-soft);
  border-radius: 16px;
  padding: 0;
  display: none;
  overflow: hidden;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
}

.home-topic-panel.is-on {
  display: block;
}

.home-topic-copy {
  position: relative;
  z-index: 2;
  max-width: 58%;
  height: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.75rem;
  overflow: hidden;
}

.home-topic-copy h3 {
  margin: 0 0 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: #2a1c12;
}

.home-topic-copy h3 svg {
  width: 15px;
  height: 15px;
  color: var(--home-brown-deep);
}

.home-topic-copy p {
  margin: 0;
  color: #4a3728;
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-topic-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  aspect-ratio: auto;
  max-height: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 18%, #000 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 18%, #000 42%, #000 100%);
}

.home-topic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-topic-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--home-soft) 0%, rgba(244, 235, 225, 0.55) 28%, transparent 58%);
  pointer-events: none;
}

.home-ctas {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.45rem;
}

.home-animal .home-ctas .btn-primary,
.home-animal .home-ctas .btn-secondary {
  background: rgba(255, 250, 244, 0.88);
  color: var(--home-brown-deep);
}

.home-animal .home-ctas .btn-primary:active,
.home-animal .home-ctas .btn-secondary:active {
  background: rgba(255, 250, 244, 1);
}

.home-ctas a,
.home-ctas button {
  min-height: 40px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.45rem 0.6rem;
  text-align: center;
}

.home-ctas .btn-primary {
  background: var(--home-brown-deep);
  color: #fff;
}

.home-ctas .btn-secondary {
  background: var(--home-pill);
  color: var(--home-brown-deep);
}

.home-ctas svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

@media (min-width: 860px) {
  .home-sections {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    width: min(980px, calc(100% - 2rem));
    margin-top: -1.7rem;
  }

  .home-topic-panel {
    height: 132px;
    min-height: 132px;
    max-height: 132px;
  }

  .home-topic-copy {
    max-width: 50%;
    padding: 0.85rem 1rem;
  }

  .home-topic-copy p {
    font-size: 0.86rem;
  }

  .home-topic-photo {
    width: 58%;
  }
}

@media (max-width: 380px) {
  .home-topic-btn {
    font-size: 0.74rem;
    gap: 0.2rem;
    padding: 0.4rem 0.45rem;
  }

  .home-ctas {
    grid-template-columns: 1fr;
  }
}
