/* ==========================================================
   MARU PETS — fablepets.com 스타일 클론 템플릿
   색상/폰트 토큰만 바꾸면 전체 분위기를 바꿀 수 있습니다.
   ========================================================== */

:root {
  /* ANIMAL DEFENDER 공식 로고 색상 (초록 배경 + 주황 A/D + 화이트) */
  --ink: #14291A;            /* 아주 진한 그린 (본문/제목) */
  --bg: #FEFDFB;             /* 거의 흰색 배경 */
  --cream: #F3F1E8;          /* 히어로/카드 아이보리 */
  --peri: #2E6B33;           /* 브랜드 그린 (주 버튼) */
  --peri-soft: #E3EDDB;      /* 연한 그린 (공지바/푸터 스트립) */
  --peri-deep: #245628;      /* 그린 호버 */
  --lime: #F5A623;           /* 브랜드 오렌지 (배지/강조 CTA) */
  --sage: #E6F0DD;           /* 연한 잎사귀 그린 섹션 배경 */
  --forest: #1E4620;         /* 로고의 딥 그린 (인용 카드/후원 섹션) */
  --star: #F09A1F;           /* 별점 주황 */
  --line: #E1E4D8;

  --font-serif: 'Fraunces', 'Noto Serif KR', serif;
  --font-sans: 'Pretendard', -apple-system, 'Noto Sans KR', sans-serif;

  --radius: 4px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all; /* 한국어: 단어 단위 줄바꿈 */
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  padding: 14px 34px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: background .2s, transform .15s;
  text-align: center;
}
.btn-primary { background: var(--peri); color: #FFFFFF; }
.btn-primary:hover { background: var(--peri-deep); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { filter: brightness(.94); }
.btn:active { transform: scale(.98); }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 공지 바 ---------- */
.announce-bar {
  background: var(--peri-soft);
  text-align: center;
  padding: 9px 16px;
  font-size: 13.5px;
  letter-spacing: .02em;
}
.announce-bar a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(48, 48, 52, .55);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: background .3s, color .3s;
}
.site-header.is-solid {
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
  font-size: 15px;
}
.nav-right { justify-content: flex-end; }
.nav a:hover { opacity: .75; }

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .18em;
  padding-left: .18em; /* letter-spacing 시각 보정 */
  white-space: nowrap;
}

.nav-icons { display: flex; gap: 14px; align-items: center; }
.icon-btn {
  background: none;
  border: none;
  color: inherit;
  width: 26px;
  height: 26px;
  position: relative;
}
.icon-btn svg { width: 100%; height: 100%; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  background: #FFFFFF; /* 영상의 흰 배경과 자연스럽게 이어지도록 */
  overflow: hidden;
  margin-top: -58px; /* 반투명 헤더가 히어로 위에 겹치도록 */
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 170px 24px 120px;
}
.hero-copy { max-width: 620px; position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  margin-bottom: 34px;
}
.hero .btn { min-width: 220px; }
/* ---------- 히어로 영상 (Higgsfield 생성) ----------
   원본 사이트처럼 흰 스튜디오 배경 영상이 히어로 전체를 채우고
   텍스트가 그 위에 얹힌다. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center; /* 강아지가 오른쪽에 보이도록 */
  filter: brightness(1.16); /* 회색 스튜디오 배경을 밝게 */
}
/* 텍스트 영역(왼쪽)과 가장자리를 흰색으로 페이드해
   영상이 아이보리 페이지에 자연스럽게 녹아들게 함 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 26%, rgba(255,255,255,0) 58%),
    linear-gradient(to top, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 22%),
    linear-gradient(to bottom, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 18%);
}

/* ---------- 제품 카드 ---------- */
.products { padding: 90px 0 40px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.product-card { position: relative; text-align: center; }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 3px;
}
.badge-lime { background: var(--lime); }
.product-media {
  display: block;
  background: var(--card-bg, var(--cream));
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
}
.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}
.product-tagline { font-size: 14.5px; margin: 2px 0 8px; opacity: .85; }

.rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.stars {
  position: relative;
  font-size: 15px;
  letter-spacing: 2px;
  color: #D8D5CD;
}
.stars::before {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  width: var(--rate, 100%);
  overflow: hidden;
  color: var(--star);
}
.review-count {
  font-size: 13.5px;
  color: #2F7036;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.card-stat {
  font-size: 13.5px;
  color: #2F7036;
  margin-bottom: 16px;
}
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.product-actions .btn { width: 100%; max-width: 300px; }

/* ---------- 프로모 타일 ---------- */
.promo-tiles { padding: 40px 0 70px; }
.tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.tile {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.tile img {
  width: 100%;
  aspect-ratio: 8 / 6.2;
  object-fit: cover;
  transition: transform .5s ease;
}
.tile:hover img { transform: scale(1.03); }
.tile-copy {
  position: absolute;
  inset: auto 0 34px 0;
  text-align: center;
}
.tile-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  margin-bottom: 6px;
}
.tile-link {
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tile-copy-light { color: #fff; }
.tile-copy-dark { color: var(--ink); }

/* ---------- 언론 인용 ---------- */
.press {
  background: var(--sage);
  padding: 54px 0 44px;
  overflow: hidden;
}
.marquee { overflow: hidden; margin-bottom: 36px; }
.marquee-track {
  display: flex;
  gap: 70px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.4vw, 26px);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}
.stat { text-align: center; flex: 1; min-width: 130px; }
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
}
.stat span { font-size: 13.5px; opacity: .8; }

/* ---------- 브랜드 문장 ---------- */
.statement {
  position: relative;
  padding: 130px 24px;
  text-align: center;
}
.statement-text {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 500;
  line-height: 1.55;
}
.walk {
  position: absolute;
  bottom: 84px;
  width: clamp(120px, 16vw, 230px);
  opacity: .9;
}
.walk-left { left: 3%; }
.walk-right { right: 3%; }

/* ---------- 추천 제품 ---------- */
.featured { position: relative; }
.featured-bg {
  width: 100%;
  height: clamp(420px, 62vh, 640px);
  object-fit: cover;
}
.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 56px);
  background: linear-gradient(to top, rgba(3, 14, 40, .58), rgba(3, 14, 40, 0) 62%);
}
.pill {
  align-self: flex-start;
  border: 1.5px solid #fff;
  color: #fff;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13.5px;
  font-weight: 600;
}
.featured-copy { color: #fff; max-width: 560px; }
.featured-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 22px;
}

/* ---------- 후기 캐러셀 ---------- */
.reviews {
  background: var(--sage);
  padding: 90px 0 100px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 500;
  text-align: center;
  margin-bottom: 50px;
}
.review-slider { position: relative; }
.review-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}
.review-slide.is-active { display: grid; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.review-photo {
  background: var(--photo-bg, #EFE9DD);
  border-radius: 6px 0 0 6px;
  overflow: hidden;
}
.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-quote {
  background: var(--forest);
  color: #fff;
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 4vw, 60px);
}
.quote-stars {
  color: var(--lime);
  letter-spacing: 4px;
  margin-bottom: 22px;
  font-size: 15px;
}
.review-quote p {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.5vw, 27px);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 26px;
}
.review-quote cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 13.5px;
  font-weight: 700;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  box-shadow: 0 3px 14px rgba(3, 14, 40, .18);
  transition: transform .2s;
  z-index: 2;
}
.slider-arrow:hover { transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { left: -14px; }
.slider-arrow.next { right: -14px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}
.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(3, 14, 40, .25);
  padding: 0;
}
.slider-dots button.is-on { background: var(--ink); }

/* ---------- 갤러리 ---------- */
.gallery { padding: 100px 0; }
.gallery .section-title { margin-bottom: 10px; }
.gallery-sub { text-align: center; margin-bottom: 48px; font-size: 15px; }
.gallery-sub a { color: #2F7036; text-decoration: underline; text-underline-offset: 2px; }

.gallery-grid {
  columns: 3;
  column-gap: 20px;
}
.gallery-item {
  position: relative;
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
  break-inside: avoid;
}
.gallery-item img { width: 100%; }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  font-size: 12.5px;
  color: #fff;
  background: linear-gradient(to top, rgba(3, 14, 40, .65), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover figcaption { opacity: 1; }
/* 터치 기기(모바일/태블릿)에서는 호버가 없으므로 설명을 항상 표시 */
@media (hover: none) {
  .gallery-item figcaption { opacity: 1; }
}

.quote-tile {
  background: var(--lime);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-height: 240px;
}
.quote-tile p {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
}
.quote-tile span { font-size: 13px; font-weight: 700; }

.gallery-cta { text-align: center; margin-top: 44px; }
.gallery-cta .btn { min-width: 260px; }

/* ---------- 소식 페이지 (news.html) ---------- */
.news-hero {
  background: var(--cream);
  text-align: center;
  padding: 70px 24px 50px;
}
.news-hero .section-title { margin-bottom: 8px; }
.news-hero-sub { font-size: 15px; opacity: .8; }
.news-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 24px 90px;
}
.news-item {
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
}
.news-item time {
  font-size: 13.5px;
  font-weight: 700;
  color: #2F7036;
  display: block;
  margin-bottom: 8px;
}
.news-item h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
}
.news-item p {
  font-size: 15.5px;
  line-height: 1.8;
  white-space: pre-line; /* 관리자가 입력한 줄바꿈 유지 */
}
.news-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.news-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.news-empty { text-align: center; padding: 60px 0; opacity: .65; }
.updates-cta { text-align: center; margin-top: 30px; }
.update-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  justify-self: end;
}
@media (max-width: 640px) {
  .news-photos { grid-template-columns: repeat(2, 1fr); }
  .update-thumb { display: none; }
}

/* ---------- 언어 전환 ---------- */
.lang-switch {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-left: 4px;
}
.lang-dd { position: relative; }
.lang-dd-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 6px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.lang-dd-btn:hover { opacity: .8; }
.lang-dd-arrow { font-size: 9px; opacity: .8; }
.lang-dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 300;
  width: 312px;
  max-height: 350px;
  overflow-y: auto;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(20, 41, 26, .2);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  animation: langPop .16s ease;
}
.lang-dd-panel[hidden] { display: none; }
@keyframes langPop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.lang-item {
  display: flex;
  align-items: center;
  border: none;
  background: none;
  text-align: left;
  padding: 9px 13px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}
.lang-item:hover { background: var(--peri-soft); }
.lang-item.is-active { background: var(--peri); color: #fff; }
.lang-item.is-active::after { content: "✓"; margin-left: auto; font-size: 12px; padding-left: 8px; }
.mobile-menu .lang-dd-panel { right: auto; left: 0; }
@media (max-width: 400px) {
  .lang-dd-panel { width: 270px; }
}
.lang-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  opacity: .55;
  padding: 2px 1px;
}
.lang-btn:hover { opacity: .85; }
.lang-btn.is-on {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mobile-menu .lang-row {
  display: flex;
  gap: 18px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.mobile-menu .lang-btn { font-size: 14px; }

/* ---------- 활동 소식 ---------- */
.updates { padding: 80px 0 40px; }
.updates .section-title { margin-bottom: 10px; }
.updates-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.update-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
}
.update-item time {
  font-size: 14px;
  font-weight: 700;
  color: #2F7036;
  padding-top: 4px;
}
.update-body h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 6px;
}
.update-body p { font-size: 14.5px; margin-bottom: 8px; }

/* ---------- 연혁 타임라인 ---------- */
.timeline { background: var(--cream); padding: 90px 0 100px; }
.timeline-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 46px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--ink);
  opacity: .16;
}
.timeline-list li { position: relative; padding-bottom: 40px; }
.timeline-list li:last-child { padding-bottom: 0; }
.timeline-list li::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 10px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid var(--ink);
  box-sizing: border-box;
}
.tl-year {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.timeline-list h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.timeline-list p { font-size: 14.5px; opacity: .9; max-width: 560px; }

/* ---------- 후원 모집 ---------- */
.support {
  background: var(--forest);
  color: #fff;
  padding: 90px 0 100px;
}
.support .section-title { margin-bottom: 12px; }
.support-sub {
  text-align: center;
  font-size: 15px;
  opacity: .92;
  max-width: 580px;
  margin: 0 auto 48px;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.support-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-card h3 {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
}
.support-card p { font-size: 14.5px; opacity: .92; flex: 1; line-height: 1.7; }
.support-card .btn { align-self: flex-start; }

/* ---------- 푸터 ---------- */
.footer-strip {
  background: var(--peri-soft);
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.site-footer { border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 1.6fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
.footer-col h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  opacity: .85;
}
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-news p { font-size: 14px; margin-bottom: 16px; }
.news-form { display: flex; gap: 0; }
.news-form input {
  flex: 1;
  border: 1px solid var(--peri);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
}
.news-form .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 22px;
  white-space: nowrap;
}
.news-done { display: none; font-weight: 700; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 34px;
}
.socials { display: flex; gap: 14px; }
.socials a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
}
.socials svg { width: 19px; height: 19px; }
.fine-print {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12.5px;
  opacity: .75;
}
.fine-print a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 뉴스레터 팝업 ---------- */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 14, 40, .45);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.popup-backdrop[hidden] { display: none; }
.popup {
  background: var(--bg);
  width: min(430px, 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(3, 14, 40, .35);
  animation: popIn .35s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.popup-header {
  position: relative;
  background: var(--peri);
  text-align: center;
  padding: 16px;
}
.popup-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .18em;
  padding-left: .18em;
  color: #FFFFFF;
}
.popup-close {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  font-size: 13px;
}
.popup-body { padding: 30px 30px 34px; text-align: center; }
.popup-body h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 10px;
}
.popup-body > p { font-size: 14px; margin-bottom: 6px; }
.popup-art { width: 200px; margin: 6px auto 14px; }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-form input {
  border: 1px solid var(--peri);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  background: var(--peri-soft);
}

/* ---------- 플로팅 할인 버튼 ---------- */
.float-offer {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 150;
  background: var(--peri);
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(20, 41, 26, .25);
}
.float-offer:hover { background: var(--peri-deep); }

/* ---------- 스크롤 리빌 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .walk { display: none; }
  .nav { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: start; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    justify-self: end;
  }
  .menu-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
    color: inherit;
  }
  .site-header { color: #fff; }
  .site-header.is-solid { color: var(--ink); }
  .menu-toggle { color: inherit; }
  .mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a { padding: 10px 0; font-weight: 600; }
}

@media (max-width: 640px) {
  .hero-inner { padding: 140px 24px 230px; }
  .hero-video { object-position: 62% center; }
  /* 모바일: 영상을 자르지 않고 전체 프레임(16:9)으로 보여주고,
     텍스트는 영상 아래 딥그린 박스로 내림 → 강아지 얼굴이 항상 보임 */
  .featured-bg {
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: center;
  }
  .featured-overlay {
    position: static;
    background: var(--forest);
    padding: 24px 20px 30px;
    gap: 16px;
  }
  .product-grid { grid-template-columns: 1fr; }
  .tiles-grid { grid-template-columns: 1fr; }
  .review-slide { grid-template-columns: 1fr; min-height: 0; }
  .review-photo { border-radius: 6px 6px 0 0; }
  .review-photo img { max-height: 300px; }
  .review-quote { border-radius: 0 0 6px 6px; }
  .slider-arrow.prev { left: 6px; }
  .slider-arrow.next { right: 6px; }
  .gallery-grid { columns: 1; }
  .update-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
