/*
Theme Name: Neve Gagyeong Heartium Child
Theme URI: https://xn--o39a1n99ovnaj5t77um0e5xu1rf.apt44.com
Template: neve
Author: Codex
Description: Editable premium blocks for Gagyeong Dong Doojin Heartium.
Version: 1.0.5
Text Domain: neve-gagyeong-heartium-child
*/

/* 헤더 로고 축소 (기존 120px → 약 2/3, 80px) */
.site-logo img,
.neve-site-logo,
.builder-item--logo img,
.custom-logo {
  max-width: 80px !important;
  width: 80px !important;
  height: auto !important;
}

:root {
  --gh-ink: #241a22;
  --gh-muted: #6d5c68;
  --gh-paper: #fdfbfc;
  --gh-soft: #f7eef0;
  --gh-line: rgba(72, 53, 68, 0.16);
  --gh-blue: #483544;
  --gh-cyan: #7c5c6e;
  --gh-gold: #ee4357;
}

body {
  color: var(--gh-ink);
  background: var(--gh-paper);
}

.header,
#header-grid,
.header-main,
.hfg_header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.site-header,
.header-main {
  background: rgba(255, 255, 255, 0.95);
}

.admin-bar .header,
.admin-bar #header-grid,
.admin-bar .header-main,
.admin-bar .hfg_header {
  top: 32px;
}

.site-title,
.site-logo h1,
.site-logo p {
  font-weight: 900;
  letter-spacing: 0;
}

.builder-item--nav-icon::before {
  content: "메뉴";
  display: block;
  margin-bottom: 2px;
  color: var(--gh-gold);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  animation: ghMenuBounce 1.8s ease-in-out infinite;
}

.menu-call-link > a,
.menu-item a[href^="tel:"] {
  border-radius: 999px;
  background: var(--gh-blue);
  color: #fff !important;
  padding: 10px 16px !important;
  animation: ghPulse 3s ease-in-out infinite;
}

.premium-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  min-height: calc(100vh - 92px);
  min-height: calc(100svh - 92px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-columns: 100%;
  align-items: end;
  overflow: hidden;
  background: #241a22;
  color: #fff;
}

.premium-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 26, 34, 0.82), rgba(36, 26, 34, 0.46) 48%, rgba(36, 26, 34, 0.1)),
    linear-gradient(0deg, rgba(36, 26, 34, 0.72), rgba(36, 26, 34, 0.05) 52%);
  z-index: 0;
}

.premium-hero .premium-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 0;
}

.premium-hero .premium-hero-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.premium-hero .premium-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.86) saturate(0.96);
  transform-origin: center;
  animation: ghHeroZoom 7s linear infinite alternate;
}

.premium-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(1180px, calc(100% - 36px));
  max-width: 1180px;
  margin: 0 auto 92px;
  padding-top: 96px;
  box-sizing: border-box;
}

.premium-title,
.premium-hero h1,
.premium-lead,
.premium-eyebrow {
  overflow-wrap: break-word;
  word-break: keep-all;
  max-width: 100%;
}

.premium-actions {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.premium-actions .wp-block-button {
  max-width: 100%;
}

.premium-eyebrow {
  margin: 0 0 12px;
  color: var(--gh-gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.premium-title,
.premium-hero h1 {
  max-width: 980px;
  margin: 0 0 18px;
  color: inherit;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 1.05;
  letter-spacing: 0;
}

.premium-lead {
  max-width: 780px;
  color: inherit;
  font-size: 19px;
  line-height: 1.75;
}

.premium-actions {
  gap: 12px;
  margin-top: 28px;
}

.premium-actions .wp-block-button__link,
.premium-section .wp-block-button__link {
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
}

.premium-kpi-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1180px, calc(100% - 36px));
  margin: -56px auto 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: var(--gh-ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}

.premium-kpi {
  margin: 0;
  padding: 22px 18px;
  border-right: 1px solid var(--gh-line);
  font-weight: 900;
  text-align: center;
}

.premium-kpi:last-child {
  border-right: 0;
}

.premium-vr-embed {
  width: min(640px, calc(100% - 36px));
  max-width: 640px;
  margin: 0 auto;
}

.premium-vr-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 16px;
  border: 1px solid rgba(16, 25, 35, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(16, 25, 35, 0.1);
}

.premium-vr-card iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 400px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #0e0e0e;
}

.premium-vr-noscript {
  margin: 0;
  padding: 12px 16px;
  color: var(--gh-muted);
  font-size: 14px;
  text-align: center;
}

.premium-vr-embed + .premium-section {
  padding-top: 48px;
}

body.gvr-embed-mode {
  min-height: 100%;
  margin: 0 !important;
  overflow: hidden !important;
  background: #0e0e0e !important;
}

body.gvr-embed-mode .header,
body.gvr-embed-mode #header-grid,
body.gvr-embed-mode .header-main,
body.gvr-embed-mode .hfg_header,
body.gvr-embed-mode .skip-link,
body.gvr-embed-mode .gvr-page,
body.gvr-embed-mode .gvr-viewer,
body.gvr-embed-mode .premium-fixed-call,
body.gvr-embed-mode .premium-footer-bar,
body.gvr-embed-mode footer.site-footer,
body.gvr-embed-mode #wpadminbar {
  display: none !important;
}

body.gvr-embed-mode .gvr-ai-viewer__close {
  display: none !important;
}

body.gvr-embed-mode #gvr-ai-fullscreen {
  display: inline-flex !important;
}

body.gvr-embed-mode .gvr-ai-panorama {
  touch-action: pan-y !important;
}

body.gvr-embed-mode .gvr-ai-viewer:fullscreen .gvr-ai-panorama {
  touch-action: none !important;
}

.premium-section,
.premium-sub-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.premium-sub-hero {
  padding-top: 120px;
  border-bottom: 1px solid var(--gh-line);
}

.premium-sub-hero h1,
.premium-section h2 {
  margin-top: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.premium-section h3 {
  margin: 16px 0 8px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.premium-dark {
  width: 100%;
  max-width: none;
  padding: 92px max(18px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #241a22, #483544 54%, #8a5a68);
  color: #fff;
}

.premium-soft {
  width: 100%;
  max-width: none;
  padding: 92px max(18px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #faf6f6, #f7eef0);
}

.premium-cards .wp-block-column,
.premium-news .wp-block-column,
.premium-dark .wp-block-column {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.premium-section:not(.premium-dark) .wp-block-column,
.premium-soft .wp-block-column {
  border: 1px solid var(--gh-line);
  background: rgba(255, 255, 255, 0.76);
  padding: 22px;
}

.premium-gallery figure,
.premium-section figure {
  overflow: hidden;
  margin: 0 0 18px;
  border-radius: 6px;
  background: #e9eef0;
  box-shadow: 0 18px 54px rgba(16, 25, 35, 0.08);
}

.premium-gallery img,
.premium-section figure img {
  display: block;
  width: 100%;
  height: auto;
}

.premium-toc {
  padding-top: 24px;
}

.premium-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.premium-toc-list a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--gh-line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--gh-ink);
  font-weight: 900;
  text-decoration: none;
}

.premium-note {
  color: var(--gh-muted);
  font-size: 14px;
  line-height: 1.7;
}

.premium-fixed-call {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1100;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: min(420px, calc(100% - 28px));
  min-height: 58px;
  border-radius: 999px;
  background: var(--gh-gold);
  color: #fff;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  animation: ghFixedCallNudge 3s ease-in-out infinite;
}

body.premium-vr-in-view .premium-fixed-call,
body.premium-vr-84a-in-view .premium-fixed-call {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  animation-play-state: paused;
}

.premium-footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 22px 18px 94px;
  background: #241a22;
  color: #fff;
  text-align: center;
}

.premium-footer-bar a,
.premium-footer-bar span {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.premium-footer-bar a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 13px;
  animation: ghPulse 3s ease-in-out infinite;
}

footer.site-footer {
  display: none;
}

@keyframes ghHeroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

@keyframes ghPulse {
  0%, 75%, 100% { transform: scale(1); }
  80% { transform: scale(1.06); }
  88% { transform: scale(1); }
}

@keyframes ghFixedCallNudge {
  0%, 75%, 100% { transform: translateX(-50%) scale(1); }
  80% { transform: translateX(-50%) scale(1.05); }
  88% { transform: translateX(-50%) scale(1); }
}

@keyframes ghMenuBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .premium-hero .premium-hero-image img,
  .premium-fixed-call,
  .menu-call-link > a,
  .menu-item a[href^="tel:"],
  .premium-footer-bar a,
  .builder-item--nav-icon::before {
    animation: none;
  }
}

@media (max-width: 768px) {
  .admin-bar .header,
  .admin-bar #header-grid,
  .admin-bar .header-main,
  .admin-bar .hfg_header {
    top: 46px;
  }

  .premium-hero {
    min-height: calc(100vh - 78px);
    min-height: calc(100svh - 78px);
  }

  .premium-hero-copy {
    margin-bottom: 72px;
    padding-top: 86px;
  }

  .premium-title,
  .premium-hero h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .premium-lead {
    font-size: 16px;
  }

  .premium-kpi-row {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .premium-kpi {
    border-right: 0;
    border-bottom: 1px solid var(--gh-line);
  }

  .premium-vr-embed + .premium-section {
    padding-top: 38px;
  }

  .premium-section,
  .premium-sub-hero {
    padding: 58px 0;
  }

  .premium-dark,
  .premium-soft {
    padding: 64px 18px;
  }

  .premium-fixed-call {
    bottom: 12px;
    min-height: 54px;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .premium-vr-embed {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
  }

  .premium-vr-card {
    max-width: none;
    margin-bottom: 24px;
    padding: 10px;
    border-radius: 14px;
  }
}
