/* This stylesheet is meant for custom styles, on top of The Peel Template */

body {
  font-family: "Bricolage Grotesque", "Helvetica Neue", Helvetica, sans-serif;
}

/* The slider plugin scales each slide from 0.8x up to full size as it
   becomes active (a "zoom in" transition). During that ~1s animation the
   background image visibly shrinks with dark space around it, which reads
   as a bug rather than a transition. Keep every slide at full size/opacity
   and let the horizontal slide motion (on .slides, not .slide) do the work. */
#home-slider .slide {
  transform: none !important;
  opacity: 1 !important;
}

/* The hero text is vertically centered within the full 100vh slide height,
   which assumes the header's own visual footprint is negligible next to
   the viewport. On a short viewport (a small browser window, or a phone
   in landscape) the header eats a much bigger share of that 100vh, so the
   true center lands underneath the logo/nav instead of below them. Push
   the centering zone down by the header's own height so the math always
   starts clear of it, on any viewport height. */
#home-slider .hero.fs .vcenter {
  height: calc(100% - 220px);
  margin-top: 220px;
}

@media screen and (max-width: 950px) {
  #home-slider .hero.fs .vcenter {
    height: calc(100% - 170px);
    margin-top: 170px;
  }
}

footer {
  position: relative;
  text-align: center;
  flex-shrink: 0;
}

/* Sticky footer: on short pages (e.g. an empty Work/Journal listing),
   this keeps the footer pinned to the bottom of the viewport instead of
   trailing right after the content with a gap below it. */
#wrapper {
  display: flex;
  flex-direction: column;
}

#inner {
  flex: 1 0 auto;
}

/* The ID selector below beats the browser's default `[hidden] { display: none }`
   rule, so setting the hidden property/attribute in JS did nothing visually —
   this restores it with matching specificity so closing the banner works. */
#cookie-consent[hidden] {
  display: none;
}

#cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  max-width: 640px;
  margin: 0 auto;
  background: #16181d;
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  font-size: 14px;
}

#cookie-consent p {
  margin: 0;
  flex: 1 1 320px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

#cookie-consent a {
  color: #fff;
  text-decoration: underline;
}

#cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

#cookie-consent-actions button {
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

#cookie-accept {
  background: #fff;
  color: #16181d;
}

#cookie-decline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

@media screen and (max-width: 640px) {
  #cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 80px;
    padding: 16px;
  }
  #cookie-consent-actions {
    width: 100%;
  }
  #cookie-consent-actions button {
    flex: 1;
  }
}

#whatsapp-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}

#whatsapp-cta:hover {
  transform: scale(1.08);
}

#whatsapp-cta svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

@media screen and (max-width: 950px) {
  #whatsapp-cta {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
}

.form-success {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid #fff;
}

.form-error {
  color: #ff6b6b;
  margin-bottom: 16px;
  display: block;
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.label-row .label {
  white-space: nowrap;
}

.platform-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.platform-label .fa {
  font-size: 0.9em;
}

@media screen and (max-width: 950px) {
  .label-row {
    justify-content: center;
  }
}

@media screen and (min-width: 951px) {
  #filters ul.filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #filters ul.filters::-webkit-scrollbar {
    display: none;
  }
  #filters ul.filters li {
    flex-shrink: 0;
  }
}

#project-grid .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

#project-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project detail gallery: a grid of small clickable thumbnails instead of
   a full-width slideshow. Each tile opens the real image (or video) in the
   lightbox, which caps itself to 90vw/90vh so full resolution always fits
   on one screen instead of requiring a scroll. */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-gallery-item {
  display: block;
}

.project-gallery-item .thumb {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: opacity 0.25s;
}

.project-gallery-item:hover .thumb {
  opacity: 0.85;
}

.project-gallery-item .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.2s, background 0.2s;
}

.project-gallery-item:hover .play-btn {
  background: rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%) scale(1.08);
}

@media screen and (max-width: 950px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* tera-lightbox's video element has no background until it loads; this
   just makes the popup read as a real player instead of a bare iframe. */
#lightbox video {
  background: #000;
}

.brand-logo {
  height: 58px;
  width: 58px;
  object-fit: contain;
  vertical-align: middle;
}

@media screen and (max-width: 950px) {
  .brand-logo {
    height: 46px;
    width: 46px;
  }
}

.home-hero {
  position: relative;
}

.hero-clients-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
  /* padding-bottom keeps the label/logos sitting where they did before
     (48px up from the edge); the gradient background itself now runs the
     full box, all the way down to the hero's actual bottom edge. */
  padding-top: 220px;
  padding-bottom: 48px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-clients-overlay .label {
  opacity: 0.5;
}

@media screen and (max-width: 950px) {
  .hero-clients-overlay {
    padding-top: 160px;
    padding-bottom: 24px;
  }
}

@media screen and (max-height: 700px) {
  .hero-clients-overlay {
    display: none;
  }
}

.marquee {
  overflow: hidden;
  width: 100%;
  pointer-events: auto;
  -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);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 48px;
}

.marquee-item img {
  height: 128px;
  width: auto;
  max-width: 440px;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.marquee-item:hover img {
  opacity: 1;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

@media screen and (max-width: 950px) {
  .marquee-item {
    padding: 0 28px;
  }
  .marquee-item img {
    height: 88px;
  }
}
