/* ============================================
   TimCut — style.css
   Paleta i fonty 1:1 z timcut.pl:
   żółty #FFDB60, grafit #1D1F25 / #24272E, Anton (nagłówki), Poppins (tekst)
   ============================================ */

:root {
  --yellow:       #FFDB60;
  --yellow-2:     #FFE267;
  --dark-1:       #1D1F25;
  --dark-2:       #24272E;
  --dark-3:       #17191E;
  --gray-on-dark: #9DA5A9;
  --gray-on-light:#7F7F7F;
  --text:         #212121;

  --font-display: 'Anton', sans-serif;
  --font-body:    'Poppins', sans-serif;

  --container-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
  font-weight: 400;
}

/* ============ PRZYCISKI ============ */
.btn {
  display: inline-block;
  background: var(--dark-1);
  color: var(--yellow);
  padding: 16px 34px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 16px;
}
.btn:hover { background: var(--dark-3); }

.btn-dark { background: var(--dark-1); color: var(--yellow); width: 100%; padding: 18px; font-size: 17px; }
.btn-dark:hover { background: var(--dark-3); }

/* ============ NAGŁÓWEK ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: transparent;
  transition: background 0.25s ease;
}
.site-header.scrolled { background: var(--dark-1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo { display: flex; align-items: center; text-decoration: none; color: #fff; }
.logo-mark { height: 62px; width: auto; display: block; }

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.nav-toggle .icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 18px;
}
.nav-toggle .icon span {
  width: 100%; height: 2px; background: #fff; display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .label { line-height: 1; }

/* ============ MENU PEŁNOEKRANOWE ============ */
.overlay-nav {
  position: fixed;
  inset: 0;
  background: var(--dark-1);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.overlay-nav.open { transform: translateY(0); }
.overlay-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 34px;
  color: var(--gray-on-dark);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.overlay-nav a:hover { color: var(--yellow); }
.nav-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* ============ HERO ============ */
.hero { position: relative; display: flex; height: 100vh; min-height: 600px; }

.hero-swiper { width: 54%; height: 100%; overflow: hidden; }
/* NOTE: overflow:hidden lives ONLY on .hero-swiper (matches Swiper's own default).
   Adding it again on .swiper-wrapper/.swiper-slide/.hero-slide too (nested clipping
   contexts) triggers a real Chromium repaint bug: after a slide transition, the newly
   active slide's photo silently fails to paint (goes blank white) even though every
   computed style says it should be visible. Keep clipping at this one level only. */
.hero-slide {
  height: 100%;
  position: relative;
  background: var(--dark-3);
  /* clip-path (not overflow:hidden — that's what caused the repaint bug above) keeps the
     zoomed (scale 1.1) photo from bleeding into the neighbouring slide's column. */
  clip-path: inset(0);
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  display: block;
}
.swiper-slide-active .hero-slide-bg {
  animation: heroZoom 7s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,25,30,0.8) 0%, rgba(23,25,30,0.1) 40%, rgba(23,25,30,0.45) 100%);
}

.hero-label-row {
  position: absolute;
  left: 40px;
  bottom: 60px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 50%;
}
.hero-label-bar { width: 40px; height: 4px; background: var(--yellow); flex-shrink: 0; }
.hero-slide-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--yellow);
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1;
}

.hero-counter {
  position: absolute;
  right: calc(46% + 40px);
  top: 116px;
  z-index: 5;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  background: rgba(23,25,30,0.4);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  width: 52px; height: 52px;
  font-size: 26px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.hero-arrow:hover { background: var(--yellow); color: var(--dark-1); border-color: var(--yellow); transform: translateY(-50%) scale(1.06); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: calc(46% + 24px); }

.hero-panel {
  width: 46%;
  height: 100%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--dark-1);
  font-size: clamp(60px, 9vw, 130px);
  line-height: 0.95;
  text-align: center;
  opacity: 0.9;
}

/* ============ O NAS ============ */
.about { background: var(--dark-1); padding: 110px 0; color: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.about-heading { margin-bottom: 28px; }
.about-heading .line-accent {
  display: block;
  color: var(--yellow);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
}
.about-heading .line-main {
  display: block;
  color: #fff;
  font-size: clamp(38px, 4.5vw, 58px);
}
.about-text p { color: var(--gray-on-dark); font-size: 16px; margin-bottom: 32px; }

.about-image img { width: 100%; height: 420px; object-fit: cover; border: 6px solid var(--yellow); }

/* ============ USŁUGI ============ */
.services { background: var(--yellow); padding: 100px 0 70px; overflow: hidden; }

.services-heading {
  position: relative;
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}
.services-ghost {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(36px, 7vw, 90px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(29, 31, 37, 0.25);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.services-heading h2 {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(40px, 6vw, 64px);
  color: var(--dark-1);
}

.service-card {
  background: var(--dark-2);
  padding: 0 0 36px;
  height: auto;
}
.service-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  margin-bottom: 26px;
}
.service-eyebrow {
  display: block;
  color: var(--yellow);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin: 0 30px 8px;
}
.service-card h3 { color: #fff; font-size: 32px; margin: 0 30px 16px; }
.service-card p { color: var(--gray-on-dark); font-size: 15px; margin: 0 30px; max-width: 46em; }

.services-swiper { padding-bottom: 56px; }
.services-pagination { position: relative; }
.services-pagination .swiper-pagination-bullet { background: var(--dark-1); opacity: 0.35; }
.services-pagination .swiper-pagination-bullet-active { opacity: 1; }

/* ============ KONTAKT ============ */
.contact { background: var(--yellow); padding: 100px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.form-row { margin-bottom: 18px; }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 18px 20px;
  border: none;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  resize: vertical;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #9a9a9a; text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; }
.form-row input:focus,
.form-row textarea:focus { outline: 3px solid var(--dark-1); outline-offset: -3px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--dark-1);
  margin-bottom: 26px;
  cursor: pointer;
}
.consent input { margin-top: 4px; }
.consent a { color: var(--dark-1); font-weight: 700; }

.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-status.success { color: #1a5c2a; }
.form-status.error { color: #8a1f1f; }

.contact-text { padding-top: 12px; }
.contact-text p { color: var(--dark-1); font-size: 16px; }

/* ============ STOPKA ============ */
.site-footer { background: var(--dark-3); color: #fff; padding: 80px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid #2a2d34;
}

.footer-brand .logo { margin-bottom: 26px; }
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a {
  color: var(--gray-on-dark);
  text-decoration: none;
  font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.footer-nav a:hover { color: var(--yellow); }
.bullet { width: 7px; height: 7px; background: var(--yellow); display: inline-block; flex-shrink: 0; }

.footer-contact h3 { color: var(--yellow); font-size: 34px; margin-bottom: 18px; }
.footer-contact p { margin: 0 0 8px; color: var(--gray-on-dark); font-size: 15px; }
.footer-contact .footer-company { color: #fff; font-weight: 600; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: var(--yellow); }

.footer-bottom { padding: 22px 0; color: #6b7177; font-size: 13px; }

/* ============ RESPONSYWNOŚĆ ============ */

/* Tablet i mniejsze laptopy: sekcje w jednej kolumnie, slider w pionie */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  .hero { flex-direction: column; height: auto; min-height: 0; }
  .hero-swiper { width: 100%; height: 62vh; min-height: 420px; }
  .hero-panel { width: 100%; height: 20vh; min-height: 150px; }
  .hero-wordmark { font-size: clamp(44px, 11vw, 90px); }
  .hero-arrow-next { right: 16px; }
  .hero-arrow-prev { left: 16px; }
  .hero-label-row { max-width: 62%; }
  .hero-counter { right: 40px; top: 96px; }

  .services-heading { margin-bottom: 40px; }
}

/* Telefony: mniejsze odstępy i typografia w hero */
@media (max-width: 560px) {
  .hero-swiper { height: 56vh; min-height: 360px; }
  .hero-panel { height: 18vh; min-height: 120px; }
  .hero-wordmark { font-size: clamp(38px, 15vw, 64px); }
  .hero-arrow { width: 42px; height: 42px; font-size: 22px; }
  .hero-label-row { left: 20px; bottom: 24px; max-width: 68%; gap: 10px; }
  .hero-label-bar { width: 26px; height: 3px; }
  .hero-slide-label { font-size: clamp(22px, 7.5vw, 34px); }
  .hero-counter { right: 20px; top: 84px; font-size: 12px; }

  .about, .services, .contact { padding: 56px 0; }
  .header-inner { height: 74px; }
  .logo-mark { height: 48px; }
  .about-image img { height: 280px; }
}
