/* AILO Medical M09 — 해피펫 동물병원(24시)
   원형: A 풀블리드 슬라이드형(진료실·반려동물 실사 3장) + 투명→흰 헤더 위 24시 응급 띠, 진료 동물 탭
   타이포: Pretendard + DM Sans(eyebrow·숫자만) / 컬러: 딥그린 #2f5d50 1색 + 무채색, 오렌지 #c8561f 는 응급 강조에만 */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #1a2421;
  --ailo-muted: #4e5a56;
  --ailo-line: #e1e7e4;
  --ailo-accent: #2f5d50;
  --ailo-header-h: 118px;

  --m09-green: #2f5d50;
  --m09-green-d: #23473d;
  --m09-tint: #eef3f0;
  --m09-er: #c8561f;
  --m09-er-d: #a9451a;
  --m09-dark: #18211e;
  --m09-r: 10px;
  --m09-sec: clamp(72px, 8vw, 128px);
  --m09-en: "DM Sans", "Pretendard Variable", Pretendard, sans-serif;
}

body { font-size: 17px; letter-spacing: -.01em; }
main img { height: auto; }
.sec { padding-block: var(--m09-sec); }
.ailo-eyebrow, .eyebrow { font-family: var(--m09-en); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--m09-green); margin-bottom: 14px; }
.h2 { font-size: clamp(28px, 1.9vw + 18px, 48px); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.h3 { font-size: 23px; font-weight: 800; }
.sec__head { margin-bottom: clamp(32px, 3vw, 52px); }
.sec__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec__desc { margin-top: 12px; font-size: 17px; color: var(--ailo-muted); }

.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: var(--m09-r); font-size: 16px; font-weight: 700;
  background: var(--m09-green); color: #fff; border: 1px solid transparent; transition: background-color .2s, color .2s; white-space: nowrap;
}
.hp-btn:hover, .hp-btn:focus-visible { background: var(--m09-green-d); color: #fff; }
.hp-btn--soft { background: var(--m09-tint); color: var(--m09-green); }
.hp-btn--soft:hover { background: #e0e9e4; color: var(--m09-green-d); }

/* ---------- Header + 응급 띠 ---------- */
.er-strip { background: var(--m09-er); color: #fff; font-size: 14px; position: relative; z-index: 1; }
.er-strip__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.er-strip p { display: flex; align-items: center; gap: 10px; }
.er-strip__sub { opacity: .9; }
.er-strip a { font-family: var(--m09-en); font-weight: 700; font-size: 15px; }
.er-strip a:hover { color: #fff; text-decoration: underline; }
.er-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); animation: m09-blink 1.6s ease-in-out infinite; }
@keyframes m09-blink { 50% { opacity: .35; } }
.hd__in { display: flex; align-items: center; gap: 24px; height: 80px; }
.hd__logo { display: flex; align-items: center; gap: 10px; flex: none; }
.hd__paw { width: 32px; height: 32px; fill: currentColor; }
.hd.is-scrolled .hd__paw, html.nav-open .hd .hd__paw { fill: var(--m09-green); }
.hd__logo > span { display: flex; flex-direction: column; font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.hd__logo small { font-family: var(--m09-en); font-size: 11px; font-weight: 700; letter-spacing: .12em; opacity: .75; }
.hd__nav { display: flex; gap: clamp(16px, 2.2vw, 34px); margin-left: auto; }
.hd__nav a { font-size: 17px; font-weight: 600; padding: 8px 0; position: relative; }
.hd__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .25s var(--ailo-ease); }
.hd__nav a:hover::after { transform: scaleX(1); }
.hd__cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.hd:not(.is-scrolled):not(:has(:focus-visible)) .hd__cta { background: #fff; color: var(--m09-green); }

.mnav { background: #fff; }
.mnav__in { padding: 130px var(--ailo-gutter) 40px; display: grid; gap: 4px; }
.mnav__in > a:not(.hp-btn):not(.mnav__er) { display: block; padding: 15px 0; font-size: 21px; font-weight: 700; border-bottom: 1px solid var(--ailo-line); }
.mnav__in .hp-btn { margin-top: 20px; }
.mnav__er { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin-top: 8px; border-radius: var(--m09-r); background: var(--m09-er); color: #fff; font-weight: 700; }
.mnav__er:hover { color: #fff; background: var(--m09-er-d); }

/* ---------- Hero ---------- */
.hero { --ailo-hero-dim: linear-gradient(90deg, rgba(12, 22, 19, .66) 0%, rgba(12, 22, 19, .4) 60%, rgba(12, 22, 19, .2) 100%); --ailo-hero-btn-radius: 10px; }
.hero .ailo-hero__btn:not(.hero__er) { background: #fff; color: var(--m09-green); }
.hero .ailo-hero__btn:not(.hero__er):hover { background: #e8efeb; }
.hero__er { background: var(--m09-er); color: #fff; }
.hero__er:hover { background: var(--m09-er-d); color: #fff; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 88px); align-items: end; }
.about__txt > p { font-size: 18px; line-height: 1.8; color: #36413d; }
.about__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.about__pills li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--m09-tint); font-size: 15px; font-weight: 600; }
.about__pills i { color: var(--m09-green); }

/* ---------- Animals ---------- */
.animals { background: var(--m09-tint); }
.pets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 24px; }
.pet { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 8px; border: 1px solid transparent; border-radius: var(--m09-r); background: #fff; color: var(--ailo-fg); transition: border-color .2s, background-color .2s; }
.pet__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--m09-tint); color: var(--m09-green); font-size: 22px; }
.pet b { font-size: 16px; }
.pet:hover { border-color: var(--m09-green); }
.pet[aria-selected="true"] { background: var(--m09-green); color: #fff; }
.pet[aria-selected="true"] .pet__ic { background: rgba(255, 255, 255, .16); color: #fff; }
.pp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: #fff; border-radius: var(--m09-r); padding: clamp(20px, 2.4vw, 32px); }
.pp[hidden] { display: none; }
.pp__img img { width: 100%; aspect-ratio: 900 / 660; object-fit: cover; border-radius: 8px; }
.pp__txt h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 800; margin-bottom: 10px; }
.pp__txt > p { font-size: 17px; color: var(--ailo-muted); }
.pp__txt ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 18px 0; }
.pp__txt li { font-size: 16px; padding-left: 24px; position: relative; }
.pp__txt li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 13px; color: var(--m09-green); position: absolute; left: 0; top: 3px; }
.pp__tip { font-size: 15px !important; background: var(--m09-tint); padding: 12px 14px; border-radius: 8px; color: #36413d !important; }
.pp__tip i { color: var(--m09-green); margin-right: 6px; }

/* ---------- Emergency ---------- */
.er { background: var(--m09-dark); color: #fff; }
.er__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.er__badge { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #fff; background: var(--m09-er); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.er__title { font-size: clamp(28px, 1.9vw + 18px, 46px); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.er__head > p:not(.er__badge) { margin-top: 16px; font-size: 17px; color: #c3cbc8; }
.er__call { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 26px; border-radius: var(--m09-r); background: var(--m09-er); color: #fff; }
.er__call:hover { color: #fff; background: var(--m09-er-d); }
.er__call i { font-size: 26px; }
.er__call span { display: grid; font-family: var(--m09-en); font-size: 28px; font-weight: 700; line-height: 1.15; }
.er__call small { font-family: var(--ailo-font); font-size: 14px; font-weight: 600; opacity: .9; }
.er__list { background: #222c29; border-radius: var(--m09-r); padding: clamp(24px, 3vw, 40px); }
.er__list h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.er__list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 16px; color: #dfe5e2; }
.er__list i { width: 20px; color: #e8946a; padding-top: 4px; }

/* ---------- Clinic ---------- */
.clinic__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--ailo-fg); }
.clinic__list li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; padding: 24px 4px; border-bottom: 1px solid var(--ailo-line); }
.clinic__list .n { font-family: var(--m09-en); font-size: 15px; font-weight: 700; color: var(--m09-green); }
.clinic__list h3 { font-size: 20px; font-weight: 700; }
.clinic__list p { font-size: 16px; color: var(--ailo-muted); }
.clinic__list li > i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--m09-tint); color: var(--m09-green); font-size: 18px; }

/* ---------- Stats ---------- */
.stats { padding-block: clamp(56px, 6vw, 88px); background: var(--m09-green); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.sn { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .22); }
.sn:first-child { padding-left: 0; border: 0; }
.sn b { font-family: var(--m09-en); font-size: clamp(38px, 3.6vw, 56px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sn small { font-family: var(--ailo-font); font-size: 18px; margin-left: 4px; }
.sn p { margin-top: 6px; font-size: 16px; opacity: .88; }

/* ---------- Vets ---------- */
.vet__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.vet__img { border-radius: var(--m09-r); overflow: hidden; background: var(--m09-tint); margin-bottom: 16px; }
.vet__img img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.vet > span { font-size: 15px; font-weight: 700; color: var(--m09-green); }
.vet h3 { font-size: 22px; font-weight: 800; margin: 2px 0 4px; }
.vet p { font-size: 16px; color: var(--ailo-muted); }

/* ---------- Hours + Notice ---------- */
.hours { background: var(--m09-tint); }
.hours__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.hours__grid > * { min-width: 0; }
.hours__card { background: #fff; border-radius: var(--m09-r); padding: clamp(26px, 3vw, 44px); display: grid; grid-template-columns: 180px 1fr; gap: 8px 32px; align-items: center; }
.hours__card .eyebrow, .hours__card .h2 { grid-column: 1 / -1; }
.hours__card .h2 { margin-bottom: 16px; }
.clock { position: relative; }
.clock svg { width: 100%; height: auto; }
.clock__l { position: absolute; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.3; }
.clock__l.l1 { right: -2px; top: 6px; color: var(--m09-green); }
.clock__l.l2 { left: -2px; bottom: 6px; color: var(--ailo-fg); }
.hl { margin: 0; }
.hl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ailo-line); }
.hl dt { font-size: 16px; font-weight: 700; }
.hl dt i { width: 20px; color: var(--m09-green); }
.hl dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.hl small { display: block; font-size: 14px; color: var(--ailo-muted); }
.hours__card .hp-btn { grid-column: 1 / -1; justify-self: start; margin-top: 20px; }
.hours__side { display: grid; gap: 20px; }
.news { background: #fff; border-radius: var(--m09-r); padding: clamp(24px, 3vw, 36px); }
.news__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.news__head a { font-size: 15px; font-weight: 600; color: var(--ailo-muted); }
.news li a { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ailo-line); }
.news li:last-child a { border: 0; }
.news time { display: grid; justify-items: center; font-family: var(--m09-en); font-size: 13px; font-weight: 700; color: var(--ailo-muted); line-height: 1.1; padding: 8px 0; border-radius: 8px; background: var(--m09-tint); }
.news time b { font-size: 22px; color: var(--m09-green); }
.news li span { font-size: 16px; font-weight: 500; }
.news li a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.voice { background: var(--m09-green); color: #fff; border-radius: var(--m09-r); padding: 28px 30px; display: grid; gap: 10px; }
.voice p { font-size: 18px; line-height: 1.6; }
.voice cite { font-style: normal; font-size: 15px; opacity: .85; }
.voice small { font-size: 13px; opacity: .75; }

/* ---------- Partners ---------- */
.partners { padding: 40px 0; border-bottom: 1px solid var(--ailo-line); }
.partners__label { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.partners .ailo-wordmark { font-size: 18px; }

/* ---------- Reserve ---------- */
.reserve__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.reserve__info > p:not(.eyebrow) { margin-top: 16px; font-size: 17px; color: var(--ailo-muted); }
.reserve__img { margin-top: 28px; }
.reserve__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--m09-r); }
.rf { background: var(--m09-tint); border-radius: var(--m09-r); padding: clamp(26px, 3vw, 44px); display: grid; gap: 16px; }
.rf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 15px; font-weight: 600; }
.fld small { font-weight: 400; color: var(--ailo-muted); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cdd7d2; border-radius: 8px; font-size: 16px; color: var(--ailo-fg); background: #fff; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--m09-green); box-shadow: 0 0 0 3px rgba(47, 93, 80, .15); }
.agree { display: flex; gap: 10px; font-size: 14px; color: var(--ailo-muted); }
.agree input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--m09-green); }
.agree a { color: var(--ailo-fg); text-decoration: underline; }
.rf__submit { width: 100%; min-height: 56px; }

/* ---------- Location ---------- */
.loc { background: var(--m09-tint); }
.loc__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc__info dl { margin: 24px 0 0; border-top: 1px solid var(--ailo-fg); }
.loc__info dl > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ailo-line); }
.loc__info dt { font-size: 16px; font-weight: 700; color: var(--m09-green); }
.loc__info dd { margin: 0; font-size: 16px; }
.loc__map { border-radius: var(--m09-r); overflow: hidden; aspect-ratio: 10 / 7; }
.loc__map svg { width: 100%; height: 100%; }

/* ---------- 응급 전화 버튼(고정) ---------- */
.er-fab { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--m09-er); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); }
.er-fab:hover { color: #fff; background: var(--m09-er-d); }

/* ---------- Footer ---------- */
.ft { background: #141b19; color: #aeb7b3; padding: 56px 0 40px; font-size: 14px; }
.ft__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ft .hd__logo { color: #fff; }
.ft .hd__paw { fill: #fff; }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.ft__links a:hover, .ft__links strong { color: #fff; }
.ft__info { font-style: normal; line-height: 1.9; }
.ft__copy { margin-top: 14px; font-size: 13px; color: #85908b; }

/* ---------- 반응형 ---------- */
@media (max-width: 1199.98px) {
  .hd__cta { display: none; }
  .hd__nav a { font-size: 16px; }
  .vet__grid { grid-template-columns: repeat(2, 1fr); }
  .hours__card { grid-template-columns: 1fr; }
  .clock { width: 180px; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 106px; }
  .hd__nav { display: none; }
  .hd__in { height: 68px; justify-content: space-between; }
  .er-strip__sub { display: none; }
  .about__grid, .er__grid, .pp, .hours__grid, .reserve__grid, .loc__grid { grid-template-columns: 1fr; }
  .pets { grid-template-columns: repeat(5, minmax(104px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .clinic__list { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .sn:nth-child(3) { padding-left: 0; border: 0; }
  .er-fab { left: 0; right: 0; bottom: 0; justify-content: center; border-radius: 0; min-height: 60px; padding-bottom: env(safe-area-inset-bottom); }
  body { padding-bottom: 60px; }
}
@media (max-width: 575.98px) {
  .er-strip p b { font-size: 14px; }
  .vet__grid, .rf__row, .pp__txt ul { grid-template-columns: 1fr; }
  .vet__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .vet h3 { font-size: 19px; }
  .hl > div { grid-template-columns: 1fr; gap: 2px; }
  .clinic__list li { grid-template-columns: 36px 1fr; }
  .clinic__list li > i { display: none; }
  .er__call span { font-size: 24px; }
  .loc__info dl > div { grid-template-columns: 1fr; gap: 2px; }
}
