/* ============================================
   U Rybaka Mielno - urybakamielno.pl
   Vanilla CSS, mobile-first
   ============================================ */

:root {
  /* paleta z logo */
  --navy:        #1A3A6E;
  --navy-dark:   #122a52;
  --navy-deep:   #0c1f3e;
  --navy-50:     #e7ecf4;
  --gold:        #d6a85a;
  --cream:       #faf6ee;
  --paper:       #ffffff;
  --ink:         #0e1a2e;
  --ink-soft:    #3a4456;
  --ink-mute:    #6b7488;
  --line:        #e5dfd0;
  --danger:      #b04240;

  /* typografia */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* skala */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12, 31, 62, 0.08);
  --shadow:    0 6px 24px rgba(12, 31, 62, 0.12);
  --shadow-lg: 0 18px 48px rgba(12, 31, 62, 0.18);

  /* kontener */
  --container: 1100px;
  --section-pad-y: clamp(48px, 8vw, 96px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: white;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 168, 90, 0.22), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 60%, var(--navy-deep) 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0 1px,
      transparent 1px 22px
    );
  opacity: 0.5;
  pointer-events: none;
}

.hero__nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px clamp(20px, 5vw, 40px);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.lang-pill:hover { background: rgba(255, 255, 255, 0.16); color: white; }
.lang-pill[aria-current="true"] {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.lang-pill:active { transform: scale(0.96); }

.footer .lang-pill {
  background: var(--navy-50);
  color: var(--navy);
  border-color: transparent;
}
.footer .lang-pill[aria-current="true"] {
  background: var(--navy);
  color: white;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px clamp(20px, 5vw, 40px) 48px;
  gap: clamp(16px, 3vw, 24px);
}

.hero__logo {
  width: clamp(140px, 26vw, 200px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
  border-radius: 50%;
  background: white;
  padding: 8px;
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(48px, 10vw, 84px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(14px, 2.5vw, 18px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.75;
}

.hero__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(18px, 3.5vw, 26px);
  letter-spacing: 0.02em;
  opacity: 0.92;
  position: relative;
}
.hero__tagline::before,
.hero__tagline::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 12px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(16px, 4vw, 32px);
  padding: 12px 24px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}
.hero__cta:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
}
.hero__chev { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-pad-y) 0;
}
.section--menu {
  background: var(--cream);
  position: relative;
}
.section--menu::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-1px);
  width: 80px;
  height: 4px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}
.section--location {
  background: var(--paper);
}
.section--contact {
  background: linear-gradient(180deg, var(--paper) 0%, var(--navy-50) 100%);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.section__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(32px, 5.5vw, 48px);
  line-height: 1.15;
}
.section__year {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}
.section__hint, .section__lead {
  margin: 12px auto 0;
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 15px;
}
.section__footnote {
  text-align: center;
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
  font-style: italic;
}

/* ============================================
   PDF VIEWER
   ============================================ */
.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--navy-dark); box-shadow: var(--shadow); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: white; }
.btn:active { transform: scale(0.97); }

.pdf-viewer {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 240px;
  position: relative;
}
.pdf-viewer:fullscreen,
.pdf-viewer:-webkit-full-screen {
  border-radius: 0;
  background: var(--ink);
  overflow-y: auto;
  padding: 16px;
}

.pdf-viewer__exit {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: rgba(15, 25, 45, 0.85);
  color: white;
  border-radius: 50%;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
  transition: background 0.2s, transform 0.15s;
}
.pdf-viewer__exit:hover { background: var(--navy); transform: scale(1.05); }
.pdf-viewer__exit:active { transform: scale(0.95); }
.pdf-viewer:fullscreen .pdf-viewer__exit,
.pdf-viewer:-webkit-full-screen .pdf-viewer__exit {
  display: flex;
}

.pdf-viewer__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 24px;
  color: var(--ink-mute);
}
.pdf-viewer__placeholder.is-error { color: var(--danger); }
.pdf-viewer__placeholder.is-hidden { display: none; }

.loader {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--navy-50);
  border-top-color: var(--navy);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pdf-viewer__pages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}
.pdf-page {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: white;
}
.pdf-viewer:fullscreen .pdf-page,
.pdf-viewer:-webkit-full-screen .pdf-page {
  box-shadow: none;
  border-radius: 0;
}

/* ============================================
   LOCATION
   ============================================ */
.location-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}

.location-card__info {
  padding: clamp(24px, 5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.location-card__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 18px;
  color: var(--ink);
}
.location-card__line:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--navy);
}

.map-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy-50);
  min-height: 280px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (min-width: 800px) {
  .location-card { grid-template-columns: 5fr 7fr; }
  .map-frame { aspect-ratio: auto; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .contact-card--social {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.contact-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card__icon {
  color: var(--navy);
  background: var(--navy-50);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.contact-card__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-card__value {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}
.contact-card__value a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-card__value a:hover { border-bottom-color: var(--navy); }
.contact-card__note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.45;
}

.contact-card--social { background: var(--navy); color: white; border: 0; }
.contact-card--social .contact-card__label { color: rgba(255, 255, 255, 0.6); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}
.social-link:hover { background: rgba(255, 255, 255, 0.16); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 36px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
}
.footer__brand img {
  border-radius: 50%;
  background: white;
  padding: 4px;
}
.footer__tagline {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
}
.footer__lang {
  display: flex;
  gap: 6px;
}
.footer__copy {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}
