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

/* ===== Savage Surfaces Dark Theme ===== */
body { background-color: #0b0b0b; color: #8d95ae; }
.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: #940000; }
a:hover { color: #7a0000; }
h1, h2, h3, h4, h5, h6 { color: #ffffff; }
.site-footer, .ct-footer, footer, [data-row="bottom"] { background-color: #000000 !important; color: #8d95ae; }
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: #940000 !important; }
/* Desktop sub-menu */
.sub-menu { background-color: #000000 !important; border-radius: 8px; }
.sub-menu .menu-item a { color: #ffffff !important; }
.sub-menu .menu-item a:hover { color: #940000 !important; }

/* Off-canvas mobile menu */
.ct-panel .sub-menu,
.ct-panel .ct-sub-menu,
.ct-panel ul.sub-menu,
#offcanvas .sub-menu,
[data-behaviour] .sub-menu {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
}
.ct-panel .sub-menu .menu-item a,
.ct-panel .ct-sub-menu .menu-item a,
#offcanvas .sub-menu a {
  color: #ffffff !important;
}
.ct-panel .menu-item > a,
.ct-panel .ct-sub-menu-parent > a,
#offcanvas .menu-item > a,
#offcanvas .ct-sub-menu-parent > a {
  font-size: 30px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #ffffff !important;
}
.ct-panel .menu-item > a:hover,
.ct-panel .ct-sub-menu-parent > a:hover,
.ct-panel .ct-sub-menu-parent.active > a,
.ct-panel .ct-sub-menu-parent[aria-expanded="true"] > a,
#offcanvas .menu-item > a:hover,
.ct-panel [data-id="mobile-menu"] .menu-item > a,
.ct-panel [data-id="mobile-menu"] .menu-item > a:hover,
.ct-panel [data-id="mobile-menu"] .ct-sub-menu-parent > a,
.ct-panel [data-id="mobile-menu"] .ct-sub-menu-parent > a:hover {
  color: #ffffff !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 service 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: 1px solid transparent;
}
.stk-block-column .stk-column-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: none;
  border-color: transparent;
}

/* --- Gradient accent text for headings on hover --- */
.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(148, 0, 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(148, 0, 0, 0.4), 0 0 80px rgba(148, 0, 0, 0.08) !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.ss-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.stk-block-columns.ss-visible .stk-block-column:nth-child(1) { transition-delay: 0s; }
.stk-block-columns.ss-visible .stk-block-column:nth-child(2) { transition-delay: 0.12s; }
.stk-block-columns.ss-visible .stk-block-column:nth-child(3) { transition-delay: 0.24s; }

/* --- Animated underline links --- */
.stk-block-text__text a,
.stk-block-heading__text a {
  text-decoration: none !important;
  background-image: linear-gradient(#940000, #940000);
  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: #940000; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b30000; }
* { scrollbar-width: thin; scrollbar-color: #940000 #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.ss-scrolled header[data-id="type-1"],
body.ss-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(148, 0, 0, 0.1) !important;
}

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

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

/* --- Icon list checkmark glow --- */
.stk-block-icon-list li::marker {
  color: #940000;
}
.stk-block-icon-list li {
  transition: padding-left 0.3s ease;
}
.stk-block-icon-list li:hover {
  padding-left: 4px;
}

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

/* --- Loading shimmer for images --- */
@keyframes ss-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: ss-shimmer 1.8s ease-in-out infinite;
}
.stk-img-wrapper:has(.stk-img[src]) {
  animation: none;
  background: none;
}

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

/* ===== HERO VIDEO BACKGROUND FIXES ===== */
#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,
.stk-3e20b48 > .stk-video-background {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ===== INNER PAGE HERO FIXES ===== */
/* Pull first block under sticky header */
.entry-content > .stk-block:first-child:not(.stk-3e20b48) {
  margin-top: -90px !important;
}
/* Solid black overlay on inner page hero banners */
.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;
}
.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;
  padding: 30px !important;
  border-radius: 8px !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: #ffffff !important;
  text-decoration: none !important;
}
.ct-footer-copyright a:hover {
  color: rgba(255,255,255,0.5) !important;
}

/* ===== STICKY HEADER FIX ===== */
header#header {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
}

/* ===== SERVICE CARDS — no blur, fully clickable ===== */
.stk-svc-res .stk-column-wrapper,
.stk-svc-com .stk-column-wrapper,
.stk-svc-snd .stk-column-wrapper {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.stk-svc-res,
.stk-svc-com,
.stk-svc-snd {
  cursor: pointer !important;
  position: relative !important;
}
.stk-svc-res > a.stk-link-wrapper,
.stk-svc-com > a.stk-link-wrapper,
.stk-svc-snd > a.stk-link-wrapper {
  position: absolute !important;
  inset: 0 !important;
  z-index: 10 !important;
}

/* ===== GLASSMORPHISM SCOPE (exclude hero) ===== */
.stk-block-columns:not(.stk-3e20b48) .stk-block-column .stk-column-wrapper {
  border: none;
}

/* --- Print styles --- */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .stk-button { border: 1px solid #000 !important; }
  header, footer { display: none !important; }
}