@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@400&family=Heebo:wght@500&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
  --primary: #6554a6;
  --dark: #242329;
  --gray: #848484;
  --light: #f4f2f8;
  --offwhite: #fafaf8;
  --red: #d0413e;
  --faq-bg: #dddaea;
  --side: rgba(72, 65, 102, 0.8);
  --line: #d9d9d9;
  --font: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); color: var(--dark); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.bg-off { background: var(--offwhite); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; position: relative; }

/* ---------- Header ---------- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: #fff; }
.header .wrap { height: 96px; }
.header__logo { position: absolute; left: 80px; top: 32px; font-size: 24px; font-weight: 700; line-height: 32px; white-space: nowrap; }
.gnb { position: absolute; left: 424px; top: 36px; display: flex; gap: 96px; font-size: 16px; line-height: 24px; }
.gnb a { font-weight: 400; white-space: nowrap; transition: opacity .2s; }
.gnb a:hover { opacity: .75; }
.gnb a.is-active { font-weight: 900; }
.header__cta { position: absolute; right: 80px; top: 24px; width: 144px; height: 48px; border: 1px solid #fff; border-radius: 24px; background: rgba(36, 35, 41, .1); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.header__cta:hover { background: #fff; color: var(--primary); }
.nav-toggle { display: none; }

/* ---------- Side menu ---------- */
.side { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 60; width: 82px; height: 344px; padding: 16px 0 0; background: var(--side); border-radius: 16px 0 0 16px; display: flex; flex-direction: column; align-items: center; gap: 34px; color: #fff; }
.side a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; letter-spacing: -.32px; line-height: 18px; }
.side img, .side .kakao { width: 57px; height: 57px; }
.side .kakao { position: relative; display: block; }
.side .kakao svg { width: 57px; height: 57px; display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; width: 192px; font-size: 16px; font-weight: 700; line-height: 24px; transition: filter .2s, background .2s, color .2s; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { filter: brightness(1.12); }
.btn--white { background: #fff; color: var(--primary); font-weight: 900; }
.btn--white:hover { background: var(--light); }
.btn--ghost { border: 1px solid #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .15); }

/* ---------- Heroes ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--main { height: 860px; }
.hero--sub { height: 720px; }
.hero--sub .hero__bg { -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); }
.hero--sub::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(101, 84, 166, .9) 10.577%, rgba(101, 84, 166, .49) 47.115%, rgba(101, 84, 166, 0) 87.019%); }
.hero--main .hero__bg { -webkit-mask-image: linear-gradient(#000 88%, transparent 100%); mask-image: linear-gradient(#000 88%, transparent 100%); }
.hero .wrap { height: 100%; z-index: 2; }
.eyebrow { font-family: 'Geologica', var(--font); font-size: 20px; line-height: 28px; font-weight: 400; }
.hero h1 { font-size: 72px; line-height: 88px; font-weight: 900; }
.hero__desc { font-size: 24px; line-height: 32px; font-weight: 400; }
.hero--main .hero__text { position: absolute; left: 80px; top: 232px; }
.hero--main h1 { margin-top: 16px; }
.hero--main .hero__desc { margin-top: 24px; font-size: 20px; font-weight: 700; }
.hero--main .hero__btns { position: absolute; left: 80px; top: 580px; display: flex; gap: 16px; }
.hero--main .btn--primary { color: #fff; }
.hero--main .btn--ghost { background: rgba(0, 0, 0, .18); }
.stats { position: absolute; left: 80px; top: 704px; display: flex; gap: 48px; }
.stats li { width: 192px; }
.stats b { display: block; font-size: 32px; line-height: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats span { display: block; font-size: 18px; line-height: 28px; white-space: nowrap; }
.hero--sub .hero__text { position: absolute; left: 80px; top: 207px; }
.hero--sub h1 { margin-top: 16px; }
.hero--sub .hero__desc { margin-top: 24px; }
.hero--sub .hero__btns { position: absolute; left: 720px; top: 356px; display: flex; gap: 16px; }

/* ---------- Section titles ---------- */
.label, .cta .label { font-size: 15px; line-height: 22px; font-weight: 700; color: var(--primary); letter-spacing: -.22px; }
.sec-title { font-size: 52px; line-height: 64px; font-weight: 700; letter-spacing: -1.04px; color: var(--dark); word-break: keep-all; }
.sec-sub { font-size: 24px; line-height: 40px; font-weight: 500; letter-spacing: -.48px; color: var(--gray); }
.center { text-align: center; }

/* ---------- Promise (main) ---------- */
.promise { padding: 88px 0 118px; }
.promise .label { letter-spacing: -.24px; }
.promise .sec-title { margin-top: 16px; color: #121212; }
.promise .sec-sub { margin-top: 8px; font-size: 32px; letter-spacing: -.64px; }
.promise__cards { display: flex; gap: 48px; justify-content: center; margin-top: 48px; }
.pcard { position: relative; display: block; width: 544px; height: 352px; overflow: hidden; color: #fff; }
.pcard img { position: absolute; max-width: none; transition: transform .6s; }
.pcard:hover img { transform: scale(1.04); }
.pcard::after { content: ''; position: absolute; inset: 0; background: rgba(36, 35, 41, .4); }
.pcard__txt { position: absolute; z-index: 2; left: 32px; right: 32px; top: 216px; }
.pcard h3 { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.64px; }
.pcard p { margin-top: 8px; font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: -.32px; }
.pcard span { display: block; margin-top: 8px; font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: -.32px; }
.pcard--l img { width: 768px; height: 436px; left: -172px; top: -84px; }
.pcard--r img { width: 804px; height: 452px; left: -244px; top: -100px; }

/* ---------- List sections (main) ---------- */
.list-sec { position: relative; --list-title-size: 52px; --list-title-line: 75px; }
.list-sec--dog { background: var(--light); }
.list-sec--cat { background: var(--offwhite); margin-top: 100px; }
.list-sec .head { position: relative; height: 520px; }
.list-sec--cat .head { height: 520px; }
.list-sec .head .label { position: absolute; left: 44px; top: 197px; }
.list-sec .head h2 { position: absolute; left: 44px; top: 230px; font-size: var(--list-title-size); line-height: var(--list-title-line); font-weight: 700; letter-spacing: -1.04px; word-break: keep-all; }
.list-sec .head .sub { position: absolute; left: 44px; top: 288px; font-size: 24px; line-height: 75px; font-weight: 500; letter-spacing: -.48px; color: var(--gray); }
.list-sec--cat .head .label { left: 50px; top: 206px; }
.list-sec--cat .head h2 { left: 50px; top: 239px; }
.list-sec--cat .head .sub { left: 50px; top: 297px; }
.tabs-b { position: absolute; left: auto; right: max(44px, calc(820px - 50vw)); top: 230px; width: max-content; max-width: calc(100% - 88px); font-size: var(--list-title-size); line-height: var(--list-title-line); height: 1lh; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; display: flex; overflow-x: auto; }
.list-sec--cat .tabs-b { left: auto; right: max(50px, calc(820px - 50vw)); top: 239px; max-width: calc(100% - 100px); }
.tabs-b button { position: relative; flex: 0 0 auto; width: auto; padding: 0 10px; height: 100%; border-radius: 10px; font-size: clamp(14px, calc(var(--list-title-line) * .375), 16px); line-height: 1.4; font-weight: 700; letter-spacing: -.48px; color: var(--dark); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; transition: background .25s, color .25s; }
.tabs-b button.is-on { background: var(--primary); color: #fff; }
.tabs-b button:not(.is-on):not(:first-child):not(.is-on + button)::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 16px; background: var(--line); }
.tabs-b button:nth-child(2)::before { display: none; }
.grid { display: grid; grid-template-columns: repeat(4, 326px); column-gap: 16px; row-gap: 32px; justify-content: center; }
.card { display: block; }
.card__img { position: relative; width: 326px; height: 326px; overflow: hidden; background: #e6e3ee; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.05); }
.badge { position: absolute; left: 21px; top: 20px; z-index: 2; width: 80px; height: 28px; border-radius: 14px; background: var(--red); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.32px; line-height: 28px; text-align: center; }
.card__info { margin-top: 14px; height: 20px; display: flex; justify-content: space-between; padding: 0 0 0 3px; font-size: 16px; line-height: 20px; letter-spacing: -.32px; white-space: nowrap; }
.card__info b { font-weight: 700; color: var(--dark); }
.card__info span { font-weight: 500; color: var(--gray); }
.card[hidden] { display: none; }
.more { display: flex; justify-content: center; }
.more .btn { width: 188px; height: 58px; font-size: 15px; }
.list-sec--dog .more { padding-top: 112px; }
.list-sec--cat .more { padding-top: 108px; }
.list-sec .slider { margin-top: 113px; }
.list-sec--cat .slider { margin-top: 77px; }

/* ---------- Review slider ---------- */
.slider { position: relative; width: 100%; height: 300px; overflow: hidden; }
.slider__track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.slider:hover .slider__track { animation-play-state: paused; }
.slider__track a { flex: none; display: block; }
.slider__track img { flex: none; width: 400px; height: 300px; object-fit: cover; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- CTA (main) ---------- */
.cta { position: relative; height: 526px; margin-top: 100px; overflow: hidden; color: #fff; text-align: center; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ''; position: absolute; inset: 0; background: rgba(72, 65, 102, .8); }
.cta__in { position: relative; z-index: 2; padding-top: 94px; }
.cta .label { color: #fff; }
.cta h2 { margin-top: 24px; font-size: 58px; line-height: 75px; font-weight: 500; }
.cta p { margin-top: 36px; font-size: 20px; line-height: 32px; font-weight: 500; letter-spacing: -.4px; }
.cta .btn { margin-top: 40px; width: 188px; height: 58px; }

/* ---------- Sub page lists ---------- */
.intro { text-align: center; padding-top: 118px; }
.intro .sec-title { margin-top: 20px; }
.intro .sec-sub { margin-top: 8px; line-height: 40px; }
.tabs-p { width: max-content; max-width: calc(100% - 32px); margin: 111px auto 58px; padding: 8px; display: flex; background: var(--light); border-radius: 16px; overflow-x: auto; }
.tabs-p button { flex: none; width: auto; height: 48px; padding: 0 24px; border-radius: 12px; font-size: 18px; font-weight: 500; letter-spacing: -.32px; color: var(--dark); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; transition: background .25s, color .25s; }
.tabs-p button.is-on { background: var(--primary); color: #fff; font-weight: 700; }
.page-list { padding-bottom: 88px; }
.page-list .more { padding-top: 80px; }
.page-list .more .btn { width: 192px; height: 56px; }
.empty { display: none; text-align: center; color: var(--gray); font-size: 18px; padding: 80px 0; }

/* ---------- System page ---------- */
.care { padding-top: 119px; }
.care .sec-title, .guide .sec-title { scroll-margin-top: 80px; }
.care .sec-title, .guide .sec-title, .faq .sec-title { margin-top: 22px; }
.care .sec-sub, .guide .sec-sub, .faq .sec-sub { margin-top: 19px; }
.care__rows { margin-top: 77px; }
.crow { position: relative; width: 1100px; height: 320px; margin: 0 auto 20px; background: var(--light); }
.crow img { position: absolute; left: 0; top: 0; width: 500px; height: 320px; object-fit: cover; }
.crow__txt { position: absolute; left: 560px; top: 39px; letter-spacing: -.4px; white-space: nowrap; }
.step { display: block; width: 96px; height: 36px; border-radius: 18px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; line-height: 36px; text-align: center; letter-spacing: 0; }
.crow h3 { margin-top: 11px; font-size: 24px; line-height: 40px; font-weight: 700; letter-spacing: -.48px; }
.crow h4 { font-size: 20px; line-height: 40px; font-weight: 500; }
.crow p { margin-top: 19px; font-size: 20px; line-height: 32px; font-weight: 400; }
.guide { margin-top: 90px; background: var(--light); height: 1100px; padding-top: 139px; }
.guide__grid { display: grid; grid-template-columns: repeat(3, 400px); gap: 20px; justify-content: center; margin-top: 110px; }
.gcard { height: 260px; background: #fff; border-radius: 24px; padding-top: 48px; text-align: center; }
.gcard .step { margin: 0 auto; }
.gcard h3 { margin-top: 32px; font-size: 28px; line-height: 36px; font-weight: 700; }
.gcard p { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--gray); }
.faq { background: var(--faq-bg); padding: 119px 0 0; height: 1260px; }
.faq__list { width: 1138px; margin: 103px auto 0; display: flex; flex-direction: column; gap: 16px; }
.qa { position: relative; width: 100%; height: 100px; background: var(--light); border-radius: 24px; text-align: left; overflow: hidden; transition: height .3s ease; }
.qa.is-open { height: 156px; }
.qa__q { position: absolute; left: 32px; top: 18px; width: 64px; height: 64px; border-radius: 50%; background: var(--faq-bg); color: var(--primary); font-family: 'Heebo', var(--font); font-weight: 500; font-size: 28px; display: flex; align-items: center; justify-content: center; transition: top .3s; }
.qa.is-open .qa__q { top: 32px; }
.qa__t { position: absolute; left: 120px; top: 34px; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--dark); transition: top .3s; }
.qa.is-open .qa__t { top: 32px; }
.qa__a { position: absolute; left: 120px; top: 76px; font-size: 16px; line-height: 24px; color: var(--gray); opacity: 0; transition: opacity .3s; }
.qa.is-open .qa__a { opacity: 1; }
.qa__i { position: absolute; right: 32px; top: 40px; width: 20px; height: 20px; transition: top .3s; }
.qa.is-open .qa__i { top: 46px; height: 3px; }
.qa__i::before, .qa__i::after { content: ''; position: absolute; background: #000; }
.qa__i::before { left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); }
.qa__i::after { top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); transition: opacity .2s; }
.qa.is-open .qa__i::after { opacity: 0; }
.qa.is-open .qa__i::before { top: 0; transform: none; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); height: 180px; color: #fff; }
.footer .wrap { height: 180px; }
.footer__logo { position: absolute; left: 66px; top: 77px; font-size: 22px; font-weight: 700; }
.footer__info { position: absolute; left: 297px; top: 45px; font-size: 18px; line-height: 30px; white-space: nowrap; }
.footer__copy { position: absolute; right: 36px; top: 116px; font-size: 18px; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1439px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 24px; }
  .card__img { width: 100%; height: auto; aspect-ratio: 1; }
}
@media (min-width: 721px) and (max-width: 1340px) {
  .list-sec .tabs-b { left: 44px; right: auto; top: 390px; }
  .list-sec--cat .tabs-b { left: 50px; top: 390px; }
}
@media (max-width: 1100px) {
  .list-sec { --list-title-size: 40px; }
  .header__logo { left: 24px; }
  .header__cta { right: 24px; }
  .gnb { left: 260px; gap: 36px; }
  .hero--main .hero__text, .hero--sub .hero__text, .hero--main .hero__btns, .stats { left: 40px; }
  .hero--sub .hero__btns { left: 40px; top: 560px; }
  .hero h1 { font-size: 56px; line-height: 68px; }
  .promise__cards { flex-direction: column; align-items: center; gap: 24px; }
  .list-sec .head { height: 560px; }
  .list-sec--cat .head { height: 560px; }
  .list-sec .head .label, .list-sec .head h2, 
  .list-sec .head .label { top: 150px !important; }
  .list-sec .head h2 { top: 180px !important; font-size: var(--list-title-size); }
  .list-sec .head .sub { top: 240px !important; }
  .tabs-b { left: 24px; right: auto !important; top: 340px !important; max-width: calc(100% - 48px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crow, .guide__grid, .faq__list { width: calc(100% - 32px); }
  .guide { height: auto; padding-bottom: 80px; }
  .guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { height: auto; padding-bottom: 80px; }
  .footer__info { left: 24px; }
  .footer__copy { left: 24px; right: auto; }
  .footer__logo { display: none; }
  .footer__info { top: 24px; font-size: 14px; white-space: normal; }
  .footer__copy { top: 136px; font-size: 13px; }
  .side { transform: translateY(-50%) scale(.7); transform-origin: right center; }
}
@media (max-width: 720px) {
  .gnb { display: none; position: absolute; top: 96px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(36, 35, 41, .96); padding: 8px 24px 16px; }
  .gnb a { padding: 12px 0; }
  .gnb.is-open { display: flex; }
  .nav-toggle { display: block; position: absolute; right: 24px; top: 28px; width: 40px; height: 40px; }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; position: absolute; left: 8px; right: 8px; height: 2px; background: #fff; }
  .nav-toggle::before { top: 12px; } .nav-toggle span { top: 19px; } .nav-toggle::after { top: 26px; }
  .header__cta { display: none; }
  .hero--main, .hero--sub { height: 680px; }
  .hero h1 { font-size: 40px; line-height: 52px; }
  .hero__desc, .hero--main .hero__desc { font-size: 16px; line-height: 26px; }
  .hero--main .hero__text, .hero--sub .hero__text { top: 140px; left: 24px; right: 24px; }
  .hero--main .hero__btns, .hero--sub .hero__btns { left: 24px; top: 440px; flex-direction: column; }
  .hero--main { height: 840px; }
  .stats { left: 24px; right: 24px; top: 596px; display: grid; grid-template-columns: repeat(2, max-content); column-gap: 16px; row-gap: 16px; }
  .stats li { width: auto; flex: 1; }
  .stats b { font-size: 24px; }
  .stats span { font-size: 16px; line-height: 24px; }
  .list-sec { --list-title-size: 30px; --list-title-line: 40px; }
  .sec-title { font-size: 30px !important; line-height: 40px; }
  .list-sec .head h2 { font-size: var(--list-title-size) !important; line-height: var(--list-title-line); }
  .sec-sub, .list-sec .head .sub { font-size: 16px !important; line-height: 26px; }
  .promise .sec-sub { font-size: 18px; }
  .pcard { width: calc(100% - 32px); }
  .pcard h3 { font-size: 24px; }
  .grid { grid-template-columns: 1fr; }
  .list-sec .head, .list-sec--cat .head { height: auto; padding: 90px 24px 44px; }
  .list-sec .head .label, .list-sec .head h2, .list-sec .head .sub { position: static; }
  .list-sec .head h2 { margin-top: 16px; }
  .list-sec .head .sub { margin-top: 12px; }
  .tabs-b, .list-sec--cat .tabs-b { position: static; width: max-content; max-width: 100%; height: 1lh; margin-top: 28px; }
  .tabs-b button { padding: 0 10px; }
  .tabs-b button::before { display: none !important; }
  .tabs-p button { font-size: 16px; }
  .cta h2 { font-size: 30px; line-height: 40px; }
  .intro { padding-top: 130px; }
  .crow { height: auto; }
  .crow img { position: static; width: 100%; height: 220px; }
  .crow__txt { position: static; padding: 20px; white-space: normal; }
  .crow p { font-size: 16px; line-height: 26px; }
  .crow p br { display: none; }
  .guide__grid { grid-template-columns: 1fr; }
  .gcard { height: auto; padding-bottom: 28px; }
  .qa__t { font-size: 17px; left: 104px; right: 56px; }
  .qa__a { left: 104px; right: 24px; font-size: 14px; }
  .qa__q { width: 48px; height: 48px; left: 20px; font-size: 22px; }
  .side { display: none; }
}

/* ---------- Adoption reviews: shared grid, no filters ---------- */
.review-grid { margin-top: 80px; }
.review-card { cursor: pointer; outline: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.review-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 6px; }
.review-card__overlay { position: absolute; inset: 0; padding: 24px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 16px; line-height: 1.8; overflow-y: auto; overscroll-behavior: contain; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.review-card__overlay p { white-space: normal; overflow-wrap: anywhere; }
.review-card.is-open .review-card__overlay,
.review-card:focus-visible[aria-expanded="true"] .review-card__overlay { opacity: 1; pointer-events: auto; }
.review-card__info { margin-top: 14px; }
.review-card__info h3 { font-size: 18px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.review-card__info > p { margin-top: 8px; color: var(--gray); font-size: 14px; line-height: 1.5; }
@media (hover: hover) {
  .review-card:hover .review-card__overlay { opacity: 1; pointer-events: auto; }
}
@media (max-width: 720px) {
  .review-grid { margin-top: 48px; }
  .review-card__overlay { padding: 22px; }
  .hero--reviews .hero__desc { overflow-wrap: anywhere; }
}
@media (max-width: 359px) {
  .hero--main { height: 940px; }
  .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .review-card__overlay { transition: none; }
}

/* Requested replacement photo: overlay remains CSS-only and system-page-only. */
.hero--system .hero__bg { object-position: 50% 42%; }
@media (max-width: 720px) {
  .hero--system .hero__bg { object-position: 50% 42%; }
}

/* Keep the shared hero gradient; improve only system copy and the outlined button. */
.hero--system .hero__text { text-shadow: none; }
.hero--system .btn--ghost { background: rgba(36, 35, 41, .18); text-shadow: none; }

/* 2026-10-16: requested section rhythm only; existing typography is retained. */
:root {
  --section-label-gap: 16px;
  --section-sub-gap: 12px;
  --section-content-gap: 64px;
  --section-top-gap: 120px;
}
.center > .label + .sec-title, .intro > .label + .sec-title {
  margin-top: var(--section-label-gap);
}
.center > .sec-title + .sec-sub, .intro > .sec-title + .sec-sub {
  margin-top: var(--section-sub-gap);
}
.cta .label { margin-top: 0; }
.cta h2 { margin-top: var(--section-label-gap); }
.cta h2 + p { margin-top: var(--section-sub-gap); }
.list-sec .head, .list-sec--cat .head {
  height: auto;
  padding: 197px max(44px, calc(820px - 50vw)) var(--section-content-gap) 44px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas: "label label" "title filters" "subtitle subtitle";
  column-gap: 24px;
  align-items: center;
}
.list-sec--cat .head { padding-top: 206px; padding-left: 50px; }
.list-sec .head .label, .list-sec .head h2, .list-sec .head .sub {
  position: static;
  margin: 0;
}
.list-sec .head .label { grid-area: label; margin-bottom: var(--section-label-gap); }
.list-sec .head h2 { grid-area: title; }
.list-sec .head .sub {
  grid-area: subtitle;
  line-height: 1.5;
  margin-top: var(--section-sub-gap);
}
.list-sec .tabs-b, .list-sec--cat .tabs-b {
  grid-area: filters;
  position: static;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  margin: 0;
  height: 1lh;
}
.tabs-b button { padding-left: 20px; padding-right: 20px; }
.tabs-p { margin-top: var(--section-content-gap); }
.care, .guide, .faq { padding-top: var(--section-top-gap); }
.care__rows, .guide__grid, .faq__list, .review-grid { margin-top: var(--section-content-gap); }
.guide__actions { display: flex; justify-content: center; gap: 16px; margin: 24px auto 0; }
.guide__actions .btn:hover { filter: brightness(.92); }
.card[data-href] { cursor: pointer; }
.card[data-href]:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
@media (min-width: 721px) and (max-width: 1340px) {
  .list-sec .head, .list-sec--cat .head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "title" "subtitle" "filters";
    padding-right: 44px;
    padding-bottom: 24px;
  }
  .list-sec .tabs-b { justify-self: start; margin-top: 20px; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .list-sec .head, .list-sec--cat .head { padding-top: 150px; }
}
@media (max-width: 720px) {
  :root { --section-content-gap: 40px; --section-top-gap: 80px; }
  .list-sec .head, .list-sec--cat .head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "title" "subtitle" "filters";
    padding: 90px 24px 24px;
  }
  .list-sec .tabs-b, .list-sec--cat .tabs-b {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    height: 1lh;
  }
  .tabs-b button { padding-left: 10px; padding-right: 10px; }
  .guide__actions { flex-direction: column; align-items: center; gap: 12px; }
  .guide__actions .btn { width: 192px; }
}

@media (min-width: 721px) {
  .tabs-b button + button { margin-left: -.4px; }
}
.list-sec .head.filters-below {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "label" "title" "subtitle" "filters";
  padding-bottom: 24px;
}
.list-sec .head.filters-below .tabs-b { justify-self: start; margin-top: 20px; }

/* Mobile-only: adoption cards and system content keep a 16px page rhythm. */
@media (max-width: 720px) {
  /* Pet listing grids only: review grids and sliders retain their existing layout. */
  .list-sec .grid:not(.review-grid),
  .page-list .grid:not(.review-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 24px;
  }
  .list-sec .card__info,
  .page-list .card__info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    height: auto;
    min-height: 0;
    margin-top: 10px;
    padding: 0;
    font-size: 13px;
    line-height: 20px;
    white-space: normal;
  }
  .list-sec .card__info b,
  .list-sec .card__info span,
  .page-list .card__info b,
  .page-list .card__info span {
    display: block;
    min-width: 0;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .list-sec .card__info b,
  .page-list .card__info b { letter-spacing: -1px; }
  .list-sec .badge,
  .page-list .badge {
    left: 12px;
    top: 12px;
    width: 72px;
    height: 26px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 26px;
  }

  /* System page sections: the shared hero/header/footer remain untouched. */
  .guide .guide__grid {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }
  .care > .center,
  .guide > .center,
  .faq > .center { padding-left: 16px; padding-right: 16px; }
  .guide .guide__grid { grid-template-columns: minmax(0, 1fr); }
  .guide .gcard,
  .guide .gcard h3,
  .guide .gcard p { text-align: center; }
  .guide .gcard { padding-left: 16px; padding-right: 16px; }
  .guide .gcard .step { margin-left: auto; margin-right: auto; }

  .faq .faq__list { gap: 16px; }
  .faq .qa,
  .faq .qa.is-open {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    grid-template-areas:
      "q title icon"
      ". answer answer";
    column-gap: 12px;
    row-gap: 12px;
    height: auto;
    min-height: 76px;
    padding: 20px;
    overflow: visible;
  }
  .faq .qa__q {
    position: static;
    grid-area: q;
    width: 36px;
    height: 36px;
    align-self: start;
    font-size: 18px;
    line-height: 36px;
  }
  .faq .qa__t {
    position: static;
    grid-area: title;
    align-self: start;
    min-width: 0;
    margin: 0;
    font-size: 17px;
    line-height: 24px;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .faq .qa__a {
    position: static;
    grid-area: answer;
    display: none;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .faq .qa.is-open .qa__a { display: block; opacity: 1; }
  .faq .qa__i,
  .faq .qa.is-open .qa__i {
    position: relative;
    grid-area: icon;
    right: auto;
    top: auto;
    width: 20px;
    height: 20px;
    align-self: center;
  }
  .faq .qa.is-open .qa__i::before {
    top: 50%;
    transform: translateY(-50%);
  }
}
