/* =====================================================================
   MoskitoForma Warszawa — style strony statycznej
   Paleta: Warm Linen #FAF9F6 · Deep Graphite #2A2C2E · Soft Sage #6B7A68
           Muted Sand #E5E0D5
   ===================================================================== */

:root {
  --bg: #FAF9F6;
  --fg: #2A2C2E;
  --sage: #6B7A68;
  --sand: #E5E0D5;
  --sand-soft: rgba(229, 224, 213, 0.4);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.15;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; }
::selection { background: rgba(107, 122, 104, 0.25); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

.container { width: min(88vw, 1400px); margin-inline: auto; }

section { scroll-margin-top: 5rem; border-top: 1px solid var(--sand); }
.section { padding: 6rem 0; }
.section-alt { background: var(--sand-soft); }
@media (min-width: 48em) { .section { padding: 8rem 0; } }

.eyebrow {
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-lead { color: rgba(42, 44, 46, 0.7); margin-top: 1.5rem; font-size: 1.125rem; }
@media (min-width: 48em) { .section-lead { font-size: 1.25rem; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  border-radius: 2px;
  min-height: 44px;
  transition: background 0.25s;
}
.btn:hover { background: var(--sage); }
.btn:disabled { opacity: 0.6; cursor: default; }

.link-underline { color: var(--sage); text-decoration: underline; text-underline-offset: 4px; }
.link-underline:hover { color: var(--fg); }

/* ===== Nawigacja ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled {
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--sand);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.brand { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-dot { color: var(--sage); }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.875rem; }
.nav-links a:not(.nav-cta) { color: rgba(42, 44, 46, 0.8); }
.nav-links a:not(.nav-cta):hover { color: var(--sage); }
.nav-cta {
  background: var(--fg);
  color: var(--bg);
  padding: 0.625rem 1.25rem;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--sage); }
.menu-btn { display: none; padding: 0.5rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.mobile-menu { display: none; background: var(--bg); border-top: 1px solid var(--sand); }
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1rem; padding-block: 1.25rem; }
.mobile-menu nav a { color: rgba(42, 44, 46, 0.8); }
@media (max-width: 47.99em) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; border-top: none; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250, 249, 246, 0.95), rgba(250, 249, 246, 0.7) 45%, rgba(250, 249, 246, 0.2));
}
.hero-inner { position: relative; padding-top: 7rem; padding-bottom: 6rem; max-width: 48rem; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 1.05; }
.hero-lead { margin-top: 2rem; color: rgba(42, 44, 46, 0.75); max-width: 36rem; font-size: 1.125rem; }
@media (min-width: 48em) { .hero-lead { font-size: 1.25rem; } }
.hero .btn { margin-top: 2.5rem; }

/* ===== Usługi ===== */
.services-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--sand);
  border-left: 1px solid var(--sand);
}
@media (min-width: 48em) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  border-right: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  padding: 2.5rem;
  transition: background 0.3s;
}
.service-card:hover { background: rgba(107, 122, 104, 0.1); }
.service-card .icon { color: var(--sage); width: 32px; height: 32px; transition: transform 0.3s; }
.service-card:hover .icon { transform: scale(1.1); }
.service-card h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.service-card p { color: rgba(42, 44, 46, 0.7); margin-top: 0.75rem; font-size: 1rem; line-height: 1.6; }

/* ===== Jak działamy ===== */
.steps-banner { margin-top: 3rem; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; }
@media (min-width: 64em) { .steps-banner { aspect-ratio: 21 / 9; } }
.steps-banner img { width: 100%; height: 100%; object-fit: cover; }
.steps-grid { margin-top: 4rem; display: grid; gap: 2.5rem; }
@media (min-width: 48em) { .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 64em) { .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.step-number {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(42, 44, 46, 0.15);
}
.step h3 { font-size: 1.25rem; margin-top: 1.25rem; }
.step p { color: rgba(42, 44, 46, 0.7); margin-top: 0.5rem; font-size: 1rem; }

/* ===== Warszawa i okolice ===== */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 48em) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.photo-frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.chip-groups { margin-top: 2.5rem; }
.chip-group + .chip-group { margin-top: 2rem; }
.chip-group-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; margin-bottom: 0.75rem; }
.chip-group-title svg { color: var(--sage); width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { border: 1px solid var(--sand); border-radius: 2px; padding: 0.375rem 0.75rem; font-size: 0.875rem; color: rgba(42, 44, 46, 0.8); }

/* ===== O nas ===== */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 48em) { .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.about-text { color: rgba(42, 44, 46, 0.75); font-size: 1.125rem; }
.about-text p + p { margin-top: 1.25rem; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-photos .photo-frame { aspect-ratio: 3 / 4; }
.about-photos .photo-frame:last-child { margin-top: 2rem; }

/* ===== FAQ ===== */
.faq-grid { display: grid; gap: 3rem; }
@media (min-width: 48em) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; } }
.faq-list { border-top: 1px solid var(--sand); }
.faq-item { border-bottom: 1px solid var(--sand); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  text-align: left;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
}
@media (min-width: 48em) { .faq-q { font-size: 1.25rem; } }
.faq-q svg { color: var(--sage); flex-shrink: 0; width: 20px; height: 20px; }
.faq-q .icon-minus { display: none; }
.faq-item.open .icon-minus { display: block; }
.faq-item.open .icon-plus { display: none; }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-panel { max-height: 22rem; }
.faq-panel p { padding-bottom: 1.5rem; color: rgba(42, 44, 46, 0.7); }

/* ===== Formularz ===== */
.form-grid { display: grid; gap: 3rem; }
@media (min-width: 48em) { .form-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.form-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; color: rgba(42, 44, 46, 0.7); }
.form-points span::before { content: "—"; color: var(--sage); margin-right: 0.75rem; }
.form-fields { display: flex; flex-direction: column; gap: 1.75rem; }
.field label { display: block; font-size: 0.875rem; color: rgba(42, 44, 46, 0.6); margin-bottom: 0.5rem; }
.form-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sand);
  padding: 0.6rem 0;
  font-size: 1rem;
  color: var(--fg);
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input::placeholder { color: rgba(42, 44, 46, 0.35); }
.form-input:focus { border-bottom-color: var(--sage); box-shadow: 0 2px 0 -1px var(--sage); }
textarea.form-input { resize: none; }
.form-error { color: #b3402f; font-size: 0.875rem; }
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--sand);
  border-radius: 2px;
  background: var(--bg);
}
.form-success.show { display: flex; }
.success-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(107, 122, 104, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage);
}
.form-success h3 { font-size: 1.5rem; margin-top: 1.5rem; }
.form-success p { color: rgba(42, 44, 46, 0.7); margin-top: 0.75rem; max-width: 24rem; }
.form-success button { margin-top: 2rem; }

/* ===== Footer ===== */
.site-footer { background: #2A2C2E; color: #FAF9F6; }
.footer-grid { display: grid; gap: 3rem; padding-block: 5rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-lead { color: rgba(250, 249, 246, 0.6); margin-top: 1rem; max-width: 20rem; }
.footer-heading {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: rgba(250, 249, 246, 0.5);
  margin-bottom: 1.25rem;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-list a { color: rgba(250, 249, 246, 0.7); }
.footer-list a:hover { color: #6B7A68; }
.footer-contact { display: flex; gap: 0.75rem; }
.footer-contact svg { color: #6B7A68; flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.25rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.5rem;
  font-size: 0.875rem;
  color: rgba(250, 249, 246, 0.4);
}
@media (min-width: 48em) { .footer-bottom .container { flex-direction: row; justify-content: space-between; } }

/* ===== Baner cookies ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding: 1rem; display: none; }
.cookie-banner.show { display: block; }
.cookie-inner {
  background: var(--fg);
  color: var(--bg);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
@media (min-width: 48em) { .cookie-inner { flex-direction: row; align-items: center; gap: 2rem; } }
.cookie-inner p { font-size: 0.875rem; color: rgba(250, 249, 246, 0.8); line-height: 1.6; }
.cookie-inner a { color: #8fa78c; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-ghost-light { border: 1px solid rgba(250, 249, 246, 0.3); color: var(--bg); padding: 0.625rem 1.25rem; border-radius: 2px; font-size: 0.875rem; min-height: 44px; }
.btn-ghost-light:hover { background: rgba(250, 249, 246, 0.1); }
.btn-sage { background: var(--sage); color: #fff; padding: 0.625rem 1.25rem; border-radius: 2px; font-size: 0.875rem; min-height: 44px; }
.btn-sage:hover { opacity: 0.9; }

/* ===== Strony prawne ===== */
.legal { max-width: 46rem; margin-inline: auto; padding: 8rem 6vw; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 2rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--sage); font-size: 0.875rem; }
.back-link:hover { color: var(--fg); }
.back-link svg { width: 16px; height: 16px; }
.legal-updated { color: rgba(42, 44, 46, 0.5); font-size: 0.875rem; margin-top: 0.75rem; }
.legal-body { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; color: rgba(42, 44, 46, 0.75); }
.legal-body h2 { font-size: 1.5rem; margin-top: 2.5rem; color: var(--fg); }
.legal-body strong { color: var(--fg); }
.legal-body a { color: var(--sage); text-decoration: underline; text-underline-offset: 2px; }

/* ===== Animacje ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
