/* ==========================================================================
   WPLANIE — style.css
   ========================================================================== */

:root {
  --navy: #160fb6;
  --navy-dark: #0d0a7f;
  --navy-light: #0f36d0;
  --cream: #fbfbf3;
  --cream-dark: #f2eddb;
  --text-dark: #2b2716;
  --text-muted: #5c5a52;
  --white: #ffffff;
  --border: #e2dccb;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Poppins", "Segoe UI", Arial, sans-serif;

  --container-width: 1160px;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

section {
  padding: 90px 0;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 14px 34px;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  z-index: -1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(32, 29, 120, 0.18);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(32, 29, 120, 0.15);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:disabled::before {
  transform: scaleX(0);
}

.btn-solid {
  background: var(--navy);
  color: var(--white);
}

.btn-solid::before {
  background: var(--navy-dark);
}

.btn-light {
  border-color: var(--white);
  color: var(--white);
}

.btn-light::before {
  background: var(--white);
}

.btn-light:hover {
  color: var(--navy);
}

/* ---------- Placeholder images ---------- */
.img-placeholder-wrap {
  overflow: hidden;
  position: relative;
}

.img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  background:
    repeating-linear-gradient(
      45deg,
      #e4ddc8,
      #e4ddc8 12px,
      #ded6bf 12px,
      #ded6bf 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b8367;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-placeholder-wrap:hover .img-placeholder {
  transform: scale(1.04);
}

.img-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-placeholder-wrap:hover .img-photo {
  transform: scale(1.04);
}

.hero .img-photo {
  position: absolute;
  inset: 0;
  min-height: 480px;
}

.img-placeholder::before {
  content: attr(data-label);
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed #b3aa88;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 234, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 0 rgba(20, 18, 58, 0);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(20, 18, 58, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding 0.35s ease;
}

.site-header.scrolled .container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  transition: opacity 0.25s ease;
}

.logo:hover {
  opacity: 0.7;
}

.logo-img {
  display: block;
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  position: relative;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 6px;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--navy);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero .img-placeholder {
  position: absolute;
  inset: 0;
  min-height: 480px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 58, 0.55), rgba(20, 18, 58, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  width: 100%;
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-logo {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--navy-light);
  background: rgba(247, 243, 234, 0.92);
  display: inline-block;
  max-width: 620px;
  padding: 22px 46px;
}

/* ---------- Intro / split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}

.split-panel {
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-panel.navy {
  background: var(--navy);
  color: var(--white);
}

.split-panel h1,
.split-panel h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.3;
}

.split-panel.cream {
  background: var(--cream);
}

.split-panel.cream p {
  margin-bottom: 22px;
  color: var(--text-muted);
}

.split-panel.cream p:first-of-type {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.05rem;
}

/* ---------- Jak pracujemy ---------- */
.how-we-work {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.how-we-work .img-placeholder,
.how-we-work .img-photo {
  aspect-ratio: 4 / 3;
  min-height: 320px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.how-we-work h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 22px;
}

.how-we-work p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.how-we-work .location-line {
  font-weight: 600;
  color: var(--text-dark);
}

/* ---------- Etapy współpracy ---------- */
.stages {
  background: var(--cream-dark);
}

.stages h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 60px;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stage-card {
  background: var(--white);
  padding: 40px 32px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.stage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px rgba(32, 29, 120, 0.12);
  border-color: transparent;
}

.stage-card .stage-number {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 14px;
  transition: transform 0.35s ease;
}

.stage-card:hover .stage-number {
  transform: scale(1.1);
}

.stage-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.stage-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ---------- Co zyskasz ---------- */
.benefits h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.benefit-card {
  text-align: center;
}

.benefit-card .benefit-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--navy);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, color 0.35s ease;
}

.benefit-card:hover .benefit-number {
  transform: scale(1.12);
  background: var(--navy);
  color: var(--white);
}

.benefit-card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Biznes CTA ---------- */
.biznes {
  background: var(--navy);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
}

.biznes {
  background: var(--navy);
}

.biznes .img-placeholder {
  min-height: 100%;
}

.biznes .img-placeholder-wrap {
  align-self: center;
}

.biznes .img-photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
}

.biznes-text {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.biznes-text .eyebrow {
  color: var(--cream);
}

.biznes-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 20px;
}

.biznes-text p {
  color: #d8d6ef;
  margin-bottom: 30px;
}

/* ---------- Contact CTA / form ---------- */
.contact-cta {
  text-align: center;
}

.contact-cta h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.contact-cta > p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 50px;
}

.contact-cta > p + .btn {
  margin-top: 26px;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}

.contact-form .submit-row {
  text-align: center;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.2em;
}

.form-note.form-note-success {
  color: #1a7a3c;
  font-weight: 500;
}

.form-note.form-note-error {
  color: #b3261e;
  font-weight: 500;
}

/* ---------- Page header (Usługi / Kontakt) ---------- */
.page-hero {
  position: relative;
  padding: 110px 0 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  background: var(--white);
  color: var(--navy);
  display: inline-block;
  padding: 6px 20px;
  margin-bottom: 14px;
}

.page-hero .eyebrow-sub {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d8d6ef;
}

.page-hero .info-box {
  background: var(--white);
  color: var(--text-dark);
  padding: 36px 40px;
}

.page-hero .info-box p {
  font-size: 1.1rem;
}

/* ---------- Usługi content ---------- */
.package h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.package > .container > p {
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 20px;
}

.service-list-intro {
  margin-top: 30px;
  font-weight: 500;
  color: var(--text-dark);
}

.service-list {
  max-width: 780px;
  margin: 30px 0 40px;
  display: grid;
  gap: 14px;
}

.service-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dark);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--navy);
}

.package .closing {
  max-width: 780px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.package .note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 30px;
}

/* ---------- Kontakt page ---------- */
.kontakt-intro {
  padding: 70px 0 0;
}

.kontakt-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.kontakt-lead {
  color: var(--text-muted);
  max-width: 620px;
}


.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 60px 0 0;
  align-items: stretch;
}

.contact-page .img-placeholder-wrap {
  min-height: 100%;
  align-self: start;
}

.contact-page .img-placeholder {
  min-height: 100%;
}

.contact-page .img-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 480px;
}

.contact-details {
  display: grid;
  grid-template-rows: auto 1fr;
}

.contact-info {
  background: var(--cream-dark);
  padding: 70px 60px;
}

.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.contact-info .info-item a,
.site-footer p a {
  transition: color 0.25s ease;
}

.contact-info .info-item a:hover {
  color: var(--navy-light);
}

.site-footer p a:hover {
  color: var(--white);
}

.contact-info .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--navy);
}

.contact-page-form {
  padding: 70px 60px;
  background: var(--white);
}

.contact-page-form .contact-form {
  grid-template-columns: 1fr 1fr;
}

.social-row {
  margin-top: 40px;
  display: flex;
  gap: 24px;
}

.social-row a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cfcdea;
  padding: 50px 0 30px;
  text-align: center;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  margin: 0 auto;
}

.site-footer p {
  margin-top: 14px;
  font-size: 0.85rem;
}

.site-footer .footer-social {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Page transition overlay ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Social / footer link hover ---------- */
.footer-social a,
.social-row a {
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.footer-social a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.social-row a:hover {
  color: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
}

/* ---------- Form field focus polish ---------- */
.field input,
.field textarea {
  transition: border-color 0.2s ease;
}

/* ---------- Service list item hover ---------- */
.service-list li {
  transition: transform 0.25s ease;
}

.service-list li:hover {
  transform: translateX(4px);
}

.service-list li::before {
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-list li:hover::before {
  transform: scale(1.4);
  background: var(--navy-light);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split,
  .how-we-work,
  .biznes,
  .page-hero .container,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .how-we-work {
    gap: 30px;
  }

  .how-we-work .img-placeholder,
  .how-we-work .img-photo {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }

  .stage-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .split-panel {
    padding: 50px 30px;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }

  .contact-form,
  .contact-page-form .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    font-size: 1.3rem;
    letter-spacing: 0.01em;
    padding: 16px 24px;
  }

  .page-hero h1 {
    font-size: 1.9rem;
  }

  .split-panel h1,
  .split-panel h2,
  .how-we-work h2,
  .stages h2,
  .benefits h2,
  .contact-cta h2,
  .package h2,
  .confidentiality h2,
  .kontakt-title {
    font-size: 1.6rem;
  }

  .biznes-text h2 {
    font-size: 1.5rem;
  }

  .stage-card .stage-number {
    font-size: 1.7rem;
  }

  .benefit-card .benefit-number {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
}

/* ---------- Legal page ---------- */
.legal-page {
  padding: 70px 0 100px;
}

.legal-page .container {
  max-width: 780px;
}

.legal-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 36px 0 14px;
}

.legal-page p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal-page a {
  color: var(--navy);
  text-decoration: underline;
}

.legal-list {
  margin: 0 0 14px 20px;
  color: var(--text-muted);
}

.legal-list li {
  margin-bottom: 8px;
  list-style: disc;
}

.footer-legal-link {
  margin-top: 16px;
}

.footer-legal-link a {
  font-size: 0.8rem;
  color: #cfcdea;
  text-decoration: underline;
}

.footer-legal-link a:hover {
  color: var(--white);
}

@media (max-width: 700px) {
  .legal-title {
    font-size: 1.9rem;
  }
}

/* ---------- Consent checkbox ---------- */
.field-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.field-consent label {
  line-height: 1.5;
}

.field-consent a {
  color: var(--navy);
  text-decoration: underline;
}

/* ---------- O nas page ---------- */
.onas-intro {
  padding: 70px 0 0;
}

.onas-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.onas-lead {
  color: var(--text-muted);
  max-width: 620px;
}

.onas-values-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 50px 40px;
}

@media (max-width: 700px) {
  .onas-title {
    font-size: 1.6rem;
  }

  .onas-values-grid {
    grid-template-columns: 1fr;
  }
}
