/*
 * Fotograf Konferencji – Custom CSS
 * Header + Footer dla motywu Elementor (Free)
 */

/* ── Typografia ─────────────────────────────────────── */
body {
  font-family: 'Comfortaa', sans-serif;
  margin: 0;
}

/* ── Kontenery ──────────────────────────────────────── */
.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
}

.site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-branding img.custom-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 240px;
}

.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: #000;
}

/* Desktop menu */
.site-nav--desktop {
  justify-self: center;
}

.primary-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: color .2s;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_ancestor > a {
  color: #000;
}

/* Submenu */
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  padding: 0.5rem 0;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  list-style: none;
  margin: 0;
  z-index: 9999;
}

.primary-menu > li {
  position: relative;
}

.primary-menu > li:hover > .sub-menu {
  display: block;
}

.primary-menu .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
}

/* Hamburger */
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
  justify-self: end;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: #262626;
  margin: 5px 0;
  border-radius: 2px;
  transition: background .2s;
}

/* ── MOBILE MENU ────────────────────────────────────── */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9998;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);
  background: #fff;
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 9999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .12);
  overflow-y: auto;
}

.mobile-menu-panel__inner {
  padding: 1rem 1rem 2rem;
}

.mobile-menu-panel__close {
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  color: #262626;
  display: block;
  margin-bottom: 0.5rem;
}

.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.mobile-menu a:hover,
.mobile-menu .current-menu-item > a,
.mobile-menu .current_page_item > a {
  color: #262626;
}

.mobile-menu .sub-menu {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.mobile-menu .sub-menu a {
  font-size: 0.9rem;
  padding: 0.6rem 0.5rem;
}

/* Otwarte menu mobilne */
body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-menu-open .mobile-menu-panel {
  transform: translateX(0);
}

/* ── MAIN – Elementor przejmuje layout ──────────────── */
.site-main {
  /* Bez paddingu – Elementor zarządza odstępami sekcji */
  padding: 0;
}

/* Usuń domyślny padding body/page z Elementora Free */
.elementor-page .site-main > article,
.elementor-page .site-main > .entry-content {
  padding: 0;
  max-width: none;
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

/* Górna sekcja – 3 kolumny widgetów */
.footer-widgets-area {
  padding: 3rem 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Separatory między kolumnami – linie nie dotykają góry/dołu dzięki padding na .footer-widgets-area */
  gap: 0;
}

/* Linia między kolumnami – tylko między 1-2 i 2-3, nie na zewnątrz */
.footer-col {
  padding: 0 2.5rem;
}

.footer-col:not(:last-child) {
  border-right: 1px solid #000;
}

.footer-col:first-child {
  padding-left: 0;
}

.footer-col:last-child {
  padding-right: 0;
}

/* Style widgetów w stopce */
.footer-col .widget {
  margin-bottom: 1.5rem;
}

.footer-col .widget:last-child {
  margin-bottom: 0;
}

.footer-col .widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: #262626;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.footer-col ul li {
  padding: 0.25rem 0;
}

.footer-col ul a {
  text-decoration: none;
  color: #444;
  transition: color .2s;
}

.footer-col ul a:hover {
  color: #262626;
}

/* Pasek copyright */
.footer-copyright {
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: 1rem 0;
}

.footer-copyright .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-info {
  font-size: 0.875rem;
  color: #555;
}

/* Mobile */
@media (max-width: 782px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-col {
    padding: 1.5rem 0;
  }

  .footer-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #000;
  }

  .footer-col:first-child {
    padding-top: 0;
  }

  .footer-col:last-child {
    padding-bottom: 0;
  }
}

/* ── RESPONSYWNOŚĆ ──────────────────────────────────── */
@media (max-width: 782px) {
  .site-nav--desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-copyright .container {
    text-align: center;
  }
}

/* ── Skip link ──────────────────────────────────────── */
.skip-link.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link.screen-reader-text:focus {
  left: 6px;
  top: 6px;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #262626;
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  z-index: 99999;
}
