/* ============================================================
   СПІЛЬНІ СТИЛИ ШАПКИ ТА ПІДВАЛА САЙТУ
   Підключається на кожній сторінці:
   <link rel="stylesheet" href="includes/site.css">
   ============================================================ */

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar.scrolled {
  background: rgba(230, 230, 232, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.03em;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover { transform: scale(1.03); }
.logo-img {
  height: 36px; width: auto;
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.logo:hover .logo-img { transform: scale(1.05); }
.logo-text {
  font-family: 'Outfit', var(--font-display);
  font-weight: 700; font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: #1A1517 !important;
  line-height: 1;
  display: inline-block;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(107,45,62,0.05);
}
.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 10px 24px !important; border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(107,45,62,0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(107,45,62,0.25) !important;
}
.nav-cta:active { transform: translateY(0) scale(0.97) !important; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: 8px; border-radius: 8px;
  transition: background 0.2s;
}
.burger:hover { background: rgba(107,45,62,0.05); }
.burger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(250,248,245,0.96); backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.active {
  display: flex; opacity: 1; pointer-events: all;
}
.mobile-menu a {
  color: var(--text); text-decoration: none; font-size: 1.2rem; font-weight: 600;
  padding: 12px 24px; border-radius: 12px;
  transition: all 0.2s;
  opacity: 0; transform: translateY(12px);
}
.mobile-menu.active a {
  animation: mobileLinkIn 0.4s ease forwards;
}
.mobile-menu.active a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.active a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.active a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.active a:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.active a:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.active a:nth-child(6) { animation-delay: 0.3s; }
@keyframes mobileLinkIn {
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu a:hover { background: rgba(107,45,62,0.05); }
.mobile-menu .mob-cta {
  background: var(--accent); color: #fff !important;
  padding: 14px 32px; border-radius: 50px; font-size: 0.95rem;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(107,45,62,0.2);
}

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--border); padding: 40px 24px 24px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: start;
  flex-wrap: wrap; gap: 32px;
}
.footer-col p { font-size: 0.8rem; color: var(--text-muted); max-width: 260px; margin-top: 8px; }
/* Логотип у футері — чорно-білий, напівпрозорий */
.footer-logo { opacity: 0.55; filter: grayscale(1); transition: opacity 0.25s, filter 0.25s; }
.footer-logo:hover { opacity: 1; filter: none; }
.footer-logo .logo-text { color: var(--text) !important; }
/* Додаткові посилання під описом у першій колонці футера */
.footer-extra-links { list-style: none; margin-top: 14px; }
.footer-extra-links li { margin-bottom: 8px; }
.footer-extra-links a { font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-extra-links a:hover { color: var(--accent); }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text); margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-w); margin: 20px auto 0;
  padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--text-muted);
}
/* Нижня смуга футера — ледь темніший фон за роздільною лінією */
.footer-bottom-wrap {
  background: rgba(26, 21, 23, 0.025);
  margin-top: 20px; padding: 14px 24px;
  border-radius: var(--radius-md, 14px);
}
.footer-bottom-wrap .footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 0; border-top: none; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  color: var(--text-muted); text-decoration: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: none;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-social a:hover {
  color: var(--text-secondary);
  background: transparent; transform: translateY(-2px);
  box-shadow: none;
}
.footer-social a svg { transition: transform 0.3s; }
.footer-social a:hover svg { transform: scale(1.1); }

/* ===== RESPONSIVE (шапка/підвал) ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}
@media (max-width: 480px) {
  .footer-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  .footer-col p { max-width: none; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .logo-img { height: 28px !important; }
  .logo-text { font-size: 0.95rem !important; color: #1A1517 !important; }
}
