/*
Theme Name: Tlenoterapia Bydgoszcz
Description: Motyw studia tlenoterapii hiperbarycznej w Bydgoszczy.
Version: 1.1.0
Text Domain: tlenoterapia
*/

@font-face { font-family: "Unbounded"; src: url("fonts/unbounded.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #0b1b33;
  --muted: #4b5b74;
  --blue: #2457e6;
  --blue-bright: #2f6bff;
  --blue-dark: #1a3fae;
  --mint: #3fd0b8;
  --mint-soft: #dcf7f2;
  --sky: #eef4ff;
  --line: #dbe4f3;
  --paper: #ffffff;
  --radius: 1.1rem;
  --display: "Unbounded", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.68 var(--text); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: .18rem solid var(--blue-bright); outline-offset: .2rem; border-radius: .25rem; }
.wrap { width: min(calc(100% - 2.5rem), 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 50; top: .5rem; left: .5rem; padding: .6rem .9rem; background: #fff; transform: translateY(-250%); }
.skip:focus { transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.6rem; display: flex; align-items: center; gap: .6rem 1.5rem; padding-block: .6rem; }
.brand { flex: none; display: block; width: clamp(10.5rem, 16vw, 13rem); }
.brand img { display: block; width: 100%; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: .5rem .75rem; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--sky); color: var(--ink); }
.site-nav .is-current a { background: var(--sky); color: var(--blue-dark); }
.header-cta { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.1rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px -8px rgba(36, 87, 230, .7); }
.header-cta:hover { background: var(--blue-dark); color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 68rem) {
  .header-inner { flex-wrap: wrap; min-height: 4.1rem; }
  .brand { width: 10.5rem; }
  .has-js .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; padding: .55rem .9rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .95rem/1 var(--text); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform .15s; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { order: 3; width: 100%; margin: 0; }
  .has-js .site-nav { display: none; }
  .has-js.nav-open .site-nav { display: block; margin-top: .6rem; padding: .3rem 0 1rem; border-top: 1px solid var(--line); }
  .site-nav ul { flex-direction: column; flex-wrap: wrap; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { padding: .9rem .4rem; border-radius: 0; font-size: 1.1rem; }
  .site-nav .is-current a { background: none; box-shadow: inset 3px 0 0 var(--mint); padding-left: .9rem; }
  .header-cta { padding: .6rem .9rem; }
}
@media (max-width: 30rem) {
  .header-cta span { display: none; }
  .header-cta { padding: .65rem; }
  .has-js .nav-toggle { margin-left: auto; }
}

/* Type */
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; text-wrap: balance; letter-spacing: -.02em; }
h1 { margin: 0; font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { margin-block: 3rem 1rem; font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { margin-block: 1.6rem .5rem; font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > h2, .entry-content > h3, .entry-content > .wp-block-details, .entry-content > .wp-block-table { max-width: 46rem; }
.entry-content p { margin-block: .6rem 1rem; }
.entry-content :is(.tl-hero-inner, .tl-cards, .tl-prices, .tl-split, .tl-hero-copy, .tl-hero-media, .tl-card, .tl-price) > * { margin-block-start: 0; }
.entry-content :is(.tl-cards, .tl-prices, .tl-split, .tl-hero-inner) > * { margin-block-end: 0; }
.entry-content li { margin-bottom: .4rem; }
.entry-content strong { font-weight: 700; }
.lead { font-size: clamp(1.13rem, 2vw, 1.3rem); line-height: 1.6; color: var(--muted); }

/* Page hero (sub-pages) */
.page-hero { background: radial-gradient(60rem 22rem at 85% -40%, rgba(63, 208, 184, .25), transparent 60%), radial-gradient(40rem 20rem at 0% 120%, rgba(47, 107, 255, .16), transparent 60%), var(--sky); padding-block: clamp(1.6rem, 4vw, 3rem) clamp(1.8rem, 4.5vw, 3.2rem); margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.page-hero h1 { max-width: 22ch; }
.breadcrumb { margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; color: #9aa9c2; }
.breadcrumb a { color: var(--muted); }
.site-main { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); min-height: 50vh; }

/* Buttons */
.btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .85rem 1.4rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; line-height: 1.25; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover, .wp-block-button__link:hover { background: var(--blue-dark); color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mint-soft); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }

/* Front page hero */
.site-main { overflow-x: clip; }
.tl-hero { position: relative; overflow: hidden; background: radial-gradient(50rem 30rem at 95% 10%, rgba(63, 208, 184, .28), transparent 60%), radial-gradient(45rem 28rem at -10% 100%, rgba(47, 107, 255, .2), transparent 60%), var(--sky); padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.2rem, 6vw, 4.5rem); margin: 0 calc(50% - 50vw) clamp(2rem, 5vw, 3.5rem); padding-inline: calc(50vw - 50%); }
.tl-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tl-hero-inner > * { margin: 0; }
.tl-hero h1 { font-size: clamp(2rem, 4.3vw, 3.3rem); font-weight: 600; line-height: 1.05; margin: 0 0 1rem; }
.tl-hero .lead { margin: 0 0 .5rem; max-width: 36rem; }
.tl-hero-media { position: relative; }
.tl-hero-media figure { margin: 0; }
.tl-hero-media img { display: block; width: 100%; border-radius: calc(var(--radius) * 1.4); box-shadow: 0 30px 60px -30px rgba(11, 27, 51, .45); background: #fff; }
.tl-hero-media::before, .tl-hero-media::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.tl-hero-media::before { width: 7rem; height: 7rem; right: -1.5rem; top: -1.5rem; background: rgba(63, 208, 184, .45); }
.tl-hero-media::after { width: 3rem; height: 3rem; left: -1rem; bottom: 2rem; background: rgba(47, 107, 255, .35); }
.tl-hero-copy .wp-block-buttons { margin-bottom: 1rem; }
.tl-hero-note { font-size: .95rem; color: var(--muted); margin: 0 0 .4rem; }
.tl-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tl-badges li { margin: 0; padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; }
@media (max-width: 52rem) {
  .tl-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .tl-hero-media { max-width: 30rem; }
  .tl-hero h1 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
}

/* Sections */
.tl-section-intro { max-width: 42rem; color: var(--muted); }
.tl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: 1rem; margin: 1.5rem 0 1rem; }
.tl-cards > .tl-card { margin: 0; padding: 1.5rem 1.4rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.tl-cards > .tl-card > * { margin-block-start: 0; }
.tl-card:has(a:hover) { border-color: #b8c8e6; box-shadow: 0 16px 34px -22px rgba(11, 27, 51, .4); }
.tl-card h3 { margin: 0 0 .45rem; }
.tl-card p { margin: 0 0 .8rem; color: var(--muted); }
.tl-card > p:last-child:has(> a:only-child) { margin: auto 0 0; font-weight: 700; }
.tl-card::before { content: ""; display: block; width: 2.6rem; height: 2.6rem; margin-bottom: 1rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, transparent 19%), linear-gradient(135deg, var(--blue-bright), var(--mint)); }

.tl-steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin: 1.5rem 0 1rem; padding: 0; list-style: none; max-width: none !important; }
.tl-steps > li { counter-increment: step; margin: 0; padding: 1.3rem; border-radius: var(--radius); background: var(--sky); color: var(--muted); }
.tl-steps > li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .8rem; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-size: .95rem; }
.tl-steps strong { display: block; margin-bottom: .2rem; color: var(--ink); font-size: 1.05rem; }

.tl-check, .tl-x { padding: 0; list-style: none; }
.tl-check li, .tl-x li { position: relative; padding-left: 2rem; }
.tl-check li::before, .tl-x li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--mint-soft) no-repeat center / .8rem; }
.tl-check li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%230f8f7a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tl-x li::before { background-color: #ffe9e4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7m0-7l-7 7' fill='none' stroke='%23c2410c' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Pricing */
.tl-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.tl-prices > .tl-price { margin: 0; padding: 1.5rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; position: relative; }
.tl-prices > .tl-price > * { margin-block-start: 0; }
.tl-price h3 { margin: 0 0 .3rem; font-size: 1rem; color: var(--muted); font-family: var(--text); font-weight: 700; letter-spacing: 0; }
.tl-price .tl-amount { margin: 0; font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.tl-price .tl-per { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.tl-prices > .tl-price.is-featured { border: 2px solid var(--blue-bright); box-shadow: 0 20px 40px -26px rgba(36, 87, 230, .6); }
.tl-price.is-featured::after { content: "Najczęściej wybierany"; position: absolute; top: -.8rem; left: 1.2rem; padding: .2rem .7rem; border-radius: 999px; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; }

/* Split: image + text */
.tl-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin: 2.5rem 0; }
.tl-split > * { margin: 0; }
.tl-split img { display: block; width: 100%; border-radius: var(--radius); }
.tl-split h2 { margin-top: 0; }
@media (max-width: 52rem) { .tl-split { grid-template-columns: minmax(0, 1fr); } }

/* Notes, bands, tables, FAQ */
.tl-note { max-width: 46rem; margin: 1.5rem 0; padding: 1rem 1.2rem; border-radius: var(--radius); background: #fff7e6; border: 1px solid #f6e1b3; color: #5b4a1f; font-size: .98rem; }
.tl-note p { margin: 0; }
.tl-band { margin: 3rem auto; padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: calc(var(--radius) * 1.4); background: radial-gradient(30rem 16rem at 100% 0%, rgba(63, 208, 184, .35), transparent 60%), var(--ink); color: #d4ddef; }
.tl-band h2 { color: #fff; margin-top: 0; }
.tl-band p { max-width: 40rem; }
.tl-band a:not(.wp-block-button__link) { color: #9fe9dc; }
.tl-band .wp-block-button__link { background: #fff; color: var(--ink); }
.tl-band .wp-block-button__link:hover { background: var(--mint-soft); }
.tl-band .is-style-outline .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.wp-block-table th, .wp-block-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--sky); font-weight: 700; }
.wp-block-table { overflow-x: auto; margin: 1.5rem 0; }
.entry-content > .wp-block-details { margin: 0; border-bottom: 1px solid var(--line); }
.entry-content > h2 + .wp-block-details { border-top: 1px solid var(--line); }
.wp-block-details > summary { position: relative; padding: 1.05rem 2.6rem 1.05rem 0; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after { content: "+"; position: absolute; right: .2rem; top: .8rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--blue); font-weight: 700; font-size: 1.2rem; transition: transform .15s; }
.wp-block-details[open] > summary::after { transform: rotate(45deg); }
.wp-block-details > p { margin: 0 0 1.1rem; color: var(--muted); }
.tl-toc { max-width: 46rem; padding: 1rem 1.3rem; border-radius: var(--radius); background: var(--sky); }
.tl-toc p { margin: 0 0 .3rem; font-weight: 700; }
.tl-toc ul { margin: 0; padding-left: 1.1rem; }

/* CTA band after sub-pages */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 1.2rem 2rem; align-items: center; margin-top: 3.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: calc(var(--radius) * 1.4); background: radial-gradient(30rem 16rem at 100% 0%, rgba(63, 208, 184, .35), transparent 60%), var(--ink); color: #d4ddef; }
.cta-band h2 { margin: 0 0 .5rem; color: #fff; }
.cta-band p { margin: 0; max-width: 38rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 52rem) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* Forminator form */
.forminator-ui.forminator-custom-form { max-width: 40rem; }
.forminator-ui .forminator-button-submit { border-radius: 999px !important; background: var(--blue) !important; color: #fff !important; padding: .85rem 1.6rem !important; font-family: var(--text) !important; font-size: 1rem !important; font-weight: 700 !important; }
.forminator-ui .forminator-button-submit:hover { background: var(--blue-dark) !important; }
.tl-big { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c6dc; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem 3rem; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.footer-brand img { display: block; width: 13rem; margin-bottom: 1rem; }
.footer-brand p { max-width: 36ch; margin: 0; }
.footer-col h2 { margin: .3rem 0 .8rem; color: #fff; font-family: var(--text); font-size: 1rem; letter-spacing: 0; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: .45rem; }
.footer-col p { margin: 0 0 .7rem; }
.site-footer address { font-style: normal; margin-bottom: .7rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.site-footer a:hover { color: #9fe9dc; }
.footer-phone { font-family: var(--display); font-size: 1.2rem; text-decoration: none; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; padding-block: 1.1rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; color: #8fa0bd; }
.footer-legal p { margin: 0; }
@media (max-width: 47rem) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Mobile sticky booking bar */
.mobile-bar { display: none; }
@media (max-width: 47rem) {
  .mobile-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(11, 27, 51, .4); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; line-height: 1.2; text-decoration: none; }
  .mobile-bar small { font-weight: 500; font-size: .74rem; opacity: .85; }
  .mobile-bar-call { background: var(--blue); color: #fff; }
  .mobile-bar-sms { background: var(--mint-soft); color: var(--ink); }
  body { padding-bottom: 4.6rem; }
  .wrap { width: calc(100% - 2rem); }
  .breadcrumb li:last-child { display: none; }
  .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .wp-block-buttons > .wp-block-button, .cta-actions .btn { width: 100%; }
  .wp-block-button__link { width: 100%; }
  h2 { margin-top: 2.4rem; }
}

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