/* =========================================================
   SK MEDIA WORKS — Custom Studio Stylesheet
   Loaded after Tailwind (CDN) so these rules take precedence
   for the custom, non-utility classes used across the site.
   ========================================================= */

:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #000000;
  color: #ffffff;
  letter-spacing: -0.01em;
}

::selection {
  background-color: #ffffff;
  color: #000000;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.03em;
}

.font-serif-editorial {
  font-family: 'Instrument Serif', Georgia, serif;
}

.font-mono-tag {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

.font-geometric {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.font-signature {
  font-family: 'Alex Brush', cursive;
}

/* Custom Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

/* Geometric Studio Hairline Grid */
.bg-grid-hairline {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.bg-dots-hairline {
  background-size: 24px 24px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
}

.bg-radial-gradient {
  background-image: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 60%, #000 100%);
}

/* Subtle Inversion Card Transitions */
.card-invert {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-invert:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
}
.card-invert:hover * {
  color: #000000 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Viewfinder Crop Marks */
.viewfinder {
  position: relative;
}
.viewfinder::before {
  content: '+';
  position: absolute;
  top: -7px;
  left: -5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}
.viewfinder::after {
  content: '+';
  position: absolute;
  bottom: -7px;
  right: -5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in-fade {
  animation: fadeSlideIn 0.18s ease-out;
}

/* Simple fade/scale for elements revealed on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ accordion built on native <details> for accessibility + SEO (content always in DOM) */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item .faq-icon-plus,
.faq-item .faq-icon-minus {
  display: none;
}
.faq-item .faq-icon-plus { display: block; }
.faq-item[open] .faq-icon-plus { display: none; }
.faq-item[open] .faq-icon-minus { display: block; }
.faq-item .faq-answer {
  padding-bottom: 2rem;
  padding-top: 0.5rem;
}

/* Services tab panels: hidden by default, shown when active (all content stays in the DOM for SEO) */
.service-panel { display: none; }
.service-panel.is-active { display: block; }

.service-tab.is-active {
  border-color: #ffffff;
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
}
.service-tab.is-active svg {
  color: #000000 !important;
}

/* Order calculator: category + item groups */
.order-category-btn.is-active {
  border-color: #ffffff;
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
}
.order-item-group { display: none; }
.order-item-group.is-active { display: grid; }
.order-item-btn.is-active {
  border-color: #ffffff;
  background-color: #171717;
  color: #ffffff;
  font-weight: 700;
}
.order-toggle-btn.is-active {
  border-color: #ffffff;
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
}

/* Nav link underline sweep (trending micro-interaction: grows from left on hover/active) */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.is-active {
  color: #ffffff;
  font-weight: 700;
}
.nav-link.is-active::after {
  width: 100%;
}
.nav-link-mobile.is-active {
  border-left-color: #ffffff;
  color: #ffffff;
  font-weight: 700;
  background-color: rgba(255,255,255,0.05);
}

/* Icon sizing baseline (lucide injects SVGs at 24px by default) */
[data-lucide] {
  width: 1em;
  height: 1em;
}

/* Lazily loaded logo image fallback sizing */
.sk-logo-svg { display: block; width: 100%; height: auto; }

/* =========================================================
   Trending micro-interactions: page fade-in, scroll reveal,
   button shine sweep, card lift, hero cursor spotlight
   ========================================================= */

/* Whole-page fade-in on first load */
body {
  opacity: 0;
}
body.is-loaded {
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Scroll-triggered reveal (auto-applied by main.js to section intros + grid cards) */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button shine sweep — diagonal light glides across on hover */
.btn-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(0, 0, 0, 0.16), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}
.btn-shine:hover::after {
  left: 130%;
}
/* Light sweep variant for dark/outline buttons */
.btn-shine-light::after {
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Card lift — subtle rise + glow on hover for grid cards */
main .grid > div[data-reveal],
main .grid > button[data-reveal] {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
main .grid > div[data-reveal]:hover,
main .grid > button[data-reveal]:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(255, 255, 255, 0.12);
}

/* Hero cursor spotlight — soft light follows pointer (desktop only, decorative) */
#hero {
  position: relative;
}
#hero .hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--spot-x, 50%) var(--spot-y, 15%), rgba(255, 255, 255, 0.07), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { opacity: 1; transition: none; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .animate-marquee { animation: none; }
  .btn-shine::after { display: none; }
}
