/*
Theme Name:  TONEFORM Studio
Theme URI:   https://toneformstudio.pl
Author:      TONEFORM Studio
Author URI:  https://toneformstudio.pl
Description: Oficjalny motyw TONEFORM Studio — agencja kreatywna specjalizująca się w projektowaniu produktów cyfrowych. Styl pop-art, typografia Syne + DM Sans, pełna obsługa PL/EN.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     Proprietary
Text Domain: toneform-studio
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}
svg { max-width: none; }
.logo svg { max-width: 100%; }

:root {
  --y:  #00E8D6;
  --y2: #00CFC0;
  --k:  #0D0D0D;
  --w:  #FFFFFF;
  --p:  #FF2D78;
  --p2: #e0155a;
  --g:  #F0F0F0;
  --serif: 'Syne', sans-serif;
  --sans:  'DM Sans', sans-serif;
  --sh:     4px 4px 0 var(--k);
  --sh-big: 6px 6px 0 var(--k);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--y);
  color: var(--k);
  font-family: var(--sans);
  line-height: 1.6;
  cursor: crosshair;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* HALFTONE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  background: var(--y);
  color: var(--k);
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  z-index: 9999;
  border: 2px solid var(--k);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(1rem, 6vw, 6rem);
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--k);
  border-bottom: 3px solid var(--k);
}
.logo {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--y);
  text-decoration: none;
  padding: .3rem 0;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: clamp(160px, 30vw, 360px);
}
.logo svg { width: 100%; height: auto; max-height: 1.5rem; display: block; }
.logo span { color: var(--p); }
.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-links { display: flex; list-style: none; }
.nav-links a {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  padding: .3rem 1rem;
  display: flex;
  align-items: center;
  transition: all .15s;
}
.nav-links a:hover { color: var(--y); background: rgba(0,232,214,.1); }
.nav-links a:focus-visible { outline: 2px solid var(--y); outline-offset: -2px; }
.nav-cta {
  padding: .45rem 1.4rem;
  background: var(--p);
  color: var(--w);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s;
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.nav-cta:hover { background: var(--p2); }
.nav-cta:focus-visible { outline: 2px solid var(--y); outline-offset: -2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--y);
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
  padding: 8rem clamp(1.5rem, 6vw, 6rem) 5rem;
}
.hero-left { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: .88;
  letter-spacing: -.04em;
  color: var(--k);
  margin-bottom: 2.5rem;
  position: relative;
}
.hero-h1 em { font-style: normal; color: var(--p); display: block; -webkit-text-stroke: 0; }
.hero-h1 .outline { -webkit-text-stroke: 3px var(--k); color: transparent; }
.hero-desc {
  font-size: 1.05rem;
  color: var(--k);
  max-width: 44ch;
  line-height: 1.75;
  margin-bottom: 3rem;
  font-weight: 400;
  border-left: 4px solid var(--k);
  padding-left: 1.2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  padding: .9rem 2.2rem;
  background: var(--k);
  color: var(--y);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 3px solid var(--k);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--sh-big);
}
.btn-primary:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--k); }
.btn-primary:focus-visible { outline: 2px solid var(--p); outline-offset: 3px; }
.btn-ghost {
  padding: .9rem 2.2rem;
  background: var(--w);
  color: var(--k);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 3px solid var(--k);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--sh-big);
}
.btn-ghost:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--k); }
.btn-ghost:focus-visible { outline: 2px solid var(--p); outline-offset: 3px; }

/* ============================================================
   SECTION BASE
   ============================================================ */
section { padding: 6rem clamp(1.5rem, 6vw, 6rem); position: relative; z-index: 1; }
section > .section-header,
section > .services-grid,
section > .about-grid,
section > .process-list,
section > .training-grid { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-header { margin-bottom: 4rem; display: flex; flex-direction: column; gap: 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--p);
  color: var(--k);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  margin-bottom: 1rem;
  width: fit-content;
}
.section-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--k);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--w); border-top: 3px solid var(--k); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 3px solid var(--k);
  border-left: 3px solid var(--k);
}
.service-card {
  border-right: 3px solid var(--k);
  border-bottom: 3px solid var(--k);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  background: var(--w);
  transition: background .15s, transform .15s;
  cursor: default;
}
.service-card:hover {
  background: var(--y);
  transform: translate(-2px,-2px);
  z-index: 2;
  box-shadow: 5px 5px 0 var(--k);
}
.service-card::after { display: none; }
.service-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 800;
  color: #828282;
  line-height: 1;
  margin-bottom: .3rem;
  letter-spacing: -.04em;
}
.service-name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--k);
  margin-bottom: .8rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.service-desc { font-size: .83rem; color: #333; line-height: 1.75; }
.service-list { margin-top: 1rem; list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.service-list li {
  font-size: .76rem;
  color: #444;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-weight: 400;
}
.service-list li::before { content: '—'; color: var(--p); font-weight: 800; flex-shrink: 0; }
.service-card .card-cta,
.training-card .card-cta {
  display: inline-block;
  margin-top: 1.4rem;
  padding: .5rem 1.1rem;
  background: var(--k);
  color: var(--y);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--k);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  box-shadow: 3px 3px 0 var(--p);
}
.service-card:hover .card-cta,
.training-card:hover .card-cta { opacity: 1; transform: translateY(0); pointer-events: auto; }
.service-card .card-cta:focus-visible,
.training-card .card-cta:focus-visible { outline: 2px solid var(--p); outline-offset: 3px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--k); border-top: 3px solid var(--k); }
.about .section-label { background: var(--y); color: var(--k); }
.about .section-title { color: var(--w); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text p { font-size: .95rem; line-height: 1.9; color: rgba(255,255,255,.75); font-weight: 300; margin-bottom: 1.5rem; }
.about-text strong { color: var(--w); font-weight: 700; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 3px solid rgba(255,255,255,.12); }
.stat { padding: 2rem; border-bottom: 3px solid rgba(255,255,255,.12); position: relative; }
.stat:nth-child(odd) { border-right: 3px solid rgba(255,255,255,.12); }
.stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
.stat-num { font-family: var(--serif); font-size: 3rem; font-weight: 800; color: var(--y); line-height: 1; }
.stat-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: .5rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--g); border-top: 3px solid var(--k); }
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--k);
  border-left: 3px solid var(--k);
}
.process-step {
  border-right: 3px solid var(--k);
  border-bottom: 3px solid var(--k);
  padding: 2.5rem 2rem;
  position: relative;
  background: var(--g);
  transition: background .15s;
}
.process-step::before {
  content: attr(data-n);
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 800;
  color: #646464;
  line-height: 1;
  display: block;
  margin-bottom: .8rem;
  letter-spacing: -.04em;
}
.process-step-title { font-family: var(--serif); font-weight: 800; font-size: 1.1rem; color: var(--k); margin-bottom: .6rem; letter-spacing: -.02em; }
.process-step-desc { font-size: .82rem; color: #444; line-height: 1.8; }

/* ============================================================
   TRAINING
   ============================================================ */
.training { background: var(--y); border-top: 3px solid var(--k); }
.training .section-label { background: var(--k); color: var(--y); }
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 3px solid var(--k);
  border-left: 3px solid var(--k);
}
.training-card {
  border-right: 3px solid var(--k);
  border-bottom: 3px solid var(--k);
  padding: 2.2rem;
  background: var(--w);
  transition: background .15s, transform .15s;
}
.training-card:hover { background: var(--p); transform: translate(-2px,-2px); z-index: 2; box-shadow: 5px 5px 0 var(--k); }
.training-card:hover .training-card-desc { color: rgba(255,255,255,.85); }
.training-card:hover .training-card-title { color: var(--w); }
.training-card-tag { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--p); font-weight: 800; margin-bottom: .8rem; transition: color .15s; }
.training-card:hover .training-card-tag { color: var(--y); }
.training-card-title { font-family: var(--serif); font-weight: 800; font-size: 1.05rem; color: var(--k); line-height: 1.25; margin-bottom: .6rem; letter-spacing: -.02em; transition: color .15s; }
.training-card-desc { font-size: .8rem; color: #444; line-height: 1.75; transition: color .15s; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--p);
  border-top: 3px solid var(--k);
  padding: 9rem clamp(1.5rem, 6vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section > .cta-title,
.cta-section > .cta-sub,
.cta-section > .btn-cta { position: relative; z-index: 1; }
.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: var(--y);
  border-radius: 50%;
  border: 3px solid var(--k);
  z-index: 0;
  opacity: .25;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -50px;
  width: 300px; height: 300px;
  background: var(--k);
  border-radius: 50%;
  z-index: 0;
  opacity: .12;
}
.cta-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .9;
  letter-spacing: -.04em;
  margin-bottom: 2rem;
  color: var(--w);
  position: relative;
  z-index: 1;
}
.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 3rem;
  font-weight: 400;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.btn-cta {
  padding: 1.1rem 3.2rem;
  background: var(--y);
  color: var(--k);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 3px solid var(--k);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: all .15s;
  box-shadow: var(--sh-big);
  position: relative;
  z-index: 1;
}
.btn-cta:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--k); }
.btn-cta:focus-visible { outline: 2px solid var(--k); outline-offset: 3px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--k);
  color: var(--w);
  padding: 4.5rem clamp(1.5rem, 6vw, 6rem) 2.5rem;
  border-top: 3px solid var(--k);
  position: relative;
  z-index: 1;
}
footer > .footer-top,
footer > .footer-bottom { max-width: 1280px; margin-left: auto; margin-right: auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
  border-bottom: 2px solid rgba(255,255,255,.08);
  padding-bottom: 3.5rem;
}
.footer-logo { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; color: var(--y); }
.footer-logo span { color: var(--p); }
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.75; font-weight: 300; max-width: 26ch; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border: 2px solid rgba(255,255,255,.15); transition: all .15s; }
.footer-social a:hover { border-color: var(--y); background: var(--y); }
.footer-social a:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }
.footer-social svg { width: 12px; height: 12px; fill: rgba(255,255,255,.5); transition: fill .15s; }
.footer-social a:hover svg { fill: var(--k); }
.footer-col-title { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: #DC1E5F; margin-bottom: 1.2rem; font-weight: 800; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; font-weight: 400; }
.footer-links a:hover { color: var(--y); }
.footer-links a:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: .7rem; color: rgba(255,255,255,.25); }
.footer-lang { display: flex; border: 2px solid rgba(255,255,255,.15); overflow: hidden; }
.footer-lang button { padding: .3rem .7rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; background: transparent; border: none; cursor: pointer; color: rgba(255,255,255,.4); font-family: var(--sans); transition: all .15s; }
.footer-lang button.active { background: var(--y); color: var(--k); }
.footer-lang button:focus-visible { outline: 2px solid var(--y); outline-offset: -2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 0 .8rem; height: 52px; gap: 0; box-sizing: border-box; max-width: 100vw; overflow: hidden; }
  section, footer, .cta-section { max-width: 100%; box-sizing: border-box; }
  .logo { font-size: .72rem; letter-spacing: .04em; padding: 0; flex: 0 1 auto; min-width: 0; max-width: clamp(100px, 45vw, 220px); overflow: hidden; }
  .logo svg { max-height: 1.2rem; }
  .nav-right { gap: .4rem; flex: 0 0 auto; }
  .nav-links { display: none; }
  .nav-cta { padding: .32rem .7rem; font-size: .6rem; letter-spacing: .05em; line-height: 1.2; flex: 0 0 auto; border-width: 2px; box-shadow: 2px 2px 0 var(--k); }
  .hero { min-height: 0; padding: 6rem 1.2rem 2rem; }
  .hero-h1 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .hero-desc { font-size: .9rem; margin-bottom: 1.5rem; }
  .hero-cta { gap: .6rem; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.8rem); }
  .services-grid, .process-list, .training-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  section { padding: 3.5rem 1.2rem; }
  .cta-section { padding: 4rem 1.2rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-stats { grid-template-columns: 1fr; }
  .stat:nth-child(3) { border-bottom: 3px solid rgba(255,255,255,.12); }
  .hero-h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .cta-title { font-size: clamp(2rem, 9.5vw, 3rem); letter-spacing: -.03em; }
}
@media (min-width: 901px) {
  section:not(.hero), .cta-section { padding-bottom: 11rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (hover: none) {
  .service-card { cursor: default; transition: none; }
  .service-card:hover { background: var(--w); transform: none; z-index: auto; box-shadow: none; }
  .service-card:hover .card-cta { opacity: 0; transform: translateY(6px); pointer-events: none; }
  .training-card { cursor: default; transition: none; }
  .training-card:hover { background: var(--w); transform: none; z-index: auto; box-shadow: none; }
  .training-card:hover .training-card-desc { color: #444; }
  .training-card:hover .training-card-title { color: var(--k); }
  .training-card:hover .training-card-tag { color: var(--p); }
}
