/* ============================================
   Cove Stay Haeundae — Site Stylesheet
   ============================================ */

:root {
  --navy: #0e3a53;
  --navy-dark: #082537;
  --teal: #2ea7a0;
  --coral: #ff7a45;
  --sand: #f6f1e7;
  --sand-light: #fbf8f2;
  --ink: #26313a;
  --muted: #6c7680;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 20px 45px -20px rgba(14, 58, 83, 0.35);
  --shadow-sm: 0 8px 22px -12px rgba(14, 58, 83, 0.3);
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Noto Sans KR', sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 24px -12px rgba(0,0,0,0.15);
}

.header-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--white);
  transition: color .35s ease;
}

.site-header.scrolled .logo { color: var(--navy); }

.logo-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  opacity: .85;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: 28px;
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: all .25s ease;
}

.lang-btn:hover { border-color: rgba(255,255,255,.9); }

.lang-btn.active {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.site-header.scrolled .lang-btn {
  color: var(--navy);
  border-color: rgba(14,58,83,.3);
}

.site-header.scrolled .lang-btn:hover { border-color: var(--navy); }

.site-header.scrolled .lang-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color .3s ease;
}

.site-header.scrolled .nav-link { color: var(--ink); }

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: currentColor;
  transition: width .25s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  padding: 10px 22px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: all .3s ease;
}

.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 8s ease;
}

.hero-slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,37,55,.55) 0%, rgba(8,37,55,.35) 45%, rgba(8,37,55,.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  color: var(--white);
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  font-weight: 600;
  opacity: .85;
  margin: 0 0 18px;
}

.hero-content h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.25;
  margin: 0 0 22px;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  max-width: 480px;
  opacity: .92;
  margin: 0 0 34px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.7);
  color: var(--white);
}

.btn-ghost:hover { background: rgba(255,255,255,.12); }

.scroll-down {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 20px;
}

.scroll-down span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 50%;
  animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  80% { opacity: 0; top: 24px; }
  100% { opacity: 0; top: 24px; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--sand-light); }

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  margin: 0 0 22px;
  color: var(--navy);
}

.section-desc {
  max-width: 700px;
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 50px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-lead { font-size: 17px; color: var(--ink); }

.info-list {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  border-top: 1px solid #e7e0d3;
}

.info-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e7e0d3;
  font-size: 14.5px;
}

.info-label {
  font-weight: 700;
  color: var(--navy);
}

.info-value { color: var(--muted); }
.info-value em { color: var(--coral); font-style: normal; font-weight: 600; }

.info-review-item .info-value {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-chip {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: var(--sand);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.3;
}

.review-chip-score {
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
}

.review-chip-score em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  margin-left: 1px;
}

.review-chip-name {
  font-weight: 600;
  color: var(--ink);
}

.intro-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.intro-gallery-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.intro-gallery-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.intro-gallery-sub img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform .35s ease;
}

.intro-gallery-sub img:hover,
.intro-gallery-main img:hover { transform: scale(1.02); }

/* ---------- Rooms ---------- */
.rooms { display: flex; flex-direction: column; gap: 60px; }

.room-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
}

.room-card:nth-child(even) { direction: rtl; }
.room-card:nth-child(even) > * { direction: ltr; }

.room-card-featured {
  background: linear-gradient(135deg, rgba(46,167,160,.07), rgba(255,122,69,.06));
  border: 1px solid #ece4d4;
}

.room-gallery-main img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.room-gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.room-gallery-thumbs img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform .3s ease;
}

.room-gallery-thumbs img:hover { transform: scale(1.05); }

.room-badge {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.room-info h3 {
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 14px;
}

.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.room-tags span {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: var(--sand);
  padding: 7px 14px;
  border-radius: 999px;
}

.room-info p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Facilities ---------- */
.facility-info {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.facility-item {
  text-align: center;
  padding: 30px 16px;
  border-radius: var(--radius);
  background: var(--sand-light);
}

.facility-icon { font-size: 30px; display: block; margin-bottom: 12px; }
.facility-item h4 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.facility-item p { margin: 0; color: var(--muted); font-size: 13.5px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 70px;
}

.gallery-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform .35s ease;
}

.gallery-grid img:hover { transform: scale(1.03); }

.pet-block {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 44px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,122,69,.08), rgba(46,167,160,.07));
  border-radius: 20px;
  padding: 44px;
}

.pet-text h3 { color: var(--navy); font-size: 24px; margin: 0 0 14px; }
.pet-text p { color: var(--muted); margin: 0; }

.pet-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pet-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}

/* ---------- Booking ---------- */
.section-booking {
  background: var(--navy);
  color: var(--white);
}

.section-eyebrow-light { color: #7fd8d1; }
.section-title-light { color: var(--white); }
.section-desc-light { color: rgba(255,255,255,.75); }

.booking-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.booking-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.booking-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3);
}

.booking-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
}

.booking-icon svg { width: 34px; height: 34px; }

.booking-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.booking-name { font-size: 17px; font-weight: 700; }
.booking-desc { font-size: 13px; color: rgba(255,255,255,.7); }

.booking-arrow {
  font-size: 20px;
  opacity: .6;
  transition: transform .3s ease, opacity .3s ease;
}

.booking-card:hover .booking-arrow { transform: translateX(4px); opacity: 1; }

.booking-note {
  margin-top: 30px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 50px 0;
  font-size: 13.5px;
}

.footer-inner { text-align: center; }
.footer-brand { margin-bottom: 14px; color: var(--white); }
.footer-brand .logo-mark { font-size: 18px; }
.site-footer p { margin: 4px 0; }

.footer-contact {
  margin-top: 14px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-contact > span:first-child {
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 11.5px;
  color: rgba(255,255,255,.5);
  margin-right: 2px;
}

.footer-contact a {
  color: rgba(255,255,255,.85);
  transition: color .2s ease;
}

.footer-contact a:hover { color: var(--white); text-decoration: underline; }

.footer-dot { color: rgba(255,255,255,.4); }

.footer-copy { margin-top: 16px; opacity: .55; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8,20,28,.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 34px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .room-card { grid-template-columns: 1fr; }
  .room-card:nth-child(even) { direction: ltr; }
  .facility-info { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .pet-block { grid-template-columns: 1fr; padding: 30px; }
  .pet-gallery { grid-template-columns: repeat(4, 1fr); }
  .booking-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .booking-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: var(--header-h); right: 0;
    height: calc(100svh - var(--header-h));
    width: 240px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 28px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.1);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav .nav-link { color: var(--navy) !important; }
  .nav-toggle { display: flex; }
  .nav-toggle span { background: var(--navy) !important; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-info { grid-template-columns: 1fr 1fr; }
  .room-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 76px 0; }
  .lang-btn { padding: 4px 9px; font-size: 11px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pet-gallery { grid-template-columns: repeat(2, 1fr); }
  .info-list li { grid-template-columns: 1fr; gap: 4px; }
}
