/*
Theme Name: Project Digital
Theme URI: https://www.projectdigital.pl/
Author: Ewa Otwinowska / Project Digital
Description: Lekki, pełnoszeroki motyw bazowy dla Elementor i Elementor Pro.
Version: 1.8.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: project-digital
*/

:root {
  --pd-purple: #6b16c7;
  --pd-purple-dark: #4d0e93;
  --pd-lilac: #e5e0f4;
  --pd-ink: #17131f;
  --pd-muted: #57515f;
  --pd-paper: #f7f5f1;
  --pd-white: #ffffff;
  --pd-border: #dcd6e2;
  --pd-content: 1280px;
  --pd-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pd-white);
  color: var(--pd-ink);
  font-family: Manrope, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pd-purple-dark); text-underline-offset: .18em; }
a:hover { color: var(--pd-purple); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #ffb000; outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; top: 12px; left: 12px; z-index: 100000;
  width: auto; height: auto; padding: 12px 16px; margin: 0;
  clip: auto; background: var(--pd-white); color: var(--pd-ink);
}

.pd-shell { width: min(var(--pd-content), calc(100% - 48px)); margin-inline: auto; }
.pd-main { min-height: 60vh; }
.pd-content { padding-block: clamp(56px, 8vw, 104px); }
.pd-content > *:first-child { margin-top: 0; }
.pd-content > *:last-child { margin-bottom: 0; }

.pd-header { background: var(--pd-white); border-bottom: 1px solid var(--pd-border); }
.pd-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.pd-brand { display: inline-flex; align-items: center; color: var(--pd-ink); font-size: 18px; font-weight: 800; text-decoration: none; }
.pd-brand img { width: auto; max-height: 50px; }
.pd-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.pd-menu a { color: var(--pd-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.pd-menu a:hover { color: var(--pd-purple); }

.pd-footer { padding-block: 42px; background: var(--pd-ink); color: var(--pd-white); }
.pd-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pd-footer a { color: var(--pd-white); }

h1, h2, h3, h4, h5, h6 { color: var(--pd-ink); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(38px, 5vw, 68px); }
h2 { font-size: clamp(31px, 4vw, 54px); }
h3 { font-size: clamp(22px, 2.3vw, 30px); }

.elementor-section-wrap,
.elementor-location-single,
.elementor-location-archive,
.elementor-location-header,
.elementor-location-footer,
.elementor-page .site-main,
.elementor-page .pd-main { width: 100%; max-width: none; }
.elementor-button { font-size: 15px; line-height: 1.2; }
.elementor-widget-text-editor { color: var(--pd-muted); }

/* Native Elementor homepage */
.pd-native {
  --p: var(--pd-purple);
  --d: var(--pd-ink);
  --l: var(--pd-lilac);
  --b: var(--pd-paper);
  width: 100%;
  max-width: none;
  overflow: hidden;
  color: var(--d);
}
.pd-native .sec { --width: 100%; width: 100%; padding: 88px clamp(24px, 6vw, 96px); }
.pd-native .inner { --width: 100% !important; width: 100% !important; max-width: 1280px !important; flex: 0 0 100% !important; margin-inline: auto !important; }
.pd-native .two, .pd-native .grid4, .pd-native .grid2 { display: flex !important; }
.pd-native .two > .e-con-inner { display: grid; width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; align-items: center; }
.pd-native .grid4 > .e-con-inner { display: grid; width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pd-native .grid2 > .e-con-inner { display: grid; width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pd-native .kick, .pd-native .kick p { margin: 0; color: var(--p); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pd-native .hd h1, .pd-native .hd h2, .pd-native .hd h3 { margin: 0; color: var(--d); }
.pd-native .hd h1 { font-size: clamp(44px, 5vw, 68px); line-height: 1.04; letter-spacing: -.04em; }
.pd-native .hd h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.pd-native .hd h3 { font-size: 25px; line-height: 1.2; }
.pd-native .copy, .pd-native .copy p { margin: 0; color: #4b4653; font-size: 17px; line-height: 1.65; }
.pd-native .btn .elementor-button { padding: 14px 20px; border-radius: 999px; background: var(--p); color: #fff; font-size: 15px; font-weight: 800; line-height: 1.2; }
.pd-native .btn .elementor-button:hover { background: var(--d); color: #fff; }
.pd-native .hero { min-height: 650px; background: var(--b); }
.pd-native .herocopy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pd-native .photo { min-height: 520px; overflow: hidden; border-radius: 24px; background-color: var(--l) !important; background-image: url('/wp-content/uploads/2026/09/eo2.png') !important; background-position: center 14% !important; background-size: cover !important; background-repeat: no-repeat !important; }
.pd-native .photo .elementor-widget-image { width: 100%; height: 100%; }
.pd-native .photo img { width: 100%; height: 520px; object-fit: cover; object-position: center 14%; }
.pd-native .photo img[src*="/elementor/assets/images/placeholder"] { display: none; }
.pd-native .services { background: #fff; }
.pd-native .card { display: flex; min-height: 230px; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--pd-border); border-radius: 16px; }
.pd-native .card.dark { border-color: var(--d); background: var(--d); color: #fff; }
.pd-native .card.purple { border-color: var(--p); background: var(--p); color: #fff; }
.pd-native .card.dark h3, .pd-native .card.dark p, .pd-native .card.purple h3, .pd-native .card.purple p { color: #fff; }
.pd-native .about { background: var(--p); color: #fff; }
.pd-native .about h2, .pd-native .about .copy, .pd-native .about .copy p { color: #fff; }
.pd-native .about .kick, .pd-native .about .kick p { color: #eee7ff; }
.pd-native .aboutbox { display: flex; flex-direction: column; gap: 20px; padding: 38px; border: 1px solid #ffffff66; border-radius: 18px; }
.pd-native .work { background: var(--b); }
.pd-native .case { display: flex; min-height: 210px; flex-direction: column; gap: 12px; padding: 30px; border: 1px solid var(--pd-border); border-radius: 16px; background: #fff; }
.pd-native .case .elementor-button { padding: 0; background: transparent; color: var(--p); }
.pd-native .process { background: #fff; }
.pd-native .step { display: grid; grid-template-columns: 55px 1fr 1fr; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--pd-border); }
.pd-native .cta { background: var(--d); text-align: center; }
.pd-native .cta h2, .pd-native .cta .copy, .pd-native .cta .copy p { color: #fff; }
.pd-native .cta .kick, .pd-native .cta .kick p { color: #cfc3f0; }
.pd-native .cta .elementor-button { background: #fff; color: var(--d); }

@media (max-width: 782px) {
  .pd-shell { width: min(100% - 32px, var(--pd-content)); }
  .pd-header__inner { min-height: 68px; }
  .pd-menu { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .pd-menu a { font-size: 14px; }
  .pd-footer__inner { align-items: flex-start; flex-direction: column; }
  .pd-native .sec { padding: 70px 32px; }
  .pd-native .two > .e-con-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pd-native .grid4 > .e-con-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .pd-shell { width: min(100% - 28px, var(--pd-content)); }
  .pd-header__inner { align-items: flex-start; flex-direction: column; padding-block: 14px; gap: 12px; }
  .pd-menu { justify-content: flex-start; gap: 10px 16px; }
  .elementor-button { font-size: 15px; padding: 13px 18px; }
  .pd-native .sec { padding: 54px 20px; }
  .pd-native .two > .e-con-inner, .pd-native .grid4 > .e-con-inner, .pd-native .grid2 > .e-con-inner { grid-template-columns: 1fr; }
  .pd-native .hd h1 { font-size: 38px; }
  .pd-native .hd h2 { font-size: 31px; }
  .pd-native .hd h3 { font-size: 22px; }
  .pd-native .copy, .pd-native .copy p { font-size: 16px; }
  .pd-native .photo, .pd-native .photo img { min-height: 380px; height: 380px; }
  .pd-native .card { min-height: auto; }
  .pd-native .step { grid-template-columns: 38px 1fr; }
  .pd-native .step .copy { grid-column: 2; }
}

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