/* ==========================================================================
   Shared site rules (loaded on EVERY page after the other stylesheets)
   1) Header / menu sizing (same compact menu on all pages)
   2) Cookie banner
   3) Back-to-top button
   ========================================================================== */

/* ---------- 1) Header & menu (original home page sizing) ---------- */
.header .navigation {
  --nav_height: 84px;
  --nav_typography-font-size: clamp(16px, 1.12vw, 20px);
}

@media (min-width: 1101px) {
  .header__bar > .layout__row {
    display: flex;
    align-items: center;
    width: 86%;
    max-width: 1550px;
    margin-left: auto;
    margin-right: auto;
  }
  .header__bar .header__logo {
    float: none;
    flex: 0 0 auto;
    margin: 22px 0;
  }
  .header__logo img {
    width: clamp(120px, 8.33vw, 150px);
    height: auto;
  }
  .header__bar .navigation {
    float: none;
    flex: 1;
    max-width: 1240px;
    overflow: visible;
    margin-left: clamp(32px, 2.78vw, 50px);
  }
  /* The theme has higher-specificity rules (flex-wrap: wrap, per-item padding), so these are pinned. */
  body .header .navigation > ul.navigation__list {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
  }
  body .header .navigation > ul.navigation__list > li {
    float: none;
    padding-right: 0 !important;
    white-space: nowrap;
  }
  .header .navigation .menu__item-button span.navigation__text.button {
    font-size: clamp(13px, 1vw, 18px);
  }
}

/* ---------- 2) Cookie banner ---------- */
.pp-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 18px;
  background: #0d2366;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  font: 14px/1.5 Mulish, Arial, sans-serif;
}
.pp-cookie[hidden] { display: none !important; }
.pp-cookie p { margin: 0; }
.pp-cookie a { color: #8fd3ff; text-decoration: underline; }
.pp-cookie button {
  flex: 0 0 auto;
  padding: 9px 22px;
  border: 0;
  border-radius: 6px;
  background: #00c6fb;
  color: #0d2366;
  font: 700 14px/1 Mulish, Arial, sans-serif;
  cursor: pointer;
}
.pp-cookie button:hover { background: #fff; }
@media (max-width: 600px) {
  .pp-cookie { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- 3) Back-to-top button ---------- */
.pp-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100000;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #005bea;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .2s;
}
.pp-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.pp-top:hover { background: #00c6fb; }
.pp-top svg { display: block; margin: auto; }
body.pp-cookie-open .pp-top { bottom: 96px; }
@media (max-width: 600px) {
  body.pp-cookie-open .pp-top { bottom: 150px; }
}

/* ---------- Food photography page content ---------- */
.fp { max-width: 1100px; margin: 0 auto; padding: 20px 20px 10px; color: #32325d; }
.fp-sec { padding: 34px 0; }
.fp h2 { margin: 0 0 22px; font-weight: 700; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.25; text-align: center; color: #1a1f4b; }
.fp h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; color: #1a1f4b; }
.fp p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; }
.fp-intro p { max-width: 820px; margin: 0 auto; text-align: center; }
.fp ul, .fp ol { margin: 0; padding: 0; list-style: none; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.fp-card { padding: 24px; background: #f3f6fb; border-radius: 10px; border-top: 4px solid #005bea; }
.fp-card p { margin: 0; font-size: 16px; }
.fp-links { margin-top: 34px; text-align: center; }
.fp a { color: #005bea; text-decoration: underline; }
.fp-aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 30px; }
.fp-aud li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid #dfe5f1; }
.fp-aud span { font-size: 16px; line-height: 1.5; }
.fp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; counter-reset: step; }
.fp-steps li { position: relative; padding: 26px 22px 22px; background: #f3f6fb; border-radius: 10px; counter-increment: step; }
.fp-steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: #005bea; color: #fff; font-weight: 800; }
.fp-steps p { margin: 0; font-size: 16px; }
.fp-faq { margin: 0 0 12px; padding: 16px 20px; background: #f3f6fb; border-radius: 10px; }
.fp-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: #1a1f4b; }
.fp-faq p { margin: 12px 0 0; font-size: 16px; }
.fp-related ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
@media (max-width: 600px) { .fp-sec { padding: 24px 0; } .fp p { font-size: 16px; } }

/* ---------- Client logos: continuous marquee, scrolling left to right (shared by home + service pages) ---------- */
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee__track { display: flex; width: max-content; animation: logo-scroll 45s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__set { display: flex; flex: 0 0 auto; align-items: center; margin: 0; padding: 0; list-style: none; }
.logo-marquee__set li { flex: 0 0 auto; width: clamp(200px, 16vw, 280px); margin: 0 clamp(24px, 3vw, 56px) 0 0; padding: 0; }
.logo-marquee__set img { display: block; width: 100%; height: auto; }
@keyframes logo-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.fp-cta { max-width: 760px; margin: 0 auto; text-align: center; }

/* ---------- Before/after image comparison: show the "before" half over the "after" image (split view) ---------- */
.comparison--static > .comparison__after { position: relative; z-index: 1; }
.comparison--static > .comparison__before { z-index: 2; }
.comparison--static > .comparison__handle { z-index: 3; }

/* Single feature image (food / fashion pages) */
.fp-photo img { display: block; width: 100%; height: auto; }

/* ---------- Phones only (up to 799px) ---------- */
@media (max-width: 799px) {
  /* Login / Sign up is removed from the mobile menu (the hero button covers it) */
  .pp-login-item { display: none !important; }

  /* Mobile hero: photo background under the blue gradient, white slanted edge kept at the bottom.
     Uses each page's own banner (--reference-image); the home page falls back to the default banner. */
  #main .mobile__2019 {
    background-image:
      linear-gradient(-3deg, #fff 3%, transparent calc(3% + 1px)),
      linear-gradient(to bottom, rgba(0, 91, 234, .86), rgba(0, 198, 251, .62)),
      var(--reference-image, url('../images/Home-Page-Banner-Default.jpg'));
    background-size: auto, auto, cover;
    background-position: center, center, center;
    background-repeat: no-repeat;
  }
}
