/* ==========================================================================
   ISURF — 설악해변의 노란집 서핑샵
   Design system: dreamsea grammar × isurf yellow-house identity
   Display: Archivo Black (EN caps) / Body: Pretendard / Accent: Noto Serif KR
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-dim: #fff9e0;
  --ink: #121212;
  --ink-soft: #3d3d3d;
  --yellow: #ffd900;
  --yellow-deep: #f2c400;
  --line: #e6e3da;

  --font-display: "Archivo Black", "Pretendard Variable", sans-serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Noto Sans KR", sans-serif;
  --font-serif: "Noto Serif KR", serif;

  --w-max: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;           /* 한글 줄바꿈 보호 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

/* ---------- Type scale ---------- */
.display-xl,
.display-lg,
.display-md,
.display-sm {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(3.2rem, 9.5vw, 8.5rem); }
.display-lg { font-size: clamp(2.6rem, 7vw, 6rem); }
.display-md { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
.display-sm { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px; height: 3px;
  background: var(--yellow);
  margin-right: 12px;
  vertical-align: middle;
}

.serif-note {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.9;
}

/* 형광펜 하이라이트 — 시그니처 */
.hl {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 94%, transparent 94%);
  padding: 0 0.06em;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--w-max); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(72px, 11vw, 150px); }
.section-dim { background: var(--paper-dim); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-solid { background: rgba(255,255,255,0.96); box-shadow: 0 1px 0 var(--line); }
.nav-inner {
  width: 100%; max-width: none;
  padding-inline: var(--pad-x);
  display: flex; align-items: center; gap: 28px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo svg { width: 30px; height: 30px; }
.nav-menu {
  display: flex; gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
  font-size: 0.92rem; font-weight: 600;
}
.nav-menu a { padding: 6px 2px; position: relative; white-space: nowrap; }
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 3px; background: var(--yellow); transition: right .25s ease;
}
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { right: 0; }
.nav-cta {
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 0.9rem;
  padding: 12px 22px; border-radius: 2px;
  white-space: nowrap;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--yellow-deep); }
.nav-burger { display: none; }

/* mobile nav */
@media (max-width: 900px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-burger {
    display: block; margin-left: auto;
    width: 44px; height: 44px; position: relative;
  }
  .nav-burger span, .nav-burger::before, .nav-burger::after {
    content: ""; position: absolute; left: 10px; right: 10px;
    height: 2.5px; background: var(--ink); transition: transform .25s, opacity .25s;
  }
  .nav-burger::before { top: 14px; }
  .nav-burger span    { top: 21px; }
  .nav-burger::after  { top: 28px; }
  .nav.menu-open .nav-burger::before { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-burger span { opacity: 0; }
  .nav.menu-open .nav-burger::after { transform: translateY(-7px) rotate(-45deg); }

  .nav-drawer {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line);
    display: grid; gap: 0;
    padding: 8px var(--pad-x) 24px;
    transform: translateY(-110%); transition: transform .3s ease;
  }
  .nav.menu-open + .nav-drawer { transform: translateY(0); }
  .nav-drawer a {
    padding: 13px 4px; font-weight: 700; font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-drawer a:last-child {
    border: 0; margin-top: 14px;
    background: var(--yellow); text-align: center;
    padding: 15px; border-radius: 2px;
  }
}
@media (min-width: 901px) { .nav-drawer { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero video, .hero-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.92;
}
.hero::after {           /* 하단 가독성 그라데이션 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.12) 70%, rgba(0,0,0,.4) 100%);
}
.hero-copy {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: clamp(120px, 22vh, 210px);
  text-align: center; color: #fff;
  padding-inline: var(--pad-x);
}
.hero-copy .display-xl { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-copy .accent { color: var(--yellow); }
.hero-copy .hero-sub {
  margin-top: 18px;
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
/* dreamsea의 destination 박스 → 예약 바 */
.hero-bar {
  position: absolute; z-index: 3;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(26px, 6vh, 56px);
  width: min(680px, calc(100% - 2 * var(--pad-x)));
  background: #fff; color: var(--ink);
  padding: clamp(18px, 3vw, 28px) clamp(20px, 3.4vw, 34px);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  border-top: 6px solid var(--yellow);
}
.hero-bar-label {
  font-family: var(--font-display);
  font-size: 0.92rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero-bar-note { font-size: 0.86rem; color: var(--ink-soft); flex: 1 1 180px; }
.btn-yellow {
  display: inline-block;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 1rem;
  padding: 15px 30px; border-radius: 2px;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease;
}
.btn-yellow:hover { background: var(--yellow-deep); transform: translateY(-2px); }
.btn-ghost {
  display: inline-block;
  border: 2px solid var(--ink);
  font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 2px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* 손그림 낙서 (히어로 상단) */
.doodle {
  position: absolute; z-index: 2;
  pointer-events: none;
  color: var(--yellow);
}
.doodle-sun { top: calc(var(--nav-h) + 4vh); right: 6vw; width: clamp(64px, 9vw, 120px); }

/* ---------- About teaser (겹침 폴라로이드) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.polaroid-stack { position: relative; min-height: 380px; }
.polaroid {
  position: absolute;
  background: #fff;
  padding: 10px 10px 34px;
  box-shadow: 0 14px 40px rgba(18,18,18,.18);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid-a { width: 62%; top: 0; left: 0; transform: rotate(-2.5deg); z-index: 2; }
.polaroid-b { width: 55%; right: 0; bottom: 0; transform: rotate(2deg); }
.polaroid-caption {
  position: absolute; left: 12px; bottom: 8px;
  font-family: var(--font-serif); font-size: 0.82rem; color: var(--ink-soft);
}
/* 스케치 프레임 — 사진 뒤 손그림 보더 */
.sketch-frame::before {
  content: ""; position: absolute; inset: -14px -10px auto auto;
  width: 70%; height: 88%;
  border: 3px solid var(--yellow);
  border-radius: 3px 14px 5px 12px / 12px 4px 14px 6px;
  transform: rotate(1.6deg);
  right: -14px; top: -14px;
  z-index: -1;
}
@media (max-width: 900px) {
  .polaroid-stack { min-height: 0; height: auto; display: grid; gap: 18px; }
  .polaroid { position: static; width: 100% !important; transform: rotate(0) !important; }
  .sketch-frame::before { display: none; }
}

/* ---------- Programs ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(36px, 5vw, 64px);
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; }
.card-img {
  aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 22px;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.card .card-link {
  margin-top: 16px; font-weight: 800; font-size: 0.92rem;
  align-self: flex-start;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 2px;
}

/* ---------- 세리프 매니페스토 밴드 ---------- */
.manifesto { text-align: center; }
.manifesto .display-lg { margin-bottom: 26px; }
.manifesto .display-lg span { display: inline-block; }
.manifesto .dot { color: var(--yellow); margin-inline: 0.18em; }
.manifesto .serif-note { max-width: 46em; margin: 0 auto; }

/* ---------- Gallery collage ---------- */
.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
  margin-top: clamp(36px, 5vw, 60px);
}
.collage figure { overflow: hidden; position: relative; }
.collage img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.collage figure:hover img { transform: scale(1.05); }
.col-a { grid-column: 1 / 6;  aspect-ratio: 4/3; }
.col-b { grid-column: 6 / 10; aspect-ratio: 1/1; margin-top: 8%; }
.col-c { grid-column: 10 / 13; aspect-ratio: 3/4; }
.col-d { grid-column: 2 / 5;  aspect-ratio: 1/1; margin-top: -6%; }
.col-e { grid-column: 5 / 9;  aspect-ratio: 4/3; }
.col-f { grid-column: 9 / 12; aspect-ratio: 4/5; margin-top: 6%; }
@media (max-width: 700px) {
  .collage { grid-template-columns: repeat(2, 1fr); }
  .collage figure { grid-column: auto !important; margin-top: 0 !important; aspect-ratio: 4/3; }
}

/* ---------- Yellow CTA band ---------- */
.cta-band {
  background: var(--yellow);
  text-align: center;
  padding-block: clamp(64px, 9vw, 120px);
}
.cta-band .display-lg { margin-bottom: 16px; }
.cta-band p { font-weight: 600; margin-bottom: 34px; }
.btn-ink {
  display: inline-block;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 1.05rem;
  padding: 18px 44px; border-radius: 2px;
  transition: transform .15s ease;
}
.btn-ink:hover { transform: translateY(-2px); }
.cta-sub { margin-top: 18px; font-size: 0.9rem; color: rgba(18,18,18,.75); }

/* ---------- Info strip (오시는길 요약 등) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(30px, 4vw, 52px);
}
@media (max-width: 800px) { .info-grid { grid-template-columns: 1fr; } }
.info-item h4 {
  font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}
.info-item p, .info-item li { color: var(--ink-soft); font-size: 0.98rem; }
.info-item a { font-weight: 700; color: var(--ink); }

/* ---------- Page hero (서브페이지 공통) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 110px)); padding-bottom: clamp(30px, 5vw, 70px); }
.page-hero .lead { margin-top: 22px; }

/* ---------- Tables / price list ---------- */
.price-list { margin-top: clamp(30px, 5vw, 56px); border-top: 2px solid var(--ink); }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 2fr);
  gap: 18px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.price-row .p-name { font-weight: 800; font-size: 1.1rem; }
.price-row .p-name .tag {
  display: inline-block; margin-left: 8px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  background: var(--yellow); padding: 3px 8px; border-radius: 2px;
  vertical-align: middle;
}
.price-row .p-desc { color: var(--ink-soft); font-size: 0.95rem; }
.price-row .p-price {
  font-family: var(--font-display);
  font-size: 1.25rem; text-align: right; white-space: nowrap;
}
@media (max-width: 700px) {
  .price-row { grid-template-columns: 1fr; gap: 6px; padding-block: 20px; }
  .price-row .p-price { text-align: left; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: #d9d9d9;
  padding-block: clamp(56px, 8vw, 90px) 36px;
  font-size: 0.95rem;
}
.footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 70px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; }
.footer h5 {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase;
  margin: 0 0 14px;
}
.footer li { margin-bottom: 8px; }
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  padding-top: 26px;
  font-size: 0.82rem; color: #9a9a9a;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card-img img, .collage img { transition: none; }
}

/* ---------- Utilities ---------- */
.mt-lg { margin-top: clamp(28px, 4vw, 48px); }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
