/*
Theme Name: APT44 Neve Child
Theme URI: https://apt44.com/
Description: Neve child theme for editable APT44 project landing pages.
Author: APT44
Template: neve
Version: 1.0.0
Text Domain: apt44-neve-child
*/

/* Project presentation styles live in assets/css and are loaded conditionally. */

/* Global hub accessibility fixes: keep real buttons above stretched card links. */
.premium-danji-card .premium-danji-link { z-index: 2; }
.premium-danji-card .wp-block-button,
.premium-danji-card a:not(.premium-danji-link) { position: relative; z-index: 6; }

/* Mission-owned cards shown once on the public home and regional hub. */
.apt44-mission-project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: clamp(56px, 8vw, 104px) auto;
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid rgba(20, 48, 50, .16);
  background: #f4f2ec;
  box-shadow: 0 24px 70px rgba(13, 35, 37, .13);
  color: #112327;
}
.apt44-mission-project-card figure { margin: 0; overflow: hidden; background: #0a1519; }
.apt44-mission-project-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.apt44-mission-project-card figcaption { padding: 9px 12px; color: #667273; font-size: 11px; }
.apt44-mission-project-card h3 { margin: 8px 0 14px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(27px, 4vw, 47px); font-weight: 400; line-height: 1.1; letter-spacing: -.045em; word-break: keep-all; overflow-wrap: normal; }
.apt44-mission-project-card p { line-height: 1.75; color: #59686a; }
.apt44-mission-project-card__eyebrow { color: #287d78 !important; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.apt44-mission-project-card__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.apt44-mission-project-card__actions a { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 17px; border: 1px solid #173f40; background: #173f40; color: #fff; text-decoration: none; }
.apt44-mission-project-card__actions a:nth-child(2) { background: transparent; color: #173f40; }
.apt44-mission-project-card__actions a:last-child { background: #287d78; border-color: #287d78; animation: apt44-hub-call 4.8s ease-in-out infinite; }
@keyframes apt44-hub-call { 0%,84%,100%{transform:translateY(0)} 90%{transform:translateY(-4px)} 95%{transform:translateY(0)} }
@media (max-width: 700px) { .apt44-mission-project-card { grid-template-columns: 1fr; padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .apt44-mission-project-card__actions a:last-child { animation: none !important; } }

/* 경기 허브: the legacy Columns block contains more cards than a flex row can
 * safely hold. Keep this mission's related hub readable at every breakpoint. */
body.page-id-7 .premium-region-grid.premium-danji-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 24px !important;
}
body.page-id-7 .premium-region-grid.premium-danji-grid > * {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  flex: none !important;
}
body.page-id-7 .premium-region-grid.premium-danji-grid .premium-danji-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 960px) {
  body.page-id-7 .premium-region-grid.premium-danji-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  body.page-id-7 .premium-region-grid.premium-danji-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
}

@media (max-width: 960px) {
  .hfg-is-group.has-primary-menu .navbar-toggle,
  .builder-item--nav-icon .navbar-toggle { min-width: 44px; min-height: 44px; }
  .premium-fixed-call { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); max-width: calc(100vw - 20px); }
  .premium-region-section > .wp-block-group__inner-container,
  .premium-region-section { padding-bottom: 72px; }
}

/* Gyeongsang hub introduced for the Geoje project. */
.apt44-gyeongsang-hero {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: min(72vh, 760px);
  margin-left: -50vw;
  overflow: hidden;
  color: #fff;
  background: #050810;
}
.apt44-gyeongsang-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,8,16,.92), rgba(4,8,16,.28)), linear-gradient(0deg, rgba(4,8,16,.72), transparent 55%);
}
.apt44-gyeongsang-hero > .wp-block-group__inner-container { min-height: inherit; }
.apt44-gyeongsang-hero__media { position: absolute; inset: 0; margin: 0; }
.apt44-gyeongsang-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.apt44-gyeongsang-hero__media figcaption { position: absolute; right: 24px; bottom: 18px; z-index: 3; color: rgba(255,255,255,.62); font-size: 11px; }
.apt44-gyeongsang-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  width: min(1180px, calc(100% - 48px));
  min-height: inherit;
  margin: 0 auto;
  padding: 110px 0 86px;
}
.apt44-gyeongsang-hero__content h1 { max-width: 850px; margin: 0 0 22px; color: #fff; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(48px, 7vw, 94px); font-weight: 400; letter-spacing: -.055em; }
.apt44-gyeongsang-hero__content p:last-child { max-width: 670px; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.75; }
.apt44-gyeongsang-hub { padding: clamp(70px, 9vw, 120px) 0; }
.apt44-gyeongsang-hub .cag-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.apt44-gyeongsang-hub .premium-region-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.apt44-gyeongsang-hub .premium-danji-card { position: relative; overflow: hidden; }
.apt44-gyeongsang-hub .premium-danji-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.apt44-gyeongsang-hub .premium-danji-media figcaption { padding: 8px 14px; color: #66717d; font-size: 11px; }
.apt44-gyeongsang-hub .cag-buttons { position: relative; z-index: 7; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.apt44-gyeongsang-hub .wp-block-button__link { border-radius: 0; background: #102b4a; }
.apt44-gyeongsang-hub .is-style-outline .wp-block-button__link { color: #102b4a; border: 1px solid #102b4a; background: transparent; }
.apt44-gyeongsang-hub .premium-home-posts { margin-top: 34px; }

@media (max-width: 782px) {
  .apt44-gyeongsang-hero { min-height: 620px; }
  .apt44-gyeongsang-hero__content { width: calc(100% - 36px); padding-bottom: 72px; }
  .apt44-gyeongsang-hero__content h1 { font-size: clamp(44px, 13vw, 64px); }
  .apt44-gyeongsang-hub .cag-inner { width: calc(100% - 36px); }
  .apt44-gyeongsang-hub .premium-region-grid > .wp-block-group__inner-container { grid-template-columns: 1fr; }
}
/* Current-slot verified direct VR fallback: raw iframe remains responsive without inline CSS. */
.apt44-legacy-vr-direct {
  width: min(100%, 1280px);
  margin: clamp(1.5rem, 4vw, 4rem) auto;
}

.apt44-legacy-vr-direct iframe {
  display: block;
  width: 100%;
  height: min(760px, 72vh);
  min-height: 520px;
  border: 0;
  background: #101820;
}

@media (max-width: 640px) {
  .apt44-legacy-vr-direct iframe {
    height: 68vh;
    min-height: 440px;
  }
}
