/* ================================
   gallery.css
   - Service Gallery page (photo-only)
   - Adaptado 100% para o HTML de gallery.html (template reutilizável)
   - NÃO mexe em global/footer/hero base

   UPDATE:
   - Compatível com páginas de serviço (IDs: #workTypes, #photoGallery)
   - Compatível com página Inspiration (IDs: #ideaTypes, #inspirationGallery)
================================== */

/* =========================
   Shared headings (page only)
========================= */
.sectionHead{
  margin-bottom: 28px;
}

.sectionHead--center{
  text-align: center;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   HERO TITLE (Gallery page only)
   (mesmo padrão do CSS antigo)
========================= */
.serviceHeroTitle{
  text-align: center;
  margin-bottom: 28px;
  margin-top: 100px;
}

.serviceHeroHeading{
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero__line{
  display: block;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  line-height: .95;
}

.hero__line--top{
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.serviceHeroWord{
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: .9;
}

.serviceHeroAccent{
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: .9;
}

.serviceHeroSubline{
  margin: 12px 0 0 0;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.15;
  font-size: clamp(.9rem, 1.2vw, 1.15rem);
  color: #f2efe6;
}

.serviceHeroSubline .is-white{ color: #f2efe6; }
.serviceHeroSubline .is-yellow{ color: #f4c400; }

.serviceHeroHeading .is-white{ color: #fff; }
.serviceHeroHeading .is-yellow{ color: #f4c400; }

.serviceHeroActions{
  margin-top: 22px;
}

@media (max-width: 768px){
  .serviceHeroTitle{
    margin-top: 82px;
    margin-bottom: 18px;
    padding-inline: 8px;
  }

  .serviceHeroHeading{
    gap: 4px;
    line-height: 1;
  }

  .hero__line--top{
    gap: 8px;
  }

  .serviceHeroWord{
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

  .serviceHeroAccent{
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

  .serviceHeroSubline{
    margin-top: 10px;
    font-size: clamp(.72rem, 2.8vw, .9rem);
    line-height: 1.2;
    letter-spacing: .08em;
    padding-inline: 4px;
  }

  .serviceHeroActions{
    margin-top: 14px;
  }
}

/* =========================
   WORK TYPES (names only)
   - Desktop: grid
   - Mobile: carousel + dots (IDs fixos)
========================= */
.workTypes{
  position: relative;
  overflow: hidden;
  background: #000;
  padding-top: 110px;
  padding-bottom: 110px;
}

.workTypes::after{
  content:"";
  position:absolute;
  inset:-40px;
  pointer-events:none;
  z-index:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='680' height='240'%3E%3Cg transform='rotate(-10 340 120)'%3E%3Ctext x='0' y='95' font-family='Inter, Arial, sans-serif' font-size='44' font-weight='900' fill='white' fill-opacity='0.045'%3EPROJECT%20GALLERY%3C/text%3E%3Ctext x='0' y='180' font-family='Inter, Arial, sans-serif' font-size='42' font-weight='900' fill='white' fill-opacity='0.03'%3EPHOTO%20ONLY%20WORK%20TYPES%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 680px 240px;
  background-position: center;
}

.workTypes > .container{
  position: relative;
  z-index: 1;
  width: 100%;
}

.workTypes__rail{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.workTypeCard{
  background: #161616;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px 18px 0 0;
  padding: 18px 18px;
  min-height: 88px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color .22s ease,
    border-color .22s ease,
    color .22s ease,
    transform .22s ease;
}

.workTypeCard__title{
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .05em;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.workTypeCard:hover{
  background: #f4c400;
  border-color: #f4c400;
  transform: translateY(-3px);
}

.workTypeCard:hover .workTypeCard__title{
  color: #0b0b0b;
}

.workTypes__dots{
  display: none;
}

/* Tablet refine */
@media (max-width: 980px){
  .workTypes__rail{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE carousel (work types) */
@media (max-width: 820px){
  .workTypes{
    --workTypeW: clamp(260px, 84vw, 360px);
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .workTypes__rail{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 0 0 10px;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .workTypes__rail::-webkit-scrollbar{ display:none; }

  .workTypes__rail::before,
  .workTypes__rail::after{
    content:"";
    display:block;
    flex: 0 0 calc((100vw - var(--workTypeW)) / 2);
  }

  .workTypeCard{
    flex: 0 0 var(--workTypeW);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    border-radius: 16px 16px 0 0;
    min-height: 82px;
    transform: none !important;
  }

  .workTypeCard:hover{ transform:none !important; }

  .workTypes__dots{
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
  }

  .workTypes__dots .dot{
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    display: inline-block;
    line-height: 0;
    font-size: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
  }

  .workTypes__dots .dot.is-active{
    background: #f4c400;
  }
}

@media (max-width: 480px){
  .workTypes{
    --workTypeW: clamp(240px, 88vw, 340px);
    padding-top: 68px;
    padding-bottom: 68px;
  }
}

/* =========================
   SOFT CTA (conversion)
========================= */
.softCta{
  position: relative;
}

.softCta::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: rgba(255, 208, 0, .65);
  pointer-events:none;
}

.softCta__card{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,10,10,.92);
  padding: 26px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.softCta__left .h2{
  margin: 0 0 8px;
}

.softCta__left .muted{
  margin: 0;
  max-width: 70ch;
}

.softCta__right{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 820px){
  .softCta__card{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .softCta__right{
    width: 100%;
    justify-content: flex-start;
  }

  .softCta__right .btn{
    width: min(100%, 340px);
    justify-content: center;
  }
}

/* =========================
   PHOTO GALLERY SECTION
   (Track/Dots IDs fixos: #photoGalleryTrack + #photoGalleryDots)
========================= */
.photoGallery{
  position: relative;
}

.photoGallery::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: rgba(255, 208, 0, .65);
  pointer-events:none;
}

.photoGallery__track{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photoCard{
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: #0b0b0b;
}

.photoCard img{
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
  filter: none;
  cursor: zoom-in;
}

.photoCard::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.66));
  opacity: 1;
  transition: opacity .35s ease;
}

.photoCard figcaption{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.photoCard:hover img{
  transform: scale(1.05);
  filter: none;
}

.photoCard:hover::after{
  opacity: .45;
}

.galleryMobileHint,
.photoGallery__dots{
  display: none;
}

/* MOBILE gallery carousel (photo-only) */
@media (max-width: 900px){
  #photoGallery,
  #inspirationGallery{
    --photoCardW: clamp(290px, 84vw, 380px);
  }

  .galleryMobileHint{
    display: block;
    margin: 10px 0 12px;
    text-align: center;
    color: #ffd400;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: 11px;
  }

  .photoGallery__track{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 0 0 10px;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
  }

  .photoGallery__track::-webkit-scrollbar{ display:none; }

  .photoGallery__track::before,
  .photoGallery__track::after{
    content:"";
    display:block;
    flex: 0 0 calc((100vw - var(--photoCardW)) / 2);
  }

  .photoCard{
    flex: 0 0 var(--photoCardW);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .photoCard img{
    min-height: 260px;
  }

  .photoGallery__dots{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }

  .photoGallery__dots .galleryDot{
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
    display: inline-block;
    line-height: 0;
    font-size: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
  }

  .photoGallery__dots .galleryDot.is-active{
    background: #ffd400;
    transform: scale(1.15);
  }

  .photoCard:hover,
  .photoCard:hover img{
    transform: none;
  }
}

@media (max-width: 480px){
  #photoGallery,
  #inspirationGallery{
    --photoCardW: clamp(270px, 88vw, 360px);
  }
}

/* =========================
   THEME NOTE (light info box)
========================= */
.themeNote{
  position: relative;
}

.themeNote::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: rgba(255, 208, 0, .65);
  pointer-events:none;
}

.themeNote__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: start;
}

.themeNote__box{
  background: rgba(0,0,0,.60);
  border: 1px solid rgba(255,255,255,.10);
  padding: 18px 16px;
  border-radius: 0;
}

.themeNote__title{
  margin: 0 0 10px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  font-size: 16px;
}

.themeNote__actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.themeNote__actions .btn{
  justify-content: center;
}

@media (max-width: 980px){
  .themeNote__grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .themeNote__actions .btn{
    width: min(100%, 340px);
  }
}

/* =========================
   TRUST STRIP (small)
========================= */
.trustStrip{
  position: relative;
}

.trustStrip::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: rgba(255, 208, 0, .65);
  pointer-events:none;
}

.trustStrip__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trustPill{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  padding: 14px;
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  transition: border-color .2s ease, background-color .2s ease;
}

.trustPill:hover{
  border-color: rgba(255,212,0,.45);
  background: rgba(255,212,0,.04);
}

.trustPill__big{
  color: var(--accent);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  font-style: italic;
  text-transform: uppercase;
}

.trustPill__small{
  color: rgba(255,255,255,.78);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .10em;
  line-height: 1.35;
}

@media (max-width: 980px){
  .trustStrip__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px){
  .trustStrip__grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   FINAL CTA (light)
========================= */
.finalCta{
  margin-top: 0;
  border: 1px solid rgba(255,255,255,.10);
  background: #0b0b0b;
  padding: 26px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.finalCta__title{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.finalCta__right{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 720px){
  .finalCta{
    flex-direction: column;
    align-items: flex-start;
  }

  .finalCta__right{
    width: 100%;
    justify-content: flex-start;
  }

  .finalCta__right .btn{
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   REVEAL FAILSAFE
========================= */
main .reveal,
.section .reveal{
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal.isIn{
  opacity: 1 !important;
  transform: none !important;
}

/* =========================
   Extra responsive safety
========================= */
@media (max-width: 1100px){
  .photoGallery__track{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px){
  .photoGallery__track{
    grid-template-columns: 1fr;
  }
}

/* =========================
   SECTION DIVIDERS (Yellow lines)
   - Line below HERO
   - Line between ALL sections
   - Line above FOOTER
========================================================= */

/* ===== Divider below HERO ===== */
header.hero,
#pageHero{
  position: relative;
}

header.hero::after,
#pageHero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: rgba(255, 208, 0, .65);
  pointer-events:none;
  z-index: 4;
}

/* ===== Dividers between sections ===== */
main .section{
  position: relative;
}

main .section::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background: rgba(255, 208, 0, .65);
  pointer-events:none;
  z-index: 2;
}

/* avoid double line on first section after hero */
main .section:first-of-type::before{
  display:none;
}

/* support older/service IDs if used elsewhere */
#workTypes::before,
#ideaTypes::before,
#themeNote::before{
  display:none;
}

/* ===== Divider above footer ===== */
footer.footer{
  position: relative;
}

footer.footer::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background: rgba(255, 208, 0, .65);
  pointer-events:none;
  z-index: 2;
}

/* =========================
   LIGHTBOX (Photo Viewer)
   - Mobile friendly
========================= */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.lightbox.is-open{
  display: block;
}

.lightbox__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
}

.lightbox__dialog{
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0;
  padding: 18px;
}

.lightbox__figure{
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  max-width: min(1100px, 92vw);
  width: 100%;
  text-align: center;
}

.lightbox__img{
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.6);
}

.lightbox__caption{
  margin-top: 10px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .02em;
}

.lightbox__meta{
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  margin-top: 8px;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lightbox__count{
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.55);
}

.lightbox__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.lightbox__close:hover{
  background: rgba(255,212,0,.12);
  border-color: rgba(255,212,0,.35);
  transform: translateY(-1px);
}

.lightbox__nav{
  grid-row: 1;
  width: 46px;
  height: 70px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox__nav:hover{
  background: rgba(255,212,0,.12);
  border-color: rgba(255,212,0,.35);
  transform: translateY(-1px);
}

.lightbox__nav--prev{ grid-column: 1; }
.lightbox__nav--next{ grid-column: 3; }

.lightbox__nav:disabled{
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 820px){
  .lightbox__dialog{
    grid-template-columns: 44px 1fr 44px;
    padding: 12px;
  }

  .lightbox__img{
    max-height: 72vh;
  }

  .lightbox__nav{
    width: 40px;
    height: 62px;
    font-size: 30px;
  }

  .lightbox__caption{
    font-size: 12.5px;
  }

  .lightbox__close{
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* =========================
   SOFT CTA — button swap (desktop vs mobile)
   - Desktop: show CTA, hide SMS
   - Mobile: hide CTA, show SMS
========================= */
#softCta .softCta__right .btn--ghost{
  display: none;
}

@media (max-width: 820px){
  #softCta .softCta__right .btn--cta{
    display: none;
  }

  #softCta .softCta__right .btn--ghost{
    display: inline-flex;
  }

  #softCta .softCta__right .btn{
    width: min(100%, 340px);
    justify-content: center;
  }
}

/* =========================
   FINAL CTA — button swap (desktop vs mobile)
   - Desktop: show CTA, hide SMS
   - Mobile: hide CTA, show SMS
========================= */
#finalCta .finalCta__right .btn--ghost{
  display: none;
}

@media (max-width: 820px){
  #finalCta .finalCta__right .btn--cta{
    display: none;
  }

  #finalCta .finalCta__right .btn--ghost{
    display: inline-flex;
  }

  #finalCta .finalCta__right .btn{
    width: min(100%, 340px);
    justify-content: center;
  }
}
.hero .scrollCue,
.hero .hero__scroll,
.hero .hero__arrow,
.hero .scroll-down,
.hero .heroScroll {
  display: none !important;
}