/* ==========================================================================
   REALTIME.WORKS — styles.css
   Edytuj sekcje niezależnie. Każdy blok jest oznaczony komentarzem.
   ========================================================================== */


/* ==========================================================================
   :ROOT — zmienne globalne
   Zmień tutaj żeby zmienić wszędzie.
   ========================================================================== */

:root {
  --white:      #FAFAF8;
  --black:      #0E0E0D;
  --gray-100:   #F2F1EE;
  --gray-200:   #E4E2DC;
  --gray-400:   #A8A49A;
  --gray-600:   #6B6760;
  --line:       rgba(14, 14, 13, 0.1);

  --font-display: 'Switzer', sans-serif;
  --font-ui:      'Switzer', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-logo:    'Switzer', sans-serif;

  --section-pad: 96px;
  --page-pad:    48px;
}


/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ui);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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


/* ==========================================================================
   TYPOGRAFIA — wspólne klasy
   ========================================================================== */

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gray-600);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  max-width: 640px;
}

.section-title em {
  font-style: normal;
  color: var(--gray-600);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  margin-bottom: 48px;
}


/* ==========================================================================
   ANIMACJE — reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ==========================================================================
   NAV
   ========================================================================== */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--page-pad);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled {
  border-color: var(--line);
}

/* --- Logo --- */
.nav-logo {
  font-family: var(--font-logo);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--black);
}

/* --- Tag (środek) --- */
.nav-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: 0.08em;
}

/* --- CTA --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.5;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 96px;
}

/* --- Lewa kolumna --- */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px var(--page-pad);
  border-right: 1px solid var(--line);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gray-600);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-title em {
  font-style: normal;
  color: var(--gray-600);
}

.hero-desc {
  margin-top: 40px;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* --- Przyciski --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 14px 24px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--gray-600);
}

.btn-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-link:hover {
  color: var(--black);
  border-color: var(--black);
}

/* --- Prawa kolumna (zdjęcie) --- */
.hero-right {
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.2s 0.2s ease both;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Stat badge --- */
.hero-stat {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  padding: 20px 24px;
  border: 1px solid var(--line);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gray-600);
  margin-top: 4px;
}


/* ==========================================================================
   TICKER
   ========================================================================== */

.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--gray-100);
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  white-space: nowrap;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  background: var(--gray-400);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ==========================================================================
   SERVICES
   ========================================================================== */

.services {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.service-item {
  padding: 48px var(--page-pad);
  border-right: 1px solid var(--line);
  transition: background 0.3s;
}

.service-item:last-child {
  border-right: none;
}

.service-item:hover {
  background: var(--gray-100);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.service-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.2;
}

.service-list {
  list-style: none;
}

.service-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-list li::before {
  content: '—';
  color: var(--gray-400);
}


/* ==========================================================================
   GALLERY
   Dwie kolumny, proporcje 4:3, jedna kolumna na mobile.
   ========================================================================== */

.gallery {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 0 var(--page-pad);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.gallery-item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 20px 16px;
  background: linear-gradient(transparent, rgba(14, 14, 13, 0.6));
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(250, 250, 248, 0.9);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-label {
  opacity: 1;
}


/* ==========================================================================
   CLIENTS
   ========================================================================== */

.clients {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}

.clients-marquee-wrap {
  overflow: hidden;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: ticker 25s linear infinite;
}

.clients-track img {
  height: 36px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(1);
  flex-shrink: 0;
  transition: opacity 0.3s, filter 0.3s;
}

.clients-track img:hover {
  opacity: 0.8;
  filter: grayscale(0);
}


/* ==========================================================================
   PROCESS
   ========================================================================== */

.process {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}

.process-list {
  padding: 0 var(--page-pad);
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  gap: 48px;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
  padding-top: 4px;
}

.process-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.process-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}


/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.cta-left {
  padding: 80px var(--page-pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.05;
}

.cta-title em {
  font-style: normal;
  color: var(--gray-600);
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.cta-email {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
  width: fit-content;
  transition: opacity 0.2s;
}

.cta-email:hover {
  opacity: 0.5;
}

.cta-right {
  position: relative;
  overflow: hidden;
}

.cta-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--black);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 0.1em;
}


/* ==========================================================================
   RESPONSIVE — mobile
   ========================================================================== */

@media (max-width: 900px) {

  :root {
    --page-pad: 24px;
    --section-pad: 64px;
  }

  /* Nav */
  nav {
    padding: 20px var(--page-pad);
  }

  .nav-tag {
    display: none;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 40px var(--page-pad);
    border-right: none;
  }

  .hero-right {
    height: 60vw;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Section header */
  .section-header {
    flex-direction: column;
    gap: 16px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  /* Gallery — jedna kolumna na mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-item {
    grid-template-columns: 40px 1fr;
    gap: 24px;
  }

  .process-desc {
    grid-column: 2;
  }

  /* CTA */
  .cta {
    grid-template-columns: 1fr;
  }

  .cta-left {
    border-right: none;
    padding: 48px var(--page-pad);
  }

  .cta-right {
    height: 280px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
