/* ===================================
   80호 자유 — Hand Drip Coffee & Curated Art
   Design System & Styles
   =================================== */

/* --- CSS Custom Properties --- */
:root {
  --cream: #FAF6F1;
  --warm-beige: #EDE6DB;
  --sand: #D4C5B2;
  --wood-brown: #8B7355;
  --charcoal-warm: #3D3532;
  --stone: #6B5E51;
  --off-white: #FEFCFA;
  --gold-accent: #C49A6C;

  --font-heading: 'Montserrat', 'NanumSquareNeo', sans-serif;
  --font-body: 'NanumSquareNeo', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal-warm);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section__label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
}

.section--dark {
  background-color: var(--charcoal-warm);
  color: var(--off-white);
}

.section--dark .section__label {
  color: var(--gold-accent);
}

/* ===================================
   NAVIGATION
   =================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background-color: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--off-white);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
  margin-top: 14px;
  align-self: flex-start;
}

.nav--scrolled .nav__logo {
  color: var(--charcoal-warm);
}

.nav--scrolled .nav__logo-img {
  filter: none;
}

.nav__menu {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(254, 252, 250, 0.8);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold-accent);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.nav--scrolled .nav__link {
  color: var(--stone);
}

.nav--scrolled .nav__link:hover {
  color: var(--charcoal-warm);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--off-white);
  transition: all 0.3s ease;
}

.nav--scrolled .nav__hamburger span {
  background-color: var(--charcoal-warm);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/hero-real.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(61, 53, 50, 0.5) 0%,
    rgba(61, 53, 50, 0.3) 50%,
    rgba(61, 53, 50, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--off-white);
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero__slogan {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.125rem);
  line-height: 1.8;
  opacity: 0.9;
  font-weight: 400;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--off-white);
  opacity: 0.6;
}

.hero__scroll span {
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background-color: var(--off-white);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===================================
   ABOUT
   =================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

.about__image-wrap {
  overflow: hidden;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.about__desc {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--stone);
  margin-bottom: 40px;
}

.about__philosophy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__philosophy-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.about__philosophy-item p {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.7;
}

/* Space blocks */
.about__space {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.about__space-block .about__space-info {
  margin-bottom: 24px;
}

/* --- Carousel (desktop: grid, mobile: horizontal scroll) --- */
.carousel {
  position: relative;
}

.carousel__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.carousel__slide {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.carousel__btn {
  display: none;
}

@media (max-width: 767px) {
  .carousel {
    position: relative;
    overflow: hidden;
  }

  .carousel__track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 calc(50% - 42%);
  }

  .carousel__track::-webkit-scrollbar {
    display: none;
  }

  .carousel__slide {
    flex: 0 0 84%;
    height: auto;
    aspect-ratio: 1;
    scroll-snap-align: center;
    border-radius: 4px;
  }

  .carousel__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--charcoal-warm);
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .carousel__btn--prev {
    left: 8px;
  }

  .carousel__btn--next {
    right: 8px;
  }
}

.about__space-info {
  padding: 28px;
}

.about__space-info h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.about__space-info p {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.7;
}

/* ===================================
   CAFE
   =================================== */
.cafe__intro {
  font-size: 1rem;
  line-height: 1.9;
  opacity: 0.85;
  max-width: 600px;
  margin-bottom: 64px;
}

/* Cafe gallery */
.cafe__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.cafe__gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .cafe__gallery {
    grid-template-columns: 1fr;
  }

  .cafe__gallery-img {
    height: 200px;
  }
}

/* Barista */
.cafe__barista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cafe__barista-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.cafe__barista-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cafe__barista-cert {
  font-size: 0.8125rem;
  color: var(--gold-accent);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.cafe__barista-info p:last-child {
  font-size: 0.9375rem;
  line-height: 1.8;
  opacity: 0.85;
}

/* Menu */
.cafe__menu-category {
  margin-bottom: 56px;
}

.cafe__menu-category:last-child {
  margin-bottom: 0;
}

.cafe__menu-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--gold-accent);
}

.cafe__menu-note {
  font-size: 0.8125rem;
  opacity: 0.6;
  margin-bottom: 24px;
}

.cafe__menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cafe__menu-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  transition: background-color 0.3s ease;
}

.cafe__menu-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cafe__menu-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.cafe__menu-en {
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.5px;
}

.cafe__menu-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.cafe__menu-price {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  color: var(--gold-accent);
}

.cafe__menu-badges {
  display: flex;
  gap: 6px;
}

.badge {
  font-size: 0.6875rem;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
}

.badge--ice {
  border-color: rgba(150, 200, 220, 0.4);
  color: rgba(150, 200, 220, 0.9);
}

.badge--hot {
  border-color: rgba(220, 160, 120, 0.4);
  color: rgba(220, 160, 120, 0.9);
}

.cafe__menu-desc {
  font-size: 0.8125rem;
  opacity: 0.5;
  margin-top: 8px;
}

/* ===================================
   ARTISTS & WORKS
   =================================== */
.artists {
  background-color: var(--warm-beige);
}

.artists__intro {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--stone);
  max-width: 600px;
  margin-bottom: 16px;
}

.artists__fields {
  font-size: 0.875rem;
  color: var(--sand);
  letter-spacing: 1px;
  margin-bottom: 64px;
}

.artists__section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--wood-brown);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sand);
}

/* Artist cards */
.artists__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 80px;
}

.artist-card {
  background: var(--off-white);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61, 53, 50, 0.1);
}

.artist-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.artist-card__info {
  padding: 24px;
}

.artist-card__name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.artist-card__field {
  font-size: 0.8125rem;
  color: var(--gold-accent);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.artist-card__bio {
  font-size: 0.875rem;
  color: var(--stone);
  line-height: 1.6;
}

.artist-card__bio-en {
  font-size: 0.8125rem;
  color: var(--sand);
  line-height: 1.5;
  margin-top: 6px;
  font-style: italic;
}

.artist-card__handle {
  font-size: 0.8125rem;
  margin-bottom: 4px;
}

.artist-card__handle a {
  color: var(--wood-brown);
  transition: color 0.3s ease;
}

.artist-card__handle a:hover {
  color: var(--gold-accent);
}

/* Artist card active state */
.artist-card {
  cursor: pointer;
  position: relative;
}

.artist-card.active {
  outline: 2px solid var(--gold-accent);
  outline-offset: -2px;
}

.artist-card.active::after {
  content: '▼';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-accent);
  font-size: 0.75rem;
}

/* Artists hint */
.artists__hint {
  font-size: 0.8125rem;
  color: var(--sand);
  margin-bottom: 24px;
}

/* Works sections — hidden by default, shown on artist click */
.works__section {
  display: none;
  margin-top: 40px;
  margin-bottom: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--sand);
  animation: worksReveal 0.4s ease;
}

.works__section.active {
  display: block;
}

@keyframes worksReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.work-card__title-en {
  font-size: 0.75rem;
  color: var(--sand);
  font-style: italic;
  margin-bottom: 4px;
}

/* Work cards */
.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--off-white);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61, 53, 50, 0.1);
}

.work-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.work-card__info {
  padding: 20px;
}

.work-card__title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.work-card__artist {
  font-size: 0.8125rem;
  color: var(--stone);
  margin-bottom: 8px;
}

.work-card__price {
  font-size: 0.9375rem;
  color: var(--gold-accent);
  font-family: var(--font-heading);
}

/* ===================================
   LOCATION
   =================================== */
.location {
  background-color: var(--cream);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.location__map iframe {
  display: block;
  width: 100%;
  height: 350px;
}

.location__naver-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--wood-brown);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.location__naver-link:hover {
  color: var(--gold-accent);
}

.location__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.location__info-item h3 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.location__info-item p {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.7;
}

.location__info-item a {
  transition: color 0.3s ease;
}

.location__info-item a:hover {
  color: var(--gold-accent);
}

/* ===================================
   FADE-IN ANIMATION
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background-color: var(--charcoal-warm);
  color: var(--off-white);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
}

.footer__copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ===================================
   RESPONSIVE — Tablet (768px+)
   =================================== */
@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about__space {
    grid-template-columns: 1fr 1fr;
  }

  .cafe__barista {
    grid-template-columns: 2fr 3fr;
    align-items: center;
  }

  .cafe__menu-grid {
    grid-template-columns: 1fr 1fr;
  }

  .artists__grid {
    grid-template-columns: 1fr 1fr;
  }

  .works__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .location__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ===================================
   RESPONSIVE — Desktop (1024px+)
   =================================== */
@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }

  .artists__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__image {
    min-height: 500px;
  }

  .about__space-img {
    height: 300px;
  }
}

/* ===================================
   RESPONSIVE — Mobile (max 767px)
   =================================== */
@media (max-width: 767px) {
  :root {
    --nav-height: 64px;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(61, 53, 50, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav__menu.active {
    opacity: 1;
    pointer-events: all;
  }

  .nav__menu .nav__link {
    font-size: 1.25rem;
    color: var(--off-white);
  }

  .hero {
    background-attachment: scroll;
  }

  .cafe__barista-img {
    height: 300px;
  }

  .location__info {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Mobile artist cards — compact horizontal layout */
  .artists__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
  }

  .artist-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .artist-card__img {
    width: 110px;
    min-height: 110px;
    height: auto;
    flex-shrink: 0;
  }

  .artist-card__info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .artist-card__name {
    font-size: 0.9375rem;
    margin-bottom: 2px;
  }

  .artist-card__handle {
    font-size: 0.75rem;
  }

  .artist-card__field {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .artist-card__bio {
    font-size: 0.8125rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .artist-card__bio-en {
    display: none;
  }

  .artist-card.active::after {
    bottom: -16px;
  }

  .artist-card:hover {
    transform: none;
  }
}

/* ===================================
   NUMBER LIGHT (80 얇게)
   =================================== */
.hero__title-num,
.num-light {
  font-weight: 500;
}

/* ===================================
   SCROLL TO TOP
   =================================== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--charcoal-warm);
  color: var(--off-white);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 0.7;
  visibility: visible;
}

.scroll-top:hover {
  opacity: 1;
}
