/**
 * Shared thin nav + pre-footer + footer for static public pages
 * (landing.html, ask-a-ca.html). Matches PublicWebsiteChrome / navB template.
 * Expects page :root tokens: --font-display, --ink, --cobalt, --cobalt-2,
 * --cobalt-deep, --line.
 */

body {
  padding-top: 58px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

nav.menu-open {
  background: rgba(251, 248, 241, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 40px;
  max-width: 1200px;
  margin: 0 auto;
  transition: padding 0.25s ease;
}

nav.scrolled .nav-inner {
  padding-top: 9px;
  padding-bottom: 9px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.logo-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link,
.nav-signin {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
  text-decoration: none;
}

.nav-link:hover,
.nav-signin:hover {
  color: var(--cobalt-2);
}

.nav-cta {
  padding: 8px 18px;
  background: var(--cobalt);
  color: #fff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--cobalt-2);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-menu {
  display: none;
  border-top: 1px solid var(--line);
}

.nav-menu a {
  display: block;
  padding: 18px 40px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--cobalt-2);
}

.pre-footer {
  background: linear-gradient(180deg, var(--cobalt) 0%, var(--cobalt-deep) 55%, #000 100%);
  color: #fff;
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}

.pf-content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pf-headline h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.8vw, 76px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: #fff;
  margin: 0;
}

.pf-headline h2 em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.pf-actions {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pf-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pf-row-h {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.pf-row-h em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}

.pf-row p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  max-width: 360px;
  margin-bottom: 4px;
}

.pf-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.pf-row .btn {
  align-self: flex-start;
}

.pre-footer a.btn-white,
.pre-footer a.btn.btn-white {
  color: var(--ink);
}

.pre-footer a.btn-white:hover,
.pre-footer a.btn.btn-white:hover {
  color: var(--ink);
}

footer {
  background: #000;
  color: rgba(255, 255, 255, 0.85);
  padding: 90px 0 40px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

footer::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 360px;
  height: 360px;
  background: url('/logo-asksila.png') no-repeat center / contain;
  filter: brightness(0) invert(1);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.foot-brand-block {
  max-width: 320px;
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.foot-logo img {
  width: 36px;
  height: 36px;
  display: block;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.foot-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}

.foot-byline {
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

footer h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}

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

footer ul li {
  margin-bottom: 12px;
}

footer ul a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
  text-decoration: none;
}

footer ul a:hover {
  color: #fff;
}

.foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  .pf-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 820px) {
  .nav-inline {
    display: none;
  }

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

  .nav-menu.open {
    display: block;
    padding: 0 0 8px;
  }
}

@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  footer {
    padding: 60px 0 32px;
  }

  footer h4 {
    margin-bottom: 14px;
    font-size: 16px;
  }

  footer ul li {
    margin-bottom: 10px;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    padding-left: 16px;
    padding-right: 12px;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 13px;
  }

  .logo {
    gap: 8px;
  }

  .logo-mark {
    width: 18px;
    height: 18px;
  }

  .logo-name {
    font-size: 21px;
  }

  footer::after {
    width: 200px;
    height: 200px;
    right: -30px;
    bottom: -30px;
  }
}
