/* =========================================================
   럭셔리 여수출장마사지 - Common Stylesheet
   Luxury + Dark + Gold Accent + Clean
========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg-primary: #14161c;
  --bg-secondary: #1b1e27;
  --bg-tertiary: #21242f;
  --bg-card: #1e212b;
  --text-primary: #f5f1e8;
  --text-secondary: #c9c6bd;
  --text-muted: #9a978f;
  --accent: #c9a34e;
  --accent-light: #e4c877;
  --accent-dark: #a9832f;
  --border: #33374350;
  --border-strong: #3d4152;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --max-width: 1160px;
  --header-height: 72px;
  --font-base: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img {
  max-width: 100%;
  display: block;
  background-color: var(--bg-tertiary);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }

p { color: var(--text-secondary); }

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

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-head {
  margin-bottom: 36px;
  max-width: 720px;
}

.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.section-head h2 {
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.02rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(20, 22, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(20, 22, 28, 0.98);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand span {
  color: var(--accent);
}

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-light);
  background: rgba(201, 163, 78, 0.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px !important;
  background: var(--accent);
  color: #16171d !important;
  border-radius: 999px;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--accent-light);
  color: #16171d !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: var(--border-strong);
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-secondary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 163, 78, 0.14), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(201, 163, 78, 0.08), transparent 40%),
    linear-gradient(180deg, #181a22 0%, #14161c 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-text .eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 14px;
}

.hero-text h1 {
  margin-bottom: 18px;
  color: var(--text-primary);
}

.hero-text p {
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-phone {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-phone a {
  color: var(--accent-light);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #23262f 0%, #2c2416 55%, #1a1c24 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual.img-fallback::after,
.card-media.img-fallback::after {
  content: "LUXURY YEOSU MASSAGE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #23262f 0%, #2c2416 55%, #1a1c24 100%);
}

.card-media.img-fallback {
  position: relative;
}

.page-hero {
  padding: 44px 0 46px;
  background: linear-gradient(180deg, #1b1e27 0%, #14161c 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 10px 0 14px;
}

.page-hero p {
  max-width: 680px;
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #16171d;
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 8px 20px rgba(201, 163, 78, 0.25);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn-block {
  width: 100%;
}

/* ---------- Grid & Cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(201, 163, 78, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card p {
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.card-link::after {
  content: " →";
}

.card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16 / 10;
  background: var(--bg-tertiary);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Course Cards ---------- */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}

.course-card.is-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201, 163, 78, 0.35), var(--shadow-sm);
}

.course-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--accent);
  color: #16171d;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.course-time {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.course-card h3 {
  margin-bottom: 12px;
}

.course-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.course-card p.course-price {
  margin-bottom: 10px;
}

.course-card ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-card ul li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.course-card ul li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: left;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(201, 163, 78, 0.14);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
}

/* ---------- Region Tags ---------- */
.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.region-tag {
  display: inline-block;
  padding: 9px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.region-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.region-group h3 {
  margin-bottom: 10px;
  color: var(--accent-light);
}

.region-group p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.faq-question .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item.is-open .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 22px 20px;
  font-size: 0.95rem;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(120deg, #221c10 0%, #1c1e27 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 24px;
}

.cta-band .hero-actions {
  justify-content: center;
}

.booking-phone {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-light);
  margin: 0 auto 20px;
}

.booking-phone a {
  color: var(--accent-light);
}

/* ---------- Info List ---------- */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.info-list li strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.notice-box {
  background: rgba(201, 163, 78, 0.08);
  border: 1px solid rgba(201, 163, 78, 0.3);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ---------- Table ---------- */
.check-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.check-table th,
.check-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.92rem;
}

.check-table th {
  background: var(--bg-tertiary);
  color: var(--accent-light);
}

.check-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Review placeholder cards ---------- */
.review-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
}

.review-card .review-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #101218;
  border-top: 1px solid var(--border);
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-contact {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--accent-light);
  font-weight: 700;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Mobile Sticky CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}

.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.mobile-cta .btn-primary { flex: 1.1; }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 1080px) {
  /* .main-nav is moved to a direct child of <body> by js/main.js while open,
     so this fixed panel sizes against the real viewport instead of being
     trapped inside .site-header's containing block (backdrop-filter on
     .site-header turns it into a containing block for fixed descendants). */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 480;
    background: rgba(15, 16, 21, 0.98);
    display: flex;
    flex-direction: column;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 14px 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-cta {
    margin-top: 14px;
    text-align: center;
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Backdrop behind the mobile menu panel, created by js/main.js */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 470;
}

.mobile-nav-backdrop.is-open {
  display: block;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  body {
    padding-bottom: 64px;
  }

  .mobile-cta {
    display: flex;
  }

  .section {
    padding: 44px 0;
  }

  .hero {
    padding: 40px 0 40px;
  }

  .cta-band {
    padding: 32px 20px;
  }
}

@media (min-width: 769px) {
  .mobile-cta {
    display: none !important;
  }
}
