/* =========================================================================
   Poradnia „Puchatek" / warm neighbourhood POZ przychodnia
   Concept: centered warm monogram hero + soft rounded care cards, single page
   Palette: honey + cream paper, sage accent. Petrona (display) / Hanken Grotesk (body)
   ========================================================================= */

:root {
  --canvas: #f7f1e6;
  --canvas2: #efe6d4;
  --ink: #33291d;
  --muted: #6f6450;
  --primary: #c8842a;
  --primary-deep: #a5681c;
  --accent: #8a9a6b;
  --accent-soft: #e6dcc4;
  --line: #e0d4ba;

  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 34px;

  --font-display: "Petrona", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --shadow-soft: 0 18px 50px -28px rgba(51, 41, 29, 0.45);
  --shadow-card: 0 14px 40px -30px rgba(51, 41, 29, 0.55);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--canvas);
  /* warm paper texture, very subtle */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(200, 132, 42, 0.05), transparent 42%),
    radial-gradient(circle at 86% 78%, rgba(138, 154, 107, 0.06), transparent 46%);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1rem; }
a { color: var(--primary-deep); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-deep);
  margin: 0 0 1rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ---- reveal contract (gated on html.js ONLY) ---- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand .mono {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--primary) 0%, var(--primary-deep) 78%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.18), 0 6px 16px -8px rgba(165, 104, 28, 0.7);
}
.brand .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--canvas2);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 0.32rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(165, 104, 28, 0.85);
}
.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas2);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
}

/* =====================================================================
   Hero / typographic centered monogram on warm cream
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4rem, 11vw, 8rem);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, var(--canvas2) 0%, transparent 70%);
}
/* soft honey "halo" / signature motif behind the wordmark */
.hero-halo {
  position: absolute;
  left: 50%;
  top: clamp(3rem, 9vw, 6rem);
  width: clamp(280px, 46vw, 540px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(200, 132, 42, 0.16), rgba(200, 132, 42, 0.04) 55%, transparent 72%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-mono {
  width: clamp(78px, 12vw, 104px);
  height: clamp(78px, 12vw, 104px);
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, var(--primary) 0%, var(--primary-deep) 80%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  box-shadow:
    inset 0 -5px 14px rgba(0, 0, 0, 0.2),
    0 22px 48px -20px rgba(165, 104, 28, 0.75);
}
.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  margin-bottom: 0.6rem;
}
.hero h1 .pl-quote { color: var(--primary-deep); }
.hero-lead {
  max-width: 40ch;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--muted);
}
.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.hero-meta {
  margin-top: 2.6rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* decorative wavy paper divider */
.wave-divide {
  display: block;
  width: 100%;
  height: 48px;
  color: var(--canvas2);
}

/* =====================================================================
   Intro / about block
   ===================================================================== */
.intro {
  background: var(--canvas2);
}
.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.intro h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}
.intro .lead-para {
  font-size: 1.08rem;
  color: var(--ink);
}
.intro p { color: var(--muted); }
.intro-aside {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-card);
}
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}
.fact-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.4rem 0.9rem;
  align-items: start;
}
.fact-ico {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--primary-deep);
}
.fact-ico svg { width: 20px; height: 20px; }
.fact-k {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.fact-v {
  grid-column: 2;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* =====================================================================
   Care / services / soft rounded cards
   ===================================================================== */
.section-head {
  max-width: 56ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.care-card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.care-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent-soft);
}
.care-ico {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(150deg, var(--accent-soft), var(--canvas2));
  color: var(--primary-deep);
}
.care-ico svg { width: 26px; height: 26px; }
.care-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.care-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
}

/* chips for the wider scope list */
.scope {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.chip::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* =====================================================================
   Atmosphere band / the one real interior photo
   ===================================================================== */
.atmos {
  background: var(--canvas2);
}
.atmos-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.atmos-figure {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--canvas);
}
.atmos-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.atmos-figure figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--canvas);
  border-top: 1px solid var(--line);
}
.atmos h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.atmos p { color: var(--muted); }
.value-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.value-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.8rem;
  align-items: start;
  color: var(--ink);
  font-size: 0.98rem;
}
.value-list .tick {
  margin-top: 0.15rem;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--primary-deep);
}
.value-list .tick svg { width: 15px; height: 15px; }

/* =====================================================================
   Hours + Contact
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  align-items: start;
}
.panel {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-card);
}
.panel h3 {
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
}
.hours-row:last-of-type { border-bottom: 0; }
.hours-row .d { font-weight: 600; color: var(--ink); }
.hours-row .t { color: var(--muted); }
.hours-row.closed .t { color: var(--accent); }
.hours-note {
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.9rem;
  align-items: center;
}
.contact-ico {
  width: 2.6rem; height: 2.6rem;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--primary-deep);
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--primary-deep); }
.contact-list .small { font-size: 0.82rem; color: var(--muted); font-weight: 400; display: block; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

/* demo form */
.form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.form .field { display: grid; gap: 0.35rem; }
.form label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}
.form input,
.form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--canvas2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  width: 100%;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: transparent;
}
.form textarea { resize: vertical; min-height: 96px; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.form-ok {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.map-frame {
  margin-top: 1.4rem;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: var(--ink);
  color: #efe6d4;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(239, 230, 212, 0.16);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.footer-brand .mono {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, var(--primary), var(--primary-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}
.site-footer p { color: rgba(239, 230, 212, 0.78); font-size: 0.92rem; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer-col a {
  color: rgba(239, 230, 212, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  justify-content: space-between;
  align-items: center;
}
.disclaimer {
  max-width: 58ch;
  font-size: 0.8rem;
  color: rgba(239, 230, 212, 0.6);
  margin: 0;
}
.footer-bottom .cred {
  font-size: 0.8rem;
  color: rgba(239, 230, 212, 0.6);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .intro-grid,
  .atmos-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .atmos-figure img { aspect-ratio: 16 / 11; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 72px;
    right: var(--pad);
    left: var(--pad);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.5rem 0.25rem; }
  .nav-toggle { display: flex; }
  .header-cta .btn-primary { display: none; }
}

@media (max-width: 560px) {
  .care-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .fact-list li { grid-template-columns: 2rem 1fr; }
}

/* focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-deep);
  outline-offset: 2px;
  border-radius: 6px;
}
