/* Premium site footer — shared across public pages */

/* Shared section headings (centered eyebrow + title + lead) */
.section-heading {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 8px;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading .eyebrow::after {
  display: none;
}

.section-heading h1,
.section-heading h2 {
  margin: 0 auto;
  max-width: 760px;
}

.section-heading .section-lead {
  margin-left: auto;
  margin-right: auto;
  color: #4c3f2b;
}

.light .section-heading h1,
.light .section-heading h2 {
  color: var(--text-dark, #0d0d0d);
}

/* Brak poziomego scrolla (100vw / powiększone logo w stopce) */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.site-footer {
  background: linear-gradient(180deg, #12100c 0%, #0d0b09 100%);
  border-top: 1px solid rgba(183, 154, 91, 0.28);
  color: rgba(245, 240, 230, 0.82);
  padding: clamp(48px, 6vw, 64px) 0 clamp(24px, 4vw, 32px);
  margin-top: auto;
  overflow-x: hidden;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(120px, 0.85fr) minmax(200px, 1.15fr) minmax(155px, 0.9fr);
  gap: clamp(36px, 5vw, 52px);
  align-items: start;
  overflow: hidden;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: min(280px, 100%);
  padding-right: 12px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.site-footer__logo {
  display: block;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
  line-height: 0;
}

.site-footer__logo:focus-visible {
  outline: 2px solid #c9a24d;
  outline-offset: 4px;
  border-radius: 8px;
}

.site-footer__logo img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  max-height: clamp(96px, 14vw, 118px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

.site-footer__property {
  margin: 0;
  padding-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 240, 230, 0.62);
  position: relative;
  z-index: 3;
}

.site-footer__property-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a24d;
  margin-bottom: 4px;
}

.site-footer__heading {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f5f0e6;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links a {
  color: rgba(245, 240, 230, 0.78);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #e8d4a8;
}

.site-footer__links a:focus-visible {
  outline: 2px solid #c9a24d;
  outline-offset: 2px;
  border-radius: 4px;
}

.site-footer__col--contact {
  padding-right: clamp(16px, 3vw, 28px);
}

.site-footer__contact-list a[href^="tel:"] {
  font-weight: 600;
  color: #e8d4a8;
}

.site-footer__contact-list a[href^="mailto:"] {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer__col--meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 4px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 154, 91, 0.35);
  color: rgba(245, 240, 230, 0.75);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.site-footer__social a:hover {
  border-color: #c9a24d;
  color: #f5f0e6;
  background: rgba(183, 154, 91, 0.12);
}

.site-footer__social a:focus-visible {
  outline: 2px solid #c9a24d;
  outline-offset: 2px;
}

.site-footer__legal {
  padding-top: 22px;
  border-top: 1px solid rgba(183, 154, 91, 0.18);
}

.site-footer__legal p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(245, 240, 230, 0.55);
  text-align: center;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__bottom {
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245, 240, 230, 0.45);
}

.site-footer .footer-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.site-footer__links a.footer-policy-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1024px) {
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
    padding-right: 0;
  }

  .site-footer__col--contact {
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__col--contact {
    padding-right: 0;
  }

  .site-footer__brand {
    align-items: center;
    text-align: center;
    max-width: none;
    padding-right: 0;
  }

  .site-footer__logo {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__logo img {
    width: min(260px, 92vw);
    max-height: clamp(84px, 20vw, 104px);
    object-position: center center;
  }

  .site-footer__property {
    text-align: center;
  }
}
