.hero {
  height: 100vh;
  background: url('../assets/images/nada.jpg') center/cover no-repeat;
}

.section-heading {
  margin-bottom: 48px;

  text-align: center;
}

.section-heading span {
  display: block;

  margin-bottom: 10px;

  color: #6B705C;

  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;

  color: #3A506B;

  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
}

/* ÚLTIMOS TRABALHOS */

.works {
  padding: 96px 64px;

  background: #F5F1E8;
}

.works-carousel {
  position: relative;
  background-color:#F5F1E8;
  width: min(1220px, 100%);

  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  height: 440px;

  display: flex;
  flex-direction: column;

  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(107, 112, 92, 0.16);
  border-radius: 28px;

  overflow: hidden;

  box-shadow: 0 20px 50px rgba(58, 80, 107, 0.08);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);

  box-shadow: 0 24px 60px rgba(58, 80, 107, 0.13);
}

.card img {
  width: 100%;
  height: 310px;

  display: block;

  object-fit: cover;
  object-position: center;
}

.card-content {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 22px 20px;

  text-align: center;
}

.card h2 {
  margin: 0 0 8px;

  color: #3A506B;

  font-size: 1.2rem;
  font-weight: 500;
}

.card h3 {
  margin: 0;

  color: #6B705C;

  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* DEPOIMENTOS */

.testimonials {
  padding: 58px 24px;

  background: #F5F1E8;

  text-align: center;
}

.testimonial-carousel-shell {
  position: relative;
  
  width: min(1120px, 100%);

  margin: 0 auto;
}

.testimonial-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  
}

.testimonial {
  min-height: 300px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 38px 28px;

  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(107, 112, 92, 0.18);
  border-radius: 28px;

  box-shadow: 0 20px 50px rgba(58, 80, 107, 0.08);

  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-6px);

  box-shadow: 0 24px 60px rgba(58, 80, 107, 0.12);
}

.testimonial img {
  width: 74px;
  height: 74px;

  margin-bottom: 24px;

  border-radius: 50%;

  object-fit: cover;
  object-position: var(--photo-focus-x, center) var(--photo-focus-y, center);

  border: 3px solid rgba(107, 112, 92, 0.22);
}

.testimonial p {
  max-width: 320px;

  margin: 0 0 22px;

  color: #3f4638;

  font-size: 1rem;
  line-height: 1.7;
}

.testimonial span {
  color: #3A506B;

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* CONTROLES DO CARROSSEL */

.carousel-btn {
  display: none;
}

.carousel-dots {
  display: none;
}

/* RESPONSIVO */

@media (max-width: 1100px) {
  .works {
    padding: 88px 32px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    height: 430px;
  }

  .card img {
    height: 300px;
  }

  .testimonial-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .works {
    padding: 58px 20px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .works-carousel,
  .testimonial-carousel-shell {
    overflow: visible;
    background-color: rgb(245, 241, 232)
    
  }

  .cards,
  .testimonial-carousel {
    display: flex;
    gap: 18px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding: 4px 0 18px;

    scrollbar-width: none;
  }

  .cards::-webkit-scrollbar,
  .testimonial-carousel::-webkit-scrollbar {
    display: none;
  }

  .card,
  .testimonial {
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
  }

  .card {
    height: 430px;
  }

  .card img {
    height: 305px;
  }

  .testimonial {
    min-height: 310px;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: none;
    border-radius: 50%;

    background: rgba(58, 80, 107, 0.82);
    color: #F5F1E8;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    z-index: 5;

    transition: transform 0.25s ease, background 0.25s ease;
  }

  .carousel-btn:hover {
    background: #3A506B;

    transform: translateY(-50%) scale(1.06);
  }

  .carousel-btn-prev {
    left: 10px;
  }

  .carousel-btn-next {
    right: 10px;
  }

  .carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 8px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: none;
    border-radius: 999px;

    background: rgba(58, 80, 107, 0.28);

    cursor: pointer;

    transition: width 0.25s ease, background 0.25s ease;
  }

  .carousel-dot.active {
    width: 24px;

    background: #6B705C;
  }

 
  .cards,
  .testimonial-carousel {
    background: transparent;
    padding: 0;
  }

  .card,
  .testimonial {
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(58, 80, 107, 0.08);
  }

  .works-carousel,
  .testimonial-carousel-shell {
    background: transparent;
    border-radius: 28px;
  }

}

@media (max-width: 420px) {
  .card {
    height: 405px;
  }

  .card img {
    height: 280px;
  }

  .card-content {
    padding: 18px 16px;
  }

  .card h2 {
    font-size: 1.08rem;
  }

  .card h3 {
    font-size: 0.82rem;
  }
}
/* FIM DEPOIMENTOS */

/* FOOTER */

.footer {
  padding: 64px 24px 24px;

  background: #647a6f;
  color: #F5F1E8;
}

.footer-content {
  width: min(1180px, 100%);

  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr auto 0.8fr auto 1.2fr;
  align-items: center;
  gap: 44px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand img {
  width: 118px;
  height: auto;

  display: block;
}

.footer-brand p {
  max-width: 280px;

  margin: 0;

  color: rgba(245, 241, 232, 0.82);

  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-divider {
  width: 1px;
  height: 150px;

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(245, 241, 232, 0.45),
    transparent
  );
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links a {
  color: rgba(245, 241, 232, 0.9);
  text-decoration: none;

  font-size: 0.95rem;

  transition: transform 0.25s ease, color 0.25s ease;
}

.footer-links a:hover {
  color: #ffffff;

  transform: translateX(4px);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
  margin-left:-15px;
}

.footer-icon {
  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(245, 241, 232, 0.12);
  border: 1px solid rgba(245, 241, 232, 0.22);
  border-radius: 50%;

  flex-shrink: 0;

  transition: transform 0.25s ease, background 0.25s ease;
}

a.footer-icon:hover {
  background: rgba(245, 241, 232, 0.22);

  transform: translateY(-3px);
}

.footer-icon img {
  width: 20px;
  height: 20px;

  display: block;
}

.footer-icon-static {
  cursor: default;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  flex-shrink: 0;
}

.footer-email span {
  color: rgba(245, 241, 232, 0.82);

  font-size: 0.88rem;
  line-height: 1;
  white-space: nowrap;
}

.footer-bottom {
  width: min(1180px, 100%);
  
  margin: 54px auto 0;
  padding-top: 22px;

  border-top: 1px solid rgba(245, 241, 232, 0.16);

  text-align: center;
}

.footer-bottom p {
  margin: 0;

  color: rgba(245, 241, 232, 0.68);

  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-bottom a {
  color: #F5F1E8;
  text-decoration: none;
  font-weight: 600;

  transition: opacity 0.25s ease;
}

.footer-bottom a:hover {
  opacity: 0.75;
}

@media (max-width: 900px) {
  .footer {
    padding: 56px 24px 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;

    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand p {
    max-width: 340px;
  }

  .footer-divider {
    width: 100%;
    height: 1px;

    background: linear-gradient(
      to right,
      transparent,
      rgba(245, 241, 232, 0.35),
      transparent
    );
  }

  .footer-links {
    align-items: center;
  }

.footer-social {
  justify-content: center;
  align-items: center;
  padding-bottom: 0;
}

.footer-email {
  justify-content: center;
}
}

/* SEM SOMBRA NO CARROSSEL NO MOBILE */

@media (max-width: 768px) {
  .works-carousel,
  .testimonial-carousel-shell {
    width: 100%;
    overflow: hidden;
    background: #F5F1E8;
    isolation: isolate;
  }

  .cards,
  .testimonial-carousel {
    gap: 0 !important;
    padding: 0 !important;
    margin: 0;

    background: #F5F1E8;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
  }

  .cards::-webkit-scrollbar,
  .testimonial-carousel::-webkit-scrollbar {
    display: none;
  }

  .card,
  .testimonial {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    background: #ffffff;

    box-shadow: none;
  }

  .card:hover,
  .testimonial:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .carousel-btn-prev {
    left: 10px;
  }

  .carousel-btn-next {
    right: 10px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;

    background: rgba(58, 80, 107, 0.86);

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  }
}

/* BASTIDORES */

.backstage {
  padding: 110px 24px;

  background: #F5F1E8;
}

.backstage-container {
  width: min(1180px, 100%);

  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 64px;
}

.backstage-image {
  min-height: 560px;

  position: relative;

  border-radius: 38px;

  overflow: hidden;

  box-shadow: 0 28px 80px rgba(58, 80, 107, 0.16);
}

.backstage-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(12, 18, 24, 0.04),
      rgba(12, 18, 24, 0.18)
    );
}

.backstage-image img {
  width: 100%;
  height: 100%;

  position: absolute;
  inset: 0;

  display: block;

  object-fit: cover;
  object-position: center;

  transition: transform 0.55s ease;
}

.backstage:hover .backstage-image img {
  transform: scale(1.04);
}

.backstage-content span {
  display: block;

  margin-bottom: 14px;

  color: #6B705C;

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.backstage-content h2 {
  max-width: 720px;

  margin: 0 0 24px;

  color: #3A506B;

  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
}

.backstage-content p {
  max-width: 620px;

  margin: 0 0 30px;

  color: rgba(48, 53, 45, 0.76);

  font-size: 1rem;
  line-height: 1.85;
}

.backstage-content a {
  width: fit-content;

  padding: 14px 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #3A506B;
  color: #F5F1E8;

  border-radius: 999px;

  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;

  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.backstage-content a:hover {
  background: #6B705C;

  transform: translateY(-2px);

  opacity: 0.92;
}

@media (max-width: 920px) {
  .backstage {
    padding: 82px 20px;
  }

  .backstage-container {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .backstage-image {
    min-height: 460px;
  }
}

@media (max-width: 560px) {
  .backstage {
    padding: 72px 18px;
  }

  .backstage-image {
    min-height: 360px;

    border-radius: 30px;
  }

  .backstage-content h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .backstage-content p {
    font-size: 0.96rem;
  }

  .backstage-content a {
    width: 100%;
  }
}

/* TEXTO CENTRAL DO BANNER DINÂMICO */

.hero {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(12, 18, 24, 0.32);

  z-index: 1;
}

.hero-content {
  width: min(880px, calc(100% - 40px));

  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.hero-content span {
  margin-bottom: 16px;

  color: #F5F1E8;

  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;

  margin: 0;

  color: #F5F1E8;

  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: 0.98;
}

.hero-content p {
  max-width: 620px;

  margin: 24px auto 0;

  color: rgba(245, 241, 232, 0.86);

  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .hero {
    min-height: 86vh;
    padding: 120px 0 70px;
  }

  .hero-content {
    width: min(100% - 28px, 880px);
  }

  .hero-content h1 {
    font-size: clamp(2.5rem, 13vw, 4.4rem);
  }
}

/* =========================================================
   HOME MOBILE - BOTÕES E SEÇÕES SEM ESTOURAR LARGURA
========================================================= */

@media (max-width: 760px) {
  .hero-content,
  .backstage-container,
  .works,
  .testimonials {
    width: min(100%, calc(100vw - 28px));
    margin-left: auto;
    margin-right: auto;
  }

  .backstage-content a,
  .hero-content a,
  .portfolio-cta-box a,
  .blog-cta-box a {
    width: 100%;
    max-width: 320px;

    justify-content: center;
    text-align: center;
  }

  .backstage-content a{

    margin-left:28px;
  }

  .carousel-btn {
    max-width: 44px;
    max-height: 44px;
    flex: 0 0 auto;
  }
}






/* =========================================================
   DEPOIMENTOS - FOTO EM CIMA, TEXTO NO MEIO, NOME EMBAIXO
========================================================= */

.testimonial-carousel {
  align-items: stretch;
}

.testimonial {
  min-height: 390px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

/* Foto sempre fixa no topo */
.testimonial img {
  width: 96px;
  height: 96px;

  flex: 0 0 auto;

  order: 1;

  margin: 0 auto 22px;

  display: block;

  border-radius: 50%;

  object-fit: cover;
  object-position: center;
}

/* Texto ocupando o meio do card */
.testimonial p {
  flex: 1;

  order: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;

  text-align: center;
}

/* Nome fixo embaixo */
.testimonial h3,
.testimonial strong,
.testimonial .testimonial-name {
  flex: 0 0 auto;

  order: 3;

  margin-top: 24px;
  margin-bottom: 0;
}

/* Caso tenha subtítulo/cargo abaixo do nome */
.testimonial span,
.testimonial small {
  order: 4;

  margin-top: 6px;
}

@media (min-width: 761px) {
  .testimonial {
    height: 100%;
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .testimonial {
    min-height: 360px;
  }

  .testimonial img {
    width: 88px;
    height: 88px;
  }
}