@charset "utf-8";
/* ===================================================================
   센트럴 동물병원 (Central Animal Medical Center)
   =================================================================== */

:root {
  --navy:        #16263c;
  --navy-soft:   #23374f;
  --point:       #1f7a6d;   /* 메인 포인트 (딥 그린) */
  --point-dark:  #14584e;
  --naver:       #03c75a;
  --text:        #1f2733;
  --text-sub:    #6b7684;
  --line:        #e5e8eb;
  --gray-bg:     #f7f8f9;
  --white:       #fff;
  --header-h:    84px;
  --radius:      14px;
  --shadow:      0 10px 30px rgba(22, 38, 60, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol, dl { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; height: 44px; padding: 0 22px;
  border-radius: 999px; font-size: 15px; font-weight: 500;
  white-space: nowrap; transition: all .25s ease;
}
.btn--lg { height: 56px; padding: 0 34px; font-size: 16px; font-weight: 700; }

.btn--primary    { background: var(--naver); color: #fff; }
.btn--primary:hover { background: #02b350; transform: translateY(-2px); }

.btn--ghost      { background: var(--gray-bg); color: var(--text); }
.btn--ghost:hover{ background: #eceef0; }

.btn--line       { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn--line:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn--white      { background: #fff; color: var(--navy); }
.btn--white:hover{ transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }

.btn--line-white       { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn--line-white:hover { background: rgba(255,255,255,.12); }

/* ===================================================================
   HEADER
   =================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: height .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled { height: 68px; border-bottom-color: var(--line); box-shadow: 0 2px 20px rgba(0,0,0,.04); }

.header__inner {
  width: min(1240px, 100% - 48px); height: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}

/* 로고 */
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--point), var(--navy));
  color: #fff; font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 20px;
}
.logo__mark--sm { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__text strong { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.logo__text em {
  font-family: 'Montserrat', sans-serif; font-style: normal;
  font-size: 10px; letter-spacing: .12em; color: var(--text-sub);
}

/* GNB */
.gnb { display: flex; align-items: center; gap: 40px; }
.gnb__list { display: flex; align-items: center; gap: 38px; }
.gnb__list a {
  position: relative; font-size: 17px; font-weight: 500; padding: 8px 0;
}
.gnb__list a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--point); transition: width .25s ease;
}
.gnb__list a:hover { color: var(--point); }
.gnb__list a:hover::after { width: 100%; }

.gnb__cta { display: flex; align-items: center; gap: 8px; }

/* 햄버거 */
.hamburger { display: none; width: 44px; height: 44px; position: relative; }
.hamburger span {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s ease;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  color: #fff; overflow: hidden; padding-top: var(--header-h);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,22,36,.74), rgba(11,22,36,.58)),
    url('../img/hero.jpg') center/cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__inner { max-width: 900px; padding: 40px 24px; }
.hero__eyebrow {
  font-family: 'Montserrat', sans-serif; font-size: 13px;
  letter-spacing: .28em; opacity: .85; margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(30px, 5vw, 56px); font-weight: 700;
  line-height: 1.35; letter-spacing: -.02em; margin-bottom: 24px;
}
.hero__desc { font-size: clamp(15px, 1.6vw, 18px); font-weight: 300; opacity: .9; margin-bottom: 44px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif; font-size: 11px; letter-spacing: .2em;
  display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: .8;
}
.hero__scroll span {
  width: 1px; height: 44px; background: rgba(255,255,255,.6);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { transform: scaleY(.3); transform-origin: top; } 50% { transform: scaleY(1); } }

/* ===================================================================
   SECTION 공통
   =================================================================== */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section--gray { background: var(--gray-bg); }

.section__head { text-align: center; margin-bottom: clamp(48px, 6vw, 72px); }
.section__eyebrow {
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .22em; color: var(--point); margin-bottom: 14px;
}
.section__title {
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 16px;
}
.section__lead { color: var(--text-sub); font-size: clamp(15px, 1.5vw, 17px); font-weight: 300; }

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.about__visual { position: relative; }
.about__visual img {
  width: 100%; aspect-ratio: 9/11; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about__body h3 {
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 24px; line-height: 1.45;
}
.about__body p { color: var(--text-sub); font-weight: 300; margin-bottom: 18px; }

.about__stats { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.about__stats li {
  flex: 1 1 140px; padding: 24px 20px;
  background: var(--gray-bg); border-radius: var(--radius); text-align: center;
}
.about__stats strong {
  display: block; font-family: 'Montserrat', sans-serif;
  font-size: 30px; font-weight: 700; color: var(--point); line-height: 1.2;
}
.about__stats span { font-size: 14px; color: var(--text-sub); }

/* ---------- CENTERS ---------- */
.centers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.center-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; transition: all .28s ease;
}
.center-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.center-card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: 16px; background: rgba(31,122,109,.08); font-size: 26px;
}
.center-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.02em; }
.center-card p  { font-size: 14.5px; color: var(--text-sub); font-weight: 300; line-height: 1.6; }

/* ---------- GALLERY ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__grid li { overflow: hidden; border-radius: var(--radius); }
.gallery__grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.gallery__grid li:hover img { transform: scale(1.06); }

/* ---------- BOOKING BANNER ---------- */
.booking {
  padding: clamp(64px, 8vw, 96px) 0; color: #fff;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 55%, var(--point-dark) 100%);
}
.booking__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.booking__eyebrow {
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .22em; opacity: .7; margin-bottom: 14px;
}
.booking h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
.booking__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- LOCATION ---------- */
.location__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4vw, 56px); align-items: start;
}
.location__map-placeholder {
  display: grid; place-content: center; gap: 8px; text-align: center;
  width: 100%; aspect-ratio: 3/2;
  border: 1.5px dashed #cdd3d9; border-radius: var(--radius);
  background: #fff; color: var(--text-sub);
}
.location__map-placeholder span { font-size: 34px; }
.location__map-placeholder p { font-size: 15px; letter-spacing: .02em; }
.location__map-note { margin-top: 12px; font-size: 13px; color: var(--text-sub); }

.location__info { background: #fff; border-radius: var(--radius); padding: 8px 32px; }
.location__info > div {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.location__info > div:last-child { border-bottom: 0; }
.location__info dt { font-weight: 700; font-size: 15px; }
.location__info dd { color: var(--text-sub); font-weight: 300; font-size: 15px; }
.location__info dd span { font-size: 13.5px; opacity: .8; }
.location__info dd a { color: var(--point); font-weight: 500; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 40px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.footer__brand strong { display: block; color: #fff; font-size: 17px; }
.footer__brand em {
  font-family: 'Montserrat', sans-serif; font-style: normal;
  font-size: 10px; letter-spacing: .12em; opacity: .6;
}
.footer__cols {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__cols p { font-size: 14.5px; font-weight: 300; }
.footer__cols a:hover { color: #fff; text-decoration: underline; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; }
.footer__links a:hover { color: #fff; }
.footer__copy {
  margin-top: 28px; font-family: 'Montserrat', sans-serif;
  font-size: 12px; letter-spacing: .04em; opacity: .5;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1200px) {
  .centers__grid { grid-template-columns: repeat(3, 1fr); }
  .gnb { gap: 24px; }
  .gnb__list { gap: 24px; }
}

@media (max-width: 1024px) {
  .about__grid,
  .location__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .hamburger { display: block; }

  .gnb {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line);
    padding: 8px 24px 28px;
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform .35s ease, opacity .25s ease, visibility .25s;
    box-shadow: 0 20px 30px rgba(0,0,0,.08);
  }
  .gnb.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .gnb__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gnb__list li { border-bottom: 1px solid var(--line); }
  .gnb__list a { display: block; padding: 18px 4px; font-size: 17px; }
  .gnb__list a::after { display: none; }

  .gnb__cta { margin-top: 20px; gap: 10px; }
  .gnb__cta .btn { flex: 1; height: 50px; }

  .centers__grid { grid-template-columns: repeat(2, 1fr); }
  .booking__inner { flex-direction: column; align-items: flex-start; }
  .booking__actions .btn { flex: 1; }
  .location__info { padding: 8px 24px; }
  .footer__cols { flex-direction: column; }
}

@media (max-width: 560px) {
  .container, .header__inner { width: calc(100% - 32px); }
  .logo__mark { width: 38px; height: 38px; font-size: 18px; }
  .logo__text strong { font-size: 16px; }
  .centers__grid, .gallery__grid { grid-template-columns: 1fr; }
  .about__stats li { flex: 1 1 100%; }
  .hero__actions .btn { width: 100%; }
  .location__info > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
