/* ==========================================================================
   JP Julia Polkowska — Marketing bez ściemy
   Wspólny arkusz stylów dla wszystkich podstron
   ========================================================================== */

:root {
  --color-lime: #CBFF9B;
  --color-lavender: #D8C6FA;
  --color-orange: #FA6C06;
  --color-black: #1B1B1B;
  --color-cream: #FEFDFA;
  --color-bg: #EEFAE3;
  --color-surface: #FFFFFF;
  --color-alt-band: #F6F0FF;
  --color-line: #1B1B1B14;
  --color-gray-text: #6B6B6B;
  --color-body-text: #333333;

  --pill-lime-bg: #DFFAC0;
  --pill-lime-text: #3E6B12;
  --pill-lavender-bg: #EEE3FE;
  --pill-lavender-text: #5B3AA6;
  --pill-peach-bg: #FFE3C4;
  --pill-peach-text: #B0480A;

  --shadow-sm: 0 1px 2px rgba(27, 27, 27, 0.06), 0 1px 4px rgba(27, 27, 27, 0.07);
  --shadow-md: 0 4px 10px rgba(27, 27, 27, 0.06), 0 10px 28px rgba(27, 27, 27, 0.09);

  --font-heading: "Bricolage Grotesque", sans-serif;
  --font-body: "Karla", sans-serif;

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 6px;

  --max-width: 1140px;
}

/* ---------- Reset / bazowe ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-body-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
}

h3 {
  font-weight: 600;
}

p {
  margin: 0 0 1em 0;
}

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

section {
  padding: 64px 0;
}

/* ---------- Podświetlenie markerem ---------- */
.highlight {
  background-color: var(--color-lime);
  padding: 0.05em 0.4em;
  border-radius: var(--radius-sm);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.underline-accent {
  text-decoration: underline;
  text-decoration-color: var(--color-orange);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

/* ---------- Dekoracje: gradient i kwiatki ---------- */
.gradient-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-lime) 0%, #F3FBEE 42%, var(--color-lavender) 100%);
  border-radius: var(--radius-xl);
  padding: 48px 40px 44px;
  margin-bottom: 8px;
}

.gradient-band > * {
  position: relative;
  z-index: 1;
}

.deco-flower {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco-flower--orange { color: var(--color-orange); }
.deco-flower--lavender { color: #B896F2; }
.deco-flower--lime { color: #8FCB4E; }

.deco-flower--1 { width: 72px; height: 72px; top: -20px; right: 64px; opacity: 0.9; }
.deco-flower--2 { width: 38px; height: 38px; bottom: 16px; right: 170px; opacity: 0.85; }
.deco-flower--3 { width: 28px; height: 28px; top: 38%; right: 12px; opacity: 0.7; }

/* ---------- Przyciski CTA ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background-color: var(--color-orange);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(250, 108, 6, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-black);
}

.btn-outline:hover {
  background-color: var(--color-black);
  color: var(--color-cream);
}

/* ---------- Nawigacja ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 110;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-black);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}

.nav-menu a.active,
.nav-menu a:hover {
  color: var(--color-orange);
}

.nav-menu .btn {
  padding: 10px 22px;
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-text {
  flex: 1 1 55%;
}

.hero-image {
  flex: 1 1 40%;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background-color: var(--color-lavender);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 24px;
}

.hero .lead {
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-quote {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  max-width: 480px;
}

.hero-quote .quote-mark {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 0.6;
  color: var(--color-orange);
  flex-shrink: 0;
  margin-top: 10px;
}

.hero-quote p {
  font-size: 15px;
  font-style: italic;
  margin-bottom: 6px;
}

.hero-quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-gray-text);
}

/* ---------- Pigułki / tagi ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pill--lime {
  background-color: var(--pill-lime-bg);
  color: var(--pill-lime-text);
}

.pill--lavender {
  background-color: var(--pill-lavender-bg);
  color: var(--pill-lavender-text);
}

.pill--peach {
  background-color: var(--pill-peach-bg);
  color: var(--pill-peach-text);
}

/* ---------- Karty ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--color-black);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  margin-bottom: 20px;
  color: var(--color-body-text);
}

.card-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-orange);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Sekcje ogólne ---------- */
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 16px;
}

.section-intro {
  max-width: 60ch;
  margin-bottom: 40px;
  font-size: 17px;
  color: #333;
}

.section-alt {
  background-color: var(--color-alt-band);
}

/* ---------- Branże / tagi ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.industry-item {
  padding: 24px;
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.industry-item h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.industry-item p {
  font-size: 14px;
  color: var(--color-gray-text);
  margin-bottom: 0;
}

/* ---------- Cytaty / opinie ---------- */
.quote {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  font-size: 17px;
  font-style: italic;
  margin-bottom: 20px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.quote-grid .quote {
  margin-bottom: 0;
  font-size: 15px;
}

.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-gray-text);
}

/* ---------- CTA na dole strony ---------- */
.cta-band {
  background-color: var(--color-lavender);
  color: var(--color-black);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  margin: 0 24px;
  max-width: calc(var(--max-width) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.cta-band h2 {
  color: var(--color-black);
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 16px;
}

.cta-band p {
  color: #333;
  max-width: 50ch;
  margin: 0 auto 28px;
}

.cta-band--lime {
  background-color: var(--color-lime);
}

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

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.section-divider {
  padding: 48px 0;
}

/* ---------- O mnie ---------- */
.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.about-image {
  flex: 1 1 40%;
  position: sticky;
  top: 100px;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-text {
  flex: 1 1 55%;
}

.about-text h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.timeline {
  margin-top: 16px;
}

.timeline-item {
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--color-line);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-orange);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* ---------- Usługi ---------- */
.service-category {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.service-category:last-of-type {
  margin-bottom: 0;
}

.category-header {
  margin-bottom: 32px;
  max-width: 68ch;
}

.category-header .pill {
  margin-bottom: 14px;
}

.category-header h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin-bottom: 10px;
}

.category-header p {
  color: var(--color-gray-text);
  margin-bottom: 0;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.service-card--wide {
  grid-column: 1 / -1;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service-card > p {
  margin-bottom: 16px;
}

.service-card ul {
  margin: 0 0 16px;
}

.service-card ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--color-body-text);
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--color-orange);
  border-radius: 50%;
}

.service-card .note {
  font-size: 13px;
  color: var(--color-gray-text);
  font-style: italic;
  margin-bottom: 0;
}

/* ---------- Notka o wycenie ---------- */
.pricing-note {
  background-color: var(--color-alt-band);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}

.pricing-note p {
  font-size: 17px;
  max-width: 46ch;
  margin: 0 auto 24px;
}

.pricing-note .note-small {
  display: block;
  font-size: 14px;
  color: var(--color-gray-text);
  margin-top: 12px;
}

/* ---------- Portfolio ---------- */
.case-study {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
  padding: 44px;
  margin-bottom: 56px;
}

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 28px;
}

.case-study-stat {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.case-study-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-orange);
}

.case-study-stat span {
  font-size: 12px;
  color: var(--color-gray-text);
}

.case-study-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-study-quote {
  background-color: var(--color-alt-band);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  font-size: 14px;
  font-style: italic;
}

.case-study-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-gray-text);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.portfolio-card {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.portfolio-thumb {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  color: var(--color-black);
}

.portfolio-thumb svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

.portfolio-thumb--lime { background-color: var(--pill-lime-bg); }
.portfolio-thumb--lavender { background-color: var(--pill-lavender-bg); }
.portfolio-thumb--peach { background-color: var(--pill-peach-bg); }

.portfolio-body {
  padding: 24px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-orange);
  margin-bottom: 8px;
}

.portfolio-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.portfolio-tags .portfolio-tag {
  margin-bottom: 0;
}

.portfolio-tag--type {
  display: inline-block;
  background-color: var(--color-bg);
  color: var(--color-gray-text);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 11px;
  border-radius: 999px;
}

.portfolio-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.portfolio-body p {
  font-size: 14px;
  color: var(--color-gray-text);
  margin-bottom: 0;
}

/* ---------- Kontakt ---------- */
.contact-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  margin-top: 48px;
}

.contact-form-col {
  flex: 1 1 55%;
}

.contact-links-col {
  flex: 1 1 35%;
}

/* ---------- Karty kontaktowe ---------- */
.social-links-card {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
}

.social-links-card h3 {
  font-size: 17px;
  margin-bottom: 20px;
}

.calendar-card p {
  color: var(--color-gray-text);
  margin-bottom: 24px;
}

.social-link-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.social-link-item .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-orange);
}

.social-link-item span {
  color: var(--color-gray-text);
  font-size: 13px;
  display: block;
  font-weight: 400;
}

.social-link-item strong {
  display: block;
  font-size: 15px;
}

/* ---------- Stopka ---------- */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-line);
  padding: 56px 0 24px;
  margin-top: 64px;
}

.footer-cta-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 40px;
  max-width: 20ch;
}

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

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-text);
  margin-bottom: 12px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
}

.footer-contact-link .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-black);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.footer-social a:hover {
  background-color: var(--color-black);
  color: var(--color-cream);
}

.footer-social .icon {
  width: 18px;
  height: 18px;
}

.footer-cta {
  margin-bottom: 32px;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--color-gray-text);
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 860px) {
  .hero .container {
    flex-direction: column-reverse;
  }

  .hero-image {
    width: 100%;
  }

  .about-layout {
    flex-direction: column;
  }

  .about-image {
    position: static;
  }

  .contact-layout {
    flex-direction: column;
    gap: 40px;
  }

  .case-study {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background-color: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--color-line);
    z-index: 95;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 18px;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(27, 27, 27, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  section {
    padding: 48px 0;
  }

  .cta-band {
    padding: 40px 24px;
    margin: 0 16px;
  }

  .gradient-band {
    padding: 36px 24px 32px;
  }

  .deco-flower--2 {
    display: none;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 16px 20px;
  }

  .hero {
    padding: 40px 0 56px;
  }
}
