/* ==========================================================================
   ZIEBRB.COM — site chrome: header, footer, floating WhatsApp, popup.
   Tokens live in style.css, which loads first.
   ========================================================================== */

/* ==========================================================================
   Header (matches the original: 90px, black-to-blue gradient, 18px menu)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(99deg, #000 18%, var(--zb-blue) 88%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header .container {
  width: min(var(--container-wide), 92%);
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand {
  display: flex;
  flex-shrink: 0;
}

.brand img {
  width: 116px;
  height: auto;
}

.main-nav {
  margin-inline: auto;
}

.main-nav ul {
  display: flex;
}

.main-nav a {
  display: block;
  padding: 16px 20px;
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: 18px;
  line-height: 18px;
  color: var(--color-white);
  transition: color var(--duration-fast);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--zb-yellow);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 15px 34px 14px;
  border-radius: 15px;
  background: var(--zb-yellow);
  color: var(--zb-ink);
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 13px;
  line-height: 13px;
  transition: transform var(--duration-fast) var(--ease-out-expo), background var(--duration-fast);
}

.header-cta:hover {
  transform: translateY(-2px);
  background: #ffe24d;
}

.icon-wa {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: none;
  border-radius: 6px;
  background: var(--zb-yellow);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--zb-ink);
}

@media (max-width: 1100px) {
  .main-nav a {
    padding-inline: 12px;
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .site-header .container {
    min-height: 72px;
    justify-content: space-between;
  }

  .brand {
    display: none;
  }

  .nav-toggle {
    display: flex;
    order: -1;
  }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #000;
    padding: var(--space-sm) 4%;
    transform: translateY(-130%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .site-header .container {
    min-height: var(--m-header);
  }

  .main-nav {
    inset: var(--m-header) 0 auto 0;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    padding: 10px 9px;
  }

  .header-cta {
    padding: 11px 18px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 12px;
  }
}

/* ==========================================================================
   Footer (teal band of the original, laid out as brand / menu / contact)
   ========================================================================== */
.site-footer {
  /* navy like the header and the showreel section; the original teal was the
     only place on the site that colour appeared */
  background: linear-gradient(180deg, var(--zb-navy) 0%, var(--zb-navy-deep) 100%);
  color: var(--color-white);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  width: min(var(--container-wide), 100% - 48px);
  padding-block: 56px 44px;
}

.site-footer__logo img {
  width: 120px;
  border-radius: 10px;
}

.site-footer__tagline {
  max-width: 300px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__heading {
  margin-bottom: 14px;
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zb-yellow);
}

.site-footer__nav ul {
  display: grid;
  gap: 8px;
}

.site-footer__nav a {
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  transition: color var(--duration-fast);
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--zb-yellow);
}

.site-footer__contact p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--zb-yellow);
  color: var(--zb-ink);
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  transition: transform var(--duration-fast) var(--ease-out-expo), background var(--duration-fast);
}

.site-footer__wa:hover,
.site-footer__wa:focus-visible {
  transform: translateY(-2px);
  background: #ffe24d;
}

.site-footer__wa .icon-wa {
  width: 18px;
  height: 18px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.12);
}

.site-footer__bottom p {
  width: min(var(--container-wide), 100% - 48px);
  padding-block: 16px;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.social-list {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}

.social-list a:hover,
.social-list a:focus-visible {
  background: var(--zb-yellow);
  color: var(--zb-ink);
  transform: translateY(-2px);
}

.social-list svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

@media (max-width: 767px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 20px;
    padding-block: 44px 32px;
  }

  .site-footer__brand,
  .site-footer__nav,
  .site-footer__contact {
    grid-column: 1 / -1;
  }

  .site-footer__nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
  }

  .site-footer__logo img {
    width: 100px;
  }
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.float-cta {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--color-white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-fast);
}

/* phones: the sticky header already has the WhatsApp button on screen at
   all times, and the floating one sat on top of text and cards */
@media (max-width: 767px) {
  .float-cta {
    display: none;
  }
}

.float-cta:hover {
  transform: scale(1.08);
}

.float-cta svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* ==========================================================================
   Popup modal (home page announcement)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  max-height: 88vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--color-navy-950);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transform: translateY(16px);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}

.modal-actions {
  display: flex;
  gap: 2px;
  background: var(--color-navy-950);
}

.modal-actions a {
  flex: 1;
  text-align: center;
  padding: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-white);
  color: var(--color-navy-950);
}

.modal-actions a:hover {
  background: var(--color-gold-400);
}
