/* Pet House — "Why us": scroll-driven accordion with a changing photo */
.why { position: relative; padding-block: clamp(70px, 8vw, 110px); }
.why-deco { position: absolute; color: #fff; opacity: .035; pointer-events: none; }
.why-deco.d1 { width: 300px; height: 300px; top: -60px; inset-inline-end: -40px; rotate: -18deg; }
.why-deco.d2 { width: 220px; height: 220px; bottom: -50px; inset-inline-start: 30%; rotate: 30deg; }
.why-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why-sub { margin-top: 14px; color: #E6CDB4; font-size: 1.05rem; max-width: 34em; }

.why-acc { margin-top: 28px; display: grid; gap: 10px; }
.why-item {
  position: relative; overflow: hidden; border-radius: 20px; background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background-color .45s, box-shadow .45s;
}
.why-item.is-open {
  background: linear-gradient(120deg, rgba(245, 138, 7, .2), rgba(255, 255, 255, .05) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 167, 51, .5), 0 18px 40px -22px rgba(0, 0, 0, .6);
}
[dir="rtl"] .why-item.is-open { background: linear-gradient(240deg, rgba(245, 138, 7, .2), rgba(255, 255, 255, .05) 70%); }
.why-q {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-align: start; color: #fff; cursor: pointer;
}
.why-q:focus-visible { outline-offset: -3px; }
.why-n { font: 800 .95rem 'Nunito', sans-serif; color: var(--orange-2); min-width: 24px; opacity: .55; transition: opacity .3s; }
.why-ico {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 15px;
  background: rgba(255, 255, 255, .08); color: var(--orange-2); transition: background-color .45s, color .45s, rotate .5s var(--ease), scale .5s var(--ease);
}
.why-ico svg { width: 22px; height: 22px; }
.why-t { flex: 1; font-family: var(--head); font-weight: 700; font-size: 1.22rem; line-height: 1.3; opacity: .78; transition: opacity .3s; }
.why-plus { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); transition: background-color .3s, box-shadow .3s; }
.why-plus::before, .why-plus::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #fff; transition: rotate .4s var(--ease), opacity .3s; }
.why-plus::after { rotate: 90deg; }
.why-item.is-open .why-n, .why-item.is-open .why-t { opacity: 1; }
.why-item.is-open .why-ico { background: var(--orange); color: var(--brown-deep); rotate: -8deg; scale: 1.06; }
.why-item.is-open .why-plus { background: var(--orange); box-shadow: none; }
.why-item.is-open .why-plus::before, .why-item.is-open .why-plus::after { background: var(--brown-deep); }
.why-item.is-open .why-plus::after { rotate: 0deg; opacity: 0; }
.why-q:hover .why-t { opacity: 1; }
.why-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.why-item.is-open .why-a { grid-template-rows: 1fr; }
.why-a-in { min-height: 0; overflow: hidden; padding-inline: 96px 22px; }
.why-a-in p { color: #E8D2BB; font-size: 1rem; line-height: 1.85; padding-bottom: 18px; opacity: 0; translate: 0 8px; transition: opacity .4s .1s, translate .5s .1s var(--ease); }
.why-item.is-open .why-a-in p { opacity: 1; translate: 0 0; }
.why-thumb { display: none; }
.why-bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); opacity: 0; transition: opacity .3s; }
.why-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--orange), var(--orange-2)); border-radius: 3px; }
.why-item.is-open .why-bar { opacity: 1; }
.why-cta { margin-top: 28px; }

/* photo side */
.why-visual { position: relative; padding: 24px; }
.why-frame {
  position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 220px 220px 36px 36px;
  border: 8px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); background: #3B1B08;
}
.why-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.14; transition: opacity .8s var(--ease), scale 1.4s var(--ease); }
.why-img.on { opacity: 1; scale: 1; }
.why-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(46, 20, 5, .55)); pointer-events: none; }
.why-count {
  position: absolute; z-index: 1; bottom: 18px; inset-inline-end: 18px; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 16px; border-radius: 999px; background: rgba(46, 20, 5, .78); color: #E6CDB4; font: 700 .9rem 'Nunito', sans-serif; direction: ltr;
}
.why-count b { font-size: 1.5rem; color: var(--orange-2); min-width: 1.4em; text-align: center; }
.why-chip {
  position: absolute; z-index: 2; top: 16%; inset-inline-start: -6px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: var(--cream); color: var(--brown-deep); font-family: var(--head); font-weight: 700;
  box-shadow: var(--shadow); animation: whyfloat 4s ease-in-out infinite;
}
.why-chip svg { width: 18px; height: 18px; color: #E5484D; }
.why-paw { position: absolute; z-index: 2; color: var(--orange); pointer-events: none; }
.why-paw.p1 { width: 54px; height: 54px; top: 0; inset-inline-end: 8%; rotate: 22deg; }
.why-paw.p2 { width: 34px; height: 34px; bottom: 12%; inset-inline-start: 0; rotate: -26deg; opacity: .6; }
@keyframes whyfloat { 50% { translate: 0 -10px; } }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .why-a-in { padding-inline: 18px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
  .why-thumb { display: block; width: 84px; height: 84px; border-radius: 16px; object-fit: cover; margin-bottom: 18px; }
  .why-a-in p { padding-bottom: 18px; }
}
@media (max-width: 640px) {
  .why-q { padding: 12px 14px; gap: 10px; }
  .why-ico { width: 40px; height: 40px; border-radius: 13px; }
  .why-t { font-size: 1.08rem; }
  .why-n { min-width: 20px; font-size: .85rem; }
  .why-a-in { grid-template-columns: 70px 1fr; padding-inline: 14px; }
  .why-thumb { width: 70px; height: 70px; }
  .why-a-in p { font-size: .94rem; }
  .why-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .why-chip { animation: none; }
}
