/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'DIN Condensed';
  src: local('DIN Condensed Bold'), local('DINCondensed-Bold');
  font-style: normal;
  font-weight: 700;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ensure fonts are rendered at normal weight by default (prevents synthetic bold)
   and improve font smoothing on desktop/mobile. */
body {
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* Hamburger Menu */
.hamburger {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(46, 45, 123, 0.95) 0%, rgba(29, 39, 112, 0.9) 100%);
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.hamburger:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active {
  background: transparent;
  box-shadow: none;
}

.hamburger.active span {
  background: #fff;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(46, 45, 123, 0.92) 0%, rgba(22, 28, 91, 0.88) 100%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3rem 2rem 2rem;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.menu-overlay.active {
  transform: translateX(0);
  pointer-events: all;
}

.menu-overlay-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 3.25rem;
  flex-shrink: 0;
  position: relative;
}

.menu-overlay-logo {
  width: 118px;
  height: auto;
}

  
.menu-top-language {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -30px;
  right: 40px;
  z-index: 1200;
  padding:0;
}

.menu-overlay-logo-link {
  display: block;
  text-align: center;
}

.menu-overlay-nav ul {
  margin-top: 2rem;
}

.menu-overlay-nav a {
  font-size: 1.9rem;
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  display: block;
  margin: 0.5rem 0;
  text-align: center;
}

.menu-overlay-nav {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.menu-overlay ul {
  list-style: none;
  text-align: center;
}

.menu-overlay li {
  margin: 0.45rem 0;
}



.menu-overlay a {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  font-weight: 700;
  white-space: nowrap;
}

.menu-overlay a:hover {
  color: #999;
}




.menu-overlay-brands {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0 0.8rem;
  flex-shrink: 0;
  margin-top: auto;
}

.menu-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.menu-brand-logo {
  width: 70px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}


.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.language-selector span {
  color: #999;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  transition: all 0.3s ease;
  opacity: 0.4;
  position: relative;
}

.lang-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.lang-btn:hover {
  opacity: 0.7;
}

.lang-btn:hover::after {
  width: 60%;
}

.lang-btn.active {
  opacity: 1;
}

.lang-btn.active::after {
  width: 80%;
}

.lang-btn .flag-icon {
  font-size: 1.5rem;
  display: block;
  line-height: 1;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.lang-btn:hover .flag-icon,
.lang-btn.active .flag-icon {
  filter: grayscale(0%);
}
/* Hero Section */
.hero {
  background: #000;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero .parallax-bg {
  height: 100%;
  background-attachment: fixed;
  background-position: center center;
  opacity: 1;
  transition: opacity 0.45s ease;
  will-change: opacity;
  pointer-events: none;
}

.hero .parallax-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 25%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 75%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

/* Mobile fixes: prevent iOS/Android background 'zoom' caused by fixed attachment. */
@media (max-width: 600px) {
  .hero {
    height: auto;
    min-height: 80vh;
    padding: 3.5rem 1rem 5rem;
  }

  .hero .parallax-bg,
  .hero .parallax-bg::after {
    background-attachment: scroll !important;
    background-position: center center !important;
    height: 100% !important;
  }

  .hero-logo {
    padding-top: 2.5rem;
  }

  .hero-content {
    gap: 0;
  }

  .hero-logo-img {
    max-width: 320px;
    width: 72%;
    height: auto;
  }

  .hamburger {
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    width: 46px;
    height: 46px;
  }

  /* Keep hero logo above overlay layers on smaller screens */
  .hero-logo,
  .hero-content {
    z-index: 5;
    position: relative;
  }
}

.hero-logo {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-logo-img {
  width: min(62vw, 780px);
  max-width: 780px;
  height: auto;
}


.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Reservations Cards */
.reservations-cards {
  min-height: auto;
  padding: 0;
  background: #fff;
}

.reservations-grid {
  width: min(1360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 6px;
}

.reservation-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.72;
  min-height: 0;
  background: #111;
}

.reservation-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.04);
}

.reservation-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 22%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
}

.reservation-card-logo-wrap {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: auto;
  max-width: 46%;
  display: flex;
  justify-content: center;
}

.reservation-card-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.reservation-card-logo {
  width: auto;
  height: clamp(56px, 4.8vw, 72px);
  max-width: 100%;
  object-fit: contain;
}

/* Match reference proportions: RO slightly smaller than MURO/BACALHAU */
.reservation-card-ro .reservation-card-logo {
  height: clamp(50px, 4.2vw, 64px);
}

.reservation-card-muro .reservation-card-logo {
  height: clamp(56px, 4.8vw, 72px);
}

.reservation-card-bacalhau .reservation-card-logo {
  height: clamp(52px, 4.5vw, 68px);
}

.reservation-card-panel {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 16px;
  z-index: 2;
  background: rgba(242, 239, 233, 0.74);
  color: #573f32;
  padding: 16px 14px 12px;
  text-align: center;
  height: clamp(188px, 16.5vw, 190px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reservation-line {
  margin: 0;
  color: #573f32;
  text-transform: uppercase;
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.35vw, 1.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.reservation-line + .reservation-line {
  margin-top: 0.12rem;
}

.reservation-phones {
  margin-top: 0.42rem !important;
}

.reservation-phone-link {
  color: inherit;
  text-decoration: none;
}

.reservation-phone-link:hover,
.reservation-phone-link:focus-visible {
  text-decoration: underline;
}

.reservation-phone-separator {
  color: inherit;
}

.reservation-hours {
  margin-top: 0.28rem !important;
}

/* RO card specific hierarchy: subtitle line is intentionally smaller */
.reservation-card-ro .reservation-lead {
  font-size: clamp(1.42rem, 1.95vw, 1.8rem);
  line-height: 1.02;
}

.reservation-card-ro .reservation-sublead {
  font-size: clamp(0.98rem, 1.24vw, 1.2rem);
  line-height: 1.05;
}

.mb-6{
  margin-bottom: .8rem;
}

.reservation-card-ro .reservation-phones {
  margin-top: 1.05rem !important;
  font-size: clamp(1.35rem, 1.78vw, 1.8rem);
  line-height: 1.02;
}

.reservation-card-ro .reservation-hours {
  margin-top: 0.26rem !important;
  font-size: clamp(1.03rem, 1.36vw, 1.2rem);
  line-height: 1.02;
}

/* MURO card exception: match provided design without affecting other cards */
.reservation-card-muro .reservation-sublead {
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  line-height: 1.02;
}

.reservation-card-muro .reservation-highlight {
  font-size: clamp(1.6rem, 2.95vw, 1.6rem);
  line-height: 0.98;
  margin-top: .7rem !important;
}

.reservation-card-muro .reservation-body {
  font-size: clamp(1.55rem, 2.35vw, 1.6rem);
  line-height: 1;
}

.reservation-card-muro .reservation-hours {
  margin-top: 0.3rem !important;
  font-size: clamp(1.2rem, 1.72vw, 1.2rem);
  line-height: 1;
}

/* BACALHAU card exception: match provided design without affecting other cards */
.reservation-card-bacalhau .reservation-sublead {
  font-size: clamp(1.04rem, 1.35vw, 1.16rem);
  line-height: 1.02;
}

.reservation-card-bacalhau .reservation-highlight {
  font-size: clamp(1.5rem, 2.45vw, 1.5rem);
  line-height: 1;
  margin-top: 0.7rem !important;
}

.reservation-card-bacalhau .reservation-body {
  font-size: clamp(1.5rem, 2.1vw, 1.5rem);
  line-height: 1;
}

.reservation-card-bacalhau .reservation-hours {
  margin-top: 0.35rem !important;
  font-size: clamp(1.18rem, 1.62vw, 1.3rem);
  line-height: 1;
}

@media (max-width: 1300px) {
  .reservation-card-logo-wrap {
    top: 28px;
  }

  .reservation-card-panel {
    left: 6%;
    right: 6%;
    bottom: 14px;
    padding: 14px 12px 10px;
    height: clamp(178px, 22vw, 212px);
  }
}

@media (max-width: 980px) {
  .reservations-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reservation-card {
    aspect-ratio: 0.78;
  }

  .reservation-card-logo-wrap {
    max-width: 44%;
  }

  .reservation-card-logo {
    height: clamp(52px, 8vw, 66px);
  }

  .reservation-card-ro .reservation-card-logo {
    height: clamp(46px, 7.1vw, 58px);
  }

  .reservation-card-bacalhau .reservation-card-logo {
    height: clamp(48px, 7.5vw, 62px);
  }

  .reservation-card-panel {
    left: 7%;
    right: 7%;
  }

  .reservation-line {
    font-size: clamp(0.95rem, 2.6vw, 1.38rem);
  }

  .reservation-card-ro .reservation-sublead {
    font-size: clamp(0.9rem, 2.15vw, 1.12rem);
  }

  .reservation-card-ro .reservation-phones {
    margin-top: 0.9rem !important;
    font-size: clamp(1.18rem, 3.35vw, 1.72rem);
  }

  .reservation-card-ro .reservation-hours {
    font-size: clamp(0.92rem, 2.55vw, 1.24rem);
  }

  .reservation-card-muro .reservation-sublead {
    font-size: clamp(1.02rem, 2.5vw, 1.32rem);
  }

  .reservation-card-muro .reservation-highlight {
    font-size: clamp(1.75rem, 5.1vw, 2.5rem);
  }

  .reservation-card-muro .reservation-body {
    font-size: clamp(1.28rem, 3.9vw, 1.95rem);
  }

  .reservation-card-muro .reservation-hours {
    font-size: clamp(1.06rem, 3.1vw, 1.42rem);
  }

  .reservation-card-bacalhau .reservation-sublead {
    font-size: clamp(0.98rem, 2.35vw, 1.2rem);
  }

  .reservation-card-bacalhau .reservation-highlight {
    font-size: clamp(1.55rem, 4.7vw, 2.2rem);
  }

  .reservation-card-bacalhau .reservation-body {
    font-size: clamp(1.2rem, 3.5vw, 1.72rem);
  }

  .reservation-card-bacalhau .reservation-hours {
    font-size: clamp(1rem, 2.85vw, 1.3rem);
  }
}

@media (max-width: 560px) {
  .reservation-card {
    aspect-ratio: 0.7;
  }

  .reservation-card-logo-wrap {
    top: 24px;
    max-width: 48%;
  }

  .reservation-card-logo {
    height: clamp(42px, 10vw, 54px);
  }

  .reservation-card-ro .reservation-card-logo {
    height: clamp(36px, 8.4vw, 46px);
  }

  .reservation-card-bacalhau .reservation-card-logo {
    height: clamp(39px, 9.1vw, 50px);
  }

  .reservation-card-panel {
    left: 8%;
    right: 8%;
    bottom: 16px;
    padding: 12px 12px;
    height: clamp(168px, 42vw, 208px);
  }

  .reservation-line {
    font-size: clamp(0.88rem, 4.8vw, 1.18rem);
  }

  .reservation-card-muro .reservation-sublead {
    font-size: clamp(0.96rem, 4.8vw, 1.22rem);
  }

  .reservation-card-muro .reservation-highlight {
    font-size: clamp(1.58rem, 8.9vw, 2.2rem);
  }

  .reservation-card-muro .reservation-body {
    font-size: clamp(1.15rem, 6.5vw, 1.62rem);
  }

  .reservation-card-muro .reservation-hours {
    font-size: clamp(0.98rem, 5.3vw, 1.25rem);
  }

  .reservation-card-bacalhau .reservation-sublead {
    font-size: clamp(0.92rem, 4.5vw, 1.1rem);
  }

  .reservation-card-bacalhau .reservation-highlight {
    font-size: clamp(1.38rem, 8vw, 1.95rem);
  }

  .reservation-card-bacalhau .reservation-body {
    font-size: clamp(1.06rem, 6vw, 1.48rem);
  }

  .reservation-card-bacalhau .reservation-hours {
    font-size: clamp(0.9rem, 4.9vw, 1.16rem);
  }
}

/* About Section */
.about {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about .parallax-bg {
  z-index: 1;
  height: 100%;
}

.about .parallax-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.about-content {
  position: relative;
  z-index: 2;
  width: min(88vw, 640px);
  margin: 0 auto;
}

.about-box {
  background: rgba(248, 243, 236, 0.7);
  padding: 1.45rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-box h2 {
  font-size: clamp(1.55rem, 2.15vw, 2.1rem);
  margin-bottom: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  text-align: left;
  color: #4a2d1f;
}

.about-box p {
  margin-bottom: 0.78rem;
  line-height: 1.24;
  font-size: clamp(1.02rem, 1.12vw, 1.24rem);
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: #4a2d1f;
  text-align: left;
}

.about-box p:last-of-type {
  margin-bottom: 0;
}
/* Gallery Section */
.gallery {
  background: #f5f5f5;
  flex-direction: column;
  padding: 60px 0;
  min-height: 750px;
  overflow: hidden;
}

.gallery h2 {
  display: none;
}

.gallery-slider {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
}

.gallery-container {
  width: 100%;
  overflow: visible;
  position: relative;
  contain: layout style paint;
  min-height: 620px;
}

.gallery-images {
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
  min-height: 620px;
  visibility: visible;
  opacity: 1;
}

.gallery-slide {
  flex-shrink: 0;
  width: auto;
  max-width: 45%;
  padding: 0 1%;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), 
              filter 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  filter: grayscale(100%);
  opacity: 0.4;
  transform: scale(0.95);
  will-change: filter, opacity, transform;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-slide.active {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1);
}

.gallery-slide img {
  width: auto;
  max-width: 100%;
  height: 600px;
  min-height: 600px;
  object-fit: contain;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gallery-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  opacity: 0.4;
  text-transform: uppercase;
  max-width: 400px;
  word-wrap: break-word;
}

.gallery-slide.active .gallery-caption {
  opacity: 1;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-prev {
  left: 15%;
}

.gallery-next {
  right: 15%;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c7c7c7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: #222;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.88);
}

.gallery-lightbox-content {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100%;
  max-height: 100vh;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-figure {
  margin: 0;
  width: 100%;
  max-width: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-brand-link {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: none;
  text-decoration: none;
}

.gallery-lightbox-brand-logo {
  height: clamp(30px, 3vw, 48px);
  width: auto;
  max-width: min(22vw, 150px);
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 0;
  display: block;
}

.gallery-lightbox-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .gallery-lightbox-figure {
    max-width: min(68vw, 780px);
  }

  .gallery-lightbox-image {
    max-width: min(68vw, 780px);
    height: auto;
  }
}

.gallery-lightbox-caption {
  display: none;
  margin-top: 0.9rem;
  color: #f3f3f3;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 760px;
}

.gallery-lightbox-counter {
  display: none;
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

.gallery-lightbox-close {
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  font-size: 1.9rem;
  line-height: 1;
}

.gallery-lightbox-prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  transform: translateY(-50%) scale(1.05);
}

.gallery-lightbox-prev svg,
.gallery-lightbox-next svg {
  width: 10px;
  height: 18px;
}

.gallery-slide img {
  cursor: zoom-in;
}

/* Contacts Showcase */
.contacts-showcase {
  position: relative;
  min-height: 100vh;
  background: url('images/contactos.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 1.6rem;
  color: #fff;
}

.contacts-showcase-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.52);
}

.contacts-showcase-content {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
}

.contacts-showcase-top {
  display: flex;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
}

.contacts-jam-logo-link {
  border: 2px solid rgba(255, 255, 255, 0.72);
  min-height: 126px;
  padding: 0.95rem 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.18);
}

.contacts-jam-logo {
  height: clamp(64px, 6vw, 86px);
  width: auto;
  filter: brightness(0) invert(1);
}

.contacts-title-box {
  margin-left: 0.7rem;
  min-height: 126px;
  padding: 0.75rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.95;
  font-weight: 700;
  background: rgba(19, 23, 51, 0.75);
}

.contacts-email-row {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  font-weight: 700;
}

.contacts-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contacts-brands-grid {
  margin-top: 1.7rem;
  width: min(100%, 860px);
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.contacts-brand-card {
  background: transparent;
  display: grid;
  grid-template-rows: 144px 52px auto;
}

.contacts-brand-logo-link {
  border: 2px solid rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.15);
}

.contacts-brand-logo {
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.contacts-brand-logo-bacalhau {
  height: 80px;
}

.contacts-brand-logo-muro {
  height: 94px;
}

.contacts-brand-logo-ro {
  height: 88px;
}

.contacts-brand-icons {
  border: 2px solid rgba(255, 255, 255, 0.72);
  margin-top: 0.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 56px;
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  box-sizing: border-box;
}

.contacts-brand-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.contacts-brand-icons a + a {
  border-left: 2px solid rgba(255, 255, 255, 0.72);
}

.contacts-brand-icons .contacts-icon {
  width: 30px;
  height: 30px;
}

.contacts-brand-phone,
.contacts-brand-address {
  margin: 0;
  text-align: center;
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.contacts-brand-phone {
  margin-top: 2rem;
  font-size: clamp(1.8rem, 2vw, 1.8rem);
  line-height: 1.06;
  min-height: 2.12em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.contacts-brand-address {
  margin-top: 2rem;
  margin-bottom: 1.3rem;
  font-size: clamp(1.35rem, 1.5vw, 1.85rem);
  font-weight: 200;
}

.contacts-brand-phone a,
.contacts-brand-address a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 980px) {
  .contacts-showcase {
    padding: 1.6rem 1rem;
  }

  .contacts-showcase-top {
    width: 100%;
  }

  .contacts-jam-logo-link {
    flex: 0 0 52%;
    min-height: 102px;
    padding: 0.75rem 1rem;
  }

  .contacts-title-box {
    flex: 1;
    min-height: 102px;
    margin-left: 0.45rem;
    justify-content: center;
    text-align: center;
  }

  .contacts-brands-grid {
    margin-top: 1.2rem;
    margin-left: 0;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .contacts-brand-card {
    grid-template-rows: 118px 48px auto;
  }

  .contacts-brand-logo-bacalhau {
    height: 68px;
  }

  .contacts-brand-logo-muro {
    height: 78px;
  }

  .contacts-brand-logo-ro {
    height: 72px;
  }

  .contacts-brand-phone {
    margin-top: 0.8rem;
    font-size: clamp(1.45rem, 6vw, 2rem);
    min-height: 2.12em;
  }

  .contacts-brand-address {
    margin-top: 0.75rem;
    margin-bottom: 0.9rem;
    font-size: clamp(1.15rem, 4.8vw, 1.6rem);
  }
}

@media (max-width: 768px) {
  .contacts-showcase {
    background-image: url('images/contactos_mobile.jpg');
    align-items: flex-start;
    padding-top: 2.2rem;
  }

  .contacts-title-box {
    font-size: clamp(1.52rem, 8vw, 2.25rem);
    padding: 0.9rem 0.9rem;
  }

  .contacts-email-row {
    font-size: clamp(1.18rem, 6vw, 1.65rem);
    margin-top: 0.78rem;
  }
}

/* Work With Us Section */
.work-with-us {
  position: relative;
  min-height: 100vh;
  background: url('images/trabalhaConnosco.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 25, 67, 0.5) 0%, rgba(10, 12, 35, 0.62) 100%);
}

.work-content {
  position: relative;
  z-index: 2;
  width: min(86vw, 780px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(9vh);
}

.work-badge {
  background: rgba(255, 255, 255, 0.96);
  color: #2f368c;
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  line-height: 1;
  letter-spacing: 0.01em;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  padding: 0.3rem 1rem 0.18rem;
  border-radius: 16px;
}

.work-title {
  margin-top: 1.3rem;
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.2rem, 2.05vw, 1.8rem);
  line-height: 1.02;
  text-transform: uppercase;
  font-weight: 700;
}

.work-subtitle {
  margin-top: 0.28rem;
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.02rem, 1.7vw, 1.45rem);
  line-height: 1.16;
  font-weight: 700;
}

.work-email {
  margin-top: 1.7rem;
  font-family: 'DIN Condensed', 'DINCondensed-Bold', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(0.98rem, 1.62vw, 1.35rem);
  line-height: 1.15;
  font-weight: 700;
  opacity: 0.98;
}

.work-email a {
  color: inherit;
  text-decoration: none;
}

.work-email a:hover,
.work-email a:focus-visible {
  text-decoration: underline;
}

.work-logos {
  margin-top: 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.8rem, 3.8vw, 3.2rem);
  flex-wrap: wrap;
}

.work-logo {
  width: auto;
  object-fit: contain;
}

.work-logo-link {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
}

.work-logo-ro {
  height: clamp(72px, 5.8vw, 88px);
}

.work-logo-bacalhau {
  height: clamp(68px, 5.9vw, 90px);
}

.work-logo-muro {
  height: clamp(82px, 6.5vw, 98px);
}

@media (max-width: 768px) {
  .work-with-us {
    min-height: 88vh;
    padding: 0 1rem;
  }

  .work-content {
    width: min(92vw, 620px);
    transform: translateY(4vh);
  }

  .work-badge {
    border-radius: 11px;
    font-size: clamp(1.18rem, 8vw, 1.82rem);
    line-height: 1;
    height: 26px;
    padding: 0.28rem 0.85rem 0.16rem;
  }

  .work-title {
    margin-top: 0.95rem;
  }

  .work-logos {
    margin-top: 2.5rem;
    gap: 1.4rem;
  }

  .work-logo-ro {
    height: clamp(50px, 10vw, 64px);
  }

  .work-logo-bacalhau {
    height: clamp(48px, 9.6vw, 62px);
  }

  .work-logo-muro {
    height: clamp(56px, 11.2vw, 72px);
  }
}

/* Contacts Section */
.contacts {
  position: relative;
  background: url('images/contacts.jpg') center/cover no-repeat;
  color: #fff;
  text-align: left;
  min-height: 100vh;
}

.contacts-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.contacts .section-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contacts h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: 'Helvetica', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  text-align: left;
  margin-left: 30px;
}

.contacts .hours-header {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  font-family: 'Helvetica', 'Helvetica Neue', Arial, sans-serif;
  text-align: left;
  margin-left: 30px;
}

.contacts .hours-bold {
  font-family: 'Helvetica', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-details {
  margin-bottom: 2.5rem;
  text-align: left;
}

.contact-details .phone {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.contact-details .phone a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.contact-details .phone a:hover {
  opacity: 0.7;
}

.contact-details .phone .phone-separator {
  margin: 0 0.3rem;
}

.contact-details .hours {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.contact-details .address {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.contact-details .address a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.contact-details .address a:hover {
  opacity: 0.7;
}

.contact-details .address .map-icon {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

.contact-details .email {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.contact-details .email a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.contact-details .email a:hover {
  opacity: 0.7;
}

.contact-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

/* Contacts Bottom Links - Square Cards */
.contacts-bottom-links {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-left: 30px;
}

.link-group {
  display: flex;
  align-items: flex-end;
  gap: 0;
  position: relative;
}

.link-group-single {
  gap: 0;
}

.link-group-double {
  gap: 0;

}

.link-group-triple {
  gap: 0;
    margin-left: -10px;
}

.link-group-double {
  gap: 0;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: left;
}

.link-group-double .row{
  display: flex;
  gap: 0;
  width: 100%;
}
.link-group-double .group-label {
  width: 180px;
  text-align: center;
  font-size: 0.75rem;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  margin-top: 0.4rem;
  color: #fff;
 
}

.bottom-link-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.bottom-link-box:hover {
  opacity: 0.8;
}

.box-square {
  width: 90px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.box-square.big img {
  height: 100px;
  width: 60px;
}

.bottom-link-box:hover .box-square {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.box-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.bottom-link-box > span {
  font-size: 0.75rem;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  margin-top: 0.4rem;
  text-align: center;
}

.saiba-mais {
  font-size: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.social-link {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  opacity: 0.7;
}

.social-link.instagram svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.social-link.text-link {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid #fff;
  padding-bottom: 0.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hamburger {
    width: 45px;
    height: 45px;
    top: 1rem;
    right: 1rem;
  }

  .hamburger span {
    width: 18px;
  }

  .hero-logo-img {
    max-width: 340px;
  }

  .contacts h2,
  .gallery h2 {
    font-size: 1.2rem;
  }

  .contact-details .phone {
    font-size: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .social-link.text-link {
    font-size: 0.9rem;
  }

  .about-box {
    padding: 1.25rem 1.2rem;
    margin: 0 auto;
    max-width: 94%;
  }

  .about-box h2 {
    font-size: clamp(1.42rem, 5.6vw, 1.92rem);
  }

  .about-box p {
    font-size: clamp(0.98rem, 2.45vw, 1.16rem);
    line-height: 1.22;
    margin-bottom: 0.62rem;
  }

  .about-content {
    width: min(92vw, 620px);
  }

  .about .parallax-bg {
    background-image: url('images/about-us-mobile.jpg') !important;

  }

  .gallery {
    min-height: 600px;
  }

  .gallery-slide {
    width: 70%;
    max-width: 70%;
    min-height: 520px;
    box-sizing: border-box;
    padding: 0 10px;
  }

  .gallery-slide img {
    height: 450px;
    min-height: 450px;
  }

  .gallery-caption {
    font-size: 0.85rem;
    margin-top: 0.8rem;
  }

  .gallery-slider {
    min-height: 520px;
  }

  .gallery-container {
    min-height: 520px;
  }

  .gallery-images {
    min-height: 520px;
  }

  .gallery-prev {
    left: 5%;
  }

  .gallery-next {

  .gallery-lightbox {
    padding: 0.9rem;
  }

  .gallery-lightbox-content {
    width: 100%;
  }

  .gallery-lightbox-image {
    height: auto;
    max-height: none;
  }

  .gallery-lightbox-caption {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    max-width: 94%;
  }

  .gallery-lightbox-brand-logo {
    height: clamp(28px, 7vw, 42px);
    max-width: min(34vw, 128px);
  }

  .gallery-lightbox-brand-link {
    top: 12px;
  }

  .gallery-lightbox-close,
  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    width: 44px;
    height: 44px;
  }

  .gallery-lightbox-prev {
    left: max(0.45rem, env(safe-area-inset-left));
  }

  .gallery-lightbox-next {
    right: max(0.45rem, env(safe-area-inset-right));
  }
    right: 5%;
  }

  .gallery-prev,
  .gallery-next {
    width: 38px;
    height: 38px;
  }

  .menu-overlay {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .menu-overlay a {
    font-size: 1.2rem;
  }

  .menu-overlay li {
    margin: 0.45rem 0;
  }

  .menu-overlay-brands {
    gap: 0.85rem;
    padding: 1rem 0 0.6rem;
  }

  .menu-brand-logo {
    width: 70px;
  }

  .menu-brand-logo-muro {
    width: 50px;
  }

  .related-links .links {
    flex-direction: column;
    gap: 1rem;
  }

  .contacts-bottom-links {
    gap: 1.5rem;
    justify-content: center;
  }


  .contacts-bottom-links {
    gap: 1.2rem;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .link-group {
    width: 100%;
    display: flex;
    justify-content: left;
    gap: 0px;
    flex-wrap: wrap;
  align-items: normal;
  }


   .link-group-single {
    order: 3;
  }

  .link-group-double {
    order: 2;
  }

  .link-group-double .group-label  {
    text-align: left;
    margin-left: 12px;
  }


  .link-group-triple  {
    justify-content: left;
    margin-left: 0 !important;
    order: 1;
  }

  .bottom-link-box {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  /* Unified square for all icon/logo boxes on mobile */
  .box-square,
  .box-square.big {
    width: 74px;
    height: 74px;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }

  .box-square.big {
    padding: 0;
  }

  /* Ensure images scale inside the unified box with consistent spacing */
  .box-square img,
  .box-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .bottom-link-box > span,
  .link-group-double .group-label {
    font-size: 0.72rem;
    margin-top: 0.35rem;
  }

  .contacts .section-content {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .hamburger {
    width: 42px;
    height: 42px;
  }

  .hamburger span {
    width: 16px;
  }

  .hero-logo-img {
    max-width: 260px;
  }

  section {
    padding: 1.5rem;
  }

  .about-box {
    padding: 1rem 0.95rem;
    margin: 0 auto;
    max-width: 94%;
  }

  .about-box h2 {
    font-size: clamp(1.22rem, 7.2vw, 1.66rem);
  }

  .about-box p {
    font-size: clamp(0.9rem, 4.25vw, 1.06rem);
    margin-bottom: 0.54rem;
    line-height: 1.2;
  }

  .about-content {
    width: 95vw;
  }

  .gallery {
    min-height: 450px;
  }

  .gallery-slide {
    max-width: 85%;
    min-height: 350px;
  }

  .gallery-slide img {
    height: 280px;
    min-height: 280px;
  }

  .gallery-slider {
    min-height: 350px;
  }

  .gallery-container {
    min-height: 350px;
  }

  .gallery-images {
    min-height: 350px;
  }

  .gallery-caption {
    font-size: 0.75rem;
    margin-top: 0.6rem;
  }

  .gallery-prev,
  .gallery-next {
    width: 32px;
    height: 32px;
  }

  .gallery-prev {
    left: 2%;
  }

  .gallery-next {
    right: 2%;
  }

  .gallery-lightbox {
    padding: 0.6rem;
  }

  .gallery-lightbox-image {
    height: auto;
    max-height: none;
  }

  .gallery-lightbox-caption {
    font-size: 0.72rem;
    margin-top: 0.6rem;
  }

  .gallery-lightbox-brand-logo {
    height: clamp(24px, 8.5vw, 36px);
    max-width: min(38vw, 112px);
  }

  .gallery-lightbox-brand-link {
    top: 10px;
  }

  .gallery-lightbox-counter {
    bottom: 0.8rem;
    font-size: 0.75rem;
  }

  .gallery-lightbox-close,
  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    width: 40px;
    height: 40px;
  }

}

/* Three-brand gallery layout */
.gallery.gallery-brands {
  background: #fff;
  padding: 8px 8px 6px;
  min-height: auto;
}

.brands-gallery-grid {
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.brand-gallery {
  background: #5b3119;
  aspect-ratio: 0.65;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.brand-gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.12) 35%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.brand-gallery-header {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: min(48%, 210px);
  display: flex;
  justify-content: center;
}

.brand-gallery-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-gallery-logo {
  width: auto;
  height: clamp(56px, 4.8vw, 72px);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-gallery[data-gallery-brand='ro'] .brand-gallery-logo {
  height: clamp(50px, 4.2vw, 64px);
}

.brand-gallery[data-gallery-brand='bacalhau'] .brand-gallery-logo {
  height: clamp(52px, 4.5vw, 68px);
}

.brand-gallery-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.brand-gallery-viewport {
  position: absolute;
  inset: 0;
}

.brand-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.brand-gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.brand-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.brand-gallery-prev,
.brand-gallery-next {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}

.brand-gallery-prev {
  left: 14px;
}

.brand-gallery-next {
  right: 14px;
}

.brand-gallery-prev svg,
.brand-gallery-next svg {
  width: 16px;
  height: 28px;
}

@media (max-width: 980px) {
  .brands-gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand-gallery {
    aspect-ratio: 1.1;
  }

  .brand-gallery-header {
    top: 22px;
  }

  .brand-gallery-logo {
    height: clamp(48px, 8vw, 62px);
  }

  .brand-gallery[data-gallery-brand='ro'] .brand-gallery-logo {
    height: clamp(42px, 7.2vw, 54px);
  }

  .brand-gallery[data-gallery-brand='bacalhau'] .brand-gallery-logo {
    height: clamp(44px, 7.6vw, 56px);
  }
}

@media (max-width: 560px) {
  .gallery.gallery-brands {
    padding: 8px 4px;
  }

  .brand-gallery {
    aspect-ratio: 1.02;
  }

  .brand-gallery-prev,
  .brand-gallery-next {
    width: 34px;
    height: 34px;
  }

  .brand-gallery-prev {
    left: 8px;
  }

  .brand-gallery-next {
    right: 8px;
  }
}
