/* =====================================================================
   Zula Media — service pages (clipping.html, media-buying.html, meta-ads.html)
   Loaded after styles.css. Holds what the three pages share: the title font,
   the top bar, and the small changes to the contact section.
   Each page's own sections live in services/<page>.css, scoped under .svc.
   ===================================================================== */

/* Inter Tight: the title font of the service pages (SIL Open Font License). */
@font-face { font-family: "Inter Tight"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-tight-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-tight-700.woff2") format("woff2"); }

/* plain page background (the sections bring their own) */
:root[data-theme="dark"] body.service-page, body.service-page { background: var(--bg); }

/* the page's sections: their text colour and font (their own styles are in services/<page>.css) */
/* (line-height: the sections were drawn on the browser's normal line height, not the site's 1.5) */
.svc { color: var(--tx); font-family: var(--body); line-height: normal; }

/* ---------- top bar: clear over the first screen, solid once the page scrolls under it ---------- */
.svc-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease;
}
.svc-top.is-solid {
  background: rgba(13, 14, 37, .88);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
:root[data-theme="light"] .svc-top.is-solid { background: rgba(241, 240, 235, .88); border-bottom-color: rgba(21, 24, 31, .08); }
.svc-nav {
  display: flex; align-items: center; gap: 30px;
  height: 60px; padding: 0 24px;
}
.svc-brand {
  display: inline-flex; align-items: center; gap: 8px;
  margin-right: auto;
  font-size: 20px; letter-spacing: -0.02em;
  color: var(--muted);
}
.svc-brand .mark { color: var(--text); }
.svc-brand b { font-weight: 700; color: var(--text); }
.svc-nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.svc-nav-links a { position: relative; color: var(--text-soft); transition: color .2s; }
.svc-nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
:root[data-theme="light"] .svc-nav-links a::after { background: #6e8f00; }
.svc-nav-links a:hover, .svc-nav-links a[aria-current="page"] { color: var(--text); }
.svc-nav-links a:hover::after, .svc-nav-links a[aria-current="page"]::after { transform: scaleX(1); }
/* language button in the bar (on a phone it is in the menu): the bar follows the theme, so the button does too */
.svc-nav .lang-toggle { border-color: var(--line-strong); background: transparent; color: var(--text); }
.svc-nav .lang-toggle:hover { border-color: var(--text); }
.svc-nav .nav-burger { flex: 0 0 auto; border-color: var(--line-strong); background: transparent; }
.svc-nav .nav-burger span { background: var(--text); }
/* the phone menu is opaque here: inside a bar that has its own blur, the menu's blur stops working and the page showed
   through it (the menu is dark in both themes, like on the other pages, so the colour is not the theme's --bg) */
.svc-top .mobile-menu { top: 66px; background: #0d0e25; -webkit-backdrop-filter: none; backdrop-filter: none; }
.svc-top .mobile-menu a[aria-current="page"] { color: var(--lime); }

/* ---------- contact section on a service page ---------- */
/* the headings are longer than "Let's talk." and run over several lines */
.service-page .contact-copy .h-xxl { font-size: clamp(44px, 5.6vw, 96px); line-height: .98; white-space: normal; text-wrap: balance; }

/* small tablets: with the language button the bar is full, so its gaps are tighter and a link never breaks in two */
.svc-nav-links a { white-space: nowrap; }
@media (max-width: 860px) {
  .svc-nav, .svc-nav-links { gap: 18px; }
}

@media (max-width: 760px) {
  /* Cookie banner on a phone: fixed at the bottom it covered the first screen's buttons. On a service page it sits in the
     page instead, under the top bar and above the first screen, until the visitor has chosen. */
  body.service-page { display: flex; flex-direction: column; }
  /* (z-index: as a flex item it would keep its 30 and sit over the open phone menu) */
  .service-page .cookie-banner { order: -1; position: static; z-index: auto; max-width: none; margin: 68px 12px 0; }
  .service-page:has(.cookie-banner:not([hidden])) .svc #top { min-height: 0; padding-top: 28px; }
  .svc-nav { gap: 12px; padding: 0 16px; }
  .svc-nav-links { display: none; }
  .svc-nav .btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
}
