/* =========================================================
   코발트캣 홈페이지 스타일
   색상/크기는 아래 :root 값만 바꾸면 전체에 반영됩니다.
   ========================================================= */
:root {
  --blue: #00469c;      /* 코발트 블루 */
  --navy: #000f21;      /* 네이비 */
  --white: #ffffff;
  --content-max: 1200px;              /* PC에서 글씨 영역 최대 폭 (배경은 항상 화면 가득) */
  --products-max: 560px;              /* PC에서 상품 사진 열 최대 폭 */
  --edge: clamp(16px, 3vw, 40px);     /* 로고/메뉴 버튼과 화면 모서리 사이 여백 */
  --gutter: clamp(24px, 4vw, 48px);   /* 본문 좌우 여백 */
  --font: "Inter", "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font: inherit; }

/* 배경은 화면 전체, 글씨만 가운데 정렬된 영역 안에 */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.site--blue { background: var(--blue); }
.site > main { flex: 1 0 auto; }

/* ---------- 상단바 (로고: 화면 좌상단 / 메뉴: 화면 우상단) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  height: 72px;
  padding: 14px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  transition: box-shadow .25s ease;
}
.topbar--blue { background: var(--blue); }
.topbar.is-scrolled { box-shadow: 0 2px 12px rgba(0, 15, 33, 0.15); }
.topbar__logo {
  width: 79px;
  height: 44px;
  display: block;
  overflow: hidden;
}
.topbar__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.topbar__logo .media-missing { min-height: 0; height: 100%; padding: 2px; font-size: 8px; }

.menu-btn {
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform .3s ease, opacity .2s ease;
}
.topbar--blue .menu-btn span { background: var(--white); }
/* 메뉴 열림 상태: X 모양 */
.menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 전체화면 메뉴 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--blue);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.menu__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.menu .topbar { position: relative; box-shadow: none; }
.menu__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding-bottom: 72px;
}
.menu__list a {
  font-size: 26px;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: 0.01em;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease, color .2s ease;
}
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu.is-open .menu__list a:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu__list a:nth-child(3) { transition-delay: .12s; }
/* 기본은 검은색, 마우스를 올리거나 키보드로 선택했을 때만 흰색 */
.menu__list a:hover,
.menu__list a:focus-visible { color: var(--white); }

/* ---------- 메인: 히어로 ---------- */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #d1d1d1;
}
.hero__media, .hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__el { object-fit: cover; }
.hero__media::after { /* 글자 가독성용 하단 그라데이션 */
  content: "";
  position: absolute;
  inset: 50% 0 0 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.25));
  pointer-events: none;
}
.hero__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 85px;
  z-index: 2;
}
.hero__title {
  margin: 0;
  width: 250px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}
.navy-bar { height: 16px; background: var(--navy); }

/* ---------- 메인: 브랜드 소개 ---------- */
.brand {
  background: var(--blue);
  color: var(--white);
  padding: 40px 0 56px;
}
.brand .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.brand__name { margin: 0; font-size: 28px; font-weight: 700; }
.brand__ko { max-width: 600px; font-size: 14px; font-weight: 300; line-height: 1.4; }
.brand__en { max-width: 600px; font-size: 13px; font-weight: 300; line-height: 1.25; }
.brand__deco { width: 120px; height: 6px; margin: 12px auto 0; background: var(--navy); }

/* ---------- 메인: 카테고리 ---------- */
.category {
  background: var(--white);
  padding: 67px 0 90px;
}
.category .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.category__logo { width: 251px; height: 142px; margin-bottom: 25px; }
.category__logo img { width: 100%; height: 100%; object-fit: contain; }
.category__ko { font-size: 12px; font-weight: 500; margin-bottom: 14px; }
.category__en { font-size: 11px; font-weight: 500; }

/* ---------- 서브 페이지 제목 ---------- */
.page-title {
  padding: 32px 16px;
  text-align: center;
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  background: var(--blue);
  margin: 0;
}

/* ---------- PRODUCT ---------- */
.products-wrap {
  background: var(--white);
  padding: 0 16px 32px;
}
.products {
  max-width: var(--products-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.product { display: block; width: 100%; }
.product--small { width: 64%; }
.product__media img,
.product__media video { width: 100%; height: auto; }
a.product { transition: transform .25s ease, opacity .25s ease; }
a.product:hover { transform: translateY(-3px); }
a.product:active { opacity: .7; }
.product__caption { margin-top: 10px; font-size: 13px; text-align: center; }

/* ---------- CONTACT ---------- */
/* 상단바와 푸터 사이 남는 공간을 채우고, 안내 정보를 그 정중앙에 배치 */
.contact-main {
  display: flex;
  flex-direction: column;
}
.contact {
  flex: 1 0 auto;
  background: var(--blue);
  color: var(--white);
  min-height: 320px;
  padding: 24px 16px 72px;   /* 아래 여백을 조금 더 줘서 눈으로 볼 때 가운데로 보이게 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact__link {
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  line-height: 1.25;
}
.contact__link:hover .contact__url,
.contact__link:focus-visible .contact__url { text-decoration: underline; }
.contact__url { display: block; word-break: break-all; }

.contact__phone {
  display: block;
  margin-top: 2em;       /* 엔터 두 번 정도의 간격 */
  color: inherit;
  font-size: 15px;       /* 스토어 링크와 같은 크기 */
  font-weight: 300;      /* 스토어 링크와 같은 굵기 */
}
.contact__phone:hover { text-decoration: underline; }

/* QR코드 자리 (크기는 --qr-size 만 바꾸면 됨) */
.contact__qr {
  --qr-size: clamp(140px, 14vw, 180px);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact__qr-img {
  display: block;
  width: var(--qr-size);
  height: var(--qr-size);
}
.contact__qr-img img { width: 100%; height: 100%; object-fit: contain; }
.contact__qr-label { font-size: 12px; font-weight: 300; opacity: .85; }
a.contact__qr:hover .contact__qr-label { text-decoration: underline; }
/* QR 파일이 없을 때: 파란 배경에 어울리는 점선 자리 표시 */
.contact__qr .media-missing {
  min-height: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .06);
  border: 1px dashed rgba(255, 255, 255, .5);
}
.contact__qr .media-missing strong { color: var(--white); }

/* ---------- 푸터 ---------- */
.footer {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: 32px 24px 40px;
  min-height: 183px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer__info { font-size: 10px; font-weight: 300; line-height: 1.5; }
.footer__store { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer__icon { width: 41px; height: 41px; display: block; }
.footer__icon img { width: 100%; height: 100%; object-fit: cover; }
.footer__icon .media-missing { min-height: 0; height: 100%; padding: 0; font-size: 0; }
.footer__label { font-size: 8px; font-weight: 300; }
.footer__store:hover .footer__label { text-decoration: underline; }

/* ---------- 파일 없을 때 자리 표시 ---------- */
.media-missing {
  width: 100%;
  height: 100%;
  min-height: 110px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-size: 12px;
  color: #6b7480;
  background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #e9ebef 10px, #e9ebef 20px);
  border: 1px dashed #b8bec7;
  word-break: break-all;
}
.media-missing strong { color: #3d4652; font-weight: 600; }

/* ---------- 스크롤 등장 효과 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* 키보드 이동 시 포커스 표시 */
:focus-visible { outline: 2px solid #7fb2ff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* QR 두 개를 가로로 나란히 (화면이 좁으면 자동으로 아래로) */
.contact__qrs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 13px;
}

/* CONTACT 페이지: 제목 아래 남은 공간의 정중앙에 내용 배치 */
body[data-page="contact"] main {
  display: flex;
  flex-direction: column;
}
body[data-page="contact"] .contact {
  flex: 1;                   /* 푸터 전까지 남은 높이를 전부 차지 */
  justify-content: center;   /* 그 안에서 위아래 가운데 */
  padding: 0 16px 80px;      /* 위 여백 0, 아래 여백 80px → 내용이 위로 올라감 */
}
