/* AKAMENA layout — topbar + footer (the persistent shell).
   The spec's text wordmark is replaced by the real AKAMENA logo image (C1).
   Logo stays top-left and visible on scroll (C6); the demo pill is removed (C5). */

/* ============================================================ TOPBAR ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px var(--pad);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease);
}
/* On scroll only the background/blur changes — padding stays fixed so the logo does not move. */
.topbar.scrolled {
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 1px 0 var(--hairline);
}

/* brand logo (black PNG); invert to ivory over dark sections when not scrolled.
   Enlarged for a more prominent header wordmark (footer keeps its smaller size below). */
.brand { display: inline-flex; align-items: center; }
/* Prominent, fixed-size wordmark — does NOT resize or move on scroll (only its colour inverts
   over the dark hero). Footer keeps its own smaller size (override below). */
.brand img { height: 68px; width: auto; display: block; transition: filter .5s var(--ease); }
.topbar.on-dark:not(.scrolled) .brand img { filter: invert(1) brightness(1.7); }
@media (max-width: 600px) { .brand img { height: 44px; } }

/* minimal sub-page nav (Home has none — footer nav only). Driven by front-matter topbarLinks. */
.topnav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.topnav a {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink); transition: color .3s var(--ease);
}
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--gold); }
.topbar.on-dark:not(.scrolled) .topnav a { color: rgba(251, 250, 246, 0.82); }
.topbar.on-dark:not(.scrolled) .topnav a:hover,
.topbar.on-dark:not(.scrolled) .topnav a[aria-current="page"] { color: var(--gold-bright); }

/* ============================================================ FOOTER ============ */
/* Four-column footer per the v2 spec (all navigation lives here); Contact links to
   the demo form — no email published (C14). */
.footer {
  background: var(--night);
  border-top: 1px solid var(--hairline-dark);
  padding: clamp(56px, 9vh, 90px) 0 36px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .brand img { height: 20px; filter: invert(1) brightness(1.7); margin-bottom: 18px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-bright); max-width: 26ch; }
.footer h5 { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); margin: 0 0 16px; font-weight: 500; }
.footer h5 a { color: inherit; transition: color .3s; }
.footer h5 a:hover { color: var(--gold-bright); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 0.96rem; color: rgba(255, 255, 255, 0.72); transition: color .3s; }
.footer ul a:hover { color: var(--gold-bright); }
.footer-bottom {
  margin-top: clamp(44px, 7vh, 72px); padding-top: 22px; border-top: 1px solid var(--hairline-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6); /* raised for WCAG AA contrast on navy */
}
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: inherit; transition: color .3s; }
.footer-bottom a:hover { color: var(--gold-bright); }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================ CTA — shared night bookend ============ */
/* Used by the home, company and product pages. The v5 design brings back the quiet golden-thread
   canvas (home + product, where #ctaThread is present); it is decorative and reduced-motion-safe.
   No email is published (C14). */
.cta { position: relative; background: var(--night); padding: clamp(120px, 20vh, 240px) 0; text-align: center; overflow: hidden; }
#ctaThread { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta h2 { position: relative; z-index: 2; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; color: var(--ivory); }
.cta h2 em { font-style: italic; color: var(--gold-bright); }
.cta-actions { position: relative; z-index: 2; margin-top: clamp(34px, 5vh, 56px); display: flex; justify-content: center; }
