/* 디코 동물병원 디자인 샘플 — 민트·오렌지 친근형 */
:root {
  --mint: #21A894; --mint-soft: #DDF3EE; --orange: #FF8A3D; --sun: #FFC23D;
  --cream: #FFF9F2; --navy: #23364A; --text: #2F3E4E; --sub: #6A7886; --line: #E6E0D6;
  --header-h: 74px;
  --display: 'Do Hyeon', 'Pretendard Variable', sans-serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', sans-serif;
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--sans); color: var(--text); background: #fff; line-height: 1.75; word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: clip; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); }
.ph { display: inline-block; padding: 0 6px; border: 1.5px dashed var(--orange); border-radius: 6px; color: #C4581A; font-size: .92em; }

/* 강아지·고양이 전환 */
html[data-pet="dog"] [data-for="cat"], html[data-pet="cat"] [data-for="dog"] { display: none !important; }

.sample-banner { background: var(--navy); color: #D6E2EC; font-size: 12.5px; }
.sample-banner__inner { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.sample-banner__tag { flex: none; padding: 0 10px; background: var(--sun); color: var(--navy); border-radius: 99px; font-weight: 700; }
.sample-banner a { color: var(--sun); }
.alert-bar { background: #FFF1E6; color: #8A3F12; font-size: 13.5px; font-weight: 600; }
.alert-bar__inner { display: flex; gap: 10px; align-items: center; padding: 7px 0; }
.alert-bar__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; }
.has-motion .alert-bar__dot { animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.5); } 30% { transform: scale(1); } 45% { transform: scale(1.35); } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 44px; height: 44px; }
.logo span { display: grid; line-height: 1.15; }
.logo b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--navy); }
.logo small { font-size: 10px; letter-spacing: .14em; color: var(--mint); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav ul a { display: block; padding: 8px 14px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 15px; transition: background .3s, color .3s; }
.site-nav ul a:hover, .site-nav ul a.is-active { background: var(--mint-soft); color: var(--mint); }
.nav-toggle { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 99px; font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .35s var(--pop), box-shadow .35s; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 138, 61, .8); }
.btn--mint { background: var(--mint-soft); color: var(--mint); }
.btn--lg { padding: 16px 28px; font-size: 16.5px; }

/* 발자국 */
.paws { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; z-index: 1; }
.paw { position: absolute; width: 28px; height: 28px; opacity: 0; transform: scale(.4) rotate(var(--r)); transition: opacity .4s, transform .5s var(--pop); }
.paw.is-on { opacity: .28; transform: scale(1) rotate(var(--r)); }
.paw svg { width: 100%; height: 100%; fill: var(--mint); }
main { position: relative; }

/* 등장 */
.has-motion .pop { opacity: 0; transform: translateY(36px) scale(.96); transition: opacity .6s ease, transform .8s var(--pop); transition-delay: var(--d, 0s); }
.has-motion .pop.is-in { opacity: 1; transform: none; }

/* 히어로 */
.hero { position: relative; padding: 70px 0 100px; background: linear-gradient(180deg, #F2FBF8, #fff); overflow: hidden; }
.ecg { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 200px; transform: translateY(-50%); opacity: .14; }
.ecg path { fill: none; stroke: var(--mint); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 2600; stroke-dashoffset: 0; }
.has-motion .ecg path { animation: ecg 5s linear infinite; }
@keyframes ecg { from { stroke-dashoffset: 2600; } to { stroke-dashoffset: -2600; } }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pet-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 99px; background: #fff; box-shadow: 0 6px 20px -8px rgba(35, 54, 74, .3); }
.pet-switch button { position: relative; z-index: 1; padding: 10px 18px; border: 0; background: none; font: inherit; font-weight: 800; font-size: 15px; color: var(--sub); cursor: pointer; transition: color .3s; }
.pet-switch button[aria-pressed="true"] { color: #fff; }
.pet-switch__pill { position: absolute; left: 5px; top: 5px; bottom: 5px; width: calc(50% - 5px); border-radius: 99px; background: var(--mint); transition: transform .5s var(--pop), background .4s; }
html[data-pet="cat"] .pet-switch__pill { transform: translateX(100%); background: var(--orange); }
.hero__title { margin-top: 26px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.2vw, 70px); line-height: 1.2; color: var(--navy); }
.swap { color: var(--mint); }
html[data-pet="cat"] .swap { color: var(--orange); }
.has-motion .swap > span { display: inline-block; animation: swap-in .6s var(--pop); }
@keyframes swap-in { from { opacity: 0; transform: translateY(20px) rotate(-4deg); } }
.hero__lead { margin-top: 22px; max-width: 30em; font-size: 17px; color: var(--sub); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-left: auto; }
.blob { position: absolute; inset: 6%; border-radius: 42% 58% 60% 40% / 48% 42% 58% 52%; background: var(--mint-soft); transition: background .5s; }
html[data-pet="cat"] .blob { background: #FFE9D9; }
.has-motion .blob { animation: morph 10s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 58% 42% 40% 60% / 42% 58% 42% 58%; } }
.pet { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s, transform .6s var(--pop); }
html[data-pet="dog"] .pet--cat, html[data-pet="cat"] .pet--dog { opacity: 0; transform: scale(.7) rotate(-8deg); }
.ear { transform-box: fill-box; transform-origin: 50% 0; }
.pet:hover .ear--l { animation: wiggle .5s ease-in-out 2; }
.pet:hover .ear--r { animation: wiggle .5s ease-in-out .1s 2; }
@keyframes wiggle { 50% { rotate: 12deg; } }
.has-motion .tongue { animation: pant .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: top; }
@keyframes pant { to { transform: scaleY(1.3); } }
.has-motion .tail { animation: tail 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 100%; }
@keyframes tail { 50% { transform: rotate(14deg); } }
.hero__bubble { position: absolute; left: 0; top: 8%; padding: 12px 18px; border-radius: 22px 22px 22px 4px; background: #fff; box-shadow: 0 10px 24px -10px rgba(35, 54, 74, .35); font-weight: 800; color: var(--navy); }
.has-motion .hero__bubble { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* 섹션 */
.section { position: relative; z-index: 2; padding: 110px 0; }
.section--mint { background: var(--mint); color: #EFFFFB; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #C9D6E2; }
.head { text-align: center; margin-bottom: 50px; }
.head p:last-child:not(.eyebrow) { margin-top: 10px; color: var(--sub); }
.eyebrow { display: inline-block; padding: 4px 14px; border-radius: 99px; background: var(--mint-soft); color: var(--mint); font-weight: 900; font-size: 12.5px; letter-spacing: .2em; margin-bottom: 14px; }
.eyebrow--light { background: rgba(255, 255, 255, .18); color: #fff; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.2; color: var(--navy); }
.section--mint h2, .section--navy h2 { color: #fff; }
.lead { margin-top: 16px; font-size: 17px; }
.note { margin-top: 14px; font-size: 13px; color: var(--sub); }

/* 진료 과목 */
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.care { padding: 30px 28px; border-radius: 26px; background: #fff; border: 2px solid var(--line); transition: border-color .3s, transform .4s var(--pop), box-shadow .3s; }
.care:hover { border-color: var(--mint); transform: translateY(-6px); box-shadow: 0 16px 30px -18px rgba(33, 168, 148, .6); }
.care__icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--mint-soft); font-size: 30px; margin-bottom: 14px; transition: transform .5s var(--pop); }
.care:hover .care__icon { transform: rotate(-12deg) scale(1.15); }
.care h3 { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--navy); margin-bottom: 4px; }
.care p { color: var(--sub); font-size: 15.5px; }
.cat-note { margin-top: 26px; padding: 22px 26px; border-radius: 22px; background: #FFF1E6; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.cat-note b { font-family: var(--display); font-weight: 400; font-size: 22px; color: #C4581A; }
html[data-pet="dog"] .cat-note { background: var(--mint-soft); }
html[data-pet="dog"] .cat-note b { color: var(--mint); }

/* 첫 방문 */
.first__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.meter { margin-top: 30px; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--sun); transition: width .6s var(--pop); }
.meter__label { margin-top: 10px; font-family: var(--display); font-size: 22px; color: #fff; }
.checklist { display: grid; gap: 12px; }
.checklist label { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 20px; background: #fff; color: var(--text); cursor: pointer; transition: transform .3s var(--pop), background .3s; }
.checklist label:hover { transform: translateX(6px); }
.checklist input { position: absolute; opacity: 0; }
.checklist .box { flex: none; position: relative; width: 30px; height: 30px; border-radius: 10px; border: 2.5px solid var(--mint); transition: background .3s; }
.checklist .box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 8px; height: 15px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg) scale(0); transition: transform .4s var(--pop); }
.checklist input:checked + .box { background: var(--mint); }
.checklist input:checked + .box::after { transform: rotate(45deg) scale(1); }
.checklist input:checked ~ span b { text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.checklist input:focus-visible + .box { outline: 3px solid var(--orange); outline-offset: 3px; }
.checklist b { display: block; color: var(--navy); }
.checklist small { color: var(--sub); font-size: 13.5px; }

/* 의료진 */
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 50px; }
.doc { text-align: center; }
.doc__art { width: 220px; margin: 0 auto 18px; transition: transform .5s var(--pop); }
.doc:hover .doc__art { transform: rotate(-4deg) scale(1.04); }
.doc__role { font-weight: 800; color: var(--mint); }
.doc h3 { margin: 4px 0 8px; font-size: 20px; }
.doc p:last-child { font-size: 14.5px; color: var(--sub); }

/* 진료 시간 */
.hours__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.hours__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.table th, .table td { padding: 14px 20px; background: #fff; text-align: left; }
.table th { width: 120px; border-radius: 16px 0 0 16px; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--navy); }
.table td { border-radius: 0 16px 16px 0; }
.table tr.is-today th, .table tr.is-today td { background: var(--mint); color: #fff; }
.table tr.is-today .ph { border-color: #fff; color: #fff; }
.table tr.is-today th::after { content: "오늘"; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--sun); color: var(--navy); font-family: var(--sans); font-size: 12px; font-weight: 800; vertical-align: 3px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { border-radius: 20px; background: var(--cream); padding: 0 24px; }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; gap: 14px; padding: 20px 0; font-weight: 800; font-size: 17px; color: var(--navy); cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "🐾"; font-size: 18px; transition: transform .5s var(--pop); }
.faq-list details[open] summary::after { transform: rotate(-30deg) scale(1.2); }
.faq-list p { padding-bottom: 20px; color: var(--sub); }

/* 오시는 길 */
.loc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.loc__info { margin-top: 26px; }
.loc__info > div { display: grid; grid-template-columns: 80px 1fr; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.loc__info dt { font-weight: 800; color: #fff; }
.location .ph { border-color: rgba(255, 194, 61, .7); color: var(--sun); }
.map { position: relative; }
.map span { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: #9DB0C2; }
.has-motion .map__pin { animation: bounce 1.6s var(--pop) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px); } }

.site-footer { position: relative; z-index: 2; padding: 30px 0; background: #1A2938; color: #8C9DAE; font-size: 13px; }
.site-footer b { color: #fff; }
.site-footer .ph { border-color: rgba(255, 194, 61, .5); color: var(--sun); }
.credit a { display: inline-flex; align-items: center; gap: 6px; color: #fff; vertical-align: middle; }
.credit img { filter: brightness(0) invert(1); }

@media (max-width: 1023.98px) {
  .nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 16px; background: var(--mint-soft); font-size: 22px; cursor: pointer; transition: transform .4s var(--pop); }
  .nav-toggle[aria-expanded="true"] { transform: rotate(-30deg); background: var(--sun); }
  .site-nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0; z-index: 45; flex-direction: column; align-items: stretch; justify-content: center; gap: 24px; padding: 30px 24px; background: #fff; transform: scale(.9); opacity: 0; visibility: hidden; transition: transform .5s var(--pop), opacity .3s, visibility .5s; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; }
  .site-nav ul a { font-family: var(--display); font-weight: 400; font-size: 32px; }
  .site-nav__cta { align-self: center; padding: 16px 40px; }
  .hero__grid, .first__grid, .hours__grid, .loc__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__art { margin: 0 auto; max-width: 380px; }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .paws { display: none; }
}
@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  .container, .container--narrow { width: calc(100% - 40px); }
  .sample-banner__inner { align-items: flex-start; font-size: 12px; }
  .alert-bar { font-size: 12.5px; }
  .logo small { display: none; }
  .hero { padding: 40px 0 70px; }
  .hero__actions .btn, .hours__actions .btn { flex: 1 1 100%; }
  .section { padding: 84px 0; }
  .care-grid { grid-template-columns: 1fr; }
  .doc-list { grid-template-columns: 1fr; gap: 40px; }
  .table th { width: 96px; font-size: 18px; padding: 12px 14px; }
  .table td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .paw { opacity: .28; transform: rotate(var(--r)); }
}
