/*
 * Yon III Custom Styles — Heroic Military Heritage
 * Loaded via child theme style.css
 * Palette source: theme.json (merah #8B0000, merah-tua #5C0F0F, emas #FFD700, putih, hitam #1F2937)
 */

/* Ensure featured/front-page title doesn't show spectra-one's "Beranda" page-title header */
body.home .swt-block-page-title,
body.page-id-4 .wp-block-post-title {
  display: none !important;
}

/* =======================================================
   HERO SECTION
   ======================================================= */
.yon-hero {
  position: relative;
}
.yon-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}
.yon-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,.45) 75%),
    linear-gradient(180deg, rgba(92,15,15,.25) 0%, rgba(0,0,0,.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.yon-hero h1 {
  text-shadow: 0 4px 20px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.8);
  line-height: 1.05 !important;
  letter-spacing: 0.04em !important;
}
.yon-hero h2 {
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.yon-hero-rule {
  width: 140px !important;
  height: 3px !important;
  border: none !important;
  background: linear-gradient(90deg, transparent, #FFD700 30%, #FFD700 70%, transparent);
  margin: 18px auto !important;
  opacity: .85;
}

/* =======================================================
   BUTTONS — Military precision
   ======================================================= */
.wp-block-button__link {
  transition: all 200ms ease;
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.yon-btn-primary .wp-block-button__link {
  background: linear-gradient(180deg, #8B0000 0%, #5C0F0F 100%) !important;
  border: 1px solid #FFD700 !important;
  color: #FFD700 !important;
  letter-spacing: 0.1em !important;
}
.yon-btn-primary .wp-block-button__link:hover {
  background: linear-gradient(180deg, #A50000 0%, #8B0000 100%) !important;
  box-shadow: 0 4px 12px rgba(139,0,0,.5), 0 2px 0 rgba(0,0,0,.3);
  transform: translateY(-1px);
}
.yon-btn-ghost .wp-block-button__link {
  background: rgba(0,0,0,.25) !important;
}
.yon-btn-ghost .wp-block-button__link:hover {
  background: rgba(255,215,0,.1) !important;
  box-shadow: 0 4px 12px rgba(255,215,0,.2);
  transform: translateY(-1px);
}

/* =======================================================
   STATS STRIP — Sharp, contrast, fight-night red
   ======================================================= */
.yon-stats-strip {
  border-top: 3px solid #FFD700;
  border-bottom: 3px solid #FFD700;
  position: relative;
}
.yon-stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 24px, rgba(255,215,0,.04) 24px, rgba(255,215,0,.04) 25px);
  pointer-events: none;
}
.yon-stats-strip .wp-block-column:not(:last-child) {
  border-right: 1px solid rgba(255,215,0,.18);
}

/* =======================================================
   ACTIVITY PILLARS — Hover lift, gold rim on hover
   ======================================================= */
.yon-pillar {
  height: 100%;
  transition: all 280ms ease;
  position: relative;
}
.yon-pillar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B0000, #FFD700);
  transition: width 320ms ease;
  transform: translateX(-50%);
}
.yon-pillar:hover {
  transform: translateY(-6px);
  border-color: #FFD700 !important;
  box-shadow: 0 12px 32px rgba(139,0,0,.18), 0 4px 12px rgba(0,0,0,.06);
}
.yon-pillar:hover::before {
  width: 80%;
}

/* =======================================================
   WHY-JOIN CARDS — On-black with crimson frame
   ======================================================= */
.yon-why-card {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  height: 100%;
  transition: all 320ms ease;
  position: relative;
}
.yon-why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,215,0,.12), transparent 40%) padding-box,
    linear-gradient(135deg, #FFD700, #8B0000) border-box;
  border: 1px solid transparent;
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.yon-why-card:hover::after {
  opacity: 1;
}
.yon-why-card:hover {
  transform: translateY(-4px);
}

/* =======================================================
   ABOUT IMAGE — Tighten
   ======================================================= */
.yon-about-img {
  position: relative;
}
.yon-about-img::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #FFD700, #8B0000);
  border-radius: 6px;
  z-index: -1;
  filter: blur(8px);
  opacity: .55;
}

/* =======================================================
   DAFFORM REGISTER CTA — Heavily dimmed background
   ======================================================= */
.yon-daftar-cover .wp-block-cover__inner-container {
  max-width: 980px;
}
.yon-daftar-cover .wpforms-container {
  margin-top: 28px;
}

/* WPForms container tweaks inside yon-daftar-cover:
   form inputs blend with dark background. */
.yon-daftar-cover .wpforms-field-label,
.yon-daftar-cover .wpforms-field-sublabel {
  color: #FFD700 !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
}
.yon-daftar-cover .wpforms-field {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,215,0,.25);
  border-radius: 4px;
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
  backdrop-filter: blur(2px);
}
.yon-daftar-cover input[type="text"],
.yon-daftar-cover input[type="email"],
.yon-daftar-cover input[type="tel"],
.yon-daftar-cover input[type="number"],
.yon-daftar-cover select,
.yon-daftar-cover textarea {
  background: rgba(0,0,0,.5) !important;
  border: 1px solid rgba(255,215,0,.3) !important;
  color: #ffffff !important;
  border-radius: 3px;
  padding: 10px 14px !important;
}
.yon-daftar-cover input:focus,
.yon-daftar-cover select:focus,
.yon-daftar-cover textarea:focus {
  border-color: #FFD700 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,215,0,.18);
}
.yon-daftar-cover .wpforms-submit {
  background: linear-gradient(180deg, #FFD700 0%, #B8860B 100%) !important;
  color: #5C0F0F !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border: none !important;
  padding: 16px 40px !important;
  border-radius: 4px !important;
  font-size: 1rem !important;
}
.yon-daftar-cover .wpforms-submit:hover {
  background: linear-gradient(180deg, #FFE773 0%, #FFD700 100%) !important;
  box-shadow: 0 6px 18px rgba(255,215,0,.4);
  transform: translateY(-1px);
}
.yon-daftar-cover .wpforms-required-label {
  color: #FFD700 !important;
}

/* =======================================================
   CONTACT SECTION
   ======================================================= */
.yon-contact a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255,215,0,.3);
  transition: all 200ms ease;
}
.yon-contact a:hover {
  border-bottom-color: #FFD700;
  color: #FFE773 !important;
}

/* =======================================================
   GLOBAL: page-id-4 (Beranda) — strip spectra-one's redundant top spacing
   ======================================================= */
.page-id-4 .wp-site-blocks > .wp-block-cover:first-of-type {
  margin-top: 0 !important;
}
.page-id-4 .alignfull {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* =======================================================
   Responsive tune-down for narrow screens
   ======================================================= */
@media (max-width: 768px) {
  .yon-hero h1 { font-size: 2.2rem !important; }
  .yon-hero h2 { font-size: 1.4rem !important; }
  .yon-stats-strip .wp-block-column {
    flex-basis: 50% !important;
    border-right: none !important;
    padding: 12px 0 !important;
  }
  .yon-stats-strip .wp-block-column:nth-child(even) {
    border-right: 1px solid rgba(255,215,0,.18) !important;
  }
  .yon-stats-strip .wp-block-column:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(255,215,0,.18);
    padding-bottom: 18px !important;
  }
}

/* Smooth scroll from hero CTAs */
html { scroll-behavior: smooth; }

/* =======================================================
   Hide duplicate "Beranda" page-title strip on homepage
   The auto-rendered post-title in the page template duplicates
   the nav label. Suppress on body.home only.
   ======================================================= */
body.home .swt-block-page-title,
body.home .has-text-align-center.swt-block-page-title,
body.home .wp-block-post-title.swt-block-page-title {
  display: none !important;
}
