/* Globale styles — skonsolidowane style globalne */
/* Kolory brandowe */
:root {
  --blue: #7a8f3a;       /* oliwkowa zieleń – główny kolor akcentu */
  --blue-dark: #5d6b2b;  /* ciemniejsza oliwka do hoverów i obramowań */
  --blue-ink: #3b2f2f;   /* ciepły, ciemny kolor nagłówków */
  --sky: #f8f3e9;        /* jasne, ciepłe tło „domowej kuchni” */
  --ink: #222222;        /* kolor podstawowego tekstu */
  --muted: #6b7280;      /* kolor pomocniczy */
  --success: #16a34a;    /* kolor pozytywnych komunikatów */
  --accent: #b53a3a;     /* bordowy akcent dla wyróżnień */
}


/* Globalne tło + typografia */
body {
  background-color: var(--sky);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Nagłówki — lekko „premium”, bez rozwalania Tailwinda */
h1, h2, h3, h4 {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--blue-ink);
}

h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-weight: 600;
}

/* Linki */
a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

/* Kontener główny — dopasowany do Tailwinda (max-w-6xl, 24px padding) */
.container {
  max-width: 72rem;
}

/* Przycisk focus */
.focus-blue:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Przyciski (bazowe) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.4rem;
  border-radius: 9999px;           /* nowoczesne „pill-buttons” */
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  gap: 0.5rem;
  cursor: pointer;
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Wariant primary — mocny kolor + lekki glow */
.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow:
    0 10px 18px -8px rgba(122, 143, 58, 0.45),
    0 4px 8px -6px rgba(122, 143, 58, 0.25);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow:
    0 14px 24px -10px rgba(122, 143, 58, 0.55),
    0 6px 10px -6px rgba(122, 143, 58, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Wariant ghost — subtelna ramka, bez przesady */
.btn-ghost {
  background: #ffffffE6;
  color: var(--blue-ink);
  border: 2px solid var(--blue);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-ghost:hover {
  background: #ffffff;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow:
    0 10px 20px -12px rgba(15, 23, 42, 0.25);
}

/* NAVBAR / HEADER */

header {
  backdrop-filter: blur(12px);
}

/* Mobile menu – brak scrolla poziomego */
#site-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

#site-mobile-menu[data-open="true"] {
  max-height: 360px;
}

/* Hero – overlay pod tekst na zdjęciach */
#hero {
  position: relative;
  color: #ffffff;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.35), transparent 55%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6));
  pointer-events: none;
  z-index: 0;
}

#hero > .container {
  position: relative;
  z-index: 1;
}

#hero h1,
#hero p,
#hero .btn {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* Hero slideshow tło (JS ustawia zdjęcia) */
#hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

#hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1.1s ease,
    transform 8s ease;
}

#hero-slideshow .slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Teksty w hero / parallax z lekkim cieniem */
#hero h1,
.parallax h1 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

#hero p,
.parallax p {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Akcenty brandowe (neutralne) */
.brand-blue { color: var(--blue); }
.brand-bg-blue { background-color: var(--blue); }
.brand-hover-blue:hover { background-color: var(--blue-dark); }
.brand-bg-sky { background-color: var(--sky); }
.brand-accent { color: var(--accent); }
.brand-bg-accent { background-color: var(--accent); }

.text-ink {
  color: var(--ink);
}

/* Karty / sekcje */
.card {
  transition: transform .2s, box-shadow .2s;
}

.card:hover { transform: translateY(-6px); box-shadow: 0 20px 30px -15px rgba(0,0,0,.25); }

.card-border-blue { border-top: 4px solid var(--blue); }

/* Sekcje z delikatnym tłem */
.section-muted {
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(248,250,252,1));
}

/* Recenzje — poziomy „carousel” */
#reviews-carousel {
  scroll-snap-type: x mandatory;
}

.review-card {
  background: #fff;                /* było: var(--sky) */
  border: 1px solid rgba(0,0,0,.06);
  border-left: 4px solid var(--blue); /* subtelny akcent */
  border-radius: 1rem;
  box-shadow: 0 14px 24px -12px rgba(0,0,0,.2), 0 6px 10px -6px rgba(0,0,0,.1);
  padding: 2rem;
  display: flex; flex-direction: column;
  min-width: 300px; max-width: 300px;
  transition: transform .2s, box-shadow .2s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px -16px rgba(0,0,0,.25), 0 8px 16px -8px rgba(0,0,0,.12);
}

.review-card strong {
  font-weight: 700;
}

#reviews-carousel > * {
  scroll-snap-align: start;
}

/* Sekcja „proces” — lekkie ramki i ikony */
.process-step {
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 24px -18px rgba(15,23,42,0.8);
}

/* Tabele (np. jadłospisy, porównania) */
table {
  border-collapse: collapse;
}

table th {
  font-weight: 600;
}

/* Formularze */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  font-family: inherit;
  font-size: 0.95rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--accent);
  border-color: var(--accent);
}

/* Bloki kontaktowe / boxy informacyjne */
.info-box {
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.35);
  background: #ffffff;
  box-shadow: 0 10px 30px -18px rgba(15,23,42,0.7);
}

/* FOOTER */
footer {
  background: linear-gradient(to top, rgba(15,23,42,0.95), rgba(15,23,42,0.75));
  color: #E5E7EB;
}

footer a {
  color: #E5E7EB;
}

footer a:hover {
  color: #ffffff;
}

/* Breadcrumby */
.breadcrumb {
  font-size: 0.85rem;
  color: #6B7280;
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb a:hover {
  color: var(--blue);
}

/* Sekcje parallax (opcjonalne) */
.parallax {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(15,23,42,0.9));
}

.parallax > * {
  position: relative;
  z-index: 1;
}

/* NO-SCROLLBAR dla poziomego carruselu recenzji */
.no-scrollbar {
  scrollbar-width: none;          /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari */
}

/* Karta FAQ (details/summary) */
details {
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.6);
  background: #ffffff;
}

details[open] {
  border-color: var(--blue);
  box-shadow: 0 10px 24px -16px rgba(15,23,42,0.18);
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Strzałka w FAQ (opcjonalnie, jeśli używane) */
summary::after {
  content: "▾";
  float: right;
  font-size: 0.7rem;
  color: rgba(148,163,184,0.9);
}

/* Dostosowanie summary, gdy używany jest Tailwind */
summary {
  cursor: pointer;
}

/* Drobne utility do layoutu */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(15,23,42,0.06);
  color: #4B5563;
}

/* GRID z cieniami i radiusami dla „kart” (np. ofertowych) */
.grid-card {
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 18px 36px -18px rgba(15,23,42,0.7);
}

/* HERO „ramka” na treść */
.hero-panel {
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.86);
  box-shadow:
    0 25px 60px -35px rgba(15,23,42,0.85),
    0 10px 30px -20px rgba(15,23,42,0.7);
  border: 1px solid rgba(148,163,184,0.4);
}

/* MEDIA QUERIES — delikatne dostosowania mobilne */
@media (max-width: 768px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-panel {
    padding: 1.5rem;
  }

  #hero h1 {
    font-size: 1.9rem;
  }

  #hero p {
    font-size: 1rem;
  }

  .review-card {
    min-width: 260px;
    max-width: 260px;
    padding: 1.5rem;
  }
}

/* COOKIE BANNER – minimalistyczny pod Google */
cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 1rem;
    display: none; /* domyślnie ukryty – pokaże go JS */
    font-size: 0.95rem;
    font-family: inherit;
}

cookie-banner--visible {
    display: block;
}

.cookie-banner__inner {
    max-width: 72rem;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.45);
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.cookie-banner__text {
    flex: 1;
    color: #4b5563;
}

.cookie-banner__text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #111827;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner__button {
    border-radius: 9999px;
    border: none;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.cookie-banner__button--primary {
    background: var(--blue);
    color: white;
}

.cookie-banner__button--secondary {
    background: transparent;
    color: #374151;
}

/* Mobile */
@media (max-width: 640px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__button {
        width: 100%;
        text-align: center;
    }
}
/* Hero – półprzezroczyste „ramki” zamiast pełnych białych kart */
#hero .hero-panel,
#hero .hero-card {
  background-color: rgba(255, 255, 255, 0.60) !important; /* było ok. 0.9 */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

/* Tekst zostaje ciemny i czytelny */
#hero .hero-panel h1,
#hero .hero-panel h2,
#hero .hero-panel h3,
#hero .hero-panel p,
#hero .hero-panel li,
#hero .hero-card h2,
#hero .hero-card p,
#hero .hero-card li {
  color: #111827;
  text-shadow: none;
}

/* Na bardzo małych ekranach trochę mniej przezroczyste, żeby na telefonie było mega czytelnie */
@media (max-width: 768px) {
  #hero .hero-panel,
  #hero .hero-card {
    background-color: rgba(255, 255, 255, 0.85) !important;
  }
}
/* CTA w kartach – nie może wyjeżdżać poza ramkę */
.btn-card {
  max-width: 100%;
  white-space: normal;        /* pozwól na zawijanie */
  overflow-wrap: anywhere;    /* łam długie fragmenty jeśli trzeba */
  text-align: center;
  padding-left: 1.4rem;       /* trochę ciaśniej niż 2.4rem */
  padding-right: 1.4rem;
}
