/* Lorio — paleta marki */
:root {
  --light-sea-green: #00b9ae;
  --stormy-teal: #037171;
  --evergreen: #03312e;
  --strong-cyan: #02c3bd;
  --verdigris: #009f93;

  --color-bg: #f4fbfb;
  --color-bg-alt: #e8f5f4;
  --color-surface: #ffffff;
  --color-text: var(--evergreen);
  --color-text-muted: #3d5c59;
  --color-border: #c5e8e4;
  --color-accent: var(--verdigris);
  --color-accent-hover: var(--stormy-teal);
  --color-highlight: var(--light-sea-green);
  --color-deep: var(--evergreen);
  --color-placeholder: #dff0ee;
  --color-placeholder-text: #6a9490;
  --gradient-brand: linear-gradient(135deg, var(--stormy-teal) 0%, var(--verdigris) 50%, var(--light-sea-green) 100%);
  --gradient-hero: linear-gradient(160deg, #ffffff 0%, var(--color-bg) 55%, #e0f7f5 100%);

  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 3px rgba(3, 49, 46, 0.06);
  --shadow-lg: 0 8px 28px rgba(3, 49, 46, 0.1);
  --header-h: 68px;
  --container: min(1080px, 100% - 2.5rem);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--stormy-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--evergreen);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--stormy-teal);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  box-shadow: 0 1px 0 var(--color-border);
}

.header-bar {
  height: 3px;
  background: var(--gradient-brand);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
  padding-block: 0.35rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: min(160px, 42vw);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--stormy-teal);
  border-bottom-color: var(--light-sea-green);
}

.nav-mail {
  font-size: 0.8125rem !important;
  color: var(--stormy-teal) !important;
  border-bottom: none !important;
  padding: 0.35rem 0;
}

.nav-mail:hover {
  color: var(--evergreen) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-wa {
  white-space: nowrap;
}

/* WhatsApp floating widget */
.whatsapp-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(3, 49, 46, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.whatsapp-widget:hover,
.whatsapp-widget:focus-visible {
  color: #fff;
  background: #1ebe57;
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(3, 49, 46, 0.28);
}

.whatsapp-widget-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--evergreen);
}

/* Hero */
.hero {
  padding: 3.5rem 0 4.5rem;
  background: var(--gradient-hero);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--verdigris);
  margin: 0 0 0.75rem;
}

.hero h1,
.section-header h2,
.split-content h2,
.ai-content h2,
.contact-panel-intro h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.highlight {
  color: var(--stormy-teal);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--verdigris);
  color: #fff;
}

.btn-primary:hover {
  background: var(--stormy-teal);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--evergreen);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--verdigris);
  color: var(--stormy-teal);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
}

/* Section images */
.section-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--color-placeholder);
  box-shadow: 0 4px 16px rgba(3, 49, 46, 0.1);
}

.section-img--hero {
  aspect-ratio: 5 / 4;
}

.section-img--tall {
  aspect-ratio: 3 / 4;
  min-height: 280px;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--ai {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

#dlaczego .section-header {
  max-width: none;
}

.section-header {
  max-width: 800px;
  margin: 0 0 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-content h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.split-content p {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--light-sea-green);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.card:hover {
  border-color: var(--strong-cyan);
  box-shadow:
    0 0 0 1px rgba(2, 195, 189, 0.35),
    0 0 20px rgba(0, 185, 174, 0.18),
    0 10px 28px rgba(3, 49, 46, 0.08);
  transform: translateY(-3px);
}

.card:focus-within {
  border-color: var(--verdigris);
  box-shadow:
    0 0 0 1px rgba(0, 159, 147, 0.4),
    0 0 16px rgba(0, 159, 147, 0.12);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* AI */
.ai-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.ai-content h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.ai-content p {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.ai-content .btn {
  margin-top: 1.25rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.step {
  padding: 1.25rem 0 1.25rem 1rem;
  border-left: 3px solid var(--strong-cyan);
}

.step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--verdigris);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
}

.cta-banner h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.cta-banner p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--stormy-teal);
}

.cta-banner .btn-primary:hover {
  background: var(--color-bg);
}

/* Kontakt */
.section--contact {
  background: var(--color-bg-alt);
  padding-bottom: 3.5rem;
}

.contact-panel {
  max-width: 640px;
  margin-inline: auto;
}

.contact-panel-intro {
  margin-bottom: 1.75rem;
}

.contact-panel-intro h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 0.5rem;
}

.contact-panel-intro p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.contact-form {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--evergreen);
}

.label-optional {
  font-weight: 400;
  color: var(--color-placeholder-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 480px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--verdigris);
  box-shadow: 0 0 0 2px rgba(0, 159, 147, 0.2);
}

.form-group input.input-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.15);
}

.form-group--checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.form-group--checkbox input {
  width: auto;
  margin-top: 0.3rem;
}

.form-group--checkbox label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.field-offscreen {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.form-group--turnstile {
  margin-bottom: 0.75rem;
}

.form-actions .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-note.success {
  color: var(--stormy-teal);
}

.form-note.error {
  color: #b42318;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--evergreen);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.footer-logo img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: min(150px, 40vw);
}

.footer-logo:hover img {
  opacity: 0.88;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--strong-cyan);
}

.footer-area {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  margin: 0;
  max-width: 52rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

/* Galeria wizualizacji — bez białego pudełka wokół obrazka */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.gallery-thumb {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.gallery-thumb:focus-visible {
  outline: none;
}

.gallery-thumb:focus-visible img {
  outline: 2px solid var(--verdigris);
  outline-offset: 3px;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(3, 49, 46, 0.08);
  box-shadow: 0 2px 12px rgba(3, 49, 46, 0.08);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.gallery-thumb:hover img {
  border-color: rgba(3, 49, 46, 0.14);
  box-shadow: 0 6px 22px rgba(3, 49, 46, 0.12);
  transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 1.25rem;
  background: rgba(3, 49, 46, 0.94);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-inner {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 5rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
  transition: transform 0.25s ease;
  transform-origin: center center;
}

.lightbox-img.is-zoomed {
  transform: scale(1.85);
  cursor: zoom-out;
}

.lightbox-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

body.lightbox-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .split-visual {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .form-row--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2rem;
  }
}
