/* ==========================================================================
   애월현스테이 — Design Tokens
   ========================================================================== */
:root {
  --ink: #1E1B18;
  --bg: #FAF7F1;
  --paper: #FFFFFF;
  --line: #E6DFD2;
  --muted: #6B655B;
  --mustard: #D9A233;
  --mustard-deep: #B9822A;
  --terracotta: #A15A3E;
  --sage: #7C948C;

  --font-display: "Gowun Batang", "Noto Serif KR", serif;
  --font-body: "PretendardVariable", "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;

  --wrap: 1160px;
  --radius-sm: 4px;
  --radius-md: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.wrap-inner { max-width: 480px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--mustard-deep);
  outline-offset: 3px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark { color: var(--ink); }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--mustard-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.tel-link {
  font-size: 0.92rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--mustard);
  color: var(--ink);
}
.btn-primary:hover { background: var(--mustard-deep); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.15) 0%, rgba(20,18,15,0.35) 55%, rgba(15,13,11,0.78) 100%);
}
.hero-content {
  position: relative;
  color: #fff;
  padding-bottom: 88px;
}
.hero-eyebrow {
  font-size: 0.98rem;
  margin: 0 0 18px;
  color: rgba(255,255,255,0.88);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.35;
  margin: 0 0 14px;
}
.hero-sub {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin: 0 0 34px;
  color: rgba(255,255,255,0.85);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Section commons
   ========================================================================== */
.section { padding: 100px 0; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--terracotta);
  font-weight: 600;
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  line-height: 1.4;
}
.section-desc {
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 20px;
}

/* Intro */
.intro { background: var(--paper); }
.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: start;
}
.intro-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.45;
  margin: 0;
  position: sticky;
  top: 110px;
}
.intro-body p {
  margin: 0 0 20px;
  color: var(--ink);
  max-width: 560px;
}
.intro-closing {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--terracotta);
  line-height: 1.8;
}

/* Highlights */
.highlights { padding: 70px 0; }
.highlight-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.highlight-card {
  background: var(--bg);
  padding: 34px 28px;
}
.highlight-card svg {
  width: 34px;
  height: 34px;
  color: var(--mustard-deep);
  margin-bottom: 16px;
}
.highlight-card h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
}
.highlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Spaces */
.spaces { background: var(--paper); }
.spaces > .wrap { margin-bottom: 50px; }

.feature-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px;
}
.feature-row.reverse { grid-template-columns: 1fr 1.35fr; }
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-text { order: 1; }

.feature-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.feature-media.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0 0 14px;
}
.feature-text p { color: var(--muted); margin: 0; }

/* Pet section */
.pet-section {
  background: var(--ink);
  color: #fff;
}
.pet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pet-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.pet-text .section-label { color: var(--mustard); }
.pet-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 18px;
  line-height: 1.45;
}
.pet-text p {
  color: rgba(255,255,255,0.82);
  margin: 0 0 18px;
  max-width: 480px;
}
.pet-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pet-list li {
  padding-left: 22px;
  position: relative;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.pet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--mustard);
  border-radius: 50%;
}

/* Location */
.location { background: var(--bg); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.location-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.45;
  margin: 0 0 18px;
}
.location-text > p { color: var(--muted); margin: 0 0 16px; max-width: 480px; }

.location-info {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}
.info-row {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-label {
  flex: 0 0 96px;
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.92rem;
}
.info-value { color: var(--ink); font-size: 0.95rem; }
.info-value a:hover { text-decoration: underline; }

.location-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* FAQ */
.faq { background: var(--paper); }
.faq-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 640px;
}

/* Pricing */
.pricing { background: var(--bg); }
.pricing-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pricing-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pricing-name > span:first-child {
  font-weight: 600;
  font-size: 1rem;
}
.pricing-note {
  color: var(--muted);
  font-size: 0.86rem;
}
.pricing-value {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--terracotta);
  text-align: right;
  white-space: nowrap;
}
.pricing-value small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  white-space: normal;
}

/* Booking CTA */
.booking-cta {
  background: var(--terracotta);
  color: #fff;
  text-align: center;
}
.booking-inner { max-width: 620px; margin: 0 auto; }
.booking-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.45;
  margin: 0 0 18px;
}
.booking-cta p {
  color: rgba(255,255,255,0.88);
  margin: 0 0 30px;
}
.booking-cta .btn-primary {
  background: var(--ink);
  color: #fff;
}
.booking-cta .btn-primary:hover { background: #000; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-text {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.footer-brand p { margin: 8px 0 0; color: rgba(255,255,255,0.6); }
.footer-info p { margin: 0 0 8px; }
.footer-info a:hover { text-decoration: underline; }
.footer-links a { color: rgba(255,255,255,0.75); }
.footer-links a:hover { text-decoration: underline; }
.footer-copy {
  padding: 20px 24px 28px;
}
.footer-copy p { margin: 0; color: rgba(255,255,255,0.45); font-size: 0.82rem; }
.footer-copy { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.visitor-count { color: rgba(255,255,255,0.5) !important; }
.visitor-count span { color: var(--mustard); font-weight: 600; }

/* ==========================================================================
   Mobile sticky CTA
   ========================================================================== */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  gap: 10px;
}
.mobile-cta-btn {
  flex: 1;
  text-align: center;
  padding: 13px 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}
.mobile-cta-btn.call {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.mobile-cta-btn.book {
  background: var(--mustard);
  color: var(--ink);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .intro-grid,
  .location-grid,
  .pet-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-heading h2 { position: static; }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 24px;
  }
  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-text { order: initial; }
  .wrap-inner { max-width: none; }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .main-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }

  .section { padding: 64px 0; }
  .highlights { padding: 40px 0; }
  .highlight-grid { grid-template-columns: 1fr 1fr; }
  .feature-media.two-up { grid-template-columns: 1fr; }
  .pricing-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pricing-value { text-align: left; }
  .pricing-value small { margin-top: 2px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 64px; }
  .hero-content { padding-bottom: 110px; }
}

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

/* ==========================================================================
   Reveal (단일 등장 모션)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
