/* =========================================================================
   Joanna Kwiatkowska, lek. stomatolog / Gabinet Stomatologiczny
   Concept: "Kwiat" / delicate sage botanical typographic, porcelain canvas,
   dusty-rose accent. Solo dentist, gentle/human, thin content, no photos.
   Display: Gentium Book Plus  /  Body: Karla
   ========================================================================= */

:root {
  --canvas:      #f4f1e8;
  --canvas-2:    #e9e6d6;
  --ink:         #2c352a;
  --muted:       #5f6a55;
  --primary:     #7d8c6a;
  --primary-deep:#5f6e4c;
  --accent:      #c08a7e;
  --accent-soft: #ecdcd5;
  --line:        #dcdcc6;

  --serif: "Gentium Book Plus", Georgia, "Times New Roman", serif;
  --sans:  "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;

  --shadow-soft: 0 1px 2px rgba(44,53,42,.05), 0 14px 40px -22px rgba(44,53,42,.32);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1em; }
a { color: inherit; }

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

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

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.lead {
  font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--muted);
}

/* visually-hidden */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 10px 10px;
  z-index: 200;
  transition: top 0.2s ease;
  text-decoration: none;
  font-size: 0.9rem;
}
.skip:focus { top: 0; }

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

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(44,53,42,.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--primary); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.32rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.28s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

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

/* language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--canvas);
}
.lang-toggle button {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.72rem;
  border: 0;
  background: transparent;
  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;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary {
  background: var(--primary-deep);
  color: #fff;
  box-shadow: 0 12px 28px -16px rgba(95,110,76,.85);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--canvas-2); transform: translateY(-2px); }
.btn-soft {
  background: var(--accent-soft);
  color: #6e463d;
}
.btn-soft:hover { background: #e4cabf; transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =========================================================================
   Hero / typographic on porcelain with botanical line
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero::before {
  /* soft radial bloom */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 78% 8%, rgba(192,138,126,.16), transparent 60%),
    radial-gradient(70% 80% at 8% 92%, rgba(125,140,106,.16), transparent 62%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-kicker::before { content: ""; width: 30px; height: 1px; background: var(--accent); }

.hero h1 {
  font-size: clamp(2.6rem, 1.7rem + 4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--primary-deep);
}
.hero-sub {
  margin-top: 1.6rem;
  max-width: 30ch;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
}
.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-meta svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* botanical figure */
.hero-figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.hero-botanical {
  width: min(100%, 360px);
  height: auto;
  color: var(--primary);
}
.hero-botanical .stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-botanical .leaf-fill { fill: rgba(125,140,106,.10); stroke: none; }
.hero-botanical .bloom { fill: var(--accent); opacity: 0.85; }
.hero-botanical .bloom-soft { fill: var(--accent-soft); }

/* draw-in animation */
html.js .hero-botanical .draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s cubic-bezier(.22,.61,.36,1) 0.25s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.js .hero-botanical .draw { animation: none; stroke-dashoffset: 0; }
}

/* =========================================================================
   Section scaffolding
   ========================================================================= */
.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  position: relative;
}
.section-head {
  max-width: 56ch;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}
.section-head p { margin-top: 1rem; }

.alt { background: var(--canvas-2); }

.divider-leaf {
  display: block;
  width: 38px; height: 38px;
  margin: 0 auto;
  color: var(--primary);
  opacity: 0.7;
}

/* =========================================================================
   Intro / reassurance
   ========================================================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.intro-statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.intro-statement em { font-style: italic; color: var(--primary-deep); }
.intro-body p { color: var(--muted); }
.intro-body p + p { margin-top: 1.1rem; }
.intro-body strong { color: var(--ink); font-weight: 600; }

/* small value chips */
.values {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.value {
  background: var(--canvas);
  padding: 1.3rem 1.4rem;
}
.alt .value { background: var(--canvas-2); }
.value-ico {
  width: 26px; height: 26px;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.value h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
}
.value p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* =========================================================================
   Services / soft list
   ========================================================================= */
.services-list {
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
}
.service-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
@media (min-width: 720px) {
  .service-body {
    grid-template-columns: 16rem 1fr;
    gap: clamp(1rem, 3vw, 2.4rem);
    align-items: baseline;
  }
}
.service h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  letter-spacing: -0.01em;
}
.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}
.services-note {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.services-note svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 2px; }

/* =========================================================================
   Visit / how it works
   ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  counter-reset: step;
}
.step {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  position: relative;
}
.alt .step { background: var(--canvas-2); }
.step-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.7rem;
}
.step h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* =========================================================================
   Contact + hours + map
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}
.contact-card + .contact-card { margin-top: 1.4rem; }

.detail-row {
  display: flex;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.detail-row:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-row:first-child { padding-top: 0; }
.detail-ico {
  width: 22px; height: 22px;
  color: var(--primary);
  flex: none;
  margin-top: 3px;
}
.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.detail-val { color: var(--ink); }
.detail-val a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); transition: color .2s; }
.detail-val a:hover { color: var(--accent); }
.detail-val.muted { color: var(--muted); font-size: 0.92rem; }

.hours-note {
  margin-top: 1.2rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

/* demo form */
.form {
  display: grid;
  gap: 1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.alt .field input, .alt .field textarea { background: #fff; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125,140,106,.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  justify-content: space-between;
}
.form-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 32ch;
}
.form-ok {
  margin-top: 0.4rem;
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

/* map */
.map-wrap {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.18) saturate(0.92);
}

/* =========================================================================
   Transparency note
   ========================================================================= */
.note-band {
  background:
    linear-gradient(0deg, rgba(125,140,106,.05), rgba(125,140,106,.05)),
    var(--canvas);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.note-inner {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.4rem;
  align-items: start;
  max-width: 70ch;
}
.note-inner svg { width: 40px; height: 40px; color: var(--primary); }
.note-inner h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  margin-bottom: 0.7rem;
}
.note-inner p { color: var(--muted); margin: 0; }
.note-inner p + p { margin-top: 0.8rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: #d7dbcf;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { color: var(--accent); }
.footer-brand .brand-sub { color: #9aa68d; }
.footer-brand p {
  margin-top: 1rem;
  color: #aab39c;
  font-size: 0.92rem;
  max-width: 34ch;
}
.footer-col h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa68d;
  margin-bottom: 1.1rem;
}
.footer-col a, .footer-col p {
  display: block;
  color: #cfd5c5;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: #8c977c;
}
.footer-disclaimer {
  max-width: 60ch;
  line-height: 1.55;
}

/* =========================================================================
   Reveal contract / gate hidden state on .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;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; min-height: 220px; }
  .hero-botanical { width: min(72%, 280px); }
  .intro-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.4rem;
    transform: translateY(-130%);
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
    box-shadow: 0 24px 40px -28px rgba(44,53,42,.6);
  }
  .nav.open { transform: translateY(0); }
  .nav a { font-size: 1.1rem; padding: 0.6rem 0; width: 100%; }
  .header-cta .btn-soft { display: none; }
  .values { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .form-foot { flex-direction: column; align-items: stretch; }
}
