/* =========================================================================
   Gabinet Stomatologiczny Jolanta Wardaszko / concept redesign
   Understated Scandinavian-clinic. Stone canvas, one muted-teal accent.
   Bitter (display) + Onest (body). Photoless / typographic.
   ========================================================================= */

:root {
  --canvas: #fafafa;
  --canvas2: #eceae4;
  --ink: #262a2b;
  --muted: #586063;
  --primary: #3f6e6a;
  --primary-deep: #2c4f4c;
  --accent: #3f6e6a;
  --accent-soft: #dbe7e5;
  --line: #dedbd3;

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { 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(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent-soft); color: var(--ink); }

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

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--primary);
  opacity: 0.7;
}

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.lede {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ---------- reveal contract (JS-gated) ---------- */
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: blur(10px);
  -webkit-backdrop-filter: 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: 1.5rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 0.15rem;
}
.brand .brand-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.4rem);
}
.nav a {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--primary);
  transition: width 0.28s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.6px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -5.5px; left: 0; }
.nav-toggle span::after { position: absolute; top: 5.5px; left: 0; }

/* =========================================================================
   HERO / quiet typographic, left-aligned
   ========================================================================= */
.hero {
  position: relative;
  padding-block: clamp(4rem, 11vw, 9rem) clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}
.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-kicker::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--primary);
  opacity: 0.7;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.02;
}
.hero h1 .accent { color: var(--primary); font-style: italic; font-weight: 400; }
.hero-name {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--muted);
  font-weight: 500;
}
.hero-name strong { color: var(--ink); font-weight: 600; }
.hero-lede {
  margin-top: 1.8rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* hero meta card (right column) */
.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--canvas));
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.hero-card h2 {
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.3rem;
}
.hero-card dl { margin: 0; display: grid; gap: 1.05rem; }
.hero-card .row { display: grid; gap: 0.2rem; }
.hero-card dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.hero-card dd {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}
.hero-card dd a:hover { color: var(--primary); }
.hero-card .divider { height: 1px; background: var(--line); }

/* decorative tooth-arc motif */
.hero-motif {
  position: absolute;
  top: -8%;
  right: -6%;
  width: clamp(220px, 32vw, 480px);
  height: clamp(220px, 32vw, 480px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}
.hero-motif svg { width: 100%; height: 100%; }

/* =========================================================================
   INTRO / APPROACH
   ========================================================================= */
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.approach-grid h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 500;
}
.approach-body p + p { margin-top: 1.2rem; }
.approach-body p { color: var(--muted); }
.approach-body p strong { color: var(--ink); font-weight: 600; }

.principles {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
}
.principle {
  border-top: 1.5px solid var(--primary);
  padding-top: 1.1rem;
}
.principle h3 {
  font-size: 1.08rem;
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 0.45rem;
}
.principle p { font-size: 0.94rem; color: var(--muted); line-height: 1.55; }

/* =========================================================================
   SERVICES / generic, humble categories
   ========================================================================= */
.services-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.8rem;
}
.services-head h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 500;
  max-width: 18ch;
}
.services-head .note {
  max-width: 32ch;
  font-size: 0.95rem;
  color: var(--muted);
}
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--canvas);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: grid;
  gap: 0.7rem;
  transition: background 0.25s ease;
}
.service:hover { background: #fff; }
.service .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.service h3 {
  font-size: 1.22rem;
  font-weight: 600;
}
.service p { font-size: 0.93rem; color: var(--muted); line-height: 1.55; }

.services-disclaimer {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  line-height: 1.55;
}
.services-disclaimer svg { flex: none; margin-top: 2px; color: var(--primary-deep); }

/* =========================================================================
   PRACTICE / FAMILY CONTEXT
   ========================================================================= */
.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.practice-grid h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.practice-copy p { color: var(--muted); }
.practice-copy p + p { margin-top: 1.1rem; }
.practice-copy strong { color: var(--ink); font-weight: 600; }

.family-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.family-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.family-item .who {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.family-item .role {
  font-size: 0.86rem;
  color: var(--muted);
  text-align: right;
}
.family-note {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  color: var(--muted);
  font-style: italic;
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem);
  font-weight: 500;
  margin-bottom: 1.3rem;
}
.contact-info > p { color: var(--muted); max-width: 38ch; margin-bottom: 2.2rem; }

.contact-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-row dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.contact-row dd { margin: 0; font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.contact-row dd a { transition: color 0.2s ease; }
.contact-row dd a:hover { color: var(--primary); }
.contact-row dd .sub { display: block; font-size: 0.86rem; color: var(--muted); font-weight: 400; margin-top: 0.2rem; }

.contact-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* form */
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--canvas));
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}
.contact-form .form-head { margin-bottom: 1.6rem; }
.contact-form .form-head h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.contact-form .form-head p { font-size: 0.88rem; color: var(--muted); }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.72rem 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa0a1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-ok {
  margin-top: 0.4rem;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  color: var(--primary-deep);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-weight: 500;
}
.form-foot {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* map */
.map-block { margin-top: clamp(3rem, 6vw, 5rem); }
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas2);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 42vw, 440px);
  border: 0;
  filter: grayscale(0.35) contrast(0.96);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--canvas2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand-mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.7rem;
}
.footer-brand p { font-size: 0.92rem; color: var(--muted); max-width: 36ch; }
.footer-col h4 {
  font-size: 0.72rem;
  font-family: var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a, .footer-col span { font-size: 0.95rem; color: var(--ink); }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer-bottom .copy { font-size: 0.86rem; color: var(--muted); }
.disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
}
.disclaimer strong { color: var(--ink); font-weight: 600; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; align-items: start; }
  .approach-grid { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.2rem;
    box-shadow: 0 16px 30px -24px rgba(0,0,0,0.3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .services-head { flex-direction: column; align-items: flex-start; }
}
