/* ==========================================================================
   Layout: header + navigation, footer, mobile call/quote bar
   ========================================================================== */

/* Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand lockup: Zimmermann logo + campaign domain */
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
  text-decoration: none;
  color: var(--blue);
}
.brand__logo { height: 34px; width: auto; }
.brand__text {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.brand__text small {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: .12em;
  margin-top: .2rem;
}
.brand__tag {
  display: none;
  padding-left: .9rem;
  border-left: 1px solid var(--rule);
  font-size: .95rem;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
}
@media (min-width: 640px) { .brand__tag { display: inline-block; } }
@media (max-width: 599px) { .brand__logo { height: 28px; } .brand__text { font-size: 1.15rem; } }

/* Primary nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.site-nav a {
  font-weight: 600;
  font-size: .97rem;
  color: var(--blue);
  text-decoration: none;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.site-nav a[aria-current="page"] { border-bottom-width: 3px; }
.site-nav .btn { padding: .6rem 1.1rem; border-bottom: 0; }

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  padding: .55rem .85rem;
  min-height: 44px;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--blue); color: var(--paper); border-color: var(--blue); }

/* Mobile navigation: collapses below 880px */
@media (max-width: 879px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px -16px rgba(11,31,63,.25);
    transform-origin: top;
    transition: transform .18s var(--ease), opacity .18s var(--ease), visibility 0s linear .18s;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .site-nav a {
    padding: .9rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--blue); }
  .site-nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
}

/* Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--slate-light);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  font-size: .95rem;
}
.site-footer a { color: var(--paper); text-decoration-color: rgba(255,255,255,.3); }
.site-footer a:hover { text-decoration-color: var(--green); }
.site-footer address, .site-footer p { color: var(--slate-light); }

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

.site-footer__logo { height: 30px; width: auto; margin-bottom: 1rem; }
.site-footer__wordmark {
  display: block;
  color: var(--paper);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: .75rem;
}
.site-footer__brand p { max-width: 42ch; }

.site-footer h2 {
  color: var(--green);
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: .9rem;
}
.site-footer__links { display: grid; gap: .55rem; }
.site-footer address { line-height: 1.6; }

.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  font-size: .875rem;
}

/* Mobile call / quote bar ------------------------------------------------ */
.mobile-cta {
  display: none;
}
@media (max-width: 767px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.no-mobile-cta { padding-bottom: 0; }
  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: .6rem;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--rule);
  }
  .mobile-cta .btn { justify-content: center; min-height: 48px; }
  body.no-mobile-cta .mobile-cta { display: none; }
}

/* Social links under the footer address: official LinkedIn and Facebook logos (img/), text until the files exist */
.site-footer__social { margin-top: 1.1rem; }
.site-footer__social-label { display: block; margin-bottom: .55rem; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--paper);
  font-weight: 600;
}
.social img { height: 28px; width: auto; transition: opacity .15s var(--ease); }
.social a:hover img { opacity: .85; }
.social a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.social a.is-text span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); }
.social a.is-text:hover span { text-decoration-color: var(--green); }
