/* ============================================================
   SPHINX SHARED HEADER AND FOOTER STYLES
   Used by every page on www.sphinx.pl, together with
   /shared/site-chrome.js, which inserts the header and footer.
   Change the header or footer here and in site-chrome.js only.
   The colours and spacing are set on the header and footer
   themselves, so these styles work with any page's own CSS.
   ============================================================ */

.sphinx-header,
.sphinx-footer {
  --color-charcoal:     #1a1a1a;
  --color-gold:         #d4a559;
  --color-brand-yellow: #ffc600;
  --color-white:        #ffffff;
  --font-display: 'Poppins', sans-serif;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --radius-sm: 8px;
  --transition-base: 0.3s ease;
}

/* ---------- Header ---------- */
.sphinx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(to bottom, rgba(26,26,26,0.95), rgba(26,26,26,0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,165,89,0.1);
  padding: 1rem var(--space-md);
  transition: box-shadow var(--transition-base);
}
.sphinx-header.header-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.sphinx-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  display: flex; align-items: center; justify-content: space-between;
}
.sphinx-logo { text-decoration: none; transition: opacity 0.3s ease; }
.sphinx-logo img { height: 40px; width: auto; }
.sphinx-site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.sphinx-site-nav-list {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.sphinx-site-nav-list li a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  transition: color 0.2s;
}
.sphinx-site-nav-list li a:hover { color: var(--color-brand-yellow); }
/* The page you are on: white text, underlined in Sphinx yellow */
.sphinx-site-nav-list li a[aria-current="page"] {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: var(--color-brand-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.sphinx-site-nav-cta a { color: var(--color-brand-yellow) !important; }
.sphinx-site-nav-cta a:hover { color: var(--color-white) !important; }
.sphinx-site-nav-toggle {
  display: none;
  padding: 0.4rem 0.6rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
}
.sphinx-site-nav-toggle-label { display: none; }
.sphinx-site-nav-toggle i { transition: transform 0.2s; }
.sphinx-site-nav-toggle[aria-expanded="true"] i { transform: rotate(90deg); }

/* ---------- Footer ---------- */
.sphinx-footer {
  background: linear-gradient(180deg, #151515, #111111);
  position: relative;
  padding: var(--space-2xl) 0 var(--space-lg);
}
.sphinx-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
.sphinx-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
.sphinx-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--space-lg);
}
.sphinx-footer__logo {
  height: 36px;
  width: auto;
  opacity: 0.85;
  margin-bottom: var(--space-md);
  display: block;
}
.sphinx-footer__tagline {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: var(--space-sm);
  max-width: 480px;
}
.sphinx-footer__tagline--cta {
  color: rgba(212,165,89,0.7);
  font-weight: 600;
  margin-top: var(--space-sm);
}
.sphinx-footer__social { display: flex; gap: 10px; }
.sphinx-footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-base);
}
.sphinx-footer__social a:hover {
  background: rgba(212,165,89,0.12);
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.sphinx-footer__heading {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}
.sphinx-footer__links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sphinx-footer__links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-base);
}
.sphinx-footer__links a:hover { color: var(--color-white); }
.sphinx-footer__contact-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.sphinx-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  line-height: 1.55;
}
.sphinx-footer__contact-list i {
  color: var(--color-gold);
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}
.sphinx-footer__contact-list a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--transition-base);
}
.sphinx-footer__contact-list a:hover { color: var(--color-white); }
.sphinx-footer__senior {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-md);
}
.sphinx-footer__senior-badge {
  height: auto;
  max-width: 90px;
  opacity: 0.85;
  flex-shrink: 0;
}
.sphinx-footer__senior-text {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  line-height: 1.7;
  margin: 0;
}
.sphinx-footer__bottom { text-align: center; }
.sphinx-footer__copy {
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 701px) and (max-width: 899px) {
  .sphinx-site-nav-list { flex-wrap: wrap; }
  /* Less space between links and a slightly smaller logo,
     so all the links fit on one line on tablets */
  .sphinx-site-nav-list li a { padding-left: 0.35rem; padding-right: 0.35rem; }
  .sphinx-logo img { height: 34px; }
  /* Narrower side margins, so the links can use the space at the edges */
  .sphinx-header { padding-left: 0.5rem; padding-right: 0.5rem; }
  .sphinx-header-inner { padding-left: 0.25rem; padding-right: 0.25rem; }
}
@media (max-width: 768px) {
  .sphinx-footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .sphinx-footer__tagline { max-width: 100%; }
}
@media (max-width: 700px) {
  .sphinx-site-nav { margin-right: 0.6rem; }
  .sphinx-site-nav-toggle { display: flex; align-items: center; gap: 0.35rem; }
  .sphinx-site-nav-toggle-label {
    display: inline;
    font-size: 0.7rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }
  .sphinx-site-nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(254,190,16,0.2);
    padding: 0 0 0.4rem;
    z-index: 999;
  }
  .sphinx-site-nav-list.is-open { display: flex; }
  .sphinx-site-nav-list li a {
    padding: 0.6rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  .sphinx-logo img { height: 27px; }
}
