/*
 * epiano — Header & Footer styles
 * Odwzorowanie 1:1 prototypu homepage-v2
 * Mobile-first
 */

/* Tokeny CSS zdefiniowane w blocks-base.css — załadowanym jako zależność.
   Nie duplikujemy :root tutaj. */

/* ── Container helper (used in header & footer) ───────────────────────────── */
.site-header .container,
.site-footer .container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--inline-padding);
  padding-right: var(--inline-padding);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: var(--space-sm) 0;
}

.site-header.is-scrolled {
  background-color: var(--bg-primary-95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-header);
  padding: calc(var(--space-sm) * 0.7) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  font-family: var(--font-heading);
  font-size: var(--fz-xl);
  font-weight: 700;
  color: var(--bg-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Desktop nav — hidden on mobile */
.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.nav-link--active,
.current-menu-item > .nav-link,
.current-page-ancestor > .nav-link {
  color: var(--accent-gold);
}

.nav-link--active::after,
.current-menu-item > .nav-link::after,
.current-page-ancestor > .nav-link::after {
  width: 100%;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Hamburger */
.hamburger {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
  padding: 0;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--bg-dark);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.is-active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  left: -20px;
}

.hamburger.is-active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* Mobile Menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list li {
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: var(--fz-2xl);
  color: var(--bg-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--accent-gold);
}

/* Desktop breakpoint */
@media (min-width: 992px) {
  .hamburger {
    display: none;
  }

  .main-nav {
    display: block;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-inverse-muted);
  padding: var(--space-2xl) 0 var(--space-md);
  font-size: var(--fz-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-col-desc {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--fz-xl);
  font-weight: 700;
  color: var(--text-inverse);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.footer-logo::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-nip {
  margin-top: 1.5rem;
  color: var(--text-inverse-dim);
  font-size: 0.85em;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--fz-lg);
  color: var(--text-inverse);
  margin-bottom: var(--space-md);
  margin-top: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0;
  padding: 0;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-gold);
}

/* Contact list */
.footer-contact li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--accent-gold);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border-dark-subtle);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-author-link {
  display: inline-flex;
  align-items: center;
}

.dgs-logo {
  height: 22px;
  width: auto;
  filter: invert(1);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.dgs-logo:hover {
  opacity: 1;
}

/* Tablet+ */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

.fab-phone {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: var(--accent-gold);
  color: var(--text-inverse);
  border-radius: 50%;
}

.fab-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-gold);
  border-radius: 50%;
  z-index: 1;
  animation: epiano-pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes epiano-pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 0; }
}

.fab-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: var(--fz-xl);
  color: var(--text-inverse);
}

/* ── Body padding-top to compensate fixed header ────────────────────────── */
body {
  padding-top: 70px;
}

@media (min-width: 992px) {
  body {
    padding-top: 80px;
  }
}
