/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ===== George's Pool Tables Dark Theme ===== */
body { background-color: #000000; color: #c8c8c8; }
.site-header, header[data-id="type-1"] { background-color: #000000 !important; }
header { background-color: #000000 !important; }
[data-row="middle"] { background-color: #000000 !important; }
a { color: #006600; }
a:hover { color: #008800; }
h1, h2, h3, h4, h5, h6 { color: #ffffff; }
.site-footer, .ct-footer, footer, [data-row="bottom"] { background-color: #000000 !important; color: #c8c8c8; }
nav .menu-item > a { color: #ffffff !important; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
nav .menu-item > a:hover { color: #006600 !important; }
.sub-menu { background-color: #000000 !important; border-radius: 8px; }
.sub-menu .menu-item a { color: #c8c8c8 !important; }
.sub-menu .menu-item a:hover { color: #006600 !important; }
.ct-header-account { display: none; }
.entry-header { display: none !important; }
h1.wp-block-heading.has-text-align-center.page-title { display: none; }
.ct-container > header.entry-header { display: none !important; }
article .entry-header { display: none !important; }

/* ===== 2036 PREMIUM ENHANCEMENTS ===== */

/* --- Smooth page-wide scroll --- */
html { scroll-behavior: smooth; }

/* --- Glassmorphism cards --- */
.stk-block-column .stk-column-wrapper {
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.45s ease;
  border: none;
}
.stk-block-column .stk-column-wrapper:hover {
  transform: translateY(-6px);
}

/* --- Gradient accent underline for headings --- */
.stk-block-heading__text {
  transition: background-size 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  background-size: 100% 0%;
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-image: linear-gradient(transparent 60%, rgba(0, 102, 0, 0.18) 60%);
}

/* --- Buttons: glow + micro-interaction --- */
.stk-button {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
  position: relative;
  overflow: hidden;
}
.stk-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stk-button:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 32px rgba(0, 102, 0, 0.45), 0 0 80px rgba(0, 102, 0, 0.1) !important;
}
.stk-button:hover::after {
  opacity: 1;
}
.stk-button:active {
  transform: translateY(0) scale(0.98) !important;
}

/* --- Images: cinematic reveal + tilt --- */
.stk-img-wrapper {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}
.stk-img {
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), filter 0.7s ease !important;
}
.stk-img-wrapper:hover .stk-img {
  transform: scale(1.06);
  filter: brightness(1.08) contrast(1.04);
}

/* --- Subtle noise texture overlay on dark sections --- */
.stk-block-columns.stk-block-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}
.stk-block-columns.stk-block-background > * {
  position: relative;
  z-index: 1;
}

/* --- Scroll-triggered fade-in animation --- */
.stk-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.stk-block.gpt-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.stk-block-columns.gpt-visible .stk-block-column:nth-child(1) { transition-delay: 0s; }
.stk-block-columns.gpt-visible .stk-block-column:nth-child(2) { transition-delay: 0.12s; }
.stk-block-columns.gpt-visible .stk-block-column:nth-child(3) { transition-delay: 0.24s; }
.stk-block-columns.gpt-visible .stk-block-column:nth-child(4) { transition-delay: 0.36s; }

/* --- Animated underline links --- */
.stk-block-text__text a,
.stk-block-heading__text a {
  text-decoration: none !important;
  background-image: linear-gradient(#006600, #006600);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  padding-bottom: 2px;
}
.stk-block-text__text a:hover,
.stk-block-heading__text a:hover {
  background-size: 100% 2px;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #006600; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #008800; }
* { scrollbar-width: thin; scrollbar-color: #006600 #000000; }

/* --- Header glass effect on scroll --- */
header[data-id="type-1"],
.site-header {
  transition: backdrop-filter 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease !important;
}
body.gpt-scrolled header[data-id="type-1"],
body.gpt-scrolled .site-header {
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  background-color: rgba(0, 0, 0, 0.75) !important;
  box-shadow: 0 1px 40px rgba(0, 102, 0, 0.12) !important;
}

/* --- Subtle green line accent dividers --- */
.stk-block-spacer::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #006600, transparent);
  margin: 0 auto;
  opacity: 0.5;
}

/* --- Selection color --- */
::selection {
  background: rgba(0, 102, 0, 0.35);
  color: #ffffff;
}

/* --- Feature block hover glow --- */
.stk-block-feature {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.stk-block-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 102, 0, 0.15);
}

/* --- Focus visible for accessibility --- */
*:focus-visible {
  outline: 2px solid #006600;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Loading shimmer for images --- */
@keyframes gpt-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.stk-img-wrapper {
  background: linear-gradient(90deg, #000000 25%, #000000 50%, #000000 75%);
  background-size: 200% 100%;
  animation: gpt-shimmer 1.8s ease-in-out infinite;
}
.stk-img-wrapper:has(.stk-img[src]) {
  animation: none;
  background: none;
}

/* --- Video background enhancement --- */
.stk-block-background video {
  filter: brightness(0.85) contrast(1.1);
}

/* --- Pool table green accent glow on cards --- */
.stk-block-column .stk-column-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #006600, transparent);
  opacity: 0;
  transition: opacity 0.4s ease, width 0.4s ease;
}
.stk-block-column .stk-column-wrapper {
  position: relative;
}
.stk-block-column .stk-column-wrapper:hover::before {
  opacity: 1;
  width: 80%;
}

/* --- Responsive touch: larger tap targets on mobile --- */
@media (max-width: 768px) {
  .stk-button { min-height: 48px; }
  nav .menu-item > a { padding: 12px 16px !important; }
}

/* --- Print styles --- */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .stk-button { border: 1px solid #000 !important; }
  header, footer { display: none !important; }
}
/* ===== HERO VIDEO BACKGROUND FIXES ===== */
/* Override Blocksy overflow:hidden/clip that breaks position:sticky */
#main-container {
  overflow: visible !important;
}
/* Exclude hero from scroll fade-in */
.stk-3e20b48,
.stk-3e20b48 .stk-block {
  opacity: 1 !important;
  transform: none !important;
}
/* Exclude hero from glassmorphism backdrop-filter */
.stk-3e20b48 .stk-column-wrapper {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Exclude hero from noise texture overlay */
.stk-3e20b48.stk-block-background::after {
  display: none !important;
}
/* Hero sizing */
.stk-3e20b48 {
  min-height: 100vh !important;
  background-attachment: scroll !important;
  position: relative !important;
}
/* Hero content above overlay */
.stk-3e20b48 > .stk-row {
  position: relative !important;
  z-index: 3 !important;
}
/* Hero text visibility */
.stk-3e20b48 .stk-block-heading__text,
.stk-3e20b48 .stk-block-text__text {
  color: #ffffff !important;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}
.stk-3e20b48 .stk-block-text__text {
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
/* Preserve Stackable video background transform */
.stk-3e20b48 .stk-video-background {
  transform: translate(-50%, -50%) !important;
}

/* ===== FOOTER BRANDING ===== */
.ct-footer-copyright p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
  line-height: 1.8;
}
.ct-footer-copyright a {
  color: #006600 !important;
  text-decoration: none !important;
}
.ct-footer-copyright a:hover {
  color: #ffffff !important;
}

/* ===== STICKY HEADER FIX ===== */
#main-container { overflow: visible !important; }
header#header {
  position: sticky !important;
  position: -webkit-sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
}

/* ===== FIX GAP UNDER STICKY HEADER ON INNER PAGES ===== */
.entry-content > .stk-block:first-child:not(.stk-3e20b48) {
  margin-top: -90px !important;
}

/* ===== INNER PAGE HERO BANNERS: Solid black overlay ===== */
.entry-content > .stk-block-columns:first-child:not(.stk-3e20b48)::before {
  background-color: #000000 !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Disable blur on inner page hero banners */
.entry-content > .stk-block-columns:first-child:not(.stk-3e20b48) .stk-column-wrapper {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: #000000 !important;
}
/* ===== VIDEO BACKGROUND FIX ===== */
.stk-3e20b48 .stk-video-background,
.stk-3e20b48 > .stk-video-background {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-50%) !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
}