/* ==========================================================
   Kwiaciarnia PASSION – wygląd „spokojny i nowoczesny”
   Kolory i kroje zmieniamy tylko w :root.
   Mobile-first: style bazowe = telefon, większe ekrany w @media.
   ========================================================== */
:root {
  --bg: #f7f5f0;          /* ciepła biel */
  --white: #ffffff;
  --sage: #eef0ea;        /* szałwiowe tło galerii */
  --sage-deep: #dde1d7;
  --text: #2a2724;
  --muted: #6a635c;       /* kontrast AA na tle */
  --line: #ece7de;
  --line-strong: #d4cdc2;
  --accent: #a3302a;      /* czerwień z szyldu PASSION */
  --accent-hover: #82231f;
  --accent-soft: #f6efea;

  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pill: 999px;

  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-logo: "Yellowtail", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.logo { font-family: var(--font-logo); font-weight: 400; line-height: 1; color: var(--accent); text-decoration: none; text-transform: uppercase; }
.eyebrow { margin: 0 0 12px; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--pill); border: 1px solid transparent; font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--quiet { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--quiet:hover { border-color: var(--text); color: var(--text); }
.btn--sage { border-color: #c9cfc2; }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--sm svg { stroke-width: 2; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }

/* ---------- Pasek górny ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgb(247 245 240 / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid #e7e2d9; }
.topbar__inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.topbar__logo { font-size: 30px; margin-right: auto; }
.topbar__nav { display: none; gap: 28px; }
.topbar__nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: color .15s; }
.topbar__nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero-section { padding-top: 32px; padding-bottom: 56px; }
.hero { display: grid; gap: 32px; align-items: center; }
.hero__media { position: relative; order: -1; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); background: var(--sage-deep); }
.hero__badge { position: absolute; left: 16px; bottom: 16px; padding: 10px 16px; border-radius: var(--pill); background: rgb(247 245 240 / .92); font-size: 24px; }
.hero__title { margin-bottom: 20px; font-family: var(--font-head); font-weight: 400; font-size: clamp(2.375rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.02em; }
.hero__lead { margin: 0; max-width: 30rem; font-size: 1.125rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__cta .btn { flex: 1 1 100%; }

.status { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; padding: 8px 14px; border-radius: var(--pill); background: #efebe4; color: #5a534c; font-size: .875rem; font-weight: 500; }
.status[hidden] { display: none; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #a39a90; }
.status.is-open { background: #e8f3ea; color: #1f6b34; }
.status.is-open .status__dot { background: #2f9e4f; }

/* Karty z najważniejszymi informacjami */
.facts { display: grid; gap: 12px; margin-top: 48px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s; }
.fact:hover { border-color: var(--line-strong); color: var(--text); }
.fact svg { color: var(--accent); margin-top: 2px; }
.fact__label { display: block; font-size: .8125rem; color: var(--muted); }
.fact__value { display: block; font-weight: 500; }

/* ---------- Sekcje ---------- */
.section { padding-block: 64px; }
.section--white { background: var(--white); }
.section--sage { background: var(--sage); }
.section__head { max-width: 40rem; margin-bottom: 40px; }
.section__head h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }

/* ---------- Usługi (2 kolumny → 4 × 2) ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.service__img { overflow: hidden; border-radius: var(--r-lg); background: #efebe4; margin-bottom: 14px; }
.service__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.service:hover .service__img img { transform: scale(1.04); }
.service h3 { margin-bottom: 6px; font-family: var(--font-head); font-weight: 500; font-size: 1.0625rem; line-height: 1.25; }
.service p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--muted); }

/* ---------- Galeria (2 → 3 → 4 kolumny) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--r-md); background: var(--sage-deep); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery a:hover img { transform: scale(1.04); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 95vw; max-height: 95vh; overflow: visible; }
.lightbox::backdrop { background: rgb(42 39 36 / .92); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: var(--r-md); }
.lightbox button { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--pill); background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; }
.lightbox button svg { stroke-width: 2; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 16px; }
.contact__card { display: flex; flex-direction: column; gap: 28px; padding: 28px 24px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); }
.contact__card h3 { margin-bottom: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__card p { margin: 0; }
.contact__phone { font-family: var(--font-head); font-size: 1.875rem; line-height: 1.2; color: var(--text); text-decoration: none; }
.contact__phone:hover { color: var(--accent); }
.hours { width: 100%; max-width: 22rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 12px; font-weight: 400; text-align: left; }
.hours td { text-align: right; }
.hours tr.is-today { background: var(--accent-soft); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.hours tr.is-today th { border-radius: 10px 0 0 10px; }
.hours tr.is-today td { border-radius: 0 10px 10px 0; }
.hours tr.is-today th::after { content: " · dziś"; color: var(--accent); font-weight: 500; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }

.contact__map { min-height: 380px; }
.map-placeholder { height: 100%; min-height: 380px; border-radius: var(--r-xl); background: #e9ece4; overflow: hidden; }
.map-placeholder > a { height: 100%; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--text); text-decoration: none; }
.map-placeholder > a svg { color: var(--accent); stroke-width: 1.5; }
.map-placeholder > a span { font-size: .875rem; color: var(--muted); }
.map-placeholder iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Stopka ---------- */
.footer { padding: 48px 20px 112px; background: var(--text); color: #b8b0a6; text-align: center; font-size: .875rem; }
.footer__logo { display: block; margin-bottom: 12px; font-size: 36px; color: #fff; }
.footer p { margin: 0; }
.footer a { color: #ede8e0; }

/* ---------- Pasek szybkiego kontaktu (telefon) ---------- */
.callbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: var(--pill); background: rgb(42 39 36 / .94); box-shadow: 0 12px 32px -12px rgb(0 0 0 / .45); transform: translateY(calc(100% + 24px)); transition: transform .25s ease-out; }
.callbar.is-visible { transform: none; }
.callbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--pill); color: #fff; font-weight: 600; text-decoration: none; }
.callbar a:first-child { background: var(--accent); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero__cta .btn { flex: 0 0 auto; }
  .service h3 { font-size: 1.25rem; }
  .service p { font-size: .9375rem; }
}
@media (min-width: 720px) {
  .topbar__nav { display: flex; }
  .callbar { display: none; }
  .footer { padding-bottom: 48px; }
}

/* ---------- Komputer ---------- */
@media (min-width: 960px) {
  .wrap { padding-inline: 32px; }
  .hero-section { padding-top: 56px; padding-bottom: 72px; }
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .hero__media { order: 0; }
  .facts { margin-top: 56px; }
  .section { padding-block: 112px; }
  .section__head { margin-bottom: 48px; }
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
  .service__img { margin-bottom: 16px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
  .contact__card { padding: 32px; }
}

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