/* ============================================================
   karolinakonecka.pl – main.css
   Paleta: black / silver / white („premium minimal”)
   ============================================================ */

:root {
  /* DARK MODE – inwersja palety (kwiecień 2026) */
  --color-bg:           #0F0F10;   /* ciemne tło strony */
  --color-bg-alt:       #17171A;   /* sekcje „alt” – minimalnie jaśniejsze */
  --color-text:         #F5F2EC;   /* ciepły off-white na tekst */
  --color-text-muted:   #A9A39A;   /* drugorzędny tekst */
  --color-accent:       #F5F2EC;   /* CTA jasne (kontra) */
  --color-accent-hover: #FFFFFF;
  --color-silver:       #C9C2B6;
  --color-hairline:     #2A2A2D;   /* delikatne ciemne linie */
  --color-card-bg:      #1B1B1F;   /* karty/quotes – nieco jaśniejsze niż tło */
  --color-success:      #B6E0BB;
  --color-success-bg:   #1F3A22;
  --color-error:        #F4B4B0;
  --color-error-bg:     #3A1F1F;

  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  18px;

  --shadow-sm:  0 2px 8px rgba(15,15,16,.05);
  --shadow-md:  0 8px 24px rgba(15,15,16,.07);

  --container:  1100px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 70px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .5em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity .15s ease;
}
a:hover { opacity: .7; }

/* widoczny focus dla a11y */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

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

.section { padding: 96px 0; }
.section.alt { background: var(--color-bg-alt); }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,15,16,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: .95rem;
  color: var(--color-text);
}

/* Przełącznik języka – sama flaga */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: transform .15s ease, opacity .15s ease;
}
.lang-switch img {
  width: 28px;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.lang-switch:hover {
  opacity: .8;
  transform: scale(1.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-hairline);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg-alt);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-hairline);
    transform: translateY(-200%);
    transition: transform .25s ease;
  }
  .nav-links.is-open { transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-accent-hover);
  color: var(--color-bg);
  opacity: 1;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-ghost:hover {
  background: var(--color-text);
  color: var(--color-bg);
  opacity: 1;
}

.btn-block { width: 100%; }
.btn-loading { opacity: .65; pointer-events: none; }

.btn-linkedin {
  background: var(--color-text);
  color: var(--color-bg);
  border: 0;
}
.btn-linkedin:hover { background: var(--color-accent-hover); color: var(--color-bg); opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 96px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 6;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-img-wrap { max-width: 420px; margin: 0 auto; }
}

/* ---------- Cards (oferta, wartości) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-silver);
}
.card .icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  margin-bottom: 18px;
  font-weight: 600;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: .95rem; margin: 0; }

/* ---------- Process / kroki ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  counter-reset: step;
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px 24px 24px;
  border-top: 1px solid var(--color-hairline);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-silver);
  display: block;
  margin-bottom: 8px;
}
.step h3 { margin-bottom: 6px; font-size: 1.1rem; }
.step p { color: var(--color-text-muted); font-size: .92rem; margin: 0; }

/* ---------- Story (Moja historia) ---------- */
.story {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.075rem;
  line-height: 1.85;
}
.story p { color: var(--color-text); }

/* ---------- Testimoniale ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 768px) { .testimonials { grid-template-columns: 1fr; } }

.quote {
  background: var(--color-card-bg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: 0; left: 18px;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-silver);
}
.quote p { font-style: italic; margin: 8px 0 16px; color: var(--color-text); }
.quote footer {
  font-size: .85rem;
  color: var(--color-text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq details {
  border-top: 1px solid var(--color-hairline);
  padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--color-hairline); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-silver);
  transition: transform .2s ease;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 12px 0 0;
  color: var(--color-text-muted);
}

/* ---------- LinkedIn / social ---------- */
.linkedin-cta {
  text-align: center;
}

/* ---------- Form ---------- */
.contact-form {
  max-width: 600px;
  margin: 48px auto 0;
  text-align: left;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-card-bg);
  color: var(--color-text);
  transition: border-color .15s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-text);
  outline: none;
}
.field textarea { resize: vertical; min-height: 140px; }

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.checkbox-field input { margin-top: 4px; flex: 0 0 auto; }
.checkbox-field a { color: var(--color-text); }

.form-message {
  max-width: 600px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: .95rem;
  text-align: left;
  border: 1px solid transparent;
}
.form-message.success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: rgba(182,224,187,.3);
}
.form-message.error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-color: rgba(244,180,176,.3);
}
.d-none { display: none !important; }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Footer (jasny kontrast pod ciemną stronę) ---------- */
.site-footer {
  background: var(--color-text);     /* off-white = "odwrócona" stopka */
  color: var(--color-bg);            /* ciemny tekst */
  padding: 48px 24px 32px;
  font-size: .9rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
.site-footer h4 {
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer p { color: #444 !important; }
.site-footer a {
  color: #2A2A2C;
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-bg); opacity: 1; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .copyright {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(15,15,16,.15);
  text-align: center;
  font-size: .82rem;
  color: #555;
}

.site-footer .copyright button {
  background: none;
  border: 0;
  color: #2A2A2C;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0 6px;
}
.site-footer .copyright button:hover { color: var(--color-bg); }

/* ---------- Cookie banner (full-width bottom bar) ---------- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: var(--color-text);  /* jasny pasek nad ciemną stroną */
  color: var(--color-bg);
  border-top: 1px solid rgba(15,15,16,.12);
  box-shadow: 0 -8px 32px rgba(0,0,0,.45);
  padding: 18px 24px;
  font-size: .92rem;
  animation: cookie-slide .3s ease-out both;
}

@keyframes cookie-slide {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 360px; min-width: 0; }
.cookie-banner-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: var(--color-bg);
}
.cookie-banner-text p {
  margin: 0;
  color: #444;
  font-size: .88rem;
  line-height: 1.55;
}
.cookie-banner-text a { color: var(--color-bg); }

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.cookie-banner-actions .btn {
  padding: 10px 20px;
  font-size: .85rem;
  white-space: nowrap;
}

/* Banner ma jasne tło – odwracamy kolory przycisków na ciemne */
#cookie-banner .btn-primary {
  background: var(--color-bg);
  color: var(--color-text);
}
#cookie-banner .btn-primary:hover {
  background: #2A2A2C;
  color: var(--color-text);
}
#cookie-banner .btn-ghost {
  background: transparent;
  color: var(--color-bg);
  border-color: var(--color-bg);
}
#cookie-banner .btn-ghost:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

@media (max-width: 700px) {
  #cookie-banner { padding: 14px 16px; }
  .cookie-banner-inner { gap: 12px; }
  .cookie-banner-text { flex: 1 1 100%; }
  .cookie-banner-text p { font-size: .82rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; padding: 10px 12px; }
}

