/*
 * Luminus Sklep Medyczny — arkusz stylów dla stron statycznych.
 * Odtwarza układ bloków WordPressa (kolumny, odstępy, przyciski)
 * bez zależności od wp-block-library.
 */

:root {
  --brand: #008ad0;
  --brand-deep: #0f2f55;
  --fg: #17293d;
  --muted: #5b6b7c;
  --border: #e2e8ef;
  --surface: #f4f7fa;
  --container: 1140px;
  --font-display: "Manrope", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* --------------------------------------------------------------
   Nagłówek strony
   -------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-block: 14px;
}

.site-logo img {
  display: block;
  height: 52px;
  width: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.header-phone {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-deep);
  text-decoration: none;
  white-space: nowrap;
}

/* --------------------------------------------------------------
   Tytuł strony i treść
   -------------------------------------------------------------- */

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.8rem);
  line-height: 1.2;
  color: var(--brand-deep);
  margin: 40px 0 0;
}

.entry-content {
  padding-block: 24px 40px;
}

.entry-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.25;
  margin: 0;
}

.entry-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.entry-content p {
  margin: 0 0 1.1em;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.entry-content p:empty {
  display: none;
}

.entry-content ul {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

.has-text-align-center {
  text-align: center;
}

.has-white-color {
  color: #fff;
}

/* --------------------------------------------------------------
   Bloki: kolumny, odstępy
   -------------------------------------------------------------- */

.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-block: 0 1.75em;
}

.wp-block-columns:last-child {
  margin-bottom: 0;
}

.wp-block-column {
  flex: 1 1 100%;
  min-width: 0;
}

.wp-block-columns.are-vertically-aligned-center {
  align-items: center;
}

.wp-block-column.is-vertically-aligned-center {
  align-self: center;
}

.wp-block-columns.has-background {
  padding: 1.25em 2.375em;
  border-radius: 14px;
}

.wp-block-column.has-background {
  padding: 1.5em 1.75em;
  border-radius: 14px;
}

.wp-block-spacer {
  clear: both;
}

/* Sekcja otwierająca stronę — pojedyncza kolumna z tłem. */
.custom-hero .wp-block-column:empty {
  display: none;
}

.custom-hero .wp-block-column.has-background {
  border-left: 4px solid var(--brand);
  font-size: 1.05rem;
}

/* Kafelki „dlaczego my” — ikona nad tekstem, wyśrodkowane. */
.why-us-center {
  text-align: center;
}

.why-us-center .wp-block-image img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

@media (min-width: 782px) {
  .wp-block-column {
    flex: 1 1 0;
  }
}

/* Na wąskich ekranach odwrócone sekcje pokazują obrazek nad tekstem. */
@media (max-width: 781px) {
  .wp-block-columns.reverse {
    flex-direction: column-reverse;
  }
}

/* --------------------------------------------------------------
   Bloki: obrazy
   -------------------------------------------------------------- */

.wp-block-image {
  margin: 0 0 1.1em;
}

.wp-block-image:last-child {
  margin-bottom: 0;
}

.wp-block-image figure {
  margin: 0;
}

.wp-block-image img {
  display: block;
  border-radius: 12px;
}

.wp-block-image.aligncenter,
.wp-block-image .aligncenter {
  margin-inline: auto;
  text-align: center;
}

.wp-block-image.aligncenter img,
.wp-block-image .aligncenter img {
  margin-inline: auto;
}

.wp-block-image.is-style-rounded img,
.wp-block-image .is-style-rounded img,
.is-style-rounded .wp-block-image img {
  border-radius: 9999px;
}

/* --------------------------------------------------------------
   Dane kontaktowe i mapa
   -------------------------------------------------------------- */

.contact-card {
  font-style: normal;
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  padding: 1.5em 1.75em;
}

.contact-card__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}

.contact-card__value {
  font-size: 1.05rem;
  margin: 0 0 1.1em;
}

.contact-card__value:last-child {
  margin-bottom: 0;
}

/* Osadzona mapa — stały format kadru, bez skryptów dopasowujących wysokość. */
.map-embed {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 781px) {
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------
   Bloki: przyciski
   -------------------------------------------------------------- */

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1.1em;
}

.wp-block-buttons:last-child {
  margin-bottom: 0;
}

.wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.wp-block-button__link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  padding: calc(0.667em + 2px) calc(1.5em + 2px);
  border-radius: 9999px;
  background: var(--brand);
  color: #fff;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  filter: brightness(0.92);
}

.wp-block-button__link:active {
  transform: translateY(1px);
}

/* --------------------------------------------------------------
   Stopka
   -------------------------------------------------------------- */

.site-footer {
  margin-top: 48px;
  background: var(--brand-deep);
  color: #dbe6f2;
  padding-block: 40px;
  font-size: 15px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 6px;
}

.site-footer p {
  margin: 0 0 6px;
}

.footer-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  color: #a9bdd4;
}
