/* Fundacja Mała Sowa – wersja 5 (końcowa, na podstawie wersji 3 „Sowia wspólnota”) */
:root {
  --cream: #FBF6EC;
  --brown: #3B2A1E;
  --terracotta: #A9472B;
  --terracotta-dark: #8A3720;
  --moss: #5B6B3A;
  --moss-dark: #46532C;
  --sand: #EADFC8;
  --heart: #B8322A;

  --bg: var(--cream);
  --bg-alt: var(--sand);
  --text: var(--brown);
  --muted: #6B5646;
  --line: #D9CBAE;
  --accent: var(--terracotta);

  --font-head: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 18px;
  --shadow: 0 1px 2px rgb(59 42 30 / .06), 0 8px 24px rgb(59 42 30 / .08);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--brown);
}
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
img, svg { max-width: 100%; }

a { color: var(--terracotta); text-underline-offset: .18em; }
a:hover { color: var(--terracotta-dark); }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--brown);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  padding-block: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--brown);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
}
.brand:hover { color: var(--brown); }
.brand-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--moss);
  box-shadow: 0 0 0 4px var(--sand);
  font: 600 .62rem/1 var(--font-body);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.brand-text small {
  display: block;
  font-size: .72rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .3rem;
}
.site-nav a {
  display: inline-block;
  padding: .45rem .7rem;
  border-radius: 999px;
  color: var(--brown);
  font-weight: 500;
  font-size: .97rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--sand); color: var(--brown); }
.site-nav a.nav-cta { background: var(--moss); color: #fff; }
.site-nav a.nav-cta:hover { background: var(--moss-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 16px rgb(169 71 43 / .25); }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--brown); border-color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: #fff; }
.btn-moss { background: var(--moss); color: #fff; }
.btn-moss:hover { background: var(--moss-dark); color: #fff; transform: translateY(-1px); }
.btn-brown { background: #7A4E25; color: #fff; }
.btn-brown:hover { background: #5E3B1B; color: #fff; transform: translateY(-1px); }
.btn-big { font-size: 1.15rem; padding: .9rem 1.6rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding-top: clamp(2.2rem, 6vw, 4rem);
  padding-bottom: clamp(5rem, 12vw, 9rem);
  background:
    radial-gradient(circle at 50% 18%, #fff 0, rgb(255 255 255 / 0) 42%),
    linear-gradient(#FBF6EC, #F5ECDA);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-logo {
  width: clamp(9.5rem, 30vw, 12.5rem);
  aspect-ratio: 1;
  margin: 0 auto 1.6rem;
  padding: .55rem;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: var(--shadow);
}
.logo-slot {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 1rem;
  border-radius: 50%;
  background: #fff;
  border: 2px dashed var(--moss);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
}
.eyebrow, .kicker {
  margin-bottom: .8rem;
  color: var(--moss-dark);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lead {
  font-size: clamp(1.08rem, 2.4vw, 1.25rem);
  color: var(--brown);
  max-width: 40em;
  margin-inline: auto;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 1.8rem;
}
.hero-phone { margin-top: 1.2rem; color: var(--muted); }
.hero-phone a { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.hero-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(70px, 12vw, 170px);
  display: block;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 2.4rem; text-align: center; }
.section-intro { color: var(--muted); font-size: 1.08rem; }

/* People */
.people {
  list-style: none;
  display: grid;
  gap: 1.2rem;
}
.person-card {
  position: relative;
  padding: 0 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.person-photo {
  display: block;
  width: calc(100% + 3rem);
  max-width: none;
  margin-inline: -1.5rem;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}
.person-card::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 0;
  z-index: 1;
  height: 5px;
  border-radius: 0 0 4px 4px;
  background: var(--terracotta);
}
.person-card:nth-child(2)::after { background: var(--moss); }
.person-card:nth-child(3)::after { background: #8A5A2B; }
.person-card:nth-child(4)::after { background: var(--heart); }
.person-card p { margin: 0; color: var(--muted); }
.icon-badge {
  display: grid;
  place-items: center;
  position: relative;
  width: 3.8rem;
  height: 3.8rem;
  margin: -1.9rem 0 .8rem;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--sand);
}
.icon-badge svg {
  width: 2.2rem;
  height: 2.2rem;
  fill: none;
  stroke: var(--moss-dark);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Wavy divider (echo of the logo) */
.wave { display: flex; justify-content: center; padding-bottom: 2.2rem; }
.wave svg { width: 220px; height: 22px; fill: none; stroke: var(--heart); stroke-width: 2.5; stroke-linecap: round; }
.wave .wave-heart { fill: var(--heart); stroke: none; }

/* Areas */
.areas { display: grid; gap: 1.4rem; }
.area {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.area-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--sand);
}
.area-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.area-body { position: relative; padding: 1.5rem 1.5rem 1.6rem; flex: 1; }
.area-body p:last-child { margin-bottom: 0; }
.area-num {
  position: absolute;
  top: -1.4rem;
  right: 1.3rem;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  font: 700 1.2rem/1 var(--font-head);
  border: 3px solid var(--cream);
}
.area-main .area-num { background: var(--terracotta); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tags li {
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--brown);
  font-size: .9rem;
  font-weight: 600;
}
.text-link { font-weight: 700; }
.text-link::after { content: " →"; }

/* Okolica */
.okolica { display: grid; gap: 2rem; align-items: center; }
.places { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.4rem; }
.places li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .9rem;
  border: 1.5px solid var(--moss);
  border-radius: 999px;
  color: var(--moss-dark);
  font-weight: 600;
  font-size: .95rem;
}
.places li::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--terracotta);
}
.note {
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--terracotta);
  background: var(--sand);
  border-radius: 0 12px 12px 0;
  color: var(--brown);
}
.okolica-photo { margin: 0; }
.okolica-img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Client's banner between "Okolica" and "Kontakt" */
.banner-band { padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Contact */
.section-contact {
  background:
    radial-gradient(circle at 10% 0, rgb(234 223 200 / .7), transparent 40%),
    var(--cream);
  border-top: 1px solid var(--line);
}
.paths { display: grid; gap: 1.2rem; }
.path {
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  scroll-margin-top: 1rem;
}
.path-help { border-top: 6px solid var(--terracotta); }
.path-classes { border-top: 6px solid var(--moss); }
.path-join { border-top: 6px solid #8A5A2B; }
.path { display: flex; flex-direction: column; }
.path .btn { align-self: flex-start; margin-top: auto; }
.path h3 { text-wrap: balance; }
.path p { color: var(--muted); }
.details {
  display: grid;
  gap: 1rem;
  margin: 2.2rem 0 0;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--sand);
}
.details dt {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.details dd { margin: .15rem 0 0; font-size: 1.08rem; font-weight: 600; }
.details a { color: var(--brown); }
.details a:hover { color: var(--terracotta-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--moss);
  color: #fff;
  padding-block: 2.5rem;
  font-size: .95rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sand); }
.site-footer :focus-visible { outline-color: #fff; }
.footer-inner { display: grid; gap: 1.4rem; }
.footer-name { font: 700 1.35rem/1.2 var(--font-head); margin-bottom: .4rem; }
.footer-meta p { margin-bottom: .3rem; }
.credit { font-size: .9rem; opacity: 1; }

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  .people { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: 1fr 1fr; }
  .area-main { grid-column: 1 / -1; flex-direction: row; }
  .area-main .area-photo { flex: 0 0 45%; aspect-ratio: auto; min-height: 17rem; }
  .area-main .area-body { padding: 2rem 2.2rem; }
  .area-main .area-num { top: 1.6rem; right: 1.6rem; }
  .details { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-meta { text-align: right; }
}
@media (min-width: 960px) {
  .okolica { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
  .paths { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Client's logo (assets/img/klient/logo-mala-sowa.webp) */
img.brand-logo { width: 3.5rem; height: 3.5rem; padding: 0; object-fit: contain; }
.hero-logo .logo-img { display: block; width: 100%; height: 100%; border-radius: 50%; }
