/* =========================================================================
   Iris. Gabinet stomatologiczny  /  concept redesign
   Locked concept: elegant botanical, iris-violet, leaf-green accent.
   Display: Marcellus  |  Body: Figtree.  Typographic / photoless.
   ========================================================================= */

:root {
  --canvas:      #f2eef5;
  --canvas2:     #e7e0ee;
  --ink:         #241c30;
  --muted:       #5a5168;
  --primary:     #4d3b6b;
  --primary-deep:#3a2c52;
  --accent:      #6f8f5e;
  --accent-soft: #dfe7d3;
  --line:        #ddd3e6;

  --paper:       #fbfafc;

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

  --shadow-soft: 0 1px 2px rgba(36,28,48,.04), 0 18px 50px -28px rgba(58,44,82,.30);
  --shadow-card: 0 1px 2px rgba(36,28,48,.05), 0 24px 60px -36px rgba(58,44,82,.36);

  --ff-display: "Marcellus", Georgia, "Times New Roman", serif;
  --ff-body: "Figtree", system-ui, -apple-system, Segoe UI, sans-serif;
}

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

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--ink);
}
h1 { font-size: clamp(2.7rem, 1.7rem + 4.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }

.eyebrow {
  font-family: var(--ff-body);
  letter-spacing: .2em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.4em; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: .7em;
  opacity: .7;
}
.sec-head.center .eyebrow::before { display: none; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 3rem + 7vw, 8.5rem); position: relative; }
.lead { font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.32rem); color: var(--muted); line-height: 1.7; }
.center { text-align: center; }
.measure { max-width: 60ch; }
.measure-narrow { max-width: 46ch; }

/* ---------- reveal contract (JS-gated only) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
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) 78%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -34px rgba(58,44,82,.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: .62rem; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; color: var(--primary); }
.brand .mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--ff-display);
  font-size: 1.32rem; letter-spacing: .01em; color: var(--ink); line-height: 1;
}
.brand-name .dot { color: var(--accent); }

.nav {
  display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.2rem);
}
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500;
  font-size: .96rem; letter-spacing: .01em; position: relative; padding: .35rem 0;
  transition: color .25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: .62rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  letter-spacing: .01em; transition: background .25s ease, transform .25s ease;
  white-space: nowrap;
}
.header-cta:hover { background: var(--primary-deep); transform: translateY(-1px); }
.header-cta svg { width: 16px; height: 16px; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--paper);
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted);
  padding: .34rem .66rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  transition: background .2s ease, color .2s ease;
}
.lang-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }

.header-right { display: flex; align-items: center; gap: .9rem; }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--paper);
  width: 44px; height: 44px; border-radius: 12px; padding: 0;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
.nav.open ~ .nav-toggle .x,
.nav-toggle[aria-expanded="true"] .x { display: block; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }

/* =========================================================================
   Hero  (typographic, iris line motif)
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 3rem + 9vw, 9rem) clamp(3.5rem, 2.5rem + 6vw, 7rem);
  background:
    radial-gradient(120% 90% at 50% -10%, var(--canvas2) 0%, transparent 60%),
    var(--canvas);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.4rem;
  align-items: center; text-align: center; justify-items: center;
}
.hero-eyebrow { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .soft { color: var(--primary); font-style: normal; }
.hero h1 .accent-word { color: var(--accent); }
.hero-sub { color: var(--muted); max-width: 54ch; margin-inline: auto; }
.hero-meta {
  margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem 1.4rem; align-items: center;
  font-size: .94rem; color: var(--muted);
}
.hero-meta .pip { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta .pip svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.hero-actions {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center;
}

/* the iris line motif sitting behind the hero */
.iris-motif {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  width: min(720px, 96vw); height: auto;
  color: var(--primary); opacity: .10; pointer-events: none; z-index: 0;
}
.iris-motif path, .iris-motif line { vector-effect: non-scaling-stroke; }
.hero-grid { position: relative; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .iris-motif .petal { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: drawpetal 2.6s ease forwards; }
  .iris-motif .p2 { animation-delay: .18s; }
  .iris-motif .p3 { animation-delay: .36s; }
  .iris-motif .p4 { animation-delay: .54s; }
  .iris-motif .p5 { animation-delay: .72s; }
}
@keyframes drawpetal { to { stroke-dashoffset: 0; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); background: var(--paper); }

/* =========================================================================
   Generic decorative divider (iris petal repeat)
   ========================================================================= */
.petal-rule {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--accent); margin-inline: auto;
}
.petal-rule::before, .petal-rule::after {
  content: ""; height: 1px; width: min(120px, 16vw);
  background: linear-gradient(90deg, transparent, var(--line));
}
.petal-rule::after { background: linear-gradient(270deg, transparent, var(--line)); }
.petal-rule svg { width: 22px; height: 22px; }

/* =========================================================================
   Section heads
   ========================================================================= */
.sec-head { max-width: 64ch; margin-inline: auto; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.sec-head.center { text-align: center; }
.sec-head .eyebrow { display: inline-block; margin-bottom: 1rem; }
.sec-head h2 { margin-bottom: 1.1rem; }
.sec-head p { color: var(--muted); }
.sec-head.center p { margin-inline: auto; }

/* =========================================================================
   Approach / values cards
   ========================================================================= */
.cards {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.9rem;
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--canvas2); }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1.3rem;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* =========================================================================
   Services list (typographic, numbered)
   ========================================================================= */
.services { background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas2) 100%); }
.svc-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
  max-width: 880px; margin-inline: auto;
}
.svc-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem;
  align-items: baseline; padding: 1.7rem .25rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease;
}
.svc-item:hover { padding-left: .9rem; }
.svc-num {
  font-family: var(--ff-display); color: var(--primary); opacity: .55;
  font-size: 1rem; letter-spacing: .04em; min-width: 2.2ch;
}
.svc-body h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin-bottom: .35rem; }
.svc-body p { color: var(--muted); font-size: .98rem; max-width: 52ch; }
.svc-tag {
  align-self: center; color: var(--accent); font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; white-space: nowrap; font-style: italic;
  font-family: var(--ff-display);
}

/* =========================================================================
   Visit / how-it-works steps
   ========================================================================= */
.steps {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--ff-display); font-size: 1.5rem; color: var(--accent);
}
.step::after {
  content: ""; position: absolute; top: .55rem; left: 2.8rem; right: 0; height: 1px;
  background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* =========================================================================
   Statement / quote band
   ========================================================================= */
.statement {
  background: var(--primary); color: #f3eefa; position: relative; overflow: hidden;
}
.statement .wrap { position: relative; z-index: 1; }
.statement .iris-watermark {
  position: absolute; right: -4%; bottom: -20%; width: min(440px, 60vw);
  color: #fff; opacity: .08; pointer-events: none; z-index: 0;
}
.statement .eyebrow { color: var(--accent-soft); }
.statement blockquote {
  font-family: var(--ff-display); font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.2; max-width: 22ch; color: #fff; margin: 1.2rem 0 0;
}
.statement blockquote .accent { color: var(--accent-soft); }
.statement .attribution { margin-top: 1.6rem; color: #d9cfe9; font-size: .96rem; }

/* =========================================================================
   Contact + map
   ========================================================================= */
.contact-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1.05fr 1fr; align-items: start; }
}
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row .ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--canvas2); color: var(--primary);
}
.info-row .ic svg { width: 20px; height: 20px; }
.info-row .info-label {
  font-size: .82rem; letter-spacing: .12em;
  color: var(--accent); font-weight: 600; margin-bottom: .25rem;
}
.info-row a, .info-row p { text-decoration: none; color: var(--ink); font-weight: 500; }
.info-row a:hover { color: var(--primary); }
.info-row .sub { color: var(--muted); font-weight: 400; font-size: .92rem; }

.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

.map-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); background: var(--paper);
}
.map-card iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-note {
  padding: .95rem 1.2rem; font-size: .86rem; color: var(--muted);
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: .55rem;
}
.map-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* demo form */
.demo-form {
  margin-top: 2.4rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}
.demo-form h3 { margin-bottom: .4rem; }
.demo-form .form-hint { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); margin-bottom: .4rem;
}
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--line); border-radius: 12px;
  padding: .8rem 1rem; transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 540px){ .form-row { grid-template-columns: 1fr; } }
.demo-form button[type="submit"] { margin-top: .4rem; width: 100%; justify-content: center; }
.form-ok {
  margin-top: 1rem; padding: .85rem 1.1rem; border-radius: 12px;
  background: var(--accent-soft); color: var(--primary-deep); font-weight: 600; font-size: .94rem;
  display: flex; align-items: center; gap: .55rem;
}
.form-ok svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* =========================================================================
   Honesty / transparency note
   ========================================================================= */
.transparency {
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--paper); padding: clamp(1.5rem, 3vw, 2.2rem);
  max-width: 760px; margin-inline: auto; text-align: center;
}
.transparency .eyebrow { color: var(--muted); }
.transparency p { color: var(--muted); font-size: .98rem; margin-top: .9rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--primary-deep); color: #e6ddf0;
  padding-block: clamp(3rem, 2rem + 4vw, 4.5rem) 2.2rem;
}
.footer-top {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand .mark { color: var(--accent-soft); }
.footer-brand p { color: #c9bcdd; margin-top: 1rem; max-width: 38ch; font-size: .95rem; }
.footer-col h4 {
  font-family: var(--ff-body); font-size: .92rem;
  letter-spacing: .1em; color: var(--accent-soft); font-weight: 700; margin-bottom: 1rem;
}
.footer-col a, .footer-col p { color: #d6cce6; text-decoration: none; display: block; margin-bottom: .55rem; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: #b6a9cc; font-size: .82rem; }
.footer-disclaimer {
  margin-top: 1.2rem; color: #ab9dc4; font-size: .8rem; max-width: 70ch; line-height: 1.6;
}

/* =========================================================================
   Responsive nav
   ========================================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--canvas); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-cta { display: none; }
}

/* small utility */
.spacer-s { height: clamp(2rem, 4vw, 3.4rem); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
