/*
Theme Name: SOHA GROUP
Theme URI: https://sohamedia.pl/
Author: SOHA GROUP
Description: Motyw odwzorowujący 1:1 stronę sohamedia.pl. Sekcje: hero z wideo, o nas, aftermovie, reels, fotografia, zaufali nam, kontakt. Treść zarządzana z panelu WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sohagroup
*/

/* ============================================================
   1. RESET I PODSTAWY
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid #1f1f1f;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.soha-locked {
  height: 100vh;
  overflow: hidden;
}

::selection {
  background: #fff;
  color: #000;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* ============================================================
   2. UKŁAD WSPÓLNY
   ============================================================ */

.soha-shell {
  min-height: 100vh;
  background: #000;
  color: #fff;
}

.soha-container {
  max-width: 100rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .soha-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.soha-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  scroll-margin-top: 6rem;
}

.soha-section--about {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.soha-section--reels {
  background: #09090b;
}

/* Nagłówek sekcji: tytuł po lewej, opis po prawej */
.soha-section-head {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .soha-section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.soha-section-head h2 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

@media (min-width: 768px) {
  .soha-section-head h2 { font-size: 3.75rem; }
}

.soha-section-head p {
  color: #a1a1aa;
  max-width: 28rem;
  font-size: 1.125rem;
}

/* ============================================================
   3. EKRAN ŁADOWANIA
   ============================================================ */

.soha-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.8s ease-in-out;
}

.soha-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.soha-loader__inner {
  width: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.soha-loader__logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .soha-loader__logo { height: 3rem; }
}

.soha-loader__bar-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.soha-loader__labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #71717a;
  text-transform: uppercase;
}

.soha-loader__track {
  width: 100%;
  height: 1px;
  background: #18181b;
  overflow: hidden;
}

.soha-loader__fill {
  height: 100%;
  width: 0;
  background: #fff;
  transition: width 0.3s ease-out;
}

/* ============================================================
   4. NAWIGACJA
   ============================================================ */

.soha-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  transition: all 0.5s ease;
  background: transparent;
  mix-blend-mode: difference;
}

.soha-nav.is-scrolled {
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  mix-blend-mode: normal;
}

.soha-nav__logo {
  height: 2rem;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .soha-nav__logo { height: 2.5rem; }
}

.soha-nav__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.soha-nav__logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 2rem;
}

.soha-nav__menu {
  display: none;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .soha-nav__menu { display: flex; }
}

.soha-nav__menu a {
  transition: color 0.2s ease;
}

.soha-nav__menu a:hover {
  color: #a1a1aa;
}

/* Przycisk menu mobilnego */
.soha-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .soha-nav__toggle { display: none; }
}

.soha-nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.soha-nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.soha-nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.soha-nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.soha-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  list-style: none;
  margin: 0;
  padding: 0;
}

.soha-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.soha-mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* ============================================================
   5. HERO
   ============================================================ */

.soha-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.soha-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.soha-hero__bg video,
.soha-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
  outline: none;
  transition: opacity 0.5s ease;
}

.soha-hero__bg video:hover,
.soha-hero__bg img:hover {
  opacity: 1;
}

.soha-hero__gradient,
.soha-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.soha-hero__gradient {
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.soha-hero__veil {
  background: rgba(0, 0, 0, 0.3);
}

.soha-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.soha-hero__title {
  font-size: 3.75rem;
  line-height: 0.85;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .soha-hero__title { font-size: 6rem; }
}

@media (min-width: 1024px) {
  .soha-hero__title { font-size: 11rem; }
}

.soha-hero__title-accent {
  background: linear-gradient(to right, #fff, #71717a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.soha-hero__subtitle {
  margin-top: 2rem;
  font-size: 1.125rem;
  color: #a1a1aa;
  max-width: 42rem;
  font-weight: 300;
}

@media (min-width: 768px) {
  .soha-hero__subtitle { font-size: 1.25rem; }
}

/* ============================================================
   6. KIM JESTEŚMY
   ============================================================ */

.soha-about {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .soha-about {
    flex-direction: row;
    gap: 6rem;
  }
}

.soha-about__text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .soha-about__text {
    width: 50%;
    padding-right: 2rem;
  }
}

.soha-about__text h2 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

@media (min-width: 768px) {
  .soha-about__text h2 { font-size: 3.75rem; }
}

.soha-about__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.125rem;
  color: #d4d4d8;
  font-weight: 300;
  line-height: 1.625;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .soha-about__body { font-size: 1.25rem; }
}

.soha-about__body strong {
  font-weight: 700;
  color: #fff;
}

.soha-about__contact {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.soha-about__contact-label {
  font-weight: 700;
  color: #fff;
}

.soha-about__contact a {
  transition: color 0.2s ease;
  color: #d4d4d8;
}

.soha-about__contact a:hover { color: #fff; }

.soha-about__media {
  width: 100%;
  display: flex;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .soha-about__media { width: 50%; }
}

.soha-about__frame {
  position: relative;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  border-radius: 0.125rem;
  background: #18181b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
  .soha-about__frame { min-height: 0; }
}

.soha-about__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.soha-about__frame img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ============================================================
   7. AFTERMOVIE / REELS / FOTOGRAFIA — SIATKI
   ============================================================ */

.soha-grid-aftermovie {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .soha-grid-aftermovie { grid-template-columns: repeat(2, 1fr); }
}

.soha-grid-reels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .soha-grid-reels {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.soha-grid-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .soha-grid-photos { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .soha-grid-photos { gap: 1.5rem; }
}

@media (min-width: 1024px) {
  .soha-grid-photos { grid-template-columns: repeat(4, 1fr); }
}

/* Karta wideo */
.soha-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.soha-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 0.125rem;
  background: #18181b;
}

.soha-card__media--wide { aspect-ratio: 16 / 9; }
.soha-card__media--tall { aspect-ratio: 9 / 16; }

.soha-card__media video,
.soha-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.soha-card:hover .soha-card__media video,
.soha-card:hover .soha-card__media img {
  transform: scale(1.05);
}

.soha-card__meta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.soha-card__meta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.soha-card__meta p {
  color: #71717a;
  margin-top: 0.5rem;
}

/* Reels mają nieco mniejszą typografię na mobile */
.soha-card--reel .soha-card__meta h3 { font-size: 1.25rem; }
.soha-card--reel .soha-card__meta p { font-size: 0.875rem; }

@media (min-width: 768px) {
  .soha-card--reel .soha-card__meta h3 { font-size: 1.5rem; }
  .soha-card--reel .soha-card__meta p { font-size: 1rem; }
}

/* Kafelek zdjęcia */
.soha-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 0.125rem;
}

.soha-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.soha-photo img:hover { opacity: 1; }

/* ============================================================
   8. ZAUFALI NAM
   ============================================================ */

.soha-trusted {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #09090b;
  border-top: 1px solid #18181b;
  border-bottom: 1px solid #18181b;
  overflow: hidden;
  position: relative;
  z-index: 20;
}

.soha-trusted h2 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .soha-trusted h2 { font-size: 2.25rem; }
}

.soha-trusted__carousel {
  position: relative;
}

.soha-trusted__track {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0;
  align-items: center;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.soha-trusted__track::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .soha-trusted__track { gap: 4rem; }
}

.soha-trusted__item {
  flex: none;
  width: 100px;
  height: 2.5rem;
  position: relative;
  scroll-snap-align: center;
  border-radius: 0.125rem;
}

@media (min-width: 768px) {
  .soha-trusted__item { width: 140px; }
}

.soha-trusted__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.soha-trusted__item:hover img {
  opacity: 1;
  filter: grayscale(0);
}

.soha-trusted__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid #27272a;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.soha-trusted__arrow:hover { background: #27272a; }
.soha-trusted__arrow:focus-visible { opacity: 1; }
.soha-trusted__arrow--prev { left: 0; }
.soha-trusted__arrow--next { right: 0; width: 3rem; height: 3rem; }

@media (min-width: 768px) {
  .soha-trusted__carousel:hover .soha-trusted__arrow { opacity: 1; }
}

/* ============================================================
   9. STOPKA / KONTAKT
   ============================================================ */

.soha-footer {
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid #18181b;
  background: #000;
  scroll-margin-top: 6rem;
}

.soha-footer__top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

@media (min-width: 768px) {
  .soha-footer__top {
    flex-direction: row;
    align-items: center;
  }
}

.soha-footer__headline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.soha-footer__headline h2 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .soha-footer__headline h2 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .soha-footer__headline h2 { font-size: 3.75rem; }
}

.soha-footer__eyebrow {
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .soha-footer__eyebrow { font-size: 1rem; }
}

.soha-footer__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.soha-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
  width: fit-content;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .soha-footer__link { font-size: 1.5rem; }
}

.soha-footer__link:hover {
  color: #a1a1aa;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.soha-footer__link svg {
  transition: transform 0.2s ease;
}

.soha-footer__link:hover svg {
  transform: translateX(0.25rem);
}

.soha-footer__socials {
  display: flex;
  gap: 1.5rem;
}

.soha-footer__social {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.soha-footer__social:hover {
  background: #fff;
  color: #000;
}

.soha-footer__bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid #18181b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.75rem;
  color: #52525b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .soha-footer__bottom {
    flex-direction: row;
    align-items: center;
    font-size: 0.875rem;
  }
}

.soha-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ============================================================
   10. ANIMACJE WEJŚCIA (zamiennik framer-motion)
   ============================================================ */

.soha-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.soha-reveal--fade { transform: none; }

.soha-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.soha-hero__title,
.soha-hero__subtitle {
  animation: soha-rise 0.8s ease-out both;
}

.soha-hero__subtitle { animation-delay: 0.2s; }

@keyframes soha-rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .soha-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   11. STRONY POMOCNICZE (404 / blog)
   ============================================================ */

.soha-simple {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  padding: 6rem 1.5rem;
}

.soha-simple h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.soha-simple p { color: #a1a1aa; }

.soha-simple a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.25rem;
}

.soha-entry {
  max-width: 48rem;
  margin: 0 auto;
  padding: 9rem 1.5rem 6rem;
}

.soha-entry h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
}

.soha-entry p { margin-bottom: 1.25rem; color: #d4d4d8; }
